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.54 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: 6 ( 3.80 betyg )
- `< script src="...">` in: #1: Webbsida , antal fel: 107 ( 1.00 betyg )
- X is defined but never used. (totalt 62 st)
- Unexpected console statement. (totalt 18 st)
- X is assigned a value but never used. (totalt 15 st)
- X is not defined. (totalt 10 st)
- Definition for rule X was not found. (totalt 1 st)
- Parsing error: Unexpected token : (totalt 1 st)
- `< script>` in: #60: bc-v4.min.html, antal grupperade fel: 1 ( 4.80 betyg )
- `< script>` in: #60: bc-v4.min.html, antal fel: 1 ( 4.80 betyg )
- X is defined but never used. (totalt 1 st)
- `content-type=".*javascript.*"` in: #34: configuration.j, antal grupperade fel: 1 ( 4.80 betyg )
- `content-type=".*javascript.*"` in: #34: configuration.j, antal fel: 6 ( 3.80 betyg )
- X is not defined. (totalt 6 st)
- `content-type=".*javascript.*"` in: #35: cc.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #35: cc.js, antal fel: 34 ( 1.00 betyg )
- X is not defined. (totalt 15 st)
- X is defined but never used. (totalt 12 st)
- X is assigned a value but never used. (totalt 6 st)
- Unexpected console statement. (totalt 1 st)
- `content-type=".*javascript.*"` in: #36: gtm.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #36: gtm.js, antal fel: 558 ( 1.00 betyg )
- X is defined but never used. (totalt 435 st)
- X is assigned a value but never used. (totalt 89 st)
- X is not defined. (totalt 32 st)
- Unexpected console statement. (totalt 2 st)
- `content-type=".*javascript.*"` in: #37: cdreport.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #37: cdreport.js, antal fel: 562 ( 1.00 betyg )
- X is defined but never used. (totalt 435 st)
- X is assigned a value but never used. (totalt 89 st)
- X is not defined. (totalt 36 st)
- Unexpected console statement. (totalt 2 st)
- `content-type=".*javascript.*"` in: #68: container-1WNEN, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #68: container-1WNEN, antal fel: 759 ( 1.00 betyg )
- X is defined but never used. (totalt 497 st)
- X is not defined. (totalt 143 st)
- X is assigned a value but never used. (totalt 101 st)
- Unexpected console statement. (totalt 18 st)
- `content-type=".*javascript.*"` in: #71: raygun.min.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #71: raygun.min.js, antal fel: 823 ( 1.00 betyg )
- X is defined but never used. (totalt 548 st)
- X is not defined. (totalt 156 st)
- X is assigned a value but never used. (totalt 101 st)
- Unexpected console statement. (totalt 18 st)
- `content-type=".*javascript.*"` in: #74: Hyphenopoly.js, antal grupperade fel: 5 ( 4.00 betyg )
- `content-type=".*javascript.*"` in: #74: Hyphenopoly.js, antal fel: 824 ( 1.00 betyg )
- X is defined but never used. (totalt 548 st)
- X is not defined. (totalt 156 st)
- X is assigned a value but never used. (totalt 101 st)
- Unexpected console statement. (totalt 18 st)
- Parsing error: Unexpected token (totalt 1 st)
- `content-type=".*javascript.*"` in: #77: sdk.js, antal grupperade fel: 5 ( 4.00 betyg )
- `content-type=".*javascript.*"` in: #77: sdk.js, antal fel: 824 ( 1.00 betyg )
- X is defined but never used. (totalt 548 st)
- X is not defined. (totalt 156 st)
- X is assigned a value but never used. (totalt 101 st)
- Unexpected console statement. (totalt 18 st)
- Parsing error: Unexpected token (totalt 1 st)
- `content-type=".*javascript.*"` in: #78: recaptcha--sv.j, antal grupperade fel: 5 ( 4.00 betyg )
- `content-type=".*javascript.*"` in: #78: recaptcha--sv.j, antal fel: 924 ( 1.00 betyg )
- X is defined but never used. (totalt 626 st)
- X is not defined. (totalt 173 st)
- X is assigned a value but never used. (totalt 103 st)
- Unexpected console statement. (totalt 21 st)
- Parsing error: Unexpected token (totalt 1 st)
- `content-type=".*javascript.*"` in: #80: sdk.js, antal grupperade fel: 6 ( 3.80 betyg )
- `content-type=".*javascript.*"` in: #80: sdk.js, antal fel: 925 ( 1.00 betyg )
- X is defined but never used. (totalt 626 st)
- X is not defined. (totalt 173 st)
- X is assigned a value but never used. (totalt 103 st)
- Unexpected console statement. (totalt 21 st)
- Parsing error: Unexpected token (totalt 1 st)
- Parsing error: X in strict mode (totalt 1 st)
- `content-type=".*javascript.*"` in: #87: js, antal grupperade fel: 6 ( 3.80 betyg )
- `content-type=".*javascript.*"` in: #87: js, antal fel: 1379 ( 1.00 betyg )
- X is defined but never used. (totalt 986 st)
- X is not defined. (totalt 185 st)
- X is assigned a value but never used. (totalt 185 st)
- Unexpected console statement. (totalt 21 st)
- Parsing error: Unexpected token (totalt 1 st)
- Parsing error: X in strict mode (totalt 1 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: 20 ( 1.00 betyg )
- `< script src="...">` in: #1: Webbsida , antal fel: 1202 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 733 st)
- Expected X and instead saw X. (totalt 425 st)
- Do not access Object.prototype method X from target object. (totalt 7 st)
- Unnecessary escape character: \/. (totalt 6 st)
- Unnecessary escape character: \-. (totalt 5 st)
- X is not modified in this loop. (totalt 4 st)
- Unnecessary X. (totalt 3 st)
- Unnecessary escape character: \[. (totalt 3 st)
- Unnecessary escape character: \{. (totalt 2 st)
- Comparing to itself is potentially pointless. (totalt 2 st)
- X is assigned to itself. (totalt 2 st)
- The Function constructor is eval. (totalt 2 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)
- Definition for rule X was not found. (totalt 1 st)
- Unnecessary escape character: \(. (totalt 1 st)
- Unnecessary escape character: \). (totalt 1 st)
- Parsing error: Unexpected token : (totalt 1 st)
- `< script>` in: #60: bc-v4.min.html, antal grupperade fel: 2 ( 4.60 betyg )
- `< script>` in: #60: 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: #35: cc.js, antal grupperade fel: 6 ( 3.80 betyg )
- `content-type=".*javascript.*"` in: #35: cc.js, antal fel: 347 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 306 st)
- Expected X and instead saw X. (totalt 36 st)
- Script URL is a form of eval. (totalt 2 st)
- Unnecessary escape character: \< . (totalt 1 st)
- Unnecessary escape character: \>. (totalt 1 st)
- Unnecessary escape character: \[. (totalt 1 st)
- `content-type=".*javascript.*"` in: #36: gtm.js, antal grupperade fel: 13 ( 2.40 betyg )
- `content-type=".*javascript.*"` in: #36: gtm.js, antal fel: 1587 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1125 st)
- Expected X and instead saw X. (totalt 240 st)
- Unnecessary escape character: \/. (totalt 114 st)
- Do not access Object.prototype method X from target object. (totalt 93 st)
- Script URL is a form of eval. (totalt 3 st)
- X is not modified in this loop. (totalt 3 st)
- X is assigned to itself. (totalt 3 st)
- Unnecessary escape character: \< . (totalt 1 st)
- Unnecessary escape character: \>. (totalt 1 st)
- Unnecessary escape character: \[. (totalt 1 st)
- eval can be harmful. (totalt 1 st)
- Comparing to itself is potentially pointless. (totalt 1 st)
- Unnecessary X. (totalt 1 st)
- `content-type=".*javascript.*"` in: #37: cdreport.js, antal grupperade fel: 13 ( 2.40 betyg )
- `content-type=".*javascript.*"` in: #37: cdreport.js, antal fel: 1587 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1125 st)
- Expected X and instead saw X. (totalt 240 st)
- Unnecessary escape character: \/. (totalt 114 st)
- Do not access Object.prototype method X from target object. (totalt 93 st)
- Script URL is a form of eval. (totalt 3 st)
- X is not modified in this loop. (totalt 3 st)
- X is assigned to itself. (totalt 3 st)
- Unnecessary escape character: \< . (totalt 1 st)
- Unnecessary escape character: \>. (totalt 1 st)
- Unnecessary escape character: \[. (totalt 1 st)
- eval can be harmful. (totalt 1 st)
- Comparing to itself is potentially pointless. (totalt 1 st)
- Unnecessary X. (totalt 1 st)
- `content-type=".*javascript.*"` in: #68: container-1WNEN, antal grupperade fel: 14 ( 2.20 betyg )
- `content-type=".*javascript.*"` in: #68: container-1WNEN, antal fel: 1687 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1125 st)
- Expected X and instead saw X. (totalt 254 st)
- Unnecessary escape character: \/. (totalt 193 st)
- Do not access Object.prototype method X from target object. (totalt 98 st)
- Script URL is a form of eval. (totalt 3 st)
- X is not modified in this loop. (totalt 3 st)
- X is assigned to itself. (totalt 3 st)
- Unnecessary X. (totalt 2 st)
- Unnecessary escape character: \< . (totalt 1 st)
- Unnecessary escape character: \>. (totalt 1 st)
- Unnecessary escape character: \[. (totalt 1 st)
- eval can be harmful. (totalt 1 st)
- Comparing to itself is potentially pointless. (totalt 1 st)
- Unnecessary escape character: \.. (totalt 1 st)
- `content-type=".*javascript.*"` in: #71: raygun.min.js, antal grupperade fel: 17 ( 1.60 betyg )
- `content-type=".*javascript.*"` in: #71: raygun.min.js, antal fel: 2025 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1359 st)
- Expected X and instead saw X. (totalt 339 st)
- Unnecessary escape character: \/. (totalt 193 st)
- Do not access Object.prototype method X from target object. (totalt 110 st)
- X is assigned to itself. (totalt 4 st)
- Script URL is a form of eval. (totalt 3 st)
- X is not modified in this loop. (totalt 3 st)
- Unnecessary X. (totalt 3 st)
- Unnecessary escape character: \[. (totalt 2 st)
- Unnecessary escape character: \.. (totalt 2 st)
- Unnecessary escape character: \< . (totalt 1 st)
- Unnecessary escape character: \>. (totalt 1 st)
- eval can be harmful. (totalt 1 st)
- Comparing to itself is potentially pointless. (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: #74: Hyphenopoly.js, antal grupperade fel: 18 ( 1.40 betyg )
- `content-type=".*javascript.*"` in: #74: Hyphenopoly.js, antal fel: 2026 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1359 st)
- Expected X and instead saw X. (totalt 339 st)
- Unnecessary escape character: \/. (totalt 193 st)
- Do not access Object.prototype method X from target object. (totalt 110 st)
- X is assigned to itself. (totalt 4 st)
- Script URL is a form of eval. (totalt 3 st)
- X is not modified in this loop. (totalt 3 st)
- Unnecessary X. (totalt 3 st)
- Unnecessary escape character: \[. (totalt 2 st)
- Unnecessary escape character: \.. (totalt 2 st)
- Unnecessary escape character: \< . (totalt 1 st)
- Unnecessary escape character: \>. (totalt 1 st)
- eval can be harmful. (totalt 1 st)
- Comparing to itself is potentially pointless. (totalt 1 st)
- Unnecessary escape character: \-. (totalt 1 st)
- Unnecessary escape character: \^. (totalt 1 st)
- Unnecessary escape character: \). (totalt 1 st)
- Parsing error: Unexpected token (totalt 1 st)
- `content-type=".*javascript.*"` in: #77: sdk.js, antal grupperade fel: 18 ( 1.40 betyg )
- `content-type=".*javascript.*"` in: #77: sdk.js, antal fel: 2033 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1362 st)
- Expected X and instead saw X. (totalt 339 st)
- Unnecessary escape character: \/. (totalt 197 st)
- Do not access Object.prototype method X from target object. (totalt 110 st)
- X is assigned to itself. (totalt 4 st)
- Script URL is a form of eval. (totalt 3 st)
- X is not modified in this loop. (totalt 3 st)
- Unnecessary X. (totalt 3 st)
- Unnecessary escape character: \[. (totalt 2 st)
- Unnecessary escape character: \.. (totalt 2 st)
- Unnecessary escape character: \< . (totalt 1 st)
- Unnecessary escape character: \>. (totalt 1 st)
- eval can be harmful. (totalt 1 st)
- Comparing to itself is potentially pointless. (totalt 1 st)
- Unnecessary escape character: \-. (totalt 1 st)
- Unnecessary escape character: \^. (totalt 1 st)
- Unnecessary escape character: \). (totalt 1 st)
- Parsing error: Unexpected token (totalt 1 st)
- `content-type=".*javascript.*"` in: #78: recaptcha--sv.j, antal grupperade fel: 22 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #78: recaptcha--sv.j, antal fel: 4298 ( 1.00 betyg )
- Expected X and instead saw X. (totalt 1980 st)
- Expected an assignment or function call and instead saw an expression. (totalt 1936 st)
- Unnecessary escape character: \/. (totalt 206 st)
- Do not access Object.prototype method X from target object. (totalt 114 st)
- X is assigned to itself. (totalt 10 st)
- Unnecessary escape character: \). (totalt 6 st)
- Comparing to itself is potentially pointless. (totalt 5 st)
- Unnecessary escape character: \.. (totalt 5 st)
- X is not modified in this loop. (totalt 4 st)
- Unnecessary X. (totalt 4 st)
- Unnecessary escape character: \-. (totalt 4 st)
- Unnecessary escape character: \^. (totalt 4 st)
- Unnecessary escape character: \?. (totalt 4 st)
- Unnecessary escape character: \[. (totalt 3 st)
- Script URL is a form of eval. (totalt 3 st)
- eval can be harmful. (totalt 3 st)
- Unnecessary escape character: \(. (totalt 2 st)
- Unnecessary escape character: \< . (totalt 1 st)
- Unnecessary escape character: \>. (totalt 1 st)
- Parsing error: Unexpected token (totalt 1 st)
- Unnecessary escape character: \+. (totalt 1 st)
- Unnecessary escape character: \{. (totalt 1 st)
- `content-type=".*javascript.*"` in: #80: sdk.js, antal grupperade fel: 23 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #80: sdk.js, antal fel: 4299 ( 1.00 betyg )
- Expected X and instead saw X. (totalt 1980 st)
- Expected an assignment or function call and instead saw an expression. (totalt 1936 st)
- Unnecessary escape character: \/. (totalt 206 st)
- Do not access Object.prototype method X from target object. (totalt 114 st)
- X is assigned to itself. (totalt 10 st)
- Unnecessary escape character: \). (totalt 6 st)
- Comparing to itself is potentially pointless. (totalt 5 st)
- Unnecessary escape character: \.. (totalt 5 st)
- X is not modified in this loop. (totalt 4 st)
- Unnecessary X. (totalt 4 st)
- Unnecessary escape character: \-. (totalt 4 st)
- Unnecessary escape character: \^. (totalt 4 st)
- Unnecessary escape character: \?. (totalt 4 st)
- Unnecessary escape character: \[. (totalt 3 st)
- Script URL is a form of eval. (totalt 3 st)
- eval can be harmful. (totalt 3 st)
- Unnecessary escape character: \(. (totalt 2 st)
- Unnecessary escape character: \< . (totalt 1 st)
- Unnecessary escape character: \>. (totalt 1 st)
- Parsing error: Unexpected token (totalt 1 st)
- Unnecessary escape character: \+. (totalt 1 st)
- Unnecessary escape character: \{. (totalt 1 st)
- Parsing error: X in strict mode (totalt 1 st)
- `content-type=".*javascript.*"` in: #87: js, antal grupperade fel: 24 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #87: js, antal fel: 5726 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 3043 st)
- Expected X and instead saw X. (totalt 2199 st)
- Unnecessary escape character: \/. (totalt 209 st)
- Do not access Object.prototype method X from target object. (totalt 201 st)
- X is assigned to itself. (totalt 13 st)
- X is not modified in this loop. (totalt 8 st)
- Comparing to itself is potentially pointless. (totalt 6 st)
- Unnecessary escape character: \). (totalt 6 st)
- Unnecessary escape character: \.. (totalt 5 st)
- Unnecessary escape character: \?. (totalt 5 st)
- Script URL is a form of eval. (totalt 4 st)
- Unnecessary X. (totalt 4 st)
- Unnecessary escape character: \-. (totalt 4 st)
- Unnecessary escape character: \^. (totalt 4 st)
- Unnecessary escape character: \[. (totalt 3 st)
- eval can be harmful. (totalt 3 st)
- Unnecessary escape character: \(. (totalt 2 st)
- Unnecessary escape character: \< . (totalt 1 st)
- Unnecessary escape character: \>. (totalt 1 st)
- Parsing error: Unexpected token (totalt 1 st)
- Unnecessary escape character: \+. (totalt 1 st)
- Unnecessary escape character: \{. (totalt 1 st)
- Parsing error: X in strict mode (totalt 1 st)
- Unnecessary escape character: \}. (totalt 1 st)