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.83 av 5
- JS är dålig.
Webbstandard
- `< script src="...">` in: #1: Webbsida , antal grupperade fel: 4 ( 4.20 betyg )
- `< script src="...">` in: #1: Webbsida , antal fel: 351 ( 1.00 betyg )
- X is defined but never used. (totalt 312 st)
- Unexpected console statement. (totalt 26 st)
- X is not defined. (totalt 11 st)
- X is assigned a value but never used. (totalt 2 st)
- `content-type=".*javascript.*"` in: #7: matomo.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #7: matomo.js, antal fel: 157 ( 1.00 betyg )
- X is not defined. (totalt 102 st)
- X is defined but never used. (totalt 33 st)
- Unexpected console statement. (totalt 12 st)
- X is assigned a value but never used. (totalt 10 st)
- `content-type=".*javascript.*"` in: #12: 722.fa245beeee3, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #12: 722.fa245beeee3, antal fel: 157 ( 1.00 betyg )
- X is not defined. (totalt 102 st)
- X is defined but never used. (totalt 33 st)
- Unexpected console statement. (totalt 12 st)
- X is assigned a value but never used. (totalt 10 st)
- `content-type=".*javascript.*"` in: #13: 796.4ba6b9a5e18, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #13: 796.4ba6b9a5e18, antal fel: 157 ( 1.00 betyg )
- X is not defined. (totalt 102 st)
- X is defined but never used. (totalt 33 st)
- Unexpected console statement. (totalt 12 st)
- X is assigned a value but never used. (totalt 10 st)
- `content-type=".*javascript.*"` in: #14: 544.99cb90146c4, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #14: 544.99cb90146c4, antal fel: 157 ( 1.00 betyg )
- X is not defined. (totalt 102 st)
- X is defined but never used. (totalt 33 st)
- Unexpected console statement. (totalt 12 st)
- X is assigned a value but never used. (totalt 10 st)
- `content-type=".*javascript.*"` in: #15: 893.1758fb6bbb7, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #15: 893.1758fb6bbb7, antal fel: 157 ( 1.00 betyg )
- X is not defined. (totalt 102 st)
- X is defined but never used. (totalt 33 st)
- Unexpected console statement. (totalt 12 st)
- X is assigned a value but never used. (totalt 10 st)
- `content-type=".*javascript.*"` in: #16: 321.580840c14e4, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #16: 321.580840c14e4, antal fel: 159 ( 1.00 betyg )
- X is not defined. (totalt 102 st)
- X is defined but never used. (totalt 35 st)
- Unexpected console statement. (totalt 12 st)
- X is assigned a value but never used. (totalt 10 st)
- `content-type=".*javascript.*"` in: #17: 36.f2d66250090e, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #17: 36.f2d66250090e, antal fel: 161 ( 1.00 betyg )
- X is not defined. (totalt 102 st)
- X is defined but never used. (totalt 37 st)
- Unexpected console statement. (totalt 12 st)
- X is assigned a value but never used. (totalt 10 st)
- `content-type=".*javascript.*"` in: #18: 99.1eaff327576d, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #18: 99.1eaff327576d, antal fel: 161 ( 1.00 betyg )
- X is not defined. (totalt 102 st)
- X is defined but never used. (totalt 37 st)
- Unexpected console statement. (totalt 12 st)
- X is assigned a value but never used. (totalt 10 st)
Integritet & säkerhet
- `< script src="...">` in: #1: Webbsida , antal grupperade fel: 28 ( 1.00 betyg )
- `< script src="...">` in: #1: Webbsida , antal fel: 7223 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 3999 st)
- Expected X and instead saw X. (totalt 2982 st)
- Do not access Object.prototype method X from target object. (totalt 91 st)
- Comparing to itself is potentially pointless. (totalt 29 st)
- Unsafe usage of ThrowStatement. (totalt 28 st)
- X is not modified in this loop. (totalt 23 st)
- Unsafe usage of ReturnStatement. (totalt 15 st)
- Unnecessary escape character: \-. (totalt 12 st)
- The Function constructor is eval. (totalt 6 st)
- Unnecessary X. (totalt 5 st)
- Unnecessary escape character: \/. (totalt 5 st)
- Unnecessary escape character: \:. (totalt 4 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)
- Unnecessary escape character: \+. (totalt 2 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)
- Unnecessary escape character: \{. (totalt 1 st)
- Unnecessary escape character: \}. (totalt 1 st)
- Unnecessary escape character: \>. (totalt 1 st)
- Unnecessary escape character: \< . (totalt 1 st)
- X is assigned to itself. (totalt 1 st)
- `content-type=".*javascript.*"` in: #7: matomo.js, antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #7: matomo.js, antal fel: 14 ( 2.20 betyg )
- Expected X and instead saw X. (totalt 10 st)
- Do not access Object.prototype method X from target object. (totalt 3 st)
- Unnecessary X. (totalt 1 st)
- `content-type=".*javascript.*"` in: #12: 722.fa245beeee3, antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #12: 722.fa245beeee3, antal fel: 14 ( 2.20 betyg )
- Expected X and instead saw X. (totalt 10 st)
- Do not access Object.prototype method X from target object. (totalt 3 st)
- Unnecessary X. (totalt 1 st)
- `content-type=".*javascript.*"` in: #13: 796.4ba6b9a5e18, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #13: 796.4ba6b9a5e18, antal fel: 38 ( 1.00 betyg )
- Expected X and instead saw X. (totalt 19 st)
- Expected an assignment or function call and instead saw an expression. (totalt 15 st)
- Do not access Object.prototype method X from target object. (totalt 3 st)
- Unnecessary X. (totalt 1 st)
- `content-type=".*javascript.*"` in: #14: 544.99cb90146c4, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #14: 544.99cb90146c4, antal fel: 107 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 53 st)
- Expected X and instead saw X. (totalt 48 st)
- Do not access Object.prototype method X from target object. (totalt 5 st)
- Unnecessary X. (totalt 1 st)
- `content-type=".*javascript.*"` in: #15: 893.1758fb6bbb7, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #15: 893.1758fb6bbb7, antal fel: 124 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 61 st)
- Expected X and instead saw X. (totalt 57 st)
- Do not access Object.prototype method X from target object. (totalt 5 st)
- Unnecessary X. (totalt 1 st)
- `content-type=".*javascript.*"` in: #16: 321.580840c14e4, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #16: 321.580840c14e4, antal fel: 176 ( 1.00 betyg )
- Expected X and instead saw X. (totalt 86 st)
- Expected an assignment or function call and instead saw an expression. (totalt 84 st)
- Do not access Object.prototype method X from target object. (totalt 5 st)
- Unnecessary X. (totalt 1 st)
- `content-type=".*javascript.*"` in: #17: 36.f2d66250090e, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #17: 36.f2d66250090e, antal fel: 387 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 212 st)
- Expected X and instead saw X. (totalt 168 st)
- Do not access Object.prototype method X from target object. (totalt 6 st)
- Unnecessary X. (totalt 1 st)
- `content-type=".*javascript.*"` in: #18: 99.1eaff327576d, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #18: 99.1eaff327576d, antal fel: 446 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 244 st)
- Expected X and instead saw X. (totalt 194 st)
- Do not access Object.prototype method X from target object. (totalt 7 st)
- Unnecessary X. (totalt 1 st)