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.31 av 5
- JS är dålig.
Webbstandard
- `< script>` in: #13: , antal grupperade fel: 1 ( 4.80 betyg )
- `< script>` in: #13: , antal fel: 1 ( 4.80 betyg )
- Parsing error: Unexpected token : (totalt 1 st)
- `< script src="...">` in: #13: , antal grupperade fel: 3 ( 4.40 betyg )
- `< script src="...">` in: #13: , antal fel: 41 ( 1.00 betyg )
- X is defined but never used. (totalt 22 st)
- X is not defined. (totalt 18 st)
- X is assigned a value but never used. (totalt 1 st)
- `content-type=".*javascript.*"` in: #51: gtm.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #51: gtm.js, antal fel: 564 ( 1.00 betyg )
- X is defined but never used. (totalt 456 st)
- X is assigned a value but never used. (totalt 82 st)
- X is not defined. (totalt 25 st)
- Unexpected console statement. (totalt 1 st)
- `content-type=".*javascript.*"` in: #59: js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #59: js, antal fel: 1029 ( 1.00 betyg )
- X is defined but never used. (totalt 827 st)
- X is assigned a value but never used. (totalt 164 st)
- X is not defined. (totalt 37 st)
- Unexpected console statement. (totalt 1 st)
- `content-type=".*javascript.*"` in: #60: analytics.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #60: analytics.js, antal fel: 1059 ( 1.00 betyg )
- X is defined but never used. (totalt 854 st)
- X is assigned a value but never used. (totalt 164 st)
- X is not defined. (totalt 40 st)
- Unexpected console statement. (totalt 1 st)
- `content-type=".*javascript.*"` in: #66: asikkala.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #66: asikkala.js, antal fel: 1182 ( 1.00 betyg )
- X is defined but never used. (totalt 855 st)
- X is assigned a value but never used. (totalt 165 st)
- X is not defined. (totalt 161 st)
- Unexpected console statement. (totalt 1 st)
- `content-type=".*javascript.*"` in: #75: modernizr.min.j, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #75: modernizr.min.j, antal fel: 1185 ( 1.00 betyg )
- X is defined but never used. (totalt 856 st)
- X is assigned a value but never used. (totalt 165 st)
- X is not defined. (totalt 163 st)
- Unexpected console statement. (totalt 1 st)
- `content-type=".*javascript.*"` in: #77: enquire.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #77: enquire.js, antal fel: 1185 ( 1.00 betyg )
- X is defined but never used. (totalt 856 st)
- X is assigned a value but never used. (totalt 165 st)
- X is not defined. (totalt 163 st)
- Unexpected console statement. (totalt 1 st)
- `content-type=".*javascript.*"` in: #78: savvior.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #78: savvior.js, antal fel: 1188 ( 1.00 betyg )
- X is defined but never used. (totalt 859 st)
- X is assigned a value but never used. (totalt 165 st)
- X is not defined. (totalt 163 st)
- Unexpected console statement. (totalt 1 st)
- `content-type=".*javascript.*"` in: #79: linkify-with-ht, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #79: linkify-with-ht, antal fel: 1190 ( 1.00 betyg )
- X is defined but never used. (totalt 859 st)
- X is assigned a value but never used. (totalt 166 st)
- X is not defined. (totalt 164 st)
- Unexpected console statement. (totalt 1 st)
- `content-type=".*javascript.*"` in: #80: timeago.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #80: timeago.js, antal fel: 1197 ( 1.00 betyg )
- X is defined but never used. (totalt 859 st)
- X is not defined. (totalt 168 st)
- X is assigned a value but never used. (totalt 166 st)
- Unexpected console statement. (totalt 4 st)
Integritet & säkerhet
- `< script>` in: #13: , antal grupperade fel: 1 ( 4.80 betyg )
- `< script>` in: #13: , antal fel: 1 ( 4.80 betyg )
- Parsing error: Unexpected token : (totalt 1 st)
- `< script src="...">` in: #13: , antal grupperade fel: 7 ( 3.60 betyg )
- `< script src="...">` in: #13: , antal fel: 454 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 267 st)
- Expected X and instead saw X. (totalt 179 st)
- Unnecessary escape character: \/. (totalt 3 st)
- Do not access Object.prototype method X from target object. (totalt 2 st)
- Unnecessary X. (totalt 1 st)
- Comparing to itself is potentially pointless. (totalt 1 st)
- X is assigned to itself. (totalt 1 st)
- `content-type=".*javascript.*"` in: #51: gtm.js, antal grupperade fel: 9 ( 3.20 betyg )
- `content-type=".*javascript.*"` in: #51: gtm.js, antal fel: 1220 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 859 st)
- Expected X and instead saw X. (totalt 239 st)
- Do not access Object.prototype method X from target object. (totalt 94 st)
- Unnecessary escape character: \/. (totalt 15 st)
- X is not modified in this loop. (totalt 7 st)
- X is assigned to itself. (totalt 3 st)
- Comparing to itself is potentially pointless. (totalt 1 st)
- Unnecessary X. (totalt 1 st)
- Script URL is a form of eval. (totalt 1 st)
- `content-type=".*javascript.*"` in: #59: js, antal grupperade fel: 11 ( 2.80 betyg )
- `content-type=".*javascript.*"` in: #59: js, antal fel: 2681 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1987 st)
- Expected X and instead saw X. (totalt 471 st)
- Do not access Object.prototype method X from target object. (totalt 181 st)
- Unnecessary escape character: \/. (totalt 18 st)
- X is not modified in this loop. (totalt 11 st)
- X is assigned to itself. (totalt 6 st)
- Comparing to itself is potentially pointless. (totalt 2 st)
- Script URL is a form of eval. (totalt 2 st)
- Unnecessary X. (totalt 1 st)
- Unnecessary escape character: \?. (totalt 1 st)
- Unnecessary escape character: \}. (totalt 1 st)
- `content-type=".*javascript.*"` in: #60: analytics.js, antal grupperade fel: 12 ( 2.60 betyg )
- `content-type=".*javascript.*"` in: #60: analytics.js, antal fel: 3111 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 2221 st)
- Expected X and instead saw X. (totalt 649 st)
- Do not access Object.prototype method X from target object. (totalt 193 st)
- Unnecessary escape character: \/. (totalt 20 st)
- X is not modified in this loop. (totalt 11 st)
- X is assigned to itself. (totalt 6 st)
- Comparing to itself is potentially pointless. (totalt 3 st)
- Unnecessary X. (totalt 2 st)
- Script URL is a form of eval. (totalt 2 st)
- Unnecessary escape character: \[. (totalt 2 st)
- Unnecessary escape character: \?. (totalt 1 st)
- Unnecessary escape character: \}. (totalt 1 st)
- `content-type=".*javascript.*"` in: #66: asikkala.js, antal grupperade fel: 18 ( 1.40 betyg )
- `content-type=".*javascript.*"` in: #66: asikkala.js, antal fel: 3156 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 2238 st)
- Expected X and instead saw X. (totalt 667 st)
- Do not access Object.prototype method X from target object. (totalt 193 st)
- Unnecessary escape character: \/. (totalt 20 st)
- X is not modified in this loop. (totalt 11 st)
- X is assigned to itself. (totalt 6 st)
- Unexpected string concatenation of literals. (totalt 4 st)
- Comparing to itself is potentially pointless. (totalt 3 st)
- Unnecessary X. (totalt 2 st)
- Script URL is a form of eval. (totalt 2 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)
- 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)
- `content-type=".*javascript.*"` in: #75: modernizr.min.j, antal grupperade fel: 18 ( 1.40 betyg )
- `content-type=".*javascript.*"` in: #75: modernizr.min.j, antal fel: 3176 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 2248 st)
- Expected X and instead saw X. (totalt 674 st)
- Do not access Object.prototype method X from target object. (totalt 194 st)
- Unnecessary escape character: \/. (totalt 20 st)
- X is not modified in this loop. (totalt 11 st)
- X is assigned to itself. (totalt 6 st)
- Unnecessary X. (totalt 4 st)
- Unexpected string concatenation of literals. (totalt 4 st)
- Comparing to itself is potentially pointless. (totalt 3 st)
- Script URL is a form of eval. (totalt 2 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)
- 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)
- `content-type=".*javascript.*"` in: #77: enquire.js, antal grupperade fel: 18 ( 1.40 betyg )
- `content-type=".*javascript.*"` in: #77: enquire.js, antal fel: 3182 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 2254 st)
- Expected X and instead saw X. (totalt 674 st)
- Do not access Object.prototype method X from target object. (totalt 194 st)
- Unnecessary escape character: \/. (totalt 20 st)
- X is not modified in this loop. (totalt 11 st)
- X is assigned to itself. (totalt 6 st)
- Unnecessary X. (totalt 4 st)
- Unexpected string concatenation of literals. (totalt 4 st)
- Comparing to itself is potentially pointless. (totalt 3 st)
- Script URL is a form of eval. (totalt 2 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)
- 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)
- `content-type=".*javascript.*"` in: #78: savvior.js, antal grupperade fel: 18 ( 1.40 betyg )
- `content-type=".*javascript.*"` in: #78: savvior.js, antal fel: 3191 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 2263 st)
- Expected X and instead saw X. (totalt 674 st)
- Do not access Object.prototype method X from target object. (totalt 194 st)
- Unnecessary escape character: \/. (totalt 20 st)
- X is not modified in this loop. (totalt 11 st)
- X is assigned to itself. (totalt 6 st)
- Unnecessary X. (totalt 4 st)
- Unexpected string concatenation of literals. (totalt 4 st)
- Comparing to itself is potentially pointless. (totalt 3 st)
- Script URL is a form of eval. (totalt 2 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)
- 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)
- `content-type=".*javascript.*"` in: #79: linkify-with-ht, antal grupperade fel: 18 ( 1.40 betyg )
- `content-type=".*javascript.*"` in: #79: linkify-with-ht, antal fel: 3264 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 2330 st)
- Expected X and instead saw X. (totalt 680 st)
- Do not access Object.prototype method X from target object. (totalt 194 st)
- Unnecessary escape character: \/. (totalt 20 st)
- X is not modified in this loop. (totalt 11 st)
- X is assigned to itself. (totalt 6 st)
- Unnecessary X. (totalt 4 st)
- Unexpected string concatenation of literals. (totalt 4 st)
- Comparing to itself is potentially pointless. (totalt 3 st)
- Script URL is a form of eval. (totalt 2 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)
- 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)
- `content-type=".*javascript.*"` in: #80: timeago.js, antal grupperade fel: 20 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #80: timeago.js, antal fel: 3269 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 2330 st)
- Expected X and instead saw X. (totalt 680 st)
- Do not access Object.prototype method X from target object. (totalt 194 st)
- Unnecessary escape character: \/. (totalt 20 st)
- X is not modified in this loop. (totalt 11 st)
- X is assigned to itself. (totalt 6 st)
- Unnecessary X. (totalt 4 st)
- Unexpected string concatenation of literals. (totalt 4 st)
- Comparing to itself is potentially pointless. (totalt 3 st)
- Script URL is a form of eval. (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 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)
- eval can be harmful. (totalt 1 st)