Javascript
Kontrollerar ifall Javascript-koden är korrekt enligt Webperf-communityts egna Javascript-test. Testet är ett "lint"-test för att avgöra om det är korrekt Javascript och följer webbstandard.
Betyg: 2.22 av 5
- JS är dålig.Webbstandard
- `< script>` in: #1: Webbsida , antal grupperade fel: 1 ( 4.80 betyg )
- `< script>` in: #1: Webbsida , antal fel: 1 ( 4.80 betyg )
- Parsing error: Unexpected token : (totalt 1 st)
- `< script src="...">` in: #1: Webbsida , antal grupperade fel: 4 ( 4.20 betyg )
- `< script src="...">` in: #1: Webbsida , antal fel: 1203 ( 1.00 betyg )
- X is not defined. (totalt 834 st)
- X is defined but never used. (totalt 255 st)
- X is assigned a value but never used. (totalt 79 st)
- Unexpected console statement. (totalt 35 st)
- `content-type=".*javascript.*"` in: #92: gtm.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #92: gtm.js, antal fel: 514 ( 1.00 betyg )
- X is defined but never used. (totalt 412 st)
- X is assigned a value but never used. (totalt 81 st)
- X is not defined. (totalt 20 st)
- Unexpected console statement. (totalt 1 st)
- `content-type=".*javascript.*"` in: #93: 029cee80-c34a-4, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #93: 029cee80-c34a-4, antal fel: 556 ( 1.00 betyg )
- X is defined but never used. (totalt 440 st)
- X is assigned a value but never used. (totalt 81 st)
- X is not defined. (totalt 23 st)
- Unexpected console statement. (totalt 12 st)
- `content-type=".*javascript.*"` in: #114: otSDKStub.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #114: otSDKStub.js, antal fel: 561 ( 1.00 betyg )
- X is defined but never used. (totalt 443 st)
- X is assigned a value but never used. (totalt 82 st)
- X is not defined. (totalt 23 st)
- Unexpected console statement. (totalt 13 st)
- `content-type=".*javascript.*"` in: #115: dialog.min.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #115: dialog.min.js, antal fel: 568 ( 1.00 betyg )
- X is defined but never used. (totalt 443 st)
- X is assigned a value but never used. (totalt 82 st)
- X is not defined. (totalt 29 st)
- Unexpected console statement. (totalt 14 st)
- `content-type=".*javascript.*"` in: #116: lottie.e74a53bf, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #116: lottie.e74a53bf, antal fel: 578 ( 1.00 betyg )
- X is defined but never used. (totalt 443 st)
- X is assigned a value but never used. (totalt 82 st)
- X is not defined. (totalt 39 st)
- Unexpected console statement. (totalt 14 st)
- `content-type=".*javascript.*"` in: #117: mega-menu.fe4f3, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #117: mega-menu.fe4f3, antal fel: 633 ( 1.00 betyg )
- X is defined but never used. (totalt 444 st)
- X is not defined. (totalt 93 st)
- X is assigned a value but never used. (totalt 82 st)
- Unexpected console statement. (totalt 14 st)
- `content-type=".*javascript.*"` in: #118: mega-menu-stret, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #118: mega-menu-stret, antal fel: 638 ( 1.00 betyg )
- X is defined but never used. (totalt 444 st)
- X is not defined. (totalt 98 st)
- X is assigned a value but never used. (totalt 82 st)
- Unexpected console statement. (totalt 14 st)
- `content-type=".*javascript.*"` in: #119: menu-title-keyb, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #119: menu-title-keyb, antal fel: 652 ( 1.00 betyg )
- X is defined but never used. (totalt 444 st)
- X is not defined. (totalt 112 st)
- X is assigned a value but never used. (totalt 82 st)
- Unexpected console statement. (totalt 14 st)
- `content-type=".*javascript.*"` in: #120: nav-menu.7e665d, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #120: nav-menu.7e665d, antal fel: 662 ( 1.00 betyg )
- X is defined but never used. (totalt 445 st)
- X is not defined. (totalt 121 st)
- X is assigned a value but never used. (totalt 82 st)
- Unexpected console statement. (totalt 14 st)
- `content-type=".*javascript.*"` in: #121: text-editor.2c3, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #121: text-editor.2c3, antal fel: 665 ( 1.00 betyg )
- X is defined but never used. (totalt 445 st)
- X is not defined. (totalt 124 st)
- X is assigned a value but never used. (totalt 82 st)
- Unexpected console statement. (totalt 14 st)
- `content-type=".*javascript.*"` in: #144: otBannerSdk.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #144: otBannerSdk.js, antal fel: 720 ( 1.00 betyg )
- X is defined but never used. (totalt 470 st)
- X is not defined. (totalt 124 st)
- X is assigned a value but never used. (totalt 82 st)
- Unexpected console statement. (totalt 44 st)
Integritet & säkerhet
- `< script>` in: #1: Webbsida , antal grupperade fel: 1 ( 4.80 betyg )
- `< script>` in: #1: Webbsida , antal fel: 1 ( 4.80 betyg )
- Parsing error: Unexpected token : (totalt 1 st)
- `< script src="...">` in: #1: Webbsida , antal grupperade fel: 21 ( 1.00 betyg )
- `< script src="...">` in: #1: Webbsida , antal fel: 4173 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 2793 st)
- Expected X and instead saw X. (totalt 1056 st)
- Unnecessary escape character: \-. (totalt 235 st)
- Do not access Object.prototype method X from target object. (totalt 33 st)
- Unnecessary escape character: \/. (totalt 12 st)
- Unnecessary X. (totalt 10 st)
- Comparing to itself is potentially pointless. (totalt 5 st)
- X is assigned to itself. (totalt 5 st)
- eval can be harmful. (totalt 4 st)
- The Function constructor is eval. (totalt 4 st)
- X is not modified in this loop. (totalt 3 st)
- Unnecessary escape character: \}. (totalt 2 st)
- Unnecessary escape character: \?. (totalt 2 st)
- Unnecessary escape character: \[. (totalt 2 st)
- Unnecessary escape character: \". (totalt 1 st)
- Unnecessary escape character: \'. (totalt 1 st)
- Unnecessary escape character: \#. (totalt 1 st)
- Unnecessary escape character: \+. (totalt 1 st)
- Unnecessary escape character: \.. (totalt 1 st)
- Unsafe usage of ReturnStatement. (totalt 1 st)
- Unsafe usage of ThrowStatement. (totalt 1 st)
- `content-type=".*javascript.*"` in: #92: gtm.js, antal grupperade fel: 10 ( 3.00 betyg )
- `content-type=".*javascript.*"` in: #92: gtm.js, antal fel: 1337 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 955 st)
- Expected X and instead saw X. (totalt 238 st)
- Do not access Object.prototype method X from target object. (totalt 110 st)
- Unnecessary escape character: \/. (totalt 16 st)
- X is not modified in this loop. (totalt 8 st)
- Unnecessary escape character: \-. (totalt 4 st)
- X is assigned to itself. (totalt 3 st)
- Comparing to itself is potentially pointless. (totalt 1 st)
- Unnecessary X. (totalt 1 st)
- Script URL is a form of eval. (totalt 1 st)
- `content-type=".*javascript.*"` in: #93: 029cee80-c34a-4, antal grupperade fel: 16 ( 1.80 betyg )
- `content-type=".*javascript.*"` in: #93: 029cee80-c34a-4, antal fel: 2283 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1541 st)
- Expected X and instead saw X. (totalt 565 st)
- Do not access Object.prototype method X from target object. (totalt 121 st)
- Unnecessary escape character: \/. (totalt 18 st)
- Unnecessary escape character: \-. (totalt 9 st)
- X is not modified in this loop. (totalt 8 st)
- Unnecessary X. (totalt 5 st)
- Unnecessary escape character: \.. (totalt 5 st)
- X is assigned to itself. (totalt 3 st)
- Unnecessary escape character: \). (totalt 2 st)
- Comparing to itself is potentially pointless. (totalt 1 st)
- Script URL is a form of eval. (totalt 1 st)
- Unnecessary escape character: \:. (totalt 1 st)
- Unnecessary escape character: \*. (totalt 1 st)
- The Function constructor is eval. (totalt 1 st)
- eval can be harmful. (totalt 1 st)
- `content-type=".*javascript.*"` in: #114: otSDKStub.js, antal grupperade fel: 16 ( 1.80 betyg )
- `content-type=".*javascript.*"` in: #114: otSDKStub.js, antal fel: 2353 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1599 st)
- Expected X and instead saw X. (totalt 577 st)
- Do not access Object.prototype method X from target object. (totalt 121 st)
- Unnecessary escape character: \/. (totalt 18 st)
- Unnecessary escape character: \-. (totalt 9 st)
- X is not modified in this loop. (totalt 8 st)
- Unnecessary X. (totalt 5 st)
- Unnecessary escape character: \.. (totalt 5 st)
- X is assigned to itself. (totalt 3 st)
- Unnecessary escape character: \). (totalt 2 st)
- Comparing to itself is potentially pointless. (totalt 1 st)
- Script URL is a form of eval. (totalt 1 st)
- Unnecessary escape character: \:. (totalt 1 st)
- Unnecessary escape character: \*. (totalt 1 st)
- The Function constructor is eval. (totalt 1 st)
- eval can be harmful. (totalt 1 st)
- `content-type=".*javascript.*"` in: #115: dialog.min.js, antal grupperade fel: 16 ( 1.80 betyg )
- `content-type=".*javascript.*"` in: #115: dialog.min.js, antal fel: 2390 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1630 st)
- Expected X and instead saw X. (totalt 583 st)
- Do not access Object.prototype method X from target object. (totalt 121 st)
- Unnecessary escape character: \/. (totalt 18 st)
- Unnecessary escape character: \-. (totalt 9 st)
- X is not modified in this loop. (totalt 8 st)
- Unnecessary X. (totalt 5 st)
- Unnecessary escape character: \.. (totalt 5 st)
- X is assigned to itself. (totalt 3 st)
- Unnecessary escape character: \). (totalt 2 st)
- Comparing to itself is potentially pointless. (totalt 1 st)
- Script URL is a form of eval. (totalt 1 st)
- Unnecessary escape character: \:. (totalt 1 st)
- Unnecessary escape character: \*. (totalt 1 st)
- The Function constructor is eval. (totalt 1 st)
- eval can be harmful. (totalt 1 st)
- `content-type=".*javascript.*"` in: #116: lottie.e74a53bf, antal grupperade fel: 16 ( 1.80 betyg )
- `content-type=".*javascript.*"` in: #116: lottie.e74a53bf, antal fel: 2430 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1670 st)
- Expected X and instead saw X. (totalt 583 st)
- Do not access Object.prototype method X from target object. (totalt 121 st)
- Unnecessary escape character: \/. (totalt 18 st)
- Unnecessary escape character: \-. (totalt 9 st)
- X is not modified in this loop. (totalt 8 st)
- Unnecessary X. (totalt 5 st)
- Unnecessary escape character: \.. (totalt 5 st)
- X is assigned to itself. (totalt 3 st)
- Unnecessary escape character: \). (totalt 2 st)
- Comparing to itself is potentially pointless. (totalt 1 st)
- Script URL is a form of eval. (totalt 1 st)
- Unnecessary escape character: \:. (totalt 1 st)
- Unnecessary escape character: \*. (totalt 1 st)
- The Function constructor is eval. (totalt 1 st)
- eval can be harmful. (totalt 1 st)
- `content-type=".*javascript.*"` in: #117: mega-menu.fe4f3, antal grupperade fel: 16 ( 1.80 betyg )
- `content-type=".*javascript.*"` in: #117: mega-menu.fe4f3, antal fel: 2491 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1730 st)
- Expected X and instead saw X. (totalt 584 st)
- Do not access Object.prototype method X from target object. (totalt 121 st)
- Unnecessary escape character: \/. (totalt 18 st)
- Unnecessary escape character: \-. (totalt 9 st)
- X is not modified in this loop. (totalt 8 st)
- Unnecessary X. (totalt 5 st)
- Unnecessary escape character: \.. (totalt 5 st)
- X is assigned to itself. (totalt 3 st)
- Unnecessary escape character: \). (totalt 2 st)
- Comparing to itself is potentially pointless. (totalt 1 st)
- Script URL is a form of eval. (totalt 1 st)
- Unnecessary escape character: \:. (totalt 1 st)
- Unnecessary escape character: \*. (totalt 1 st)
- The Function constructor is eval. (totalt 1 st)
- eval can be harmful. (totalt 1 st)
- `content-type=".*javascript.*"` in: #118: mega-menu-stret, antal grupperade fel: 16 ( 1.80 betyg )
- `content-type=".*javascript.*"` in: #118: mega-menu-stret, antal fel: 2494 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1733 st)
- Expected X and instead saw X. (totalt 584 st)
- Do not access Object.prototype method X from target object. (totalt 121 st)
- Unnecessary escape character: \/. (totalt 18 st)
- Unnecessary escape character: \-. (totalt 9 st)
- X is not modified in this loop. (totalt 8 st)
- Unnecessary X. (totalt 5 st)
- Unnecessary escape character: \.. (totalt 5 st)
- X is assigned to itself. (totalt 3 st)
- Unnecessary escape character: \). (totalt 2 st)
- Comparing to itself is potentially pointless. (totalt 1 st)
- Script URL is a form of eval. (totalt 1 st)
- Unnecessary escape character: \:. (totalt 1 st)
- Unnecessary escape character: \*. (totalt 1 st)
- The Function constructor is eval. (totalt 1 st)
- eval can be harmful. (totalt 1 st)
- `content-type=".*javascript.*"` in: #119: menu-title-keyb, antal grupperade fel: 16 ( 1.80 betyg )
- `content-type=".*javascript.*"` in: #119: menu-title-keyb, antal fel: 2514 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1753 st)
- Expected X and instead saw X. (totalt 584 st)
- Do not access Object.prototype method X from target object. (totalt 121 st)
- Unnecessary escape character: \/. (totalt 18 st)
- Unnecessary escape character: \-. (totalt 9 st)
- X is not modified in this loop. (totalt 8 st)
- Unnecessary X. (totalt 5 st)
- Unnecessary escape character: \.. (totalt 5 st)
- X is assigned to itself. (totalt 3 st)
- Unnecessary escape character: \). (totalt 2 st)
- Comparing to itself is potentially pointless. (totalt 1 st)
- Script URL is a form of eval. (totalt 1 st)
- Unnecessary escape character: \:. (totalt 1 st)
- Unnecessary escape character: \*. (totalt 1 st)
- The Function constructor is eval. (totalt 1 st)
- eval can be harmful. (totalt 1 st)
- `content-type=".*javascript.*"` in: #120: nav-menu.7e665d, antal grupperade fel: 16 ( 1.80 betyg )
- `content-type=".*javascript.*"` in: #120: nav-menu.7e665d, antal fel: 2530 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1768 st)
- Expected X and instead saw X. (totalt 585 st)
- Do not access Object.prototype method X from target object. (totalt 121 st)
- Unnecessary escape character: \/. (totalt 18 st)
- Unnecessary escape character: \-. (totalt 9 st)
- X is not modified in this loop. (totalt 8 st)
- Unnecessary X. (totalt 5 st)
- Unnecessary escape character: \.. (totalt 5 st)
- X is assigned to itself. (totalt 3 st)
- Unnecessary escape character: \). (totalt 2 st)
- Comparing to itself is potentially pointless. (totalt 1 st)
- Script URL is a form of eval. (totalt 1 st)
- Unnecessary escape character: \:. (totalt 1 st)
- Unnecessary escape character: \*. (totalt 1 st)
- The Function constructor is eval. (totalt 1 st)
- eval can be harmful. (totalt 1 st)
- `content-type=".*javascript.*"` in: #121: text-editor.2c3, antal grupperade fel: 16 ( 1.80 betyg )
- `content-type=".*javascript.*"` in: #121: text-editor.2c3, antal fel: 2534 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1772 st)
- Expected X and instead saw X. (totalt 585 st)
- Do not access Object.prototype method X from target object. (totalt 121 st)
- Unnecessary escape character: \/. (totalt 18 st)
- Unnecessary escape character: \-. (totalt 9 st)
- X is not modified in this loop. (totalt 8 st)
- Unnecessary X. (totalt 5 st)
- Unnecessary escape character: \.. (totalt 5 st)
- X is assigned to itself. (totalt 3 st)
- Unnecessary escape character: \). (totalt 2 st)
- Comparing to itself is potentially pointless. (totalt 1 st)
- Script URL is a form of eval. (totalt 1 st)
- Unnecessary escape character: \:. (totalt 1 st)
- Unnecessary escape character: \*. (totalt 1 st)
- The Function constructor is eval. (totalt 1 st)
- eval can be harmful. (totalt 1 st)
- `content-type=".*javascript.*"` in: #144: otBannerSdk.js, antal grupperade fel: 17 ( 1.60 betyg )
- `content-type=".*javascript.*"` in: #144: otBannerSdk.js, antal fel: 3372 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 2546 st)
- Expected X and instead saw X. (totalt 640 st)
- Do not access Object.prototype method X from target object. (totalt 124 st)
- Unnecessary escape character: \/. (totalt 18 st)
- Unnecessary escape character: \-. (totalt 9 st)
- X is not modified in this loop. (totalt 9 st)
- Unnecessary X. (totalt 5 st)
- Unnecessary escape character: \.. (totalt 5 st)
- X is assigned to itself. (totalt 3 st)
- Comparing to itself is potentially pointless. (totalt 3 st)
- The Function constructor is eval. (totalt 3 st)
- Unnecessary escape character: \). (totalt 2 st)
- Script URL is a form of eval. (totalt 1 st)
- Unnecessary escape character: \:. (totalt 1 st)
- Unnecessary escape character: \*. (totalt 1 st)
- eval can be harmful. (totalt 1 st)
- Unnecessary escape character: \_. (totalt 1 st)