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.68 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 )
- 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: 110 ( 1.00 betyg )
- X is defined but never used. (totalt 80 st)
- Unexpected console statement. (totalt 15 st)
- X is not defined. (totalt 14 st)
- X is assigned a value but never used. (totalt 1 st)
- `content-type=".*javascript.*"` in: #17: container-f8ICs, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #17: container-f8ICs, antal fel: 187 ( 1.00 betyg )
- X is not defined. (totalt 104 st)
- X is defined but never used. (totalt 55 st)
- Unexpected console statement. (totalt 16 st)
- X is assigned a value but never used. (totalt 12 st)
- `content-type=".*javascript.*"` in: #28: 0.d7470874.chun, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #28: 0.d7470874.chun, antal fel: 347 ( 1.00 betyg )
- X is defined but never used. (totalt 207 st)
- X is not defined. (totalt 104 st)
- Unexpected console statement. (totalt 22 st)
- X is assigned a value but never used. (totalt 14 st)
- `content-type=".*javascript.*"` in: #29: 1.5526fdc4.chun, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #29: 1.5526fdc4.chun, antal fel: 356 ( 1.00 betyg )
- X is defined but never used. (totalt 216 st)
- X is not defined. (totalt 104 st)
- Unexpected console statement. (totalt 22 st)
- X is assigned a value but never used. (totalt 14 st)
- `content-type=".*javascript.*"` in: #30: 7.3ffecc87.chun, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #30: 7.3ffecc87.chun, antal fel: 356 ( 1.00 betyg )
- X is defined but never used. (totalt 216 st)
- X is not defined. (totalt 104 st)
- Unexpected console statement. (totalt 22 st)
- X is assigned a value but never used. (totalt 14 st)
Integritet & säkerhet
- `< script src="...">` in: #1: Webbsida , antal grupperade fel: 23 ( 1.00 betyg )
- `< script src="...">` in: #1: Webbsida , antal fel: 1556 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1108 st)
- Expected X and instead saw X. (totalt 381 st)
- Do not access Object.prototype method X from target object. (totalt 31 st)
- Unnecessary escape character: \/. (totalt 7 st)
- X is not modified in this loop. (totalt 5 st)
- Unnecessary escape character: \-. (totalt 4 st)
- Comparing to itself is potentially pointless. (totalt 3 st)
- Unnecessary X. (totalt 2 st)
- Unexpected string concatenation of literals. (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)
- 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)
- Unnecessary escape character: \$. (totalt 1 st)
- Unnecessary escape character: \|. (totalt 1 st)
- Unnecessary escape character: \:. (totalt 1 st)
- The Function constructor is eval. (totalt 1 st)
- `content-type=".*javascript.*"` in: #17: container-f8ICs, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #17: container-f8ICs, antal fel: 80 ( 1.00 betyg )
- Unnecessary escape character: \/. (totalt 60 st)
- Expected X and instead saw X. (totalt 14 st)
- Do not access Object.prototype method X from target object. (totalt 5 st)
- Unnecessary X. (totalt 1 st)
- `content-type=".*javascript.*"` in: #28: 0.d7470874.chun, antal grupperade fel: 11 ( 2.80 betyg )
- `content-type=".*javascript.*"` in: #28: 0.d7470874.chun, antal fel: 608 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 351 st)
- Expected X and instead saw X. (totalt 164 st)
- Unnecessary escape character: \/. (totalt 63 st)
- Do not access Object.prototype method X from target object. (totalt 9 st)
- Comparing to itself is potentially pointless. (totalt 5 st)
- X is not modified in this loop. (totalt 4 st)
- Unsafe usage of ThrowStatement. (totalt 4 st)
- Unnecessary escape character: \). (totalt 4 st)
- Unnecessary escape character: \:. (totalt 2 st)
- Unnecessary X. (totalt 1 st)
- Unnecessary escape character: \(. (totalt 1 st)
- `content-type=".*javascript.*"` in: #29: 1.5526fdc4.chun, antal grupperade fel: 11 ( 2.80 betyg )
- `content-type=".*javascript.*"` in: #29: 1.5526fdc4.chun, antal fel: 631 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 374 st)
- Expected X and instead saw X. (totalt 164 st)
- Unnecessary escape character: \/. (totalt 63 st)
- Do not access Object.prototype method X from target object. (totalt 9 st)
- Comparing to itself is potentially pointless. (totalt 5 st)
- X is not modified in this loop. (totalt 4 st)
- Unsafe usage of ThrowStatement. (totalt 4 st)
- Unnecessary escape character: \). (totalt 4 st)
- Unnecessary escape character: \:. (totalt 2 st)
- Unnecessary X. (totalt 1 st)
- Unnecessary escape character: \(. (totalt 1 st)
- `content-type=".*javascript.*"` in: #30: 7.3ffecc87.chun, antal grupperade fel: 11 ( 2.80 betyg )
- `content-type=".*javascript.*"` in: #30: 7.3ffecc87.chun, antal fel: 632 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 375 st)
- Expected X and instead saw X. (totalt 164 st)
- Unnecessary escape character: \/. (totalt 63 st)
- Do not access Object.prototype method X from target object. (totalt 9 st)
- Comparing to itself is potentially pointless. (totalt 5 st)
- X is not modified in this loop. (totalt 4 st)
- Unsafe usage of ThrowStatement. (totalt 4 st)
- Unnecessary escape character: \). (totalt 4 st)
- Unnecessary escape character: \:. (totalt 2 st)
- Unnecessary X. (totalt 1 st)
- Unnecessary escape character: \(. (totalt 1 st)