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.41 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: 70 ( 1.00 betyg )
- X is defined but never used. (totalt 29 st)
- X is not defined. (totalt 22 st)
- Unexpected console statement. (totalt 19 st)
- `< script>` in: #11: cookiesharingif, antal grupperade fel: 3 ( 4.40 betyg )
- `< script>` in: #11: 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: #4: vizzit.integrat, antal grupperade fel: 1 ( 4.80 betyg )
- `content-type=".*javascript.*"` in: #4: vizzit.integrat, antal fel: 15 ( 2.00 betyg )
- X is not defined. (totalt 15 st)
- `content-type=".*javascript.*"` in: #6: vendors-main.ff, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #6: vendors-main.ff, antal fel: 196 ( 1.00 betyg )
- X is defined but never used. (totalt 156 st)
- X is not defined. (totalt 22 st)
- Unexpected console statement. (totalt 17 st)
- X is assigned a value but never used. (totalt 1 st)
- `content-type=".*javascript.*"` in: #7: client-main.8f2, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #7: client-main.8f2, antal fel: 252 ( 1.00 betyg )
- X is defined but never used. (totalt 195 st)
- Unexpected console statement. (totalt 31 st)
- X is not defined. (totalt 22 st)
- X is assigned a value but never used. (totalt 4 st)
- `content-type=".*javascript.*"` in: #12: integration, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #12: integration, antal fel: 914 ( 1.00 betyg )
- X is not defined. (totalt 679 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: #13: container-404Ay, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #13: container-404Ay, antal fel: 1141 ( 1.00 betyg )
- X is not defined. (totalt 806 st)
- X is defined but never used. (totalt 263 st)
- Unexpected console statement. (totalt 53 st)
- X is assigned a value but never used. (totalt 19 st)
- `content-type=".*javascript.*"` in: #15: ai.0.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #15: ai.0.js, antal fel: 1168 ( 1.00 betyg )
- X is not defined. (totalt 807 st)
- X is defined but never used. (totalt 285 st)
- Unexpected console statement. (totalt 57 st)
- X is assigned a value but never used. (totalt 19 st)
- `content-type=".*javascript.*"` in: #24: sv.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #24: sv.js, antal fel: 1169 ( 1.00 betyg )
- X is not defined. (totalt 808 st)
- X is defined but never used. (totalt 285 st)
- Unexpected console statement. (totalt 57 st)
- X is assigned a value but never used. (totalt 19 st)
- `content-type=".*javascript.*"` in: #25: configs.php, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #25: configs.php, antal fel: 1170 ( 1.00 betyg )
- X is not defined. (totalt 809 st)
- X is defined but never used. (totalt 285 st)
- Unexpected console statement. (totalt 57 st)
- X is assigned a value but never used. (totalt 19 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: 192 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 118 st)
- Expected X and instead saw X. (totalt 63 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: #11: cookiesharingif, antal grupperade fel: 2 ( 4.60 betyg )
- `< script>` in: #11: 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: #4: vizzit.integrat, antal grupperade fel: 1 ( 4.80 betyg )
- `content-type=".*javascript.*"` in: #4: vizzit.integrat, antal fel: 1 ( 4.80 betyg )
- Expected X and instead saw X. (totalt 1 st)
- `content-type=".*javascript.*"` in: #6: vendors-main.ff, antal grupperade fel: 20 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #6: vendors-main.ff, antal fel: 2711 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 2250 st)
- Expected X and instead saw X. (totalt 311 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: #7: client-main.8f2, antal grupperade fel: 20 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #7: client-main.8f2, antal fel: 3231 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 2733 st)
- Expected X and instead saw X. (totalt 340 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: #12: integration, antal grupperade fel: 20 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #12: integration, antal fel: 3351 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 2828 st)
- Expected X and instead saw X. (totalt 360 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: #13: container-404Ay, antal grupperade fel: 20 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #13: container-404Ay, antal fel: 3443 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 2828 st)
- Expected X and instead saw X. (totalt 413 st)
- Do not access Object.prototype method X from target object. (totalt 56 st)
- Unnecessary escape character: \/. (totalt 43 st)
- Unnecessary escape character: \-. (totalt 25 st)
- Unnecessary escape character: \.. (totalt 17 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)
- 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: ai.0.js, antal grupperade fel: 23 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #15: ai.0.js, antal fel: 3762 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 3049 st)
- Expected X and instead saw X. (totalt 504 st)
- Do not access Object.prototype method X from target object. (totalt 57 st)
- Unnecessary escape character: \/. (totalt 43 st)
- Unnecessary escape character: \-. (totalt 25 st)
- Unnecessary escape character: \.. (totalt 17 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)
- 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 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)
- Script URL is a form of eval. (totalt 1 st)
- `content-type=".*javascript.*"` in: #24: sv.js, antal grupperade fel: 23 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #24: sv.js, antal fel: 3762 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 3049 st)
- Expected X and instead saw X. (totalt 504 st)
- Do not access Object.prototype method X from target object. (totalt 57 st)
- Unnecessary escape character: \/. (totalt 43 st)
- Unnecessary escape character: \-. (totalt 25 st)
- Unnecessary escape character: \.. (totalt 17 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)
- 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 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)
- Script URL is a form of eval. (totalt 1 st)
- `content-type=".*javascript.*"` in: #25: configs.php, antal grupperade fel: 23 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #25: configs.php, antal fel: 3762 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 3049 st)
- Expected X and instead saw X. (totalt 504 st)
- Do not access Object.prototype method X from target object. (totalt 57 st)
- Unnecessary escape character: \/. (totalt 43 st)
- Unnecessary escape character: \-. (totalt 25 st)
- Unnecessary escape character: \.. (totalt 17 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)
- 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 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)
- Script URL is a form of eval. (totalt 1 st)