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.72 av 5
- JS är dålig.
Webbstandard
- `< script>` in: #1: Webbsida , antal grupperade fel: 1 ( 4.80 betyg )
- `< script>` in: #1: Webbsida , antal fel: 2 ( 4.60 betyg )
- X is defined but never used. (totalt 2 st)
- `< script>` in: #70: bc-v4.min.html, antal grupperade fel: 1 ( 4.80 betyg )
- `< script>` in: #70: bc-v4.min.html, antal fel: 1 ( 4.80 betyg )
- X is defined but never used. (totalt 1 st)
- `content-type=".*javascript.*"` in: #6: jquery-1.11.2.m, antal grupperade fel: 2 ( 4.60 betyg )
- `content-type=".*javascript.*"` in: #6: jquery-1.11.2.m, antal fel: 25 ( 1.00 betyg )
- X is defined but never used. (totalt 22 st)
- X is not defined. (totalt 3 st)
- `content-type=".*javascript.*"` in: #7: jquery.validate, antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #7: jquery.validate, antal fel: 32 ( 1.00 betyg )
- X is defined but never used. (totalt 23 st)
- X is not defined. (totalt 6 st)
- Unexpected console statement. (totalt 3 st)
- `content-type=".*javascript.*"` in: #8: jquery.validate, antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #8: jquery.validate, antal fel: 33 ( 1.00 betyg )
- X is defined but never used. (totalt 23 st)
- X is not defined. (totalt 7 st)
- Unexpected console statement. (totalt 3 st)
- `content-type=".*javascript.*"` in: #23: gtm.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #23: gtm.js, antal fel: 540 ( 1.00 betyg )
- X is defined but never used. (totalt 436 st)
- X is assigned a value but never used. (totalt 78 st)
- X is not defined. (totalt 22 st)
- Unexpected console statement. (totalt 4 st)
- `content-type=".*javascript.*"` in: #41: scripts, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #41: scripts, antal fel: 1064 ( 1.00 betyg )
- X is defined but never used. (totalt 472 st)
- X is not defined. (totalt 468 st)
- X is assigned a value but never used. (totalt 86 st)
- Unexpected console statement. (totalt 38 st)
- `content-type=".*javascript.*"` in: #42: youtube.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #42: youtube.js, antal fel: 1081 ( 1.00 betyg )
- X is not defined. (totalt 484 st)
- X is defined but never used. (totalt 473 st)
- X is assigned a value but never used. (totalt 86 st)
- Unexpected console statement. (totalt 38 st)
- `content-type=".*javascript.*"` in: #66: uc.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #66: uc.js, antal fel: 1128 ( 1.00 betyg )
- X is defined but never used. (totalt 493 st)
- X is not defined. (totalt 485 st)
- X is assigned a value but never used. (totalt 101 st)
- Unexpected console statement. (totalt 49 st)
- `content-type=".*javascript.*"` in: #67: js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #67: js, antal fel: 1502 ( 1.00 betyg )
- X is defined but never used. (totalt 804 st)
- X is not defined. (totalt 494 st)
- X is assigned a value but never used. (totalt 155 st)
- Unexpected console statement. (totalt 49 st)
- `content-type=".*javascript.*"` in: #71: cc.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #71: cc.js, antal fel: 1530 ( 1.00 betyg )
- X is defined but never used. (totalt 816 st)
- X is not defined. (totalt 503 st)
- X is assigned a value but never used. (totalt 161 st)
- Unexpected console statement. (totalt 50 st)
Integritet & säkerhet
- `< script>` in: #1: Webbsida , antal grupperade fel: 3 ( 4.40 betyg )
- `< script>` in: #1: Webbsida , antal fel: 3 ( 4.40 betyg )
- Expected X and instead saw X. (totalt 1 st)
- Expected an assignment or function call and instead saw an expression. (totalt 1 st)
- Unnecessary escape character: \/. (totalt 1 st)
- `< script>` in: #70: bc-v4.min.html, antal grupperade fel: 2 ( 4.60 betyg )
- `< script>` in: #70: bc-v4.min.html, 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)
- `content-type=".*javascript.*"` in: #6: jquery-1.11.2.m, antal grupperade fel: 10 ( 3.00 betyg )
- `content-type=".*javascript.*"` in: #6: jquery-1.11.2.m, antal fel: 406 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 253 st)
- Expected X and instead saw X. (totalt 140 st)
- Comparing to itself is potentially pointless. (totalt 3 st)
- Unnecessary escape character: \/. (totalt 3 st)
- X is not modified in this loop. (totalt 2 st)
- Unnecessary X. (totalt 1 st)
- Do not access Object.prototype method X from target object. (totalt 1 st)
- Unnecessary escape character: \[. (totalt 1 st)
- Unnecessary escape character: \.. (totalt 1 st)
- The Function constructor is eval. (totalt 1 st)
- `content-type=".*javascript.*"` in: #7: jquery.validate, antal grupperade fel: 11 ( 2.80 betyg )
- `content-type=".*javascript.*"` in: #7: jquery.validate, antal fel: 480 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 303 st)
- Expected X and instead saw X. (totalt 157 st)
- Unnecessary escape character: \/. (totalt 6 st)
- Comparing to itself is potentially pointless. (totalt 3 st)
- Unnecessary escape character: \[. (totalt 3 st)
- X is not modified in this loop. (totalt 2 st)
- Unnecessary escape character: \-. (totalt 2 st)
- Unnecessary X. (totalt 1 st)
- Do not access Object.prototype method X from target object. (totalt 1 st)
- Unnecessary escape character: \.. (totalt 1 st)
- The Function constructor is eval. (totalt 1 st)
- `content-type=".*javascript.*"` in: #8: jquery.validate, antal grupperade fel: 11 ( 2.80 betyg )
- `content-type=".*javascript.*"` in: #8: jquery.validate, antal fel: 489 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 311 st)
- Expected X and instead saw X. (totalt 157 st)
- Unnecessary escape character: \/. (totalt 6 st)
- Unnecessary escape character: \[. (totalt 4 st)
- Comparing to itself is potentially pointless. (totalt 3 st)
- X is not modified in this loop. (totalt 2 st)
- Unnecessary escape character: \-. (totalt 2 st)
- Unnecessary X. (totalt 1 st)
- Do not access Object.prototype method X from target object. (totalt 1 st)
- Unnecessary escape character: \.. (totalt 1 st)
- The Function constructor is eval. (totalt 1 st)
- `content-type=".*javascript.*"` in: #23: gtm.js, antal grupperade fel: 14 ( 2.20 betyg )
- `content-type=".*javascript.*"` in: #23: gtm.js, antal fel: 1690 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1162 st)
- Expected X and instead saw X. (totalt 360 st)
- Do not access Object.prototype method X from target object. (totalt 92 st)
- Unnecessary escape character: \/. (totalt 52 st)
- X is not modified in this loop. (totalt 5 st)
- Comparing to itself is potentially pointless. (totalt 4 st)
- Unnecessary escape character: \[. (totalt 4 st)
- X is assigned to itself. (totalt 3 st)
- Unnecessary X. (totalt 2 st)
- Unnecessary escape character: \-. (totalt 2 st)
- Unnecessary escape character: \.. (totalt 1 st)
- The Function constructor is eval. (totalt 1 st)
- eval can be harmful. (totalt 1 st)
- Script URL is a form of eval. (totalt 1 st)
- `content-type=".*javascript.*"` in: #41: scripts, antal grupperade fel: 18 ( 1.40 betyg )
- `content-type=".*javascript.*"` in: #41: scripts, antal fel: 2077 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1401 st)
- Expected X and instead saw X. (totalt 494 st)
- Do not access Object.prototype method X from target object. (totalt 97 st)
- Unnecessary escape character: \/. (totalt 53 st)
- Unnecessary escape character: \[. (totalt 5 st)
- X is not modified in this loop. (totalt 5 st)
- Comparing to itself is potentially pointless. (totalt 4 st)
- The Function constructor is eval. (totalt 4 st)
- X is assigned to itself. (totalt 3 st)
- Unnecessary X. (totalt 2 st)
- Unnecessary escape character: \-. (totalt 2 st)
- Unnecessary escape character: \.. (totalt 1 st)
- eval can be harmful. (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)
- Unnecessary escape character: \). (totalt 1 st)
- Unnecessary escape character: \". (totalt 1 st)
- `content-type=".*javascript.*"` in: #42: youtube.js, antal grupperade fel: 18 ( 1.40 betyg )
- `content-type=".*javascript.*"` in: #42: youtube.js, antal fel: 2077 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1401 st)
- Expected X and instead saw X. (totalt 494 st)
- Do not access Object.prototype method X from target object. (totalt 97 st)
- Unnecessary escape character: \/. (totalt 53 st)
- Unnecessary escape character: \[. (totalt 5 st)
- X is not modified in this loop. (totalt 5 st)
- Comparing to itself is potentially pointless. (totalt 4 st)
- The Function constructor is eval. (totalt 4 st)
- X is assigned to itself. (totalt 3 st)
- Unnecessary X. (totalt 2 st)
- Unnecessary escape character: \-. (totalt 2 st)
- Unnecessary escape character: \.. (totalt 1 st)
- eval can be harmful. (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)
- Unnecessary escape character: \). (totalt 1 st)
- Unnecessary escape character: \". (totalt 1 st)
- `content-type=".*javascript.*"` in: #66: uc.js, antal grupperade fel: 18 ( 1.40 betyg )
- `content-type=".*javascript.*"` in: #66: uc.js, antal fel: 2429 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1642 st)
- Expected X and instead saw X. (totalt 596 st)
- Do not access Object.prototype method X from target object. (totalt 97 st)
- Unnecessary escape character: \/. (totalt 55 st)
- Unnecessary escape character: \[. (totalt 7 st)
- Unnecessary escape character: \-. (totalt 6 st)
- X is not modified in this loop. (totalt 5 st)
- Comparing to itself is potentially pointless. (totalt 4 st)
- The Function constructor is eval. (totalt 4 st)
- Unnecessary X. (totalt 3 st)
- X is assigned to itself. (totalt 3 st)
- Unnecessary escape character: \.. (totalt 1 st)
- eval can be harmful. (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)
- Unnecessary escape character: \). (totalt 1 st)
- Unnecessary escape character: \". (totalt 1 st)
- `content-type=".*javascript.*"` in: #67: js, antal grupperade fel: 21 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #67: js, antal fel: 4143 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 2950 st)
- Expected X and instead saw X. (totalt 833 st)
- Do not access Object.prototype method X from target object. (totalt 201 st)
- Unnecessary escape character: \/. (totalt 107 st)
- X is not modified in this loop. (totalt 9 st)
- Unnecessary escape character: \[. (totalt 7 st)
- Unnecessary escape character: \-. (totalt 6 st)
- X is assigned to itself. (totalt 6 st)
- Comparing to itself is potentially pointless. (totalt 5 st)
- The Function constructor is eval. (totalt 4 st)
- Unnecessary X. (totalt 3 st)
- Unnecessary escape character: \.. (totalt 2 st)
- Script URL is a form of eval. (totalt 2 st)
- eval can be harmful. (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)
- Unexpected string concatenation of literals. (totalt 1 st)
- Unnecessary escape character: \}. (totalt 1 st)
- `content-type=".*javascript.*"` in: #71: cc.js, antal grupperade fel: 23 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #71: cc.js, antal fel: 4490 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 3256 st)
- Expected X and instead saw X. (totalt 869 st)
- Do not access Object.prototype method X from target object. (totalt 201 st)
- Unnecessary escape character: \/. (totalt 107 st)
- X is not modified in this loop. (totalt 9 st)
- Unnecessary escape character: \[. (totalt 8 st)
- Unnecessary escape character: \-. (totalt 6 st)
- X is assigned to itself. (totalt 6 st)
- Comparing to itself is potentially pointless. (totalt 5 st)
- The Function constructor is eval. (totalt 4 st)
- Script URL is a form of eval. (totalt 4 st)
- Unnecessary X. (totalt 3 st)
- Unnecessary escape character: \.. (totalt 2 st)
- eval can be harmful. (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)
- Unexpected string concatenation of literals. (totalt 1 st)
- Unnecessary escape character: \}. (totalt 1 st)
- Unnecessary escape character: \< . (totalt 1 st)
- Unnecessary escape character: \>. (totalt 1 st)