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.56 av 5
- JS är dålig.
Webbstandard
- `< script>` in: #1: Webbsida , antal grupperade fel: 2 ( 4.60 betyg )
- `< script>` in: #1: Webbsida , antal fel: 3 ( 4.40 betyg )
- X is defined but never used. (totalt 2 st)
- X is not defined. (totalt 1 st)
- `< script src="...">` in: #1: Webbsida , antal grupperade fel: 4 ( 4.20 betyg )
- `< script src="...">` in: #1: Webbsida , antal fel: 1684 ( 1.00 betyg )
- X is not defined. (totalt 1507 st)
- X is defined but never used. (totalt 128 st)
- Unexpected console statement. (totalt 28 st)
- X is assigned a value but never used. (totalt 21 st)
- `< script>` in: #7: bc-v4.min.html, antal grupperade fel: 1 ( 4.80 betyg )
- `< script>` in: #7: bc-v4.min.html, antal fel: 1 ( 4.80 betyg )
- X is defined but never used. (totalt 1 st)
- `content-type=".*javascript.*"` in: #4: gtm.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #4: gtm.js, antal fel: 460 ( 1.00 betyg )
- X is defined but never used. (totalt 356 st)
- X is assigned a value but never used. (totalt 85 st)
- X is not defined. (totalt 18 st)
- Unexpected console statement. (totalt 1 st)
- `content-type=".*javascript.*"` in: #6: ai.2.gbl.min.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #6: ai.2.gbl.min.js, antal fel: 549 ( 1.00 betyg )
- X is defined but never used. (totalt 442 st)
- X is assigned a value but never used. (totalt 85 st)
- X is not defined. (totalt 21 st)
- Unexpected console statement. (totalt 1 st)
- `content-type=".*javascript.*"` in: #8: cc.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #8: cc.js, antal fel: 577 ( 1.00 betyg )
- X is defined but never used. (totalt 454 st)
- X is assigned a value but never used. (totalt 91 st)
- X is not defined. (totalt 30 st)
- Unexpected console statement. (totalt 2 st)
- `content-type=".*javascript.*"` in: #11: destination, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #11: destination, antal fel: 998 ( 1.00 betyg )
- X is defined but never used. (totalt 795 st)
- X is assigned a value but never used. (totalt 158 st)
- X is not defined. (totalt 43 st)
- Unexpected console statement. (totalt 2 st)
Integritet & säkerhet
- `< script>` in: #1: Webbsida , antal grupperade fel: 4 ( 4.20 betyg )
- `< script>` in: #1: Webbsida , antal fel: 20 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 16 st)
- Expected X and instead saw X. (totalt 2 st)
- Script URL is a form of eval. (totalt 1 st)
- Unnecessary escape character: \". (totalt 1 st)
- `< script src="...">` in: #1: Webbsida , antal grupperade fel: 19 ( 1.20 betyg )
- `< script src="...">` in: #1: Webbsida , antal fel: 1585 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1059 st)
- Expected X and instead saw X. (totalt 464 st)
- Do not access Object.prototype method X from target object. (totalt 12 st)
- Unnecessary escape character: \-. (totalt 11 st)
- Unnecessary escape character: \/. (totalt 7 st)
- Unnecessary escape character: \.. (totalt 7 st)
- X is not modified in this loop. (totalt 4 st)
- Unnecessary escape character: \[. (totalt 3 st)
- Unnecessary X. (totalt 2 st)
- X is assigned to itself. (totalt 2 st)
- Unnecessary escape character: \:. (totalt 2 st)
- Unnecessary escape character: \+. (totalt 2 st)
- Unnecessary escape character: \*. (totalt 2 st)
- Unnecessary escape character: \(. (totalt 2 st)
- Unnecessary escape character: \). (totalt 2 st)
- Comparing to itself is potentially pointless. (totalt 1 st)
- The Function constructor is eval. (totalt 1 st)
- Unnecessary escape character: \&. (totalt 1 st)
- Unnecessary escape character: \?. (totalt 1 st)
- `< script>` in: #7: bc-v4.min.html, antal grupperade fel: 2 ( 4.60 betyg )
- `< script>` in: #7: bc-v4.min.html, antal fel: 2 ( 4.60 betyg )
- Expected X and instead saw X. (totalt 1 st)
- Expected an assignment or function call and instead saw an expression. (totalt 1 st)
- `content-type=".*javascript.*"` in: #4: gtm.js, antal grupperade fel: 13 ( 2.40 betyg )
- `content-type=".*javascript.*"` in: #4: gtm.js, antal fel: 1883 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1216 st)
- Unnecessary escape character: \/. (totalt 294 st)
- Expected X and instead saw X. (totalt 254 st)
- Do not access Object.prototype method X from target object. (totalt 104 st)
- X is not modified in this loop. (totalt 4 st)
- X is assigned to itself. (totalt 3 st)
- Unexpected string concatenation of literals. (totalt 2 st)
- eval can be harmful. (totalt 1 st)
- Comparing to itself is potentially pointless. (totalt 1 st)
- Unnecessary escape character: \?. (totalt 1 st)
- Unnecessary escape character: \.. (totalt 1 st)
- Unnecessary X. (totalt 1 st)
- Script URL is a form of eval. (totalt 1 st)
- `content-type=".*javascript.*"` in: #6: ai.2.gbl.min.js, antal grupperade fel: 16 ( 1.80 betyg )
- `content-type=".*javascript.*"` in: #6: ai.2.gbl.min.js, antal fel: 2352 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1629 st)
- Unnecessary escape character: \/. (totalt 298 st)
- Expected X and instead saw X. (totalt 290 st)
- Do not access Object.prototype method X from target object. (totalt 105 st)
- X is assigned to itself. (totalt 6 st)
- Unnecessary escape character: \.. (totalt 6 st)
- X is not modified in this loop. (totalt 4 st)
- Script URL is a form of eval. (totalt 3 st)
- Unexpected string concatenation of literals. (totalt 2 st)
- Unnecessary escape character: \@. (totalt 2 st)
- Unnecessary escape character: \(. (totalt 2 st)
- eval can be harmful. (totalt 1 st)
- Comparing to itself is potentially pointless. (totalt 1 st)
- Unnecessary escape character: \?. (totalt 1 st)
- Unnecessary X. (totalt 1 st)
- Unnecessary escape character: \". (totalt 1 st)
- `content-type=".*javascript.*"` in: #8: cc.js, antal grupperade fel: 19 ( 1.20 betyg )
- `content-type=".*javascript.*"` in: #8: cc.js, antal fel: 2700 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1936 st)
- Expected X and instead saw X. (totalt 326 st)
- Unnecessary escape character: \/. (totalt 298 st)
- Do not access Object.prototype method X from target object. (totalt 105 st)
- X is assigned to itself. (totalt 6 st)
- Unnecessary escape character: \.. (totalt 6 st)
- Script URL is a form of eval. (totalt 5 st)
- X is not modified in this loop. (totalt 4 st)
- Unexpected string concatenation of literals. (totalt 2 st)
- Unnecessary escape character: \@. (totalt 2 st)
- Unnecessary escape character: \(. (totalt 2 st)
- eval can be harmful. (totalt 1 st)
- Comparing to itself is potentially pointless. (totalt 1 st)
- Unnecessary escape character: \?. (totalt 1 st)
- Unnecessary X. (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: #11: destination, antal grupperade fel: 20 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #11: destination, antal fel: 4393 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 3252 st)
- Expected X and instead saw X. (totalt 587 st)
- Unnecessary escape character: \/. (totalt 308 st)
- Do not access Object.prototype method X from target object. (totalt 197 st)
- X is assigned to itself. (totalt 9 st)
- X is not modified in this loop. (totalt 8 st)
- Unnecessary escape character: \.. (totalt 7 st)
- Script URL is a form of eval. (totalt 6 st)
- Unexpected string concatenation of literals. (totalt 4 st)
- Comparing to itself is potentially pointless. (totalt 2 st)
- Unnecessary escape character: \?. (totalt 2 st)
- Unnecessary escape character: \@. (totalt 2 st)
- Unnecessary escape character: \(. (totalt 2 st)
- eval can be harmful. (totalt 1 st)
- Unnecessary X. (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)