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.50 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: 951 ( 1.00 betyg )
- X is not defined. (totalt 742 st)
- X is defined but never used. (totalt 152 st)
- Unexpected console statement. (totalt 46 st)
- X is assigned a value but never used. (totalt 11 st)
- `content-type=".*javascript.*"` in: #18: matomo.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #18: matomo.js, antal fel: 193 ( 1.00 betyg )
- X is not defined. (totalt 125 st)
- X is defined but never used. (totalt 39 st)
- Unexpected console statement. (totalt 16 st)
- X is assigned a value but never used. (totalt 13 st)
- `content-type=".*javascript.*"` in: #19: ai.0.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #19: ai.0.js, antal fel: 220 ( 1.00 betyg )
- X is not defined. (totalt 126 st)
- X is defined but never used. (totalt 61 st)
- Unexpected console statement. (totalt 20 st)
- X is assigned a value but never used. (totalt 13 st)
- `content-type=".*javascript.*"` in: #29: configs.php, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #29: configs.php, antal fel: 221 ( 1.00 betyg )
- X is not defined. (totalt 127 st)
- X is defined but never used. (totalt 61 st)
- Unexpected console statement. (totalt 20 st)
- X is assigned a value but never used. (totalt 13 st)
- `content-type=".*javascript.*"` in: #53: common.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #53: common.js, antal fel: 233 ( 1.00 betyg )
- X is not defined. (totalt 128 st)
- X is defined but never used. (totalt 72 st)
- Unexpected console statement. (totalt 20 st)
- X is assigned a value but never used. (totalt 13 st)
- `content-type=".*javascript.*"` in: #54: util.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #54: util.js, antal fel: 252 ( 1.00 betyg )
- X is not defined. (totalt 129 st)
- X is defined but never used. (totalt 87 st)
- Unexpected console statement. (totalt 21 st)
- X is assigned a value but never used. (totalt 15 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: 28 ( 1.00 betyg )
- `< script src="...">` in: #1: Webbsida , antal fel: 2267 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1237 st)
- Expected X and instead saw X. (totalt 629 st)
- X is assigned to itself. (totalt 219 st)
- Do not access Object.prototype method X from target object. (totalt 50 st)
- Unnecessary escape character: \/. (totalt 40 st)
- Unnecessary X. (totalt 10 st)
- Unnecessary escape character: \+. (totalt 10 st)
- Unexpected string concatenation of literals. (totalt 8 st)
- Unnecessary escape character: \). (totalt 8 st)
- Unnecessary escape character: \.. (totalt 7 st)
- Unnecessary escape character: \-. (totalt 6 st)
- Unnecessary escape character: \(. (totalt 6 st)
- X is not modified in this loop. (totalt 5 st)
- Unnecessary escape character: \$. (totalt 5 st)
- Unnecessary escape character: \*. (totalt 5 st)
- Unnecessary escape character: \[. (totalt 3 st)
- Unnecessary escape character: \". (totalt 3 st)
- Unnecessary escape character: \T. (totalt 3 st)
- Comparing to itself is potentially pointless. (totalt 2 st)
- The Function constructor is eval. (totalt 2 st)
- Unnecessary escape character: \&. (totalt 2 st)
- Async arrow function has no X expression. (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)
- `content-type=".*javascript.*"` in: #18: matomo.js, antal grupperade fel: 6 ( 3.80 betyg )
- `content-type=".*javascript.*"` in: #18: matomo.js, antal fel: 62 ( 1.00 betyg )
- Expected X and instead saw X. (totalt 49 st)
- Do not access Object.prototype method X from target object. (totalt 7 st)
- Unnecessary escape character: \-. (totalt 3 st)
- Unnecessary escape character: \.. (totalt 1 st)
- Unnecessary escape character: \). (totalt 1 st)
- Unnecessary X. (totalt 1 st)
- `content-type=".*javascript.*"` in: #19: ai.0.js, antal grupperade fel: 11 ( 2.80 betyg )
- `content-type=".*javascript.*"` in: #19: ai.0.js, antal fel: 381 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 221 st)
- Expected X and instead saw X. (totalt 140 st)
- Do not access Object.prototype method X from target object. (totalt 8 st)
- Unnecessary escape character: \-. (totalt 3 st)
- Unnecessary X. (totalt 2 st)
- Unnecessary escape character: \@. (totalt 2 st)
- Unnecessary escape character: \.. (totalt 1 st)
- Unnecessary escape character: \). (totalt 1 st)
- Unnecessary escape character: \". (totalt 1 st)
- Script URL is a form of eval. (totalt 1 st)
- Unnecessary escape character: \(. (totalt 1 st)
- `content-type=".*javascript.*"` in: #29: configs.php, antal grupperade fel: 11 ( 2.80 betyg )
- `content-type=".*javascript.*"` in: #29: configs.php, antal fel: 381 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 221 st)
- Expected X and instead saw X. (totalt 140 st)
- Do not access Object.prototype method X from target object. (totalt 8 st)
- Unnecessary escape character: \-. (totalt 3 st)
- Unnecessary X. (totalt 2 st)
- Unnecessary escape character: \@. (totalt 2 st)
- Unnecessary escape character: \.. (totalt 1 st)
- Unnecessary escape character: \). (totalt 1 st)
- Unnecessary escape character: \". (totalt 1 st)
- Script URL is a form of eval. (totalt 1 st)
- Unnecessary escape character: \(. (totalt 1 st)
- `content-type=".*javascript.*"` in: #53: common.js, antal grupperade fel: 15 ( 2.00 betyg )
- `content-type=".*javascript.*"` in: #53: common.js, antal fel: 818 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 563 st)
- Expected X and instead saw X. (totalt 224 st)
- Do not access Object.prototype method X from target object. (totalt 10 st)
- Unnecessary escape character: \?. (totalt 4 st)
- Unnecessary escape character: \-. (totalt 3 st)
- Unnecessary X. (totalt 3 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)
- Unnecessary escape character: \". (totalt 1 st)
- Script URL is a form of eval. (totalt 1 st)
- Unnecessary escape character: \(. (totalt 1 st)
- Unnecessary escape character: \/. (totalt 1 st)
- Async method X has no X expression. (totalt 1 st)
- `content-type=".*javascript.*"` in: #54: util.js, antal grupperade fel: 19 ( 1.20 betyg )
- `content-type=".*javascript.*"` in: #54: util.js, antal fel: 2184 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1192 st)
- Expected X and instead saw X. (totalt 937 st)
- Do not access Object.prototype method X from target object. (totalt 20 st)
- X is assigned to itself. (totalt 6 st)
- Unnecessary X. (totalt 5 st)
- Unnecessary escape character: \?. (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)
- X is not modified in this loop. (totalt 2 st)
- Unnecessary escape character: \$. (totalt 2 st)
- Unnecessary escape character: \.. (totalt 1 st)
- Unnecessary escape character: \). (totalt 1 st)
- Unnecessary escape character: \". (totalt 1 st)
- Script URL is a form of eval. (totalt 1 st)
- Unnecessary escape character: \/. (totalt 1 st)
- Async method X has no X expression. (totalt 1 st)
- The Function constructor is eval. (totalt 1 st)