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.79 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: 3 ( 4.40 betyg )
- `< script src="...">` in: #1: Webbsida , antal fel: 19 ( 1.20 betyg )
- X is defined but never used. (totalt 9 st)
- Unexpected console statement. (totalt 5 st)
- X is not defined. (totalt 5 st)
- `content-type=".*javascript.*"` in: #5: matomo.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #5: matomo.js, antal fel: 157 ( 1.00 betyg )
- X is not defined. (totalt 102 st)
- X is defined but never used. (totalt 33 st)
- Unexpected console statement. (totalt 12 st)
- X is assigned a value but never used. (totalt 10 st)
- `content-type=".*javascript.*"` in: #6: container-Hh8fl, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #6: container-Hh8fl, antal fel: 335 ( 1.00 betyg )
- X is not defined. (totalt 206 st)
- X is defined but never used. (totalt 79 st)
- Unexpected console statement. (totalt 28 st)
- X is assigned a value but never used. (totalt 22 st)
- `content-type=".*javascript.*"` in: #17: ai.2.gbl.min.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #17: ai.2.gbl.min.js, antal fel: 424 ( 1.00 betyg )
- X is not defined. (totalt 209 st)
- X is defined but never used. (totalt 165 st)
- Unexpected console statement. (totalt 28 st)
- X is assigned a value but never used. (totalt 22 st)
Integritet & säkerhet
- `< script>` in: #1: Webbsida , antal grupperade fel: 4 ( 4.20 betyg )
- `< script>` in: #1: Webbsida , antal fel: 19 ( 1.20 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 15 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: 7 ( 3.60 betyg )
- `< script src="...">` in: #1: Webbsida , antal fel: 715 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 464 st)
- Expected X and instead saw X. (totalt 242 st)
- Do not access Object.prototype method X from target object. (totalt 4 st)
- Unnecessary escape character: \/. (totalt 2 st)
- Unnecessary X. (totalt 1 st)
- Comparing to itself is potentially pointless. (totalt 1 st)
- X is assigned to itself. (totalt 1 st)
- `content-type=".*javascript.*"` in: #5: matomo.js, antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #5: matomo.js, antal fel: 14 ( 2.20 betyg )
- Expected X and instead saw X. (totalt 10 st)
- Do not access Object.prototype method X from target object. (totalt 3 st)
- Unnecessary X. (totalt 1 st)
- `content-type=".*javascript.*"` in: #6: container-Hh8fl, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #6: container-Hh8fl, antal fel: 42 ( 1.00 betyg )
- Expected X and instead saw X. (totalt 24 st)
- Do not access Object.prototype method X from target object. (totalt 8 st)
- Unnecessary escape character: \/. (totalt 8 st)
- Unnecessary X. (totalt 2 st)
- `content-type=".*javascript.*"` in: #17: ai.2.gbl.min.js, antal grupperade fel: 11 ( 2.80 betyg )
- `content-type=".*javascript.*"` in: #17: ai.2.gbl.min.js, antal fel: 511 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 413 st)
- Expected X and instead saw X. (totalt 60 st)
- Unnecessary escape character: \/. (totalt 12 st)
- Do not access Object.prototype method X from target object. (totalt 9 st)
- Unnecessary escape character: \.. (totalt 5 st)
- X is assigned to itself. (totalt 3 st)
- Unnecessary X. (totalt 2 st)
- Unnecessary escape character: \@. (totalt 2 st)
- Unnecessary escape character: \(. (totalt 2 st)
- Script URL is a form of eval. (totalt 2 st)
- Unnecessary escape character: \". (totalt 1 st)