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: 3 ( 4.40 betyg )
- `< script>` in: #1: Webbsida , antal fel: 24 ( 1.00 betyg )
- X is defined but never used. (totalt 19 st)
- X is not defined. (totalt 3 st)
- X is assigned a value but never used. (totalt 2 st)
- `< script src="...">` in: #1: Webbsida , antal grupperade fel: 3 ( 4.40 betyg )
- `< script src="...">` in: #1: Webbsida , antal fel: 83 ( 1.00 betyg )
- X is defined but never used. (totalt 54 st)
- Unexpected console statement. (totalt 20 st)
- X is not defined. (totalt 9 st)
- `< script>` in: #8: hcaptcha.html, antal grupperade fel: 3 ( 4.40 betyg )
- `< script>` in: #8: hcaptcha.html, antal fel: 110 ( 1.00 betyg )
- X is defined but never used. (totalt 85 st)
- Unexpected console statement. (totalt 14 st)
- X is not defined. (totalt 11 st)
- `< script>` in: #9: hcaptcha.html, antal grupperade fel: 3 ( 4.40 betyg )
- `< script>` in: #9: hcaptcha.html, antal fel: 110 ( 1.00 betyg )
- X is defined but never used. (totalt 85 st)
- Unexpected console statement. (totalt 14 st)
- X is not defined. (totalt 11 st)
- `content-type=".*javascript.*"` in: #6: aperture.js, antal grupperade fel: 2 ( 4.60 betyg )
- `content-type=".*javascript.*"` in: #6: aperture.js, antal fel: 54 ( 1.00 betyg )
- X is not defined. (totalt 31 st)
- X is defined but never used. (totalt 23 st)
- `content-type=".*javascript.*"` in: #16: hsw.js, antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #16: hsw.js, antal fel: 112 ( 1.00 betyg )
- X is defined but never used. (totalt 64 st)
- X is not defined. (totalt 43 st)
- X is assigned a value but never used. (totalt 5 st)
Integritet & säkerhet
- `< script>` in: #1: Webbsida , antal grupperade fel: 2 ( 4.60 betyg )
- `< script>` in: #1: Webbsida , antal fel: 39 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 31 st)
- Expected X and instead saw X. (totalt 8 st)
- `< script src="...">` in: #1: Webbsida , antal grupperade fel: 11 ( 2.80 betyg )
- `< script src="...">` in: #1: Webbsida , antal fel: 646 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 449 st)
- Expected X and instead saw X. (totalt 161 st)
- Unnecessary X. (totalt 13 st)
- Unnecessary escape character: \/. (totalt 8 st)
- Do not access Object.prototype method X from target object. (totalt 7 st)
- Comparing to itself is potentially pointless. (totalt 2 st)
- Unnecessary escape character: \:. (totalt 2 st)
- Unnecessary escape character: \=. (totalt 1 st)
- Unnecessary escape character: \.. (totalt 1 st)
- X is assigned to itself. (totalt 1 st)
- Unnecessary escape character: \[. (totalt 1 st)
- `< script>` in: #8: hcaptcha.html, antal grupperade fel: 10 ( 3.00 betyg )
- `< script>` in: #8: hcaptcha.html, antal fel: 1285 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 985 st)
- Expected X and instead saw X. (totalt 261 st)
- Unnecessary X. (totalt 18 st)
- Do not access Object.prototype method X from target object. (totalt 7 st)
- Unnecessary escape character: \/. (totalt 7 st)
- Comparing to itself is potentially pointless. (totalt 3 st)
- Unnecessary escape character: \=. (totalt 1 st)
- Unnecessary escape character: \.. (totalt 1 st)
- X is assigned to itself. (totalt 1 st)
- Unnecessary escape character: \[. (totalt 1 st)
- `< script>` in: #9: hcaptcha.html, antal grupperade fel: 10 ( 3.00 betyg )
- `< script>` in: #9: hcaptcha.html, antal fel: 1285 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 985 st)
- Expected X and instead saw X. (totalt 261 st)
- Unnecessary X. (totalt 18 st)
- Do not access Object.prototype method X from target object. (totalt 7 st)
- Unnecessary escape character: \/. (totalt 7 st)
- Comparing to itself is potentially pointless. (totalt 3 st)
- Unnecessary escape character: \=. (totalt 1 st)
- Unnecessary escape character: \.. (totalt 1 st)
- X is assigned to itself. (totalt 1 st)
- Unnecessary escape character: \[. (totalt 1 st)
- `content-type=".*javascript.*"` in: #6: aperture.js, antal grupperade fel: 2 ( 4.60 betyg )
- `content-type=".*javascript.*"` in: #6: aperture.js, antal fel: 79 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 55 st)
- Expected X and instead saw X. (totalt 24 st)
- `content-type=".*javascript.*"` in: #16: hsw.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #16: hsw.js, antal fel: 381 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 251 st)
- Expected X and instead saw X. (totalt 127 st)
- The Function constructor is eval. (totalt 2 st)
- eval can be harmful. (totalt 1 st)