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.66 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 )
- Parsing error: Unexpected token : (totalt 1 st)
- `< script src="...">` in: #1: Webbsida , antal grupperade fel: 5 ( 4.00 betyg )
- `< script src="...">` in: #1: Webbsida , antal fel: 1066 ( 1.00 betyg )
- X is not defined. (totalt 749 st)
- X is defined but never used. (totalt 289 st)
- Unexpected console statement. (totalt 23 st)
- X is assigned a value but never used. (totalt 4 st)
- Parsing error: X in strict mode (totalt 1 st)
- `content-type=".*javascript.*"` in: #45: d68b8131-a881-4, antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #45: d68b8131-a881-4, antal fel: 42 ( 1.00 betyg )
- X is defined but never used. (totalt 28 st)
- Unexpected console statement. (totalt 11 st)
- X is not defined. (totalt 3 st)
- `content-type=".*javascript.*"` in: #51: imagemap-plugin, antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #51: imagemap-plugin, antal fel: 42 ( 1.00 betyg )
- X is defined but never used. (totalt 28 st)
- Unexpected console statement. (totalt 11 st)
- X is not defined. (totalt 3 st)
- `content-type=".*javascript.*"` in: #53: ppms.js, antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #53: ppms.js, antal fel: 62 ( 1.00 betyg )
- X is defined but never used. (totalt 41 st)
- Unexpected console statement. (totalt 14 st)
- X is not defined. (totalt 7 st)
Integritet & säkerhet
- `< script>` in: #1: Webbsida , antal grupperade fel: 1 ( 4.80 betyg )
- `< script>` in: #1: Webbsida , antal fel: 1 ( 4.80 betyg )
- Parsing error: Unexpected token : (totalt 1 st)
- `< script src="...">` in: #1: Webbsida , antal grupperade fel: 20 ( 1.00 betyg )
- `< script src="...">` in: #1: Webbsida , antal fel: 5090 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 3164 st)
- Expected X and instead saw X. (totalt 1705 st)
- Do not access Object.prototype method X from target object. (totalt 59 st)
- Comparing to itself is potentially pointless. (totalt 36 st)
- Unnecessary X. (totalt 29 st)
- The Function constructor is eval. (totalt 18 st)
- X is not modified in this loop. (totalt 14 st)
- X is assigned to itself. (totalt 12 st)
- Unnecessary escape character: \/. (totalt 11 st)
- Unnecessary escape character: \-. (totalt 10 st)
- Async arrow function has no X expression. (totalt 9 st)
- Unsafe usage of ThrowStatement. (totalt 7 st)
- Script URL is a form of eval. (totalt 4 st)
- Unnecessary escape character: \.. (totalt 3 st)
- Unnecessary escape character: \+. (totalt 2 st)
- Unnecessary escape character: \=. (totalt 2 st)
- Unexpected string concatenation of literals. (totalt 2 st)
- Unnecessary escape character: \[. (totalt 1 st)
- Unnecessary escape character: \^. (totalt 1 st)
- Parsing error: X in strict mode (totalt 1 st)
- `content-type=".*javascript.*"` in: #45: d68b8131-a881-4, antal grupperade fel: 12 ( 2.60 betyg )
- `content-type=".*javascript.*"` in: #45: d68b8131-a881-4, antal fel: 949 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 588 st)
- Expected X and instead saw X. (totalt 328 st)
- Do not access Object.prototype method X from target object. (totalt 11 st)
- Unnecessary escape character: \-. (totalt 5 st)
- Unnecessary escape character: \.. (totalt 5 st)
- Unnecessary X. (totalt 4 st)
- Unnecessary escape character: \/. (totalt 2 st)
- Unnecessary escape character: \). (totalt 2 st)
- Unnecessary escape character: \:. (totalt 1 st)
- Unnecessary escape character: \*. (totalt 1 st)
- The Function constructor is eval. (totalt 1 st)
- eval can be harmful. (totalt 1 st)
- `content-type=".*javascript.*"` in: #51: imagemap-plugin, antal grupperade fel: 12 ( 2.60 betyg )
- `content-type=".*javascript.*"` in: #51: imagemap-plugin, antal fel: 952 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 590 st)
- Expected X and instead saw X. (totalt 329 st)
- Do not access Object.prototype method X from target object. (totalt 11 st)
- Unnecessary escape character: \-. (totalt 5 st)
- Unnecessary escape character: \.. (totalt 5 st)
- Unnecessary X. (totalt 4 st)
- Unnecessary escape character: \/. (totalt 2 st)
- Unnecessary escape character: \). (totalt 2 st)
- Unnecessary escape character: \:. (totalt 1 st)
- Unnecessary escape character: \*. (totalt 1 st)
- The Function constructor is eval. (totalt 1 st)
- eval can be harmful. (totalt 1 st)
- `content-type=".*javascript.*"` in: #53: ppms.js, antal grupperade fel: 12 ( 2.60 betyg )
- `content-type=".*javascript.*"` in: #53: ppms.js, antal fel: 1218 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 852 st)
- Expected X and instead saw X. (totalt 332 st)
- Do not access Object.prototype method X from target object. (totalt 11 st)
- Unnecessary escape character: \-. (totalt 5 st)
- Unnecessary escape character: \.. (totalt 5 st)
- Unnecessary X. (totalt 4 st)
- Unnecessary escape character: \/. (totalt 2 st)
- Unnecessary escape character: \). (totalt 2 st)
- eval can be harmful. (totalt 2 st)
- Unnecessary escape character: \:. (totalt 1 st)
- Unnecessary escape character: \*. (totalt 1 st)
- The Function constructor is eval. (totalt 1 st)