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.55 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 )
- X is assigned a value but never used. (totalt 1 st)
- `< script src="...">` in: #1: Webbsida , antal grupperade fel: 4 ( 4.20 betyg )
- `< script src="...">` in: #1: Webbsida , antal fel: 59 ( 1.00 betyg )
- X is not defined. (totalt 35 st)
- X is defined but never used. (totalt 15 st)
- Unexpected use of X. (totalt 6 st)
- Rule "no-unused-vars" is already configured by another configuration comment in the preceding code. This configuration is ignored. (totalt 3 st)
- `content-type=".*javascript.*"` in: #27: cdn.min.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #27: cdn.min.js, antal fel: 20 ( 1.00 betyg )
- Unexpected console statement. (totalt 8 st)
- X is assigned a value but never used. (totalt 7 st)
- X is defined but never used. (totalt 4 st)
- X is not defined. (totalt 1 st)
- `content-type=".*javascript.*"` in: #29: embed.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #29: embed.js, antal fel: 1222 ( 1.00 betyg )
- X is not defined. (totalt 1152 st)
- X is defined but never used. (totalt 36 st)
- Unexpected console statement. (totalt 27 st)
- X is assigned a value but never used. (totalt 7 st)
- `content-type=".*javascript.*"` in: #31: matomo.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #31: matomo.js, antal fel: 1308 ( 1.00 betyg )
- X is not defined. (totalt 1191 st)
- X is defined but never used. (totalt 63 st)
- Unexpected console statement. (totalt 37 st)
- X is assigned a value but never used. (totalt 17 st)
- `content-type=".*javascript.*"` in: #45: configs.php, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #45: configs.php, antal fel: 1309 ( 1.00 betyg )
- X is not defined. (totalt 1192 st)
- X is defined but never used. (totalt 63 st)
- Unexpected console statement. (totalt 37 st)
- X is assigned a value but never used. (totalt 17 st)
Integritet & säkerhet
- `< script src="...">` in: #1: Webbsida , antal grupperade fel: 11 ( 2.80 betyg )
- `< script src="...">` in: #1: Webbsida , antal fel: 449 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 245 st)
- Expected X and instead saw X. (totalt 184 st)
- Unexpected use of X. (totalt 6 st)
- Unnecessary escape character: \/. (totalt 4 st)
- Rule "no-unused-vars" is already configured by another configuration comment in the preceding code. This configuration is ignored. (totalt 3 st)
- Unexpected string concatenation of literals. (totalt 2 st)
- Do not access Object.prototype method X from target object. (totalt 1 st)
- Unnecessary X. (totalt 1 st)
- Comparing to itself is potentially pointless. (totalt 1 st)
- X is assigned to itself. (totalt 1 st)
- Unsafe usage of ThrowStatement. (totalt 1 st)
- `content-type=".*javascript.*"` in: #27: cdn.min.js, antal grupperade fel: 5 ( 4.00 betyg )
- `content-type=".*javascript.*"` in: #27: cdn.min.js, antal fel: 232 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 181 st)
- Expected X and instead saw X. (totalt 46 st)
- Comparing to itself is potentially pointless. (totalt 2 st)
- Unnecessary escape character: \}. (totalt 2 st)
- Do not access Object.prototype method X from target object. (totalt 1 st)
- `content-type=".*javascript.*"` in: #29: embed.js, antal grupperade fel: 18 ( 1.40 betyg )
- `content-type=".*javascript.*"` in: #29: embed.js, antal fel: 2633 ( 1.00 betyg )
- Expected X and instead saw X. (totalt 1228 st)
- Expected an assignment or function call and instead saw an expression. (totalt 1221 st)
- Unnecessary escape character: \". (totalt 123 st)
- Do not access Object.prototype method X from target object. (totalt 13 st)
- Unnecessary escape character: \/. (totalt 12 st)
- Unnecessary X. (totalt 9 st)
- Comparing to itself is potentially pointless. (totalt 8 st)
- Unnecessary escape character: \-. (totalt 4 st)
- Unnecessary escape character: \}. (totalt 2 st)
- X is not modified in this loop. (totalt 2 st)
- Unnecessary escape character: \[. (totalt 2 st)
- The Function constructor is eval. (totalt 2 st)
- eval can be harmful. (totalt 2 st)
- Unnecessary escape character: \.. (totalt 1 st)
- Unnecessary escape character: \^. (totalt 1 st)
- Script URL is a form of eval. (totalt 1 st)
- Unexpected negating the left operand of X operator. (totalt 1 st)
- Unnecessary escape character: \:. (totalt 1 st)
- `content-type=".*javascript.*"` in: #31: matomo.js, antal grupperade fel: 19 ( 1.20 betyg )
- `content-type=".*javascript.*"` in: #31: matomo.js, antal fel: 2684 ( 1.00 betyg )
- Expected X and instead saw X. (totalt 1267 st)
- Expected an assignment or function call and instead saw an expression. (totalt 1221 st)
- Unnecessary escape character: \". (totalt 123 st)
- Do not access Object.prototype method X from target object. (totalt 20 st)
- Unnecessary escape character: \/. (totalt 12 st)
- Unnecessary X. (totalt 9 st)
- Comparing to itself is potentially pointless. (totalt 8 st)
- Unnecessary escape character: \-. (totalt 7 st)
- Unnecessary escape character: \}. (totalt 2 st)
- X is not modified in this loop. (totalt 2 st)
- Unnecessary escape character: \[. (totalt 2 st)
- Unnecessary escape character: \.. (totalt 2 st)
- The Function constructor is eval. (totalt 2 st)
- eval can be harmful. (totalt 2 st)
- Unnecessary escape character: \^. (totalt 1 st)
- Script URL is a form of eval. (totalt 1 st)
- Unexpected negating the left operand of X operator. (totalt 1 st)
- Unnecessary escape character: \:. (totalt 1 st)
- Unnecessary escape character: \). (totalt 1 st)
- `content-type=".*javascript.*"` in: #45: configs.php, antal grupperade fel: 19 ( 1.20 betyg )
- `content-type=".*javascript.*"` in: #45: configs.php, antal fel: 2684 ( 1.00 betyg )
- Expected X and instead saw X. (totalt 1267 st)
- Expected an assignment or function call and instead saw an expression. (totalt 1221 st)
- Unnecessary escape character: \". (totalt 123 st)
- Do not access Object.prototype method X from target object. (totalt 20 st)
- Unnecessary escape character: \/. (totalt 12 st)
- Unnecessary X. (totalt 9 st)
- Comparing to itself is potentially pointless. (totalt 8 st)
- Unnecessary escape character: \-. (totalt 7 st)
- Unnecessary escape character: \}. (totalt 2 st)
- X is not modified in this loop. (totalt 2 st)
- Unnecessary escape character: \[. (totalt 2 st)
- Unnecessary escape character: \.. (totalt 2 st)
- The Function constructor is eval. (totalt 2 st)
- eval can be harmful. (totalt 2 st)
- Unnecessary escape character: \^. (totalt 1 st)
- Script URL is a form of eval. (totalt 1 st)
- Unexpected negating the left operand of X operator. (totalt 1 st)
- Unnecessary escape character: \:. (totalt 1 st)
- Unnecessary escape character: \). (totalt 1 st)