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: 550 ( 1.00 betyg )
- X is defined but never used. (totalt 443 st)
- X is assigned a value but never used. (totalt 79 st)
- X is not defined. (totalt 24 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: 1074 ( 1.00 betyg )
- X is defined but never used. (totalt 479 st)
- X is not defined. (totalt 470 st)
- X is assigned a value but never used. (totalt 87 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: 1091 ( 1.00 betyg )
- X is not defined. (totalt 486 st)
- X is defined but never used. (totalt 480 st)
- X is assigned a value but never used. (totalt 87 st)
- Unexpected console statement. (totalt 38 st)
- `content-type=".*javascript.*"` in: #68: uc.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #68: uc.js, antal fel: 1138 ( 1.00 betyg )
- X is defined but never used. (totalt 500 st)
- X is not defined. (totalt 487 st)
- X is assigned a value but never used. (totalt 102 st)
- Unexpected console statement. (totalt 49 st)
- `content-type=".*javascript.*"` in: #69: js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #69: js, antal fel: 1518 ( 1.00 betyg )
- X is defined but never used. (totalt 817 st)
- X is not defined. (totalt 496 st)
- X is assigned a value but never used. (totalt 156 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: 1546 ( 1.00 betyg )
- X is defined but never used. (totalt 829 st)
- X is not defined. (totalt 505 st)
- X is assigned a value but never used. (totalt 162 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: 1709 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1176 st)
- Expected X and instead saw X. (totalt 365 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: 2096 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1415 st)
- Expected X and instead saw X. (totalt 499 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: 2096 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1415 st)
- Expected X and instead saw X. (totalt 499 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: #68: uc.js, antal grupperade fel: 18 ( 1.40 betyg )
- `content-type=".*javascript.*"` in: #68: uc.js, antal fel: 2448 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1656 st)
- Expected X and instead saw X. (totalt 601 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: #69: js, antal grupperade fel: 21 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #69: js, antal fel: 4203 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 2992 st)
- Expected X and instead saw X. (totalt 851 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: 4551 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 3299 st)
- Expected X and instead saw X. (totalt 887 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)