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.25 av 5
- JS är dålig.
Webbstandard
- `< script>` in: #1: Webbsida , antal grupperade fel: 3 ( 4.40 betyg )
- `< script>` in: #1: Webbsida , antal fel: 13 ( 2.40 betyg )
- X is not defined. (totalt 10 st)
- Unexpected console statement. (totalt 2 st)
- X is defined but never used. (totalt 1 st)
- `< script src="...">` in: #1: Webbsida , antal grupperade fel: 3 ( 4.40 betyg )
- `< script src="...">` in: #1: Webbsida , antal fel: 85 ( 1.00 betyg )
- X is not defined. (totalt 37 st)
- X is defined but never used. (totalt 29 st)
- Unexpected console statement. (totalt 19 st)
- `< script>` in: #13: cookiesharingif, antal grupperade fel: 3 ( 4.40 betyg )
- `< script>` in: #13: cookiesharingif, antal fel: 8 ( 3.40 betyg )
- X is defined but never used. (totalt 3 st)
- Unexpected console statement. (totalt 3 st)
- X is not defined. (totalt 2 st)
- `content-type=".*javascript.*"` in: #8: vendors-main.ff, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #8: vendors-main.ff, antal fel: 181 ( 1.00 betyg )
- X is defined but never used. (totalt 156 st)
- Unexpected console statement. (totalt 17 st)
- X is not defined. (totalt 7 st)
- X is assigned a value but never used. (totalt 1 st)
- `content-type=".*javascript.*"` in: #9: client-main.8f2, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #9: client-main.8f2, antal fel: 237 ( 1.00 betyg )
- X is defined but never used. (totalt 195 st)
- Unexpected console statement. (totalt 31 st)
- X is not defined. (totalt 7 st)
- X is assigned a value but never used. (totalt 4 st)
- `content-type=".*javascript.*"` in: #14: integration, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #14: integration, antal fel: 899 ( 1.00 betyg )
- X is not defined. (totalt 664 st)
- X is defined but never used. (totalt 198 st)
- Unexpected console statement. (totalt 33 st)
- X is assigned a value but never used. (totalt 4 st)
- `content-type=".*javascript.*"` in: #15: container-nvRI1, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #15: container-nvRI1, antal fel: 1150 ( 1.00 betyg )
- X is not defined. (totalt 795 st)
- X is defined but never used. (totalt 281 st)
- Unexpected console statement. (totalt 53 st)
- X is assigned a value but never used. (totalt 21 st)
- `content-type=".*javascript.*"` in: #16: ai.0.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #16: ai.0.js, antal fel: 1177 ( 1.00 betyg )
- X is not defined. (totalt 796 st)
- X is defined but never used. (totalt 303 st)
- Unexpected console statement. (totalt 57 st)
- X is assigned a value but never used. (totalt 21 st)
- `content-type=".*javascript.*"` in: #30: sv.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #30: sv.js, antal fel: 1178 ( 1.00 betyg )
- X is not defined. (totalt 797 st)
- X is defined but never used. (totalt 303 st)
- Unexpected console statement. (totalt 57 st)
- X is assigned a value but never used. (totalt 21 st)
- `content-type=".*javascript.*"` in: #31: configs.php, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #31: configs.php, antal fel: 1179 ( 1.00 betyg )
- X is not defined. (totalt 798 st)
- X is defined but never used. (totalt 303 st)
- Unexpected console statement. (totalt 57 st)
- X is assigned a value but never used. (totalt 21 st)
Integritet & säkerhet
- `< script>` in: #1: Webbsida , antal grupperade fel: 2 ( 4.60 betyg )
- `< script>` in: #1: Webbsida , antal fel: 2 ( 4.60 betyg )
- Expected X and instead saw X. (totalt 1 st)
- Expected an assignment or function call and instead saw an expression. (totalt 1 st)
- `< script src="...">` in: #1: Webbsida , antal grupperade fel: 7 ( 3.60 betyg )
- `< script src="...">` in: #1: Webbsida , antal fel: 193 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 118 st)
- Expected X and instead saw X. (totalt 64 st)
- Do not access Object.prototype method X from target object. (totalt 6 st)
- X is not modified in this loop. (totalt 2 st)
- Script URL is a form of eval. (totalt 1 st)
- Unsafe usage of ThrowStatement. (totalt 1 st)
- X is assigned to itself. (totalt 1 st)
- `< script>` in: #13: cookiesharingif, antal grupperade fel: 2 ( 4.60 betyg )
- `< script>` in: #13: cookiesharingif, antal fel: 80 ( 1.00 betyg )
- Expected X and instead saw X. (totalt 47 st)
- Expected an assignment or function call and instead saw an expression. (totalt 33 st)
- `content-type=".*javascript.*"` in: #8: vendors-main.ff, antal grupperade fel: 20 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #8: vendors-main.ff, antal fel: 2710 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 2250 st)
- Expected X and instead saw X. (totalt 310 st)
- Do not access Object.prototype method X from target object. (totalt 39 st)
- Unnecessary escape character: \-. (totalt 22 st)
- Unnecessary escape character: \/. (totalt 17 st)
- Unnecessary escape character: \.. (totalt 16 st)
- X is not modified in this loop. (totalt 12 st)
- Comparing to itself is potentially pointless. (totalt 10 st)
- Unnecessary escape character: \). (totalt 6 st)
- Unsafe usage of ThrowStatement. (totalt 5 st)
- Unnecessary escape character: \:. (totalt 5 st)
- Unnecessary X. (totalt 5 st)
- Unnecessary escape character: \(. (totalt 3 st)
- The Function constructor is eval. (totalt 3 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)
- Unexpected string concatenation of literals. (totalt 1 st)
- Unnecessary escape character: \+. (totalt 1 st)
- `content-type=".*javascript.*"` in: #9: client-main.8f2, antal grupperade fel: 20 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #9: client-main.8f2, antal fel: 3230 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 2733 st)
- Expected X and instead saw X. (totalt 339 st)
- Do not access Object.prototype method X from target object. (totalt 47 st)
- Unnecessary escape character: \-. (totalt 22 st)
- Unnecessary escape character: \/. (totalt 17 st)
- Unnecessary escape character: \.. (totalt 16 st)
- X is not modified in this loop. (totalt 12 st)
- Comparing to itself is potentially pointless. (totalt 10 st)
- Unnecessary escape character: \). (totalt 6 st)
- Unsafe usage of ThrowStatement. (totalt 5 st)
- Unnecessary escape character: \:. (totalt 5 st)
- Unnecessary X. (totalt 5 st)
- Unnecessary escape character: \(. (totalt 3 st)
- The Function constructor is eval. (totalt 3 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)
- Unexpected string concatenation of literals. (totalt 1 st)
- Unnecessary escape character: \+. (totalt 1 st)
- `content-type=".*javascript.*"` in: #14: integration, antal grupperade fel: 20 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #14: integration, antal fel: 3350 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 2828 st)
- Expected X and instead saw X. (totalt 359 st)
- Do not access Object.prototype method X from target object. (totalt 47 st)
- Unnecessary escape character: \-. (totalt 22 st)
- Unnecessary escape character: \/. (totalt 19 st)
- Unnecessary escape character: \.. (totalt 16 st)
- X is not modified in this loop. (totalt 12 st)
- Comparing to itself is potentially pointless. (totalt 10 st)
- Unnecessary escape character: \:. (totalt 7 st)
- Unnecessary escape character: \). (totalt 6 st)
- Unsafe usage of ThrowStatement. (totalt 5 st)
- Unnecessary X. (totalt 5 st)
- Unnecessary escape character: \(. (totalt 3 st)
- The Function constructor is eval. (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)
- Unnecessary escape character: \+. (totalt 1 st)
- `content-type=".*javascript.*"` in: #15: container-nvRI1, antal grupperade fel: 21 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #15: container-nvRI1, antal fel: 3795 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 2828 st)
- Expected X and instead saw X. (totalt 432 st)
- Unnecessary escape character: \/. (totalt 372 st)
- Do not access Object.prototype method X from target object. (totalt 56 st)
- Unnecessary escape character: \-. (totalt 25 st)
- Unnecessary escape character: \.. (totalt 18 st)
- X is not modified in this loop. (totalt 12 st)
- Comparing to itself is potentially pointless. (totalt 10 st)
- Unnecessary escape character: \). (totalt 7 st)
- Unnecessary escape character: \:. (totalt 7 st)
- Unnecessary X. (totalt 6 st)
- Unsafe usage of ThrowStatement. (totalt 5 st)
- Unexpected string concatenation of literals. (totalt 4 st)
- Unnecessary escape character: \(. (totalt 3 st)
- The Function constructor is eval. (totalt 3 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)
- Script URL is a form of eval. (totalt 1 st)
- `content-type=".*javascript.*"` in: #16: ai.0.js, antal grupperade fel: 23 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #16: ai.0.js, antal fel: 4114 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 3049 st)
- Expected X and instead saw X. (totalt 523 st)
- Unnecessary escape character: \/. (totalt 372 st)
- Do not access Object.prototype method X from target object. (totalt 57 st)
- Unnecessary escape character: \-. (totalt 25 st)
- Unnecessary escape character: \.. (totalt 18 st)
- X is not modified in this loop. (totalt 12 st)
- Comparing to itself is potentially pointless. (totalt 10 st)
- Unnecessary escape character: \). (totalt 7 st)
- Unnecessary escape character: \:. (totalt 7 st)
- Unnecessary X. (totalt 7 st)
- Unsafe usage of ThrowStatement. (totalt 5 st)
- Unnecessary escape character: \(. (totalt 4 st)
- Unexpected string concatenation of literals. (totalt 4 st)
- The Function constructor is eval. (totalt 3 st)
- Unnecessary escape character: \,. (totalt 2 st)
- Script URL is a form of eval. (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)
- `content-type=".*javascript.*"` in: #30: sv.js, antal grupperade fel: 23 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #30: sv.js, antal fel: 4114 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 3049 st)
- Expected X and instead saw X. (totalt 523 st)
- Unnecessary escape character: \/. (totalt 372 st)
- Do not access Object.prototype method X from target object. (totalt 57 st)
- Unnecessary escape character: \-. (totalt 25 st)
- Unnecessary escape character: \.. (totalt 18 st)
- X is not modified in this loop. (totalt 12 st)
- Comparing to itself is potentially pointless. (totalt 10 st)
- Unnecessary escape character: \). (totalt 7 st)
- Unnecessary escape character: \:. (totalt 7 st)
- Unnecessary X. (totalt 7 st)
- Unsafe usage of ThrowStatement. (totalt 5 st)
- Unnecessary escape character: \(. (totalt 4 st)
- Unexpected string concatenation of literals. (totalt 4 st)
- The Function constructor is eval. (totalt 3 st)
- Unnecessary escape character: \,. (totalt 2 st)
- Script URL is a form of eval. (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)
- `content-type=".*javascript.*"` in: #31: configs.php, antal grupperade fel: 23 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #31: configs.php, antal fel: 4114 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 3049 st)
- Expected X and instead saw X. (totalt 523 st)
- Unnecessary escape character: \/. (totalt 372 st)
- Do not access Object.prototype method X from target object. (totalt 57 st)
- Unnecessary escape character: \-. (totalt 25 st)
- Unnecessary escape character: \.. (totalt 18 st)
- X is not modified in this loop. (totalt 12 st)
- Comparing to itself is potentially pointless. (totalt 10 st)
- Unnecessary escape character: \). (totalt 7 st)
- Unnecessary escape character: \:. (totalt 7 st)
- Unnecessary X. (totalt 7 st)
- Unsafe usage of ThrowStatement. (totalt 5 st)
- Unnecessary escape character: \(. (totalt 4 st)
- Unexpected string concatenation of literals. (totalt 4 st)
- The Function constructor is eval. (totalt 3 st)
- Unnecessary escape character: \,. (totalt 2 st)
- Script URL is a form of eval. (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)