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.94 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: 174 ( 1.00 betyg )
- X is not defined. (totalt 95 st)
- X is defined but never used. (totalt 71 st)
- Unexpected console statement. (totalt 6 st)
- X is assigned a value but never used. (totalt 1 st)
- Parsing error: Unexpected token (totalt 1 st)
- `content-type=".*javascript.*"` in: #26: sdk.js, antal grupperade fel: 1 ( 4.80 betyg )
- `content-type=".*javascript.*"` in: #26: sdk.js, antal fel: 1 ( 4.80 betyg )
- Parsing error: X in strict mode (totalt 1 st)
- `content-type=".*javascript.*"` in: #45: element.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #45: element.js, antal fel: 141 ( 1.00 betyg )
- X is not defined. (totalt 105 st)
- X is defined but never used. (totalt 33 st)
- X is assigned a value but never used. (totalt 2 st)
- Parsing error: X in strict mode (totalt 1 st)
- `content-type=".*javascript.*"` in: #49: m-el-main, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #49: m-el-main, antal fel: 184 ( 1.00 betyg )
- X is not defined. (totalt 107 st)
- X is defined but never used. (totalt 72 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: #53: supportedLangua, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #53: supportedLangua, antal fel: 185 ( 1.00 betyg )
- X is not defined. (totalt 108 st)
- X is defined but never used. (totalt 72 st)
- X is assigned a value but never used. (totalt 4 st)
- Parsing error: X in strict mode (totalt 1 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: 14 ( 2.20 betyg )
- `< script src="...">` in: #1: Webbsida , antal fel: 994 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 750 st)
- Expected X and instead saw X. (totalt 211 st)
- Unnecessary escape character: \/. (totalt 8 st)
- Unexpected string concatenation of literals. (totalt 6 st)
- Do not access Object.prototype method X from target object. (totalt 5 st)
- Comparing to itself is potentially pointless. (totalt 3 st)
- X is not modified in this loop. (totalt 2 st)
- Unnecessary escape character: \-. (totalt 2 st)
- Unnecessary escape character: \&. (totalt 2 st)
- Unnecessary X. (totalt 1 st)
- Unnecessary escape character: \[. (totalt 1 st)
- Unnecessary escape character: \.. (totalt 1 st)
- The Function constructor is eval. (totalt 1 st)
- Parsing error: Unexpected token (totalt 1 st)
- `content-type=".*javascript.*"` in: #26: sdk.js, antal grupperade fel: 1 ( 4.80 betyg )
- `content-type=".*javascript.*"` in: #26: sdk.js, antal fel: 1 ( 4.80 betyg )
- Parsing error: X in strict mode (totalt 1 st)
- `content-type=".*javascript.*"` in: #45: element.js, antal grupperade fel: 14 ( 2.20 betyg )
- `content-type=".*javascript.*"` in: #45: element.js, antal fel: 449 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 226 st)
- Expected X and instead saw X. (totalt 171 st)
- Unnecessary escape character: \/. (totalt 27 st)
- Unnecessary X. (totalt 7 st)
- Do not access Object.prototype method X from target object. (totalt 4 st)
- Comparing to itself is potentially pointless. (totalt 4 st)
- X is assigned to itself. (totalt 2 st)
- Unnecessary escape character: \). (totalt 2 st)
- Parsing error: X in strict mode (totalt 1 st)
- Unnecessary escape character: \[. (totalt 1 st)
- Unnecessary escape character: \^. (totalt 1 st)
- Unnecessary escape character: \.. (totalt 1 st)
- X is not modified in this loop. (totalt 1 st)
- Unexpected string concatenation of literals. (totalt 1 st)
- `content-type=".*javascript.*"` in: #49: m-el-main, antal grupperade fel: 17 ( 1.60 betyg )
- `content-type=".*javascript.*"` in: #49: m-el-main, antal fel: 1828 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 998 st)
- Expected X and instead saw X. (totalt 745 st)
- Unnecessary escape character: \/. (totalt 38 st)
- Unnecessary X. (totalt 13 st)
- Do not access Object.prototype method X from target object. (totalt 6 st)
- Comparing to itself is potentially pointless. (totalt 5 st)
- X is assigned to itself. (totalt 4 st)
- Unnecessary escape character: \?. (totalt 4 st)
- Unnecessary escape character: \). (totalt 3 st)
- Unnecessary escape character: \.. (totalt 2 st)
- X is not modified in this loop. (totalt 2 st)
- Unnecessary escape character: \-. (totalt 2 st)
- Script URL is a form of eval. (totalt 2 st)
- Parsing error: X in strict mode (totalt 1 st)
- Unnecessary escape character: \[. (totalt 1 st)
- Unnecessary escape character: \^. (totalt 1 st)
- Unexpected string concatenation of literals. (totalt 1 st)
- `content-type=".*javascript.*"` in: #53: supportedLangua, antal grupperade fel: 17 ( 1.60 betyg )
- `content-type=".*javascript.*"` in: #53: supportedLangua, antal fel: 1828 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 998 st)
- Expected X and instead saw X. (totalt 745 st)
- Unnecessary escape character: \/. (totalt 38 st)
- Unnecessary X. (totalt 13 st)
- Do not access Object.prototype method X from target object. (totalt 6 st)
- Comparing to itself is potentially pointless. (totalt 5 st)
- X is assigned to itself. (totalt 4 st)
- Unnecessary escape character: \?. (totalt 4 st)
- Unnecessary escape character: \). (totalt 3 st)
- Unnecessary escape character: \.. (totalt 2 st)
- X is not modified in this loop. (totalt 2 st)
- Unnecessary escape character: \-. (totalt 2 st)
- Script URL is a form of eval. (totalt 2 st)
- Parsing error: X in strict mode (totalt 1 st)
- Unnecessary escape character: \[. (totalt 1 st)
- Unnecessary escape character: \^. (totalt 1 st)
- Unexpected string concatenation of literals. (totalt 1 st)