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.67 av 5
- JS är dålig.
Webbstandard
- `< script>` in: #10: , antal grupperade fel: 1 ( 4.80 betyg )
- `< script>` in: #10: , antal fel: 1 ( 4.80 betyg )
- Parsing error: Unexpected token : (totalt 1 st)
- `content-type=".*javascript.*"` in: #11: gtm.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #11: gtm.js, antal fel: 520 ( 1.00 betyg )
- X is defined but never used. (totalt 422 st)
- X is assigned a value but never used. (totalt 81 st)
- X is not defined. (totalt 16 st)
- Unexpected console statement. (totalt 1 st)
- `content-type=".*javascript.*"` in: #12: pro-v4-shims.mi, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #12: pro-v4-shims.mi, antal fel: 524 ( 1.00 betyg )
- X is defined but never used. (totalt 424 st)
- X is assigned a value but never used. (totalt 81 st)
- X is not defined. (totalt 18 st)
- Unexpected console statement. (totalt 1 st)
- `content-type=".*javascript.*"` in: #13: pro.min.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #13: pro.min.js, antal fel: 533 ( 1.00 betyg )
- X is defined but never used. (totalt 428 st)
- X is assigned a value but never used. (totalt 82 st)
- X is not defined. (totalt 18 st)
- Unexpected console statement. (totalt 5 st)
- `content-type=".*javascript.*"` in: #36: script.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #36: script.js, antal fel: 581 ( 1.00 betyg )
- X is defined but never used. (totalt 471 st)
- X is assigned a value but never used. (totalt 82 st)
- X is not defined. (totalt 20 st)
- Unexpected console statement. (totalt 8 st)
- `content-type=".*javascript.*"` in: #38: banner.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #38: banner.js, antal fel: 662 ( 1.00 betyg )
- X is defined but never used. (totalt 515 st)
- X is assigned a value but never used. (totalt 82 st)
- X is not defined. (totalt 49 st)
- Unexpected console statement. (totalt 16 st)
- `content-type=".*javascript.*"` in: #39: ps.js, antal grupperade fel: 5 ( 4.00 betyg )
- `content-type=".*javascript.*"` in: #39: ps.js, antal fel: 663 ( 1.00 betyg )
- X is defined but never used. (totalt 515 st)
- X is assigned a value but never used. (totalt 82 st)
- X is not defined. (totalt 49 st)
- Unexpected console statement. (totalt 16 st)
- Parsing error: Invalid regular expression: /[^a-zA-Z0-9_\-.--]/: Range out of order in character class (totalt 1 st)
- `content-type=".*javascript.*"` in: #44: puzzelbot.js, antal grupperade fel: 5 ( 4.00 betyg )
- `content-type=".*javascript.*"` in: #44: puzzelbot.js, antal fel: 764 ( 1.00 betyg )
- X is defined but never used. (totalt 523 st)
- X is not defined. (totalt 131 st)
- X is assigned a value but never used. (totalt 90 st)
- Unexpected console statement. (totalt 19 st)
- Parsing error: Invalid regular expression: /[^a-zA-Z0-9_\-.--]/: Range out of order in character class (totalt 1 st)
Integritet & säkerhet
- `< script>` in: #10: , antal grupperade fel: 1 ( 4.80 betyg )
- `< script>` in: #10: , antal fel: 1 ( 4.80 betyg )
- Parsing error: Unexpected token : (totalt 1 st)
- `content-type=".*javascript.*"` in: #11: gtm.js, antal grupperade fel: 10 ( 3.00 betyg )
- `content-type=".*javascript.*"` in: #11: gtm.js, antal fel: 1189 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 853 st)
- Expected X and instead saw X. (totalt 205 st)
- Do not access Object.prototype method X from target object. (totalt 91 st)
- Unnecessary escape character: \/. (totalt 30 st)
- X is not modified in this loop. (totalt 3 st)
- X is assigned to itself. (totalt 3 st)
- eval can be harmful. (totalt 1 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: #12: pro-v4-shims.mi, antal grupperade fel: 10 ( 3.00 betyg )
- `content-type=".*javascript.*"` in: #12: pro-v4-shims.mi, antal fel: 1207 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 860 st)
- Expected X and instead saw X. (totalt 216 st)
- Do not access Object.prototype method X from target object. (totalt 91 st)
- Unnecessary escape character: \/. (totalt 30 st)
- X is not modified in this loop. (totalt 3 st)
- X is assigned to itself. (totalt 3 st)
- eval can be harmful. (totalt 1 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: #13: pro.min.js, antal grupperade fel: 12 ( 2.60 betyg )
- `content-type=".*javascript.*"` in: #13: pro.min.js, antal fel: 1315 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 930 st)
- Expected X and instead saw X. (totalt 251 st)
- Do not access Object.prototype method X from target object. (totalt 91 st)
- Unnecessary escape character: \/. (totalt 30 st)
- X is not modified in this loop. (totalt 3 st)
- X is assigned to itself. (totalt 3 st)
- Unnecessary X. (totalt 2 st)
- eval can be harmful. (totalt 1 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)
- `content-type=".*javascript.*"` in: #36: script.js, antal grupperade fel: 17 ( 1.60 betyg )
- `content-type=".*javascript.*"` in: #36: script.js, antal fel: 1626 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1148 st)
- Expected X and instead saw X. (totalt 317 st)
- Do not access Object.prototype method X from target object. (totalt 101 st)
- Unnecessary escape character: \/. (totalt 30 st)
- X is assigned to itself. (totalt 7 st)
- X is not modified in this loop. (totalt 5 st)
- Comparing to itself is potentially pointless. (totalt 3 st)
- Unnecessary X. (totalt 3 st)
- The Function constructor is eval. (totalt 2 st)
- Unsafe usage of ThrowStatement. (totalt 2 st)
- Unnecessary escape character: \&. (totalt 2 st)
- eval can be harmful. (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)
- Unnecessary escape character: \=. (totalt 1 st)
- Unnecessary escape character: \?. (totalt 1 st)
- `content-type=".*javascript.*"` in: #38: banner.js, antal grupperade fel: 18 ( 1.40 betyg )
- `content-type=".*javascript.*"` in: #38: banner.js, antal fel: 1924 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1364 st)
- Expected X and instead saw X. (totalt 381 st)
- Do not access Object.prototype method X from target object. (totalt 103 st)
- Unnecessary escape character: \/. (totalt 30 st)
- X is assigned to itself. (totalt 10 st)
- X is not modified in this loop. (totalt 7 st)
- Comparing to itself is potentially pointless. (totalt 7 st)
- The Function constructor is eval. (totalt 5 st)
- Unnecessary X. (totalt 4 st)
- Unsafe usage of ThrowStatement. (totalt 4 st)
- Unnecessary escape character: \&. (totalt 2 st)
- eval can be harmful. (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)
- Unnecessary escape character: \=. (totalt 1 st)
- Unnecessary escape character: \?. (totalt 1 st)
- Unnecessary escape character: \[. (totalt 1 st)
- `content-type=".*javascript.*"` in: #39: ps.js, antal grupperade fel: 19 ( 1.20 betyg )
- `content-type=".*javascript.*"` in: #39: ps.js, antal fel: 1925 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1364 st)
- Expected X and instead saw X. (totalt 381 st)
- Do not access Object.prototype method X from target object. (totalt 103 st)
- Unnecessary escape character: \/. (totalt 30 st)
- X is assigned to itself. (totalt 10 st)
- X is not modified in this loop. (totalt 7 st)
- Comparing to itself is potentially pointless. (totalt 7 st)
- The Function constructor is eval. (totalt 5 st)
- Unnecessary X. (totalt 4 st)
- Unsafe usage of ThrowStatement. (totalt 4 st)
- Unnecessary escape character: \&. (totalt 2 st)
- eval can be harmful. (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)
- Unnecessary escape character: \=. (totalt 1 st)
- Unnecessary escape character: \?. (totalt 1 st)
- Unnecessary escape character: \[. (totalt 1 st)
- Parsing error: Invalid regular expression: /[^a-zA-Z0-9_\-.--]/: Range out of order in character class (totalt 1 st)
- `content-type=".*javascript.*"` in: #44: puzzelbot.js, antal grupperade fel: 19 ( 1.20 betyg )
- `content-type=".*javascript.*"` in: #44: puzzelbot.js, antal fel: 1928 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1364 st)
- Expected X and instead saw X. (totalt 384 st)
- Do not access Object.prototype method X from target object. (totalt 103 st)
- Unnecessary escape character: \/. (totalt 30 st)
- X is assigned to itself. (totalt 10 st)
- X is not modified in this loop. (totalt 7 st)
- Comparing to itself is potentially pointless. (totalt 7 st)
- The Function constructor is eval. (totalt 5 st)
- Unnecessary X. (totalt 4 st)
- Unsafe usage of ThrowStatement. (totalt 4 st)
- Unnecessary escape character: \&. (totalt 2 st)
- eval can be harmful. (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)
- Unnecessary escape character: \=. (totalt 1 st)
- Unnecessary escape character: \?. (totalt 1 st)
- Unnecessary escape character: \[. (totalt 1 st)
- Parsing error: Invalid regular expression: /[^a-zA-Z0-9_\-.--]/: Range out of order in character class (totalt 1 st)