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.33 av 5
- JS är dålig.
Webbstandard
- `< script>` in: #1: Webbsida , antal grupperade fel: 3 ( 4.40 betyg )
- `< script>` in: #1: Webbsida , antal fel: 6 ( 3.80 betyg )
- X is not defined. (totalt 3 st)
- X is defined but never used. (totalt 2 st)
- X is assigned a value 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: 67 ( 1.00 betyg )
- X is defined but never used. (totalt 28 st)
- X is not defined. (totalt 21 st)
- Unexpected console statement. (totalt 18 st)
- `< script>` in: #23: cookiesharingif, antal grupperade fel: 3 ( 4.40 betyg )
- `< script>` in: #23: 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: #20: rksk.js, antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #20: rksk.js, antal fel: 98 ( 1.00 betyg )
- X is defined but never used. (totalt 77 st)
- X is not defined. (totalt 11 st)
- Unexpected console statement. (totalt 10 st)
- `content-type=".*javascript.*"` in: #21: search-script.m, antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #21: search-script.m, antal fel: 159 ( 1.00 betyg )
- X is defined but never used. (totalt 104 st)
- Unexpected console statement. (totalt 44 st)
- X is not defined. (totalt 11 st)
- `content-type=".*javascript.*"` in: #35: cdh-player.js, antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #35: cdh-player.js, antal fel: 167 ( 1.00 betyg )
- X is defined but never used. (totalt 107 st)
- Unexpected console statement. (totalt 45 st)
- X is not defined. (totalt 15 st)
- `content-type=".*javascript.*"` in: #36: da.js, antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #36: da.js, antal fel: 168 ( 1.00 betyg )
- X is defined but never used. (totalt 107 st)
- Unexpected console statement. (totalt 45 st)
- X is not defined. (totalt 16 st)
- `content-type=".*javascript.*"` in: #37: jquery-3.1.0.mi, antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #37: jquery-3.1.0.mi, antal fel: 180 ( 1.00 betyg )
- X is defined but never used. (totalt 117 st)
- Unexpected console statement. (totalt 45 st)
- X is not defined. (totalt 18 st)
- `content-type=".*javascript.*"` in: #38: cdhcombo-extern, antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #38: cdhcombo-extern, antal fel: 186 ( 1.00 betyg )
- X is defined but never used. (totalt 118 st)
- Unexpected console statement. (totalt 45 st)
- X is not defined. (totalt 23 st)
- `content-type=".*javascript.*"` in: #39: cdhcombo.js, antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #39: cdhcombo.js, antal fel: 234 ( 1.00 betyg )
- X is defined but never used. (totalt 120 st)
- X is not defined. (totalt 69 st)
- Unexpected console statement. (totalt 45 st)
- `content-type=".*javascript.*"` in: #40: cdh-video.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #40: cdh-video.js, antal fel: 238 ( 1.00 betyg )
- X is defined but never used. (totalt 120 st)
- X is not defined. (totalt 70 st)
- Unexpected console statement. (totalt 45 st)
- X is assigned a value but never used. (totalt 3 st)
Integritet & säkerhet
- `< script src="...">` in: #1: Webbsida , antal grupperade fel: 7 ( 3.60 betyg )
- `< script src="...">` in: #1: Webbsida , antal fel: 164 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 103 st)
- Expected X and instead saw X. (totalt 51 st)
- Do not access Object.prototype method X from target object. (totalt 6 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: #23: cookiesharingif, antal grupperade fel: 2 ( 4.60 betyg )
- `< script>` in: #23: 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: #20: rksk.js, antal grupperade fel: 17 ( 1.60 betyg )
- `content-type=".*javascript.*"` in: #20: rksk.js, antal fel: 1379 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 930 st)
- Expected X and instead saw X. (totalt 397 st)
- Do not access Object.prototype method X from target object. (totalt 14 st)
- Unnecessary escape character: \/. (totalt 6 st)
- Unnecessary escape character: \-. (totalt 5 st)
- Unnecessary escape character: \[. (totalt 5 st)
- X is assigned to itself. (totalt 4 st)
- The Function constructor is eval. (totalt 3 st)
- X is not modified in this loop. (totalt 3 st)
- Comparing to itself is potentially pointless. (totalt 3 st)
- Unnecessary escape character: \^. (totalt 2 st)
- Unnecessary X. (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: #21: search-script.m, antal grupperade fel: 18 ( 1.40 betyg )
- `content-type=".*javascript.*"` in: #21: search-script.m, antal fel: 1802 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1246 st)
- Expected X and instead saw X. (totalt 502 st)
- Do not access Object.prototype method X from target object. (totalt 14 st)
- Unnecessary escape character: \/. (totalt 6 st)
- Unnecessary escape character: \-. (totalt 5 st)
- Unnecessary escape character: \[. (totalt 5 st)
- X is assigned to itself. (totalt 4 st)
- The Function constructor is eval. (totalt 3 st)
- X is not modified in this loop. (totalt 3 st)
- Unnecessary X. (totalt 3 st)
- Comparing to itself is potentially pointless. (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)
- Unnecessary escape character: \&. (totalt 1 st)
- `content-type=".*javascript.*"` in: #35: cdh-player.js, antal grupperade fel: 18 ( 1.40 betyg )
- `content-type=".*javascript.*"` in: #35: cdh-player.js, antal fel: 1816 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1254 st)
- Expected X and instead saw X. (totalt 504 st)
- Do not access Object.prototype method X from target object. (totalt 14 st)
- Unnecessary escape character: \/. (totalt 10 st)
- Unnecessary escape character: \-. (totalt 5 st)
- Unnecessary escape character: \[. (totalt 5 st)
- X is assigned to itself. (totalt 4 st)
- The Function constructor is eval. (totalt 3 st)
- X is not modified in this loop. (totalt 3 st)
- Unnecessary X. (totalt 3 st)
- Comparing to itself is potentially pointless. (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)
- Unnecessary escape character: \&. (totalt 1 st)
- `content-type=".*javascript.*"` in: #36: da.js, antal grupperade fel: 18 ( 1.40 betyg )
- `content-type=".*javascript.*"` in: #36: da.js, antal fel: 1816 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1254 st)
- Expected X and instead saw X. (totalt 504 st)
- Do not access Object.prototype method X from target object. (totalt 14 st)
- Unnecessary escape character: \/. (totalt 10 st)
- Unnecessary escape character: \-. (totalt 5 st)
- Unnecessary escape character: \[. (totalt 5 st)
- X is assigned to itself. (totalt 4 st)
- The Function constructor is eval. (totalt 3 st)
- X is not modified in this loop. (totalt 3 st)
- Unnecessary X. (totalt 3 st)
- Comparing to itself is potentially pointless. (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)
- Unnecessary escape character: \&. (totalt 1 st)
- `content-type=".*javascript.*"` in: #37: jquery-3.1.0.mi, antal grupperade fel: 19 ( 1.20 betyg )
- `content-type=".*javascript.*"` in: #37: jquery-3.1.0.mi, antal fel: 2187 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1480 st)
- Expected X and instead saw X. (totalt 638 st)
- Do not access Object.prototype method X from target object. (totalt 15 st)
- Unnecessary escape character: \/. (totalt 13 st)
- Unnecessary escape character: \[. (totalt 6 st)
- Unnecessary escape character: \-. (totalt 5 st)
- Unnecessary X. (totalt 5 st)
- Comparing to itself is potentially pointless. (totalt 5 st)
- X is assigned to itself. (totalt 5 st)
- The Function constructor is eval. (totalt 3 st)
- X is not modified in this loop. (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)
- Unnecessary escape character: \&. (totalt 1 st)
- Unnecessary escape character: \.. (totalt 1 st)
- `content-type=".*javascript.*"` in: #38: cdhcombo-extern, antal grupperade fel: 20 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #38: cdhcombo-extern, antal fel: 2281 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1527 st)
- Expected X and instead saw X. (totalt 679 st)
- Do not access Object.prototype method X from target object. (totalt 16 st)
- Unnecessary escape character: \/. (totalt 13 st)
- Comparing to itself is potentially pointless. (totalt 8 st)
- Unnecessary escape character: \[. (totalt 6 st)
- Unnecessary escape character: \-. (totalt 5 st)
- Unnecessary X. (totalt 5 st)
- X is assigned to itself. (totalt 5 st)
- The Function constructor is eval. (totalt 4 st)
- X is not modified in this loop. (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)
- Unnecessary escape character: \&. (totalt 1 st)
- Unnecessary escape character: \.. (totalt 1 st)
- Unexpected string concatenation of literals. (totalt 1 st)
- `content-type=".*javascript.*"` in: #39: cdhcombo.js, antal grupperade fel: 22 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #39: cdhcombo.js, antal fel: 2387 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1611 st)
- Expected X and instead saw X. (totalt 692 st)
- Do not access Object.prototype method X from target object. (totalt 16 st)
- Unnecessary escape character: \/. (totalt 13 st)
- Comparing to itself is potentially pointless. (totalt 9 st)
- Unnecessary escape character: \[. (totalt 7 st)
- Unnecessary escape character: \-. (totalt 6 st)
- Unnecessary X. (totalt 5 st)
- X is assigned to itself. (totalt 5 st)
- The Function constructor is eval. (totalt 4 st)
- X is not modified in this loop. (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 2 st)
- Unnecessary escape character: \.. (totalt 2 st)
- Unnecessary escape character: \+. (totalt 1 st)
- Script URL is a form of eval. (totalt 1 st)
- Unnecessary escape character: \&. (totalt 1 st)
- Unexpected string concatenation of literals. (totalt 1 st)
- Unnecessary escape character: \". (totalt 1 st)
- Unnecessary escape character: \}. (totalt 1 st)
- `content-type=".*javascript.*"` in: #40: cdh-video.js, antal grupperade fel: 22 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #40: cdh-video.js, antal fel: 2387 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1611 st)
- Expected X and instead saw X. (totalt 692 st)
- Do not access Object.prototype method X from target object. (totalt 16 st)
- Unnecessary escape character: \/. (totalt 13 st)
- Comparing to itself is potentially pointless. (totalt 9 st)
- Unnecessary escape character: \[. (totalt 7 st)
- Unnecessary escape character: \-. (totalt 6 st)
- Unnecessary X. (totalt 5 st)
- X is assigned to itself. (totalt 5 st)
- The Function constructor is eval. (totalt 4 st)
- X is not modified in this loop. (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 2 st)
- Unnecessary escape character: \.. (totalt 2 st)
- Unnecessary escape character: \+. (totalt 1 st)
- Script URL is a form of eval. (totalt 1 st)
- Unnecessary escape character: \&. (totalt 1 st)
- Unexpected string concatenation of literals. (totalt 1 st)
- Unnecessary escape character: \". (totalt 1 st)
- Unnecessary escape character: \}. (totalt 1 st)