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.53 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: 5 ( 4.00 betyg )
- `< script src="...">` in: #1: Webbsida , antal fel: 1244 ( 1.00 betyg )
- X is not defined. (totalt 749 st)
- X is defined but never used. (totalt 419 st)
- Unexpected console statement. (totalt 38 st)
- X is assigned a value but never used. (totalt 37 st)
- Parsing error: Identifier X has already been declared (totalt 1 st)
- `< script>` in: #57: gif, antal grupperade fel: 1 ( 4.80 betyg )
- `< script>` in: #57: gif, antal fel: 1 ( 4.80 betyg )
- Parsing error: Unexpected token : (totalt 1 st)
- `< script src="...">` in: #57: gif, antal grupperade fel: 5 ( 4.00 betyg )
- `< script src="...">` in: #57: gif, antal fel: 194 ( 1.00 betyg )
- X is defined but never used. (totalt 99 st)
- X is not defined. (totalt 77 st)
- Unexpected console statement. (totalt 14 st)
- X is assigned a value but never used. (totalt 3 st)
- Parsing error: Identifier X has already been declared (totalt 1 st)
- `< script>` in: #127: gif, antal grupperade fel: 1 ( 4.80 betyg )
- `< script>` in: #127: gif, antal fel: 1 ( 4.80 betyg )
- Parsing error: Unexpected token : (totalt 1 st)
- `< script src="...">` in: #127: gif, antal grupperade fel: 5 ( 4.00 betyg )
- `< script src="...">` in: #127: gif, antal fel: 194 ( 1.00 betyg )
- X is defined but never used. (totalt 99 st)
- X is not defined. (totalt 77 st)
- Unexpected console statement. (totalt 14 st)
- X is assigned a value but never used. (totalt 3 st)
- Parsing error: Identifier X has already been declared (totalt 1 st)
- `content-type=".*javascript.*"` in: #102: gtm.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #102: gtm.js, antal fel: 548 ( 1.00 betyg )
- X is defined but never used. (totalt 438 st)
- X is assigned a value but never used. (totalt 86 st)
- X is not defined. (totalt 23 st)
- Unexpected console statement. (totalt 1 st)
- `content-type=".*javascript.*"` in: #104: banner.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #104: banner.js, antal fel: 629 ( 1.00 betyg )
- X is defined but never used. (totalt 482 st)
- X is assigned a value but never used. (totalt 86 st)
- X is not defined. (totalt 52 st)
- Unexpected console statement. (totalt 9 st)
- `content-type=".*javascript.*"` in: #109: main.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #109: main.js, antal fel: 695 ( 1.00 betyg )
- X is defined but never used. (totalt 520 st)
- X is assigned a value but never used. (totalt 88 st)
- X is not defined. (totalt 54 st)
- Unexpected console statement. (totalt 33 st)
- `content-type=".*javascript.*"` in: #111: dialog.min.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #111: dialog.min.js, antal fel: 700 ( 1.00 betyg )
- X is defined but never used. (totalt 520 st)
- X is assigned a value but never used. (totalt 88 st)
- X is not defined. (totalt 59 st)
- Unexpected console statement. (totalt 33 st)
- `content-type=".*javascript.*"` in: #113: nav-menu.d43af6, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #113: nav-menu.d43af6, antal fel: 714 ( 1.00 betyg )
- X is defined but never used. (totalt 521 st)
- X is assigned a value but never used. (totalt 88 st)
- X is not defined. (totalt 72 st)
- Unexpected console statement. (totalt 33 st)
- `content-type=".*javascript.*"` in: #114: text-editor.2c3, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #114: text-editor.2c3, antal fel: 717 ( 1.00 betyg )
- X is defined but never used. (totalt 521 st)
- X is assigned a value but never used. (totalt 88 st)
- X is not defined. (totalt 75 st)
- Unexpected console statement. (totalt 33 st)
- `content-type=".*javascript.*"` in: #115: toggle.31881477, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #115: toggle.31881477, antal fel: 723 ( 1.00 betyg )
- X is defined but never used. (totalt 521 st)
- X is assigned a value but never used. (totalt 88 st)
- X is not defined. (totalt 81 st)
- Unexpected console statement. (totalt 33 st)
- `content-type=".*javascript.*"` in: #129: common.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #129: common.js, antal fel: 735 ( 1.00 betyg )
- X is defined but never used. (totalt 532 st)
- X is assigned a value but never used. (totalt 88 st)
- X is not defined. (totalt 82 st)
- Unexpected console statement. (totalt 33 st)
- `content-type=".*javascript.*"` in: #130: util.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #130: util.js, antal fel: 754 ( 1.00 betyg )
- X is defined but never used. (totalt 547 st)
- X is assigned a value but never used. (totalt 90 st)
- X is not defined. (totalt 83 st)
- Unexpected console statement. (totalt 34 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: 23 ( 1.00 betyg )
- `< script src="...">` in: #1: Webbsida , antal fel: 4441 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 3017 st)
- Expected X and instead saw X. (totalt 1158 st)
- Unnecessary escape character: \-. (totalt 99 st)
- Do not access Object.prototype method X from target object. (totalt 77 st)
- Unnecessary escape character: \.. (totalt 13 st)
- X is assigned to itself. (totalt 12 st)
- The Function constructor is eval. (totalt 10 st)
- Unnecessary escape character: \/. (totalt 9 st)
- Comparing to itself is potentially pointless. (totalt 7 st)
- X is not modified in this loop. (totalt 6 st)
- Unsafe usage of ThrowStatement. (totalt 6 st)
- Unnecessary X. (totalt 5 st)
- Unnecessary escape character: \[. (totalt 4 st)
- eval can be harmful. (totalt 4 st)
- Unnecessary escape character: \%. (totalt 3 st)
- Unnecessary escape character: \?. (totalt 3 st)
- Unnecessary escape character: \&. (totalt 2 st)
- Parsing error: Identifier X has already been declared (totalt 1 st)
- Unnecessary escape character: \=. (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)
- Unsafe usage of ReturnStatement. (totalt 1 st)
- `< script>` in: #57: gif, antal grupperade fel: 1 ( 4.80 betyg )
- `< script>` in: #57: gif, antal fel: 1 ( 4.80 betyg )
- Parsing error: Unexpected token : (totalt 1 st)
- `< script src="...">` in: #57: gif, antal grupperade fel: 17 ( 1.60 betyg )
- `< script src="...">` in: #57: gif, antal fel: 1719 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1166 st)
- Expected X and instead saw X. (totalt 476 st)
- Do not access Object.prototype method X from target object. (totalt 31 st)
- Unnecessary escape character: \.. (totalt 11 st)
- X is assigned to itself. (totalt 6 st)
- X is not modified in this loop. (totalt 6 st)
- Unsafe usage of ThrowStatement. (totalt 4 st)
- Unnecessary escape character: \/. (totalt 3 st)
- Comparing to itself is potentially pointless. (totalt 3 st)
- Unnecessary escape character: \%. (totalt 3 st)
- Unnecessary X. (totalt 2 st)
- The Function constructor is eval. (totalt 2 st)
- Unnecessary escape character: \&. (totalt 2 st)
- Parsing error: Identifier X has already been declared (totalt 1 st)
- Unnecessary escape character: \[. (totalt 1 st)
- Unnecessary escape character: \=. (totalt 1 st)
- Unnecessary escape character: \?. (totalt 1 st)
- `< script>` in: #127: gif, antal grupperade fel: 1 ( 4.80 betyg )
- `< script>` in: #127: gif, antal fel: 1 ( 4.80 betyg )
- Parsing error: Unexpected token : (totalt 1 st)
- `< script src="...">` in: #127: gif, antal grupperade fel: 17 ( 1.60 betyg )
- `< script src="...">` in: #127: gif, antal fel: 1719 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1166 st)
- Expected X and instead saw X. (totalt 476 st)
- Do not access Object.prototype method X from target object. (totalt 31 st)
- Unnecessary escape character: \.. (totalt 11 st)
- X is assigned to itself. (totalt 6 st)
- X is not modified in this loop. (totalt 6 st)
- Unsafe usage of ThrowStatement. (totalt 4 st)
- Unnecessary escape character: \/. (totalt 3 st)
- Comparing to itself is potentially pointless. (totalt 3 st)
- Unnecessary escape character: \%. (totalt 3 st)
- Unnecessary X. (totalt 2 st)
- The Function constructor is eval. (totalt 2 st)
- Unnecessary escape character: \&. (totalt 2 st)
- Parsing error: Identifier X has already been declared (totalt 1 st)
- Unnecessary escape character: \[. (totalt 1 st)
- Unnecessary escape character: \=. (totalt 1 st)
- Unnecessary escape character: \?. (totalt 1 st)
- `content-type=".*javascript.*"` in: #102: gtm.js, antal grupperade fel: 9 ( 3.20 betyg )
- `content-type=".*javascript.*"` in: #102: gtm.js, antal fel: 1259 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 890 st)
- Expected X and instead saw X. (totalt 242 st)
- Do not access Object.prototype method X from target object. (totalt 109 st)
- X is not modified in this loop. (totalt 7 st)
- Unnecessary escape character: \/. (totalt 5 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: #104: banner.js, antal grupperade fel: 12 ( 2.60 betyg )
- `content-type=".*javascript.*"` in: #104: banner.js, antal fel: 1555 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1104 st)
- Expected X and instead saw X. (totalt 306 st)
- Do not access Object.prototype method X from target object. (totalt 111 st)
- X is not modified in this loop. (totalt 9 st)
- X is assigned to itself. (totalt 6 st)
- Unnecessary escape character: \/. (totalt 5 st)
- Comparing to itself is potentially pointless. (totalt 5 st)
- The Function constructor is eval. (totalt 3 st)
- Unnecessary X. (totalt 2 st)
- Unsafe usage of ThrowStatement. (totalt 2 st)
- Script URL is a form of eval. (totalt 1 st)
- Unnecessary escape character: \[. (totalt 1 st)
- `content-type=".*javascript.*"` in: #109: main.js, antal grupperade fel: 17 ( 1.60 betyg )
- `content-type=".*javascript.*"` in: #109: main.js, antal fel: 2668 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1738 st)
- Expected X and instead saw X. (totalt 529 st)
- X is assigned to itself. (totalt 224 st)
- Do not access Object.prototype method X from target object. (totalt 127 st)
- X is not modified in this loop. (totalt 9 st)
- Unnecessary escape character: \/. (totalt 8 st)
- Unnecessary X. (totalt 7 st)
- Unexpected string concatenation of literals. (totalt 7 st)
- Comparing to itself is potentially pointless. (totalt 6 st)
- The Function constructor is eval. (totalt 3 st)
- Unsafe usage of ThrowStatement. (totalt 2 st)
- Unnecessary escape character: \[. (totalt 2 st)
- Unnecessary escape character: \). (totalt 2 st)
- Script URL is a form of eval. (totalt 1 st)
- Async arrow function has no X expression. (totalt 1 st)
- Unnecessary escape character: \^. (totalt 1 st)
- Unnecessary escape character: \.. (totalt 1 st)
- `content-type=".*javascript.*"` in: #111: dialog.min.js, antal grupperade fel: 17 ( 1.60 betyg )
- `content-type=".*javascript.*"` in: #111: dialog.min.js, antal fel: 2699 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1763 st)
- Expected X and instead saw X. (totalt 535 st)
- X is assigned to itself. (totalt 224 st)
- Do not access Object.prototype method X from target object. (totalt 127 st)
- X is not modified in this loop. (totalt 9 st)
- Unnecessary escape character: \/. (totalt 8 st)
- Unnecessary X. (totalt 7 st)
- Unexpected string concatenation of literals. (totalt 7 st)
- Comparing to itself is potentially pointless. (totalt 6 st)
- The Function constructor is eval. (totalt 3 st)
- Unsafe usage of ThrowStatement. (totalt 2 st)
- Unnecessary escape character: \[. (totalt 2 st)
- Unnecessary escape character: \). (totalt 2 st)
- Script URL is a form of eval. (totalt 1 st)
- Async arrow function has no X expression. (totalt 1 st)
- Unnecessary escape character: \^. (totalt 1 st)
- Unnecessary escape character: \.. (totalt 1 st)
- `content-type=".*javascript.*"` in: #113: nav-menu.d43af6, antal grupperade fel: 17 ( 1.60 betyg )
- `content-type=".*javascript.*"` in: #113: nav-menu.d43af6, antal fel: 2712 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1775 st)
- Expected X and instead saw X. (totalt 536 st)
- X is assigned to itself. (totalt 224 st)
- Do not access Object.prototype method X from target object. (totalt 127 st)
- X is not modified in this loop. (totalt 9 st)
- Unnecessary escape character: \/. (totalt 8 st)
- Unnecessary X. (totalt 7 st)
- Unexpected string concatenation of literals. (totalt 7 st)
- Comparing to itself is potentially pointless. (totalt 6 st)
- The Function constructor is eval. (totalt 3 st)
- Unsafe usage of ThrowStatement. (totalt 2 st)
- Unnecessary escape character: \[. (totalt 2 st)
- Unnecessary escape character: \). (totalt 2 st)
- Script URL is a form of eval. (totalt 1 st)
- Async arrow function has no X expression. (totalt 1 st)
- Unnecessary escape character: \^. (totalt 1 st)
- Unnecessary escape character: \.. (totalt 1 st)
- `content-type=".*javascript.*"` in: #114: text-editor.2c3, antal grupperade fel: 17 ( 1.60 betyg )
- `content-type=".*javascript.*"` in: #114: text-editor.2c3, antal fel: 2716 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1779 st)
- Expected X and instead saw X. (totalt 536 st)
- X is assigned to itself. (totalt 224 st)
- Do not access Object.prototype method X from target object. (totalt 127 st)
- X is not modified in this loop. (totalt 9 st)
- Unnecessary escape character: \/. (totalt 8 st)
- Unnecessary X. (totalt 7 st)
- Unexpected string concatenation of literals. (totalt 7 st)
- Comparing to itself is potentially pointless. (totalt 6 st)
- The Function constructor is eval. (totalt 3 st)
- Unsafe usage of ThrowStatement. (totalt 2 st)
- Unnecessary escape character: \[. (totalt 2 st)
- Unnecessary escape character: \). (totalt 2 st)
- Script URL is a form of eval. (totalt 1 st)
- Async arrow function has no X expression. (totalt 1 st)
- Unnecessary escape character: \^. (totalt 1 st)
- Unnecessary escape character: \.. (totalt 1 st)
- `content-type=".*javascript.*"` in: #115: toggle.31881477, antal grupperade fel: 17 ( 1.60 betyg )
- `content-type=".*javascript.*"` in: #115: toggle.31881477, antal fel: 2728 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1791 st)
- Expected X and instead saw X. (totalt 536 st)
- X is assigned to itself. (totalt 224 st)
- Do not access Object.prototype method X from target object. (totalt 127 st)
- X is not modified in this loop. (totalt 9 st)
- Unnecessary escape character: \/. (totalt 8 st)
- Unnecessary X. (totalt 7 st)
- Unexpected string concatenation of literals. (totalt 7 st)
- Comparing to itself is potentially pointless. (totalt 6 st)
- The Function constructor is eval. (totalt 3 st)
- Unsafe usage of ThrowStatement. (totalt 2 st)
- Unnecessary escape character: \[. (totalt 2 st)
- Unnecessary escape character: \). (totalt 2 st)
- Script URL is a form of eval. (totalt 1 st)
- Async arrow function has no X expression. (totalt 1 st)
- Unnecessary escape character: \^. (totalt 1 st)
- Unnecessary escape character: \.. (totalt 1 st)
- `content-type=".*javascript.*"` in: #129: common.js, antal grupperade fel: 19 ( 1.20 betyg )
- `content-type=".*javascript.*"` in: #129: common.js, antal fel: 3193 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 2134 st)
- Expected X and instead saw X. (totalt 647 st)
- X is assigned to itself. (totalt 224 st)
- Do not access Object.prototype method X from target object. (totalt 129 st)
- Unnecessary escape character: \/. (totalt 9 st)
- X is not modified in this loop. (totalt 9 st)
- Unexpected string concatenation of literals. (totalt 9 st)
- Unnecessary X. (totalt 8 st)
- Comparing to itself is potentially pointless. (totalt 6 st)
- Unnecessary escape character: \?. (totalt 4 st)
- The Function constructor is eval. (totalt 3 st)
- Unsafe usage of ThrowStatement. (totalt 2 st)
- Unnecessary escape character: \[. (totalt 2 st)
- Unnecessary escape character: \). (totalt 2 st)
- Script URL is a form of eval. (totalt 1 st)
- Async arrow function has no X expression. (totalt 1 st)
- Unnecessary escape character: \^. (totalt 1 st)
- Unnecessary escape character: \.. (totalt 1 st)
- Async method X has no X expression. (totalt 1 st)
- `content-type=".*javascript.*"` in: #130: util.js, antal grupperade fel: 21 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #130: util.js, antal fel: 4456 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 2694 st)
- Expected X and instead saw X. (totalt 1326 st)
- X is assigned to itself. (totalt 230 st)
- Do not access Object.prototype method X from target object. (totalt 139 st)
- X is not modified in this loop. (totalt 11 st)
- Unnecessary X. (totalt 10 st)
- Unnecessary escape character: \/. (totalt 9 st)
- Unexpected string concatenation of literals. (totalt 9 st)
- Comparing to itself is potentially pointless. (totalt 6 st)
- The Function constructor is eval. (totalt 4 st)
- Unnecessary escape character: \?. (totalt 4 st)
- Unsafe usage of ThrowStatement. (totalt 2 st)
- Unnecessary escape character: \[. (totalt 2 st)
- Unnecessary escape character: \). (totalt 2 st)
- Unnecessary escape character: \$. (totalt 2 st)
- Script URL is a form of eval. (totalt 1 st)
- Async arrow function has no X expression. (totalt 1 st)
- Unnecessary escape character: \^. (totalt 1 st)
- Unnecessary escape character: \.. (totalt 1 st)
- Async method X has no X expression. (totalt 1 st)
- Unnecessary escape character: \(. (totalt 1 st)