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.40 av 5
- JS är dålig.
Webbstandard
- `< script>` in: #1: Webbsida , antal grupperade fel: 3 ( 4.40 betyg )
- `< script>` in: #1: Webbsida , antal fel: 5 ( 4.00 betyg )
- X is not defined. (totalt 3 st)
- X is defined but never used. (totalt 1 st)
- 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: 69 ( 1.00 betyg )
- X is defined but never used. (totalt 29 st)
- X is not defined. (totalt 21 st)
- Unexpected console statement. (totalt 18 st)
- Parsing error: Unexpected token (totalt 1 st)
- `< script>` in: #9: cookiesharingif, antal grupperade fel: 3 ( 4.40 betyg )
- `< script>` in: #9: 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: #10: cdh-player.js, antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #10: cdh-player.js, antal fel: 15 ( 2.00 betyg )
- Unexpected console statement. (totalt 8 st)
- X is not defined. (totalt 4 st)
- X is defined but never used. (totalt 3 st)
- `content-type=".*javascript.*"` in: #12: a596a8f2.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #12: a596a8f2.js, antal fel: 151 ( 1.00 betyg )
- X is defined but never used. (totalt 82 st)
- Unexpected console statement. (totalt 47 st)
- X is not defined. (totalt 13 st)
- X is assigned a value but never used. (totalt 9 st)
- `content-type=".*javascript.*"` in: #13: rekai-autocompl, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #13: rekai-autocompl, antal fel: 167 ( 1.00 betyg )
- X is defined but never used. (totalt 89 st)
- Unexpected console statement. (totalt 49 st)
- X is not defined. (totalt 20 st)
- X is assigned a value but never used. (totalt 9 st)
- `content-type=".*javascript.*"` in: #15: da.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #15: da.js, antal fel: 168 ( 1.00 betyg )
- X is defined but never used. (totalt 89 st)
- Unexpected console statement. (totalt 49 st)
- X is not defined. (totalt 21 st)
- X is assigned a value but never used. (totalt 9 st)
- `content-type=".*javascript.*"` in: #17: search-script.m, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #17: search-script.m, antal fel: 229 ( 1.00 betyg )
- X is defined but never used. (totalt 116 st)
- Unexpected console statement. (totalt 83 st)
- X is not defined. (totalt 21 st)
- X is assigned a value but never used. (totalt 9 st)
- `content-type=".*javascript.*"` in: #30: jquery-3.7.1.mi, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #30: jquery-3.7.1.mi, antal fel: 242 ( 1.00 betyg )
- X is defined but never used. (totalt 127 st)
- Unexpected console statement. (totalt 83 st)
- X is not defined. (totalt 23 st)
- X is assigned a value but never used. (totalt 9 st)
- `content-type=".*javascript.*"` in: #31: cdhcombo-extern, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #31: cdhcombo-extern, antal fel: 248 ( 1.00 betyg )
- X is defined but never used. (totalt 128 st)
- Unexpected console statement. (totalt 83 st)
- X is not defined. (totalt 28 st)
- X is assigned a value but never used. (totalt 9 st)
- `content-type=".*javascript.*"` in: #32: cdhcombo.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #32: cdhcombo.js, antal fel: 294 ( 1.00 betyg )
- X is defined but never used. (totalt 131 st)
- Unexpected console statement. (totalt 85 st)
- X is not defined. (totalt 68 st)
- X is assigned a value but never used. (totalt 10 st)
- `content-type=".*javascript.*"` in: #33: cdh-video.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #33: cdh-video.js, antal fel: 298 ( 1.00 betyg )
- X is defined but never used. (totalt 131 st)
- Unexpected console statement. (totalt 85 st)
- X is not defined. (totalt 69 st)
- X is assigned a value but never used. (totalt 13 st)
Integritet & säkerhet
- `< script>` in: #1: Webbsida , antal grupperade fel: 1 ( 4.80 betyg )
- `< script>` in: #1: Webbsida , antal fel: 2 ( 4.60 betyg )
- Expected X and instead saw X. (totalt 2 st)
- `< script src="...">` in: #1: Webbsida , antal grupperade fel: 9 ( 3.20 betyg )
- `< script src="...">` in: #1: Webbsida , antal fel: 185 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 119 st)
- Expected X and instead saw X. (totalt 54 st)
- Do not access Object.prototype method X from target object. (totalt 6 st)
- Parsing error: Unexpected token (totalt 1 st)
- The Function constructor is eval. (totalt 1 st)
- Script URL is a form of eval. (totalt 1 st)
- X is not modified in this loop. (totalt 1 st)
- Unsafe usage of ThrowStatement. (totalt 1 st)
- X is assigned to itself. (totalt 1 st)
- `< script>` in: #9: cookiesharingif, antal grupperade fel: 2 ( 4.60 betyg )
- `< script>` in: #9: 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: #10: cdh-player.js, antal grupperade fel: 2 ( 4.60 betyg )
- `content-type=".*javascript.*"` in: #10: cdh-player.js, antal fel: 6 ( 3.80 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 5 st)
- Expected X and instead saw X. (totalt 1 st)
- `content-type=".*javascript.*"` in: #12: a596a8f2.js, antal grupperade fel: 8 ( 3.40 betyg )
- `content-type=".*javascript.*"` in: #12: a596a8f2.js, antal fel: 493 ( 1.00 betyg )
- Expected X and instead saw X. (totalt 238 st)
- Expected an assignment or function call and instead saw an expression. (totalt 167 st)
- Unnecessary escape character: \-. (totalt 47 st)
- Do not access Object.prototype method X from target object. (totalt 29 st)
- Unexpected string concatenation of literals. (totalt 7 st)
- Unnecessary escape character: \/. (totalt 3 st)
- Unnecessary escape character: \,. (totalt 1 st)
- eval can be harmful. (totalt 1 st)
- `content-type=".*javascript.*"` in: #13: rekai-autocompl, antal grupperade fel: 24 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #13: rekai-autocompl, antal fel: 831 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 355 st)
- Expected X and instead saw X. (totalt 351 st)
- Unnecessary escape character: \-. (totalt 49 st)
- Do not access Object.prototype method X from target object. (totalt 29 st)
- Unexpected string concatenation of literals. (totalt 7 st)
- Unnecessary escape character: \/. (totalt 5 st)
- Unnecessary escape character: \[. (totalt 3 st)
- Unnecessary escape character: \{. (totalt 3 st)
- eval can be harmful. (totalt 2 st)
- X is assigned to itself. (totalt 2 st)
- Unnecessary escape character: \}. (totalt 2 st)
- Unnecessary escape character: \(. (totalt 2 st)
- Unnecessary escape character: \). (totalt 2 st)
- Unnecessary escape character: \*. (totalt 2 st)
- Unnecessary escape character: \+. (totalt 2 st)
- Unnecessary escape character: \?. (totalt 2 st)
- Unnecessary escape character: \.. (totalt 2 st)
- Unnecessary escape character: \^. (totalt 2 st)
- Unnecessary escape character: \$. (totalt 2 st)
- Unnecessary escape character: \|. (totalt 2 st)
- Unnecessary X. (totalt 2 st)
- Unnecessary escape character: \,. (totalt 1 st)
- X is not modified in this loop. (totalt 1 st)
- The Function constructor is eval. (totalt 1 st)
- `content-type=".*javascript.*"` in: #15: da.js, antal grupperade fel: 24 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #15: da.js, antal fel: 831 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 355 st)
- Expected X and instead saw X. (totalt 351 st)
- Unnecessary escape character: \-. (totalt 49 st)
- Do not access Object.prototype method X from target object. (totalt 29 st)
- Unexpected string concatenation of literals. (totalt 7 st)
- Unnecessary escape character: \/. (totalt 5 st)
- Unnecessary escape character: \[. (totalt 3 st)
- Unnecessary escape character: \{. (totalt 3 st)
- eval can be harmful. (totalt 2 st)
- X is assigned to itself. (totalt 2 st)
- Unnecessary escape character: \}. (totalt 2 st)
- Unnecessary escape character: \(. (totalt 2 st)
- Unnecessary escape character: \). (totalt 2 st)
- Unnecessary escape character: \*. (totalt 2 st)
- Unnecessary escape character: \+. (totalt 2 st)
- Unnecessary escape character: \?. (totalt 2 st)
- Unnecessary escape character: \.. (totalt 2 st)
- Unnecessary escape character: \^. (totalt 2 st)
- Unnecessary escape character: \$. (totalt 2 st)
- Unnecessary escape character: \|. (totalt 2 st)
- Unnecessary X. (totalt 2 st)
- Unnecessary escape character: \,. (totalt 1 st)
- X is not modified in this loop. (totalt 1 st)
- The Function constructor is eval. (totalt 1 st)
- `content-type=".*javascript.*"` in: #17: search-script.m, antal grupperade fel: 25 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #17: search-script.m, antal fel: 1252 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 670 st)
- Expected X and instead saw X. (totalt 455 st)
- Unnecessary escape character: \-. (totalt 49 st)
- Do not access Object.prototype method X from target object. (totalt 29 st)
- Unexpected string concatenation of literals. (totalt 7 st)
- Unnecessary escape character: \/. (totalt 5 st)
- Unnecessary escape character: \[. (totalt 3 st)
- Unnecessary escape character: \{. (totalt 3 st)
- Unnecessary X. (totalt 3 st)
- eval can be harmful. (totalt 2 st)
- X is assigned to itself. (totalt 2 st)
- Unnecessary escape character: \}. (totalt 2 st)
- Unnecessary escape character: \(. (totalt 2 st)
- Unnecessary escape character: \). (totalt 2 st)
- Unnecessary escape character: \*. (totalt 2 st)
- Unnecessary escape character: \+. (totalt 2 st)
- Unnecessary escape character: \?. (totalt 2 st)
- Unnecessary escape character: \.. (totalt 2 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)
- X is not modified in this loop. (totalt 1 st)
- The Function constructor is eval. (totalt 1 st)
- Unnecessary escape character: \&. (totalt 1 st)
- `content-type=".*javascript.*"` in: #30: jquery-3.7.1.mi, antal grupperade fel: 26 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #30: jquery-3.7.1.mi, antal fel: 1625 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 887 st)
- Expected X and instead saw X. (totalt 605 st)
- Unnecessary escape character: \-. (totalt 49 st)
- Do not access Object.prototype method X from target object. (totalt 30 st)
- Unexpected string concatenation of literals. (totalt 7 st)
- Unnecessary escape character: \/. (totalt 7 st)
- Unnecessary X. (totalt 4 st)
- X is assigned to itself. (totalt 3 st)
- Unnecessary escape character: \[. (totalt 3 st)
- Unnecessary escape character: \{. (totalt 3 st)
- eval can be harmful. (totalt 2 st)
- Unnecessary escape character: \}. (totalt 2 st)
- Unnecessary escape character: \(. (totalt 2 st)
- Unnecessary escape character: \). (totalt 2 st)
- Unnecessary escape character: \*. (totalt 2 st)
- Unnecessary escape character: \+. (totalt 2 st)
- Unnecessary escape character: \?. (totalt 2 st)
- Unnecessary escape character: \.. (totalt 2 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)
- X is not modified in this loop. (totalt 1 st)
- The Function constructor is eval. (totalt 1 st)
- Unnecessary escape character: \&. (totalt 1 st)
- Comparing to itself is potentially pointless. (totalt 1 st)
- `content-type=".*javascript.*"` in: #31: cdhcombo-extern, antal grupperade fel: 26 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #31: cdhcombo-extern, antal fel: 1719 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 934 st)
- Expected X and instead saw X. (totalt 646 st)
- Unnecessary escape character: \-. (totalt 49 st)
- Do not access Object.prototype method X from target object. (totalt 31 st)
- Unexpected string concatenation of literals. (totalt 8 st)
- Unnecessary escape character: \/. (totalt 7 st)
- Unnecessary X. (totalt 4 st)
- Comparing to itself is potentially pointless. (totalt 4 st)
- X is assigned to itself. (totalt 3 st)
- Unnecessary escape character: \[. (totalt 3 st)
- Unnecessary escape character: \{. (totalt 3 st)
- eval can be harmful. (totalt 2 st)
- Unnecessary escape character: \}. (totalt 2 st)
- Unnecessary escape character: \(. (totalt 2 st)
- Unnecessary escape character: \). (totalt 2 st)
- Unnecessary escape character: \*. (totalt 2 st)
- Unnecessary escape character: \+. (totalt 2 st)
- Unnecessary escape character: \?. (totalt 2 st)
- Unnecessary escape character: \.. (totalt 2 st)
- Unnecessary escape character: \^. (totalt 2 st)
- Unnecessary escape character: \$. (totalt 2 st)
- Unnecessary escape character: \|. (totalt 2 st)
- The Function constructor is eval. (totalt 2 st)
- Unnecessary escape character: \,. (totalt 1 st)
- X is not modified in this loop. (totalt 1 st)
- Unnecessary escape character: \&. (totalt 1 st)
- `content-type=".*javascript.*"` in: #32: cdhcombo.js, antal grupperade fel: 27 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #32: cdhcombo.js, antal fel: 1804 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 999 st)
- Expected X and instead saw X. (totalt 654 st)
- Unnecessary escape character: \-. (totalt 50 st)
- Do not access Object.prototype method X from target object. (totalt 31 st)
- Unexpected string concatenation of literals. (totalt 11 st)
- Unnecessary escape character: \/. (totalt 7 st)
- Comparing to itself is potentially pointless. (totalt 5 st)
- Unnecessary escape character: \[. (totalt 4 st)
- Unnecessary escape character: \{. (totalt 4 st)
- Unnecessary X. (totalt 4 st)
- X is assigned to itself. (totalt 3 st)
- Unnecessary escape character: \}. (totalt 3 st)
- Unnecessary escape character: \(. (totalt 3 st)
- Unnecessary escape character: \). (totalt 3 st)
- Unnecessary escape character: \.. (totalt 3 st)
- eval can be harmful. (totalt 2 st)
- Unnecessary escape character: \*. (totalt 2 st)
- Unnecessary escape character: \+. (totalt 2 st)
- Unnecessary escape character: \?. (totalt 2 st)
- Unnecessary escape character: \^. (totalt 2 st)
- Unnecessary escape character: \$. (totalt 2 st)
- Unnecessary escape character: \|. (totalt 2 st)
- The Function constructor is eval. (totalt 2 st)
- Unnecessary escape character: \,. (totalt 1 st)
- X is not modified in this loop. (totalt 1 st)
- Unnecessary escape character: \&. (totalt 1 st)
- Unnecessary escape character: \". (totalt 1 st)
- `content-type=".*javascript.*"` in: #33: cdh-video.js, antal grupperade fel: 27 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #33: cdh-video.js, antal fel: 1804 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 999 st)
- Expected X and instead saw X. (totalt 654 st)
- Unnecessary escape character: \-. (totalt 50 st)
- Do not access Object.prototype method X from target object. (totalt 31 st)
- Unexpected string concatenation of literals. (totalt 11 st)
- Unnecessary escape character: \/. (totalt 7 st)
- Comparing to itself is potentially pointless. (totalt 5 st)
- Unnecessary escape character: \[. (totalt 4 st)
- Unnecessary escape character: \{. (totalt 4 st)
- Unnecessary X. (totalt 4 st)
- X is assigned to itself. (totalt 3 st)
- Unnecessary escape character: \}. (totalt 3 st)
- Unnecessary escape character: \(. (totalt 3 st)
- Unnecessary escape character: \). (totalt 3 st)
- Unnecessary escape character: \.. (totalt 3 st)
- eval can be harmful. (totalt 2 st)
- Unnecessary escape character: \*. (totalt 2 st)
- Unnecessary escape character: \+. (totalt 2 st)
- Unnecessary escape character: \?. (totalt 2 st)
- Unnecessary escape character: \^. (totalt 2 st)
- Unnecessary escape character: \$. (totalt 2 st)
- Unnecessary escape character: \|. (totalt 2 st)
- The Function constructor is eval. (totalt 2 st)
- Unnecessary escape character: \,. (totalt 1 st)
- X is not modified in this loop. (totalt 1 st)
- Unnecessary escape character: \&. (totalt 1 st)
- Unnecessary escape character: \". (totalt 1 st)