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.86 av 5
- JS är dålig.
Webbstandard
- `< script>` in: #1: Webbsida , antal grupperade fel: 1 ( 4.80 betyg )
- `< script>` in: #1: Webbsida , antal fel: 1 ( 4.80 betyg )
- Parsing error: Unexpected token : (totalt 1 st)
- `< script src="...">` in: #1: Webbsida , antal grupperade fel: 4 ( 4.20 betyg )
- `< script src="...">` in: #1: Webbsida , antal fel: 41 ( 1.00 betyg )
- X is defined but never used. (totalt 26 st)
- X is not defined. (totalt 8 st)
- Unexpected console statement. (totalt 6 st)
- X is assigned a value but never used. (totalt 1 st)
- `< script>` in: #19: bc-v4.min.html, antal grupperade fel: 1 ( 4.80 betyg )
- `< script>` in: #19: bc-v4.min.html, antal fel: 1 ( 4.80 betyg )
- X is defined but never used. (totalt 1 st)
- `< script>` in: #25: sw-iframe.html, antal grupperade fel: 1 ( 4.80 betyg )
- `< script>` in: #25: sw-iframe.html, antal fel: 2 ( 4.60 betyg )
- X is defined but never used. (totalt 2 st)
- `content-type=".*javascript.*"` in: #2: uc.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #2: uc.js, antal fel: 47 ( 1.00 betyg )
- X is defined but never used. (totalt 20 st)
- X is assigned a value but never used. (totalt 15 st)
- Unexpected console statement. (totalt 11 st)
- X is not defined. (totalt 1 st)
- `content-type=".*javascript.*"` in: #9: gtm.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #9: gtm.js, antal fel: 574 ( 1.00 betyg )
- X is defined but never used. (totalt 436 st)
- X is assigned a value but never used. (totalt 108 st)
- X is not defined. (totalt 19 st)
- Unexpected console statement. (totalt 11 st)
- `content-type=".*javascript.*"` in: #10: polyfills-40559, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #10: polyfills-40559, antal fel: 640 ( 1.00 betyg )
- X is defined but never used. (totalt 500 st)
- X is assigned a value but never used. (totalt 108 st)
- X is not defined. (totalt 21 st)
- Unexpected console statement. (totalt 11 st)
- `content-type=".*javascript.*"` in: #17: uc.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #17: uc.js, antal fel: 687 ( 1.00 betyg )
- X is defined but never used. (totalt 520 st)
- X is assigned a value but never used. (totalt 123 st)
- Unexpected console statement. (totalt 22 st)
- X is not defined. (totalt 22 st)
- `content-type=".*javascript.*"` in: #18: analytics.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #18: analytics.js, antal fel: 717 ( 1.00 betyg )
- X is defined but never used. (totalt 547 st)
- X is assigned a value but never used. (totalt 123 st)
- X is not defined. (totalt 25 st)
- Unexpected console statement. (totalt 22 st)
- `content-type=".*javascript.*"` in: #20: cc.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #20: cc.js, antal fel: 745 ( 1.00 betyg )
- X is defined but never used. (totalt 559 st)
- X is assigned a value but never used. (totalt 129 st)
- X is not defined. (totalt 34 st)
- Unexpected console statement. (totalt 23 st)
Integritet & säkerhet
- `< script>` in: #1: Webbsida , antal grupperade fel: 1 ( 4.80 betyg )
- `< script>` in: #1: Webbsida , antal fel: 1 ( 4.80 betyg )
- Parsing error: Unexpected token : (totalt 1 st)
- `< script src="...">` in: #1: Webbsida , antal grupperade fel: 8 ( 3.40 betyg )
- `< script src="...">` in: #1: Webbsida , antal fel: 561 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 356 st)
- Expected X and instead saw X. (totalt 197 st)
- Unnecessary escape character: \/. (totalt 3 st)
- Do not access Object.prototype method X from target object. (totalt 1 st)
- Unnecessary X. (totalt 1 st)
- Comparing to itself is potentially pointless. (totalt 1 st)
- X is assigned to itself. (totalt 1 st)
- eval can be harmful. (totalt 1 st)
- `< script>` in: #19: bc-v4.min.html, antal grupperade fel: 2 ( 4.60 betyg )
- `< script>` in: #19: 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)
- `< script>` in: #25: sw-iframe.html, antal grupperade fel: 2 ( 4.60 betyg )
- `< script>` in: #25: sw-iframe.html, antal fel: 14 ( 2.20 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 11 st)
- Expected X and instead saw X. (totalt 3 st)
- `content-type=".*javascript.*"` in: #2: uc.js, antal grupperade fel: 6 ( 3.80 betyg )
- `content-type=".*javascript.*"` in: #2: uc.js, antal fel: 352 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 241 st)
- Expected X and instead saw X. (totalt 102 st)
- Unnecessary escape character: \-. (totalt 4 st)
- Unnecessary escape character: \/. (totalt 2 st)
- Unnecessary escape character: \[. (totalt 2 st)
- Unnecessary X. (totalt 1 st)
- `content-type=".*javascript.*"` in: #9: gtm.js, antal grupperade fel: 14 ( 2.20 betyg )
- `content-type=".*javascript.*"` in: #9: gtm.js, antal fel: 1788 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1301 st)
- Expected X and instead saw X. (totalt 358 st)
- Do not access Object.prototype method X from target object. (totalt 99 st)
- Unnecessary escape character: \/. (totalt 8 st)
- X is not modified in this loop. (totalt 7 st)
- Unnecessary escape character: \-. (totalt 4 st)
- X is assigned to itself. (totalt 3 st)
- Unnecessary escape character: \[. (totalt 2 st)
- Unnecessary X. (totalt 1 st)
- Comparing to itself is potentially pointless. (totalt 1 st)
- Unnecessary escape character: \?. (totalt 1 st)
- Unnecessary escape character: \.. (totalt 1 st)
- Unexpected string concatenation of literals. (totalt 1 st)
- Script URL is a form of eval. (totalt 1 st)
- `content-type=".*javascript.*"` in: #10: polyfills-40559, antal grupperade fel: 15 ( 2.00 betyg )
- `content-type=".*javascript.*"` in: #10: polyfills-40559, antal fel: 2382 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1538 st)
- Expected X and instead saw X. (totalt 697 st)
- Do not access Object.prototype method X from target object. (totalt 101 st)
- Unnecessary escape character: \/. (totalt 9 st)
- Comparing to itself is potentially pointless. (totalt 9 st)
- X is not modified in this loop. (totalt 7 st)
- Unnecessary escape character: \-. (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 2 st)
- Script URL is a form of eval. (totalt 2 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: #17: uc.js, antal grupperade fel: 15 ( 2.00 betyg )
- `content-type=".*javascript.*"` in: #17: uc.js, antal fel: 2734 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1779 st)
- Expected X and instead saw X. (totalt 799 st)
- Do not access Object.prototype method X from target object. (totalt 101 st)
- Unnecessary escape character: \/. (totalt 11 st)
- Comparing to itself is potentially pointless. (totalt 9 st)
- Unnecessary escape character: \-. (totalt 8 st)
- X is not modified in this loop. (totalt 7 st)
- Unnecessary X. (totalt 4 st)
- Unnecessary escape character: \[. (totalt 4 st)
- The Function constructor is eval. (totalt 4 st)
- X is assigned to itself. (totalt 3 st)
- Script URL is a form of eval. (totalt 2 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: #18: analytics.js, antal grupperade fel: 15 ( 2.00 betyg )
- `content-type=".*javascript.*"` in: #18: analytics.js, antal fel: 3164 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 2013 st)
- Expected X and instead saw X. (totalt 977 st)
- Do not access Object.prototype method X from target object. (totalt 113 st)
- Unnecessary escape character: \/. (totalt 13 st)
- Comparing to itself is potentially pointless. (totalt 10 st)
- Unnecessary escape character: \-. (totalt 8 st)
- X is not modified in this loop. (totalt 7 st)
- Unnecessary escape character: \[. (totalt 6 st)
- Unnecessary X. (totalt 5 st)
- The Function constructor is eval. (totalt 4 st)
- X is assigned to itself. (totalt 3 st)
- Script URL is a form of eval. (totalt 2 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: #20: cc.js, antal grupperade fel: 17 ( 1.60 betyg )
- `content-type=".*javascript.*"` in: #20: cc.js, antal fel: 3511 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 2319 st)
- Expected X and instead saw X. (totalt 1013 st)
- Do not access Object.prototype method X from target object. (totalt 113 st)
- Unnecessary escape character: \/. (totalt 13 st)
- Comparing to itself is potentially pointless. (totalt 10 st)
- Unnecessary escape character: \-. (totalt 8 st)
- Unnecessary escape character: \[. (totalt 7 st)
- X is not modified in this loop. (totalt 7 st)
- Unnecessary X. (totalt 5 st)
- Script URL is a form of eval. (totalt 4 st)
- The Function constructor is eval. (totalt 4 st)
- X is assigned to itself. (totalt 3 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)