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.80 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: 4 ( 4.20 betyg )
- `< script src="...">` in: #1: Webbsida , antal fel: 83 ( 1.00 betyg )
- X is defined but never used. (totalt 29 st)
- Unexpected console statement. (totalt 21 st)
- X is assigned a value but never used. (totalt 18 st)
- X is not defined. (totalt 15 st)
- `content-type=".*javascript.*"` in: #20: 6d48ae92-27d7-4, antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #20: 6d48ae92-27d7-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: #32: vendor-CjvSIxt6, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #32: vendor-CjvSIxt6, antal fel: 86 ( 1.00 betyg )
- X is defined but never used. (totalt 30 st)
- Unexpected console statement. (totalt 28 st)
- X is assigned a value but never used. (totalt 18 st)
- X is not defined. (totalt 10 st)
- `content-type=".*javascript.*"` in: #33: ppms.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #33: ppms.js, antal fel: 106 ( 1.00 betyg )
- X is defined but never used. (totalt 43 st)
- Unexpected console statement. (totalt 31 st)
- X is assigned a value but never used. (totalt 18 st)
- X is not defined. (totalt 14 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: 5 ( 4.00 betyg )
- `< script src="...">` in: #1: Webbsida , antal fel: 557 ( 1.00 betyg )
- Unnecessary escape character: \/. (totalt 453 st)
- Expected an assignment or function call and instead saw an expression. (totalt 82 st)
- Expected X and instead saw X. (totalt 19 st)
- Do not access Object.prototype method X from target object. (totalt 2 st)
- Unnecessary escape character: \[. (totalt 1 st)
- `content-type=".*javascript.*"` in: #20: 6d48ae92-27d7-4, antal grupperade fel: 12 ( 2.60 betyg )
- `content-type=".*javascript.*"` in: #20: 6d48ae92-27d7-4, antal fel: 946 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 586 st)
- Expected X and instead saw X. (totalt 327 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: #32: vendor-CjvSIxt6, antal grupperade fel: 12 ( 2.60 betyg )
- `content-type=".*javascript.*"` in: #32: vendor-CjvSIxt6, antal fel: 1806 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1354 st)
- Expected X and instead saw X. (totalt 414 st)
- Do not access Object.prototype method X from target object. (totalt 12 st)
- Unnecessary escape character: \.. (totalt 6 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 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: #33: ppms.js, antal grupperade fel: 12 ( 2.60 betyg )
- `content-type=".*javascript.*"` in: #33: ppms.js, antal fel: 2072 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1616 st)
- Expected X and instead saw X. (totalt 417 st)
- Do not access Object.prototype method X from target object. (totalt 12 st)
- Unnecessary escape character: \.. (totalt 6 st)
- Unnecessary escape character: \/. (totalt 5 st)
- Unnecessary escape character: \-. (totalt 5 st)
- Unnecessary X. (totalt 4 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)