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.37 av 5
- JS är dålig.
Webbstandard
- `< script>` in: #1: Webbsida , antal grupperade fel: 1 ( 4.80 betyg )
- `< script>` in: #1: Webbsida , antal fel: 4 ( 4.20 betyg )
- X is not defined. (totalt 4 st)
- `< script src="...">` in: #1: Webbsida , antal grupperade fel: 4 ( 4.20 betyg )
- `< script src="...">` in: #1: Webbsida , antal fel: 387 ( 1.00 betyg )
- X is defined but never used. (totalt 323 st)
- X is assigned a value but never used. (totalt 54 st)
- X is not defined. (totalt 9 st)
- Parsing error: Identifier X has already been declared (totalt 1 st)
- `< script>` in: #49: sw-iframe.html, antal grupperade fel: 1 ( 4.80 betyg )
- `< script>` in: #49: sw-iframe.html, antal fel: 2 ( 4.60 betyg )
- X is defined but never used. (totalt 2 st)
- `content-type=".*javascript.*"` in: #28: gtm.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #28: gtm.js, antal fel: 457 ( 1.00 betyg )
- X is defined but never used. (totalt 353 st)
- X is assigned a value but never used. (totalt 92 st)
- X is not defined. (totalt 11 st)
- Unexpected console statement. (totalt 1 st)
- `content-type=".*javascript.*"` in: #29: fbevents.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #29: fbevents.js, antal fel: 1104 ( 1.00 betyg )
- X is defined but never used. (totalt 982 st)
- X is assigned a value but never used. (totalt 93 st)
- X is not defined. (totalt 17 st)
- Unexpected console statement. (totalt 12 st)
- `content-type=".*javascript.*"` in: #30: 247627616801291, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #30: 247627616801291, antal fel: 1139 ( 1.00 betyg )
- X is defined but never used. (totalt 1007 st)
- X is assigned a value but never used. (totalt 94 st)
- Unexpected console statement. (totalt 20 st)
- X is not defined. (totalt 18 st)
- `content-type=".*javascript.*"` in: #32: script.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #32: script.js, antal fel: 1187 ( 1.00 betyg )
- X is defined but never used. (totalt 1050 st)
- X is assigned a value but never used. (totalt 94 st)
- Unexpected console statement. (totalt 23 st)
- X is not defined. (totalt 20 st)
- `content-type=".*javascript.*"` in: #33: js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #33: js, antal fel: 1577 ( 1.00 betyg )
- X is defined but never used. (totalt 1375 st)
- X is assigned a value but never used. (totalt 146 st)
- X is not defined. (totalt 33 st)
- Unexpected console statement. (totalt 23 st)
- `content-type=".*javascript.*"` in: #34: insight.min.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #34: insight.min.js, antal fel: 1602 ( 1.00 betyg )
- X is defined but never used. (totalt 1396 st)
- X is assigned a value but never used. (totalt 146 st)
- X is not defined. (totalt 34 st)
- Unexpected console statement. (totalt 26 st)
- `content-type=".*javascript.*"` in: #36: banner.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #36: banner.js, antal fel: 1683 ( 1.00 betyg )
- X is defined but never used. (totalt 1440 st)
- X is assigned a value but never used. (totalt 146 st)
- X is not defined. (totalt 63 st)
- Unexpected console statement. (totalt 34 st)
Integritet & säkerhet
- `< script>` in: #1: Webbsida , antal grupperade fel: 2 ( 4.60 betyg )
- `< script>` in: #1: Webbsida , antal fel: 3 ( 4.40 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 2 st)
- Expected X and instead saw X. (totalt 1 st)
- `< script src="...">` in: #1: Webbsida , antal grupperade fel: 13 ( 2.40 betyg )
- `< script src="...">` in: #1: Webbsida , antal fel: 1665 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1307 st)
- Expected X and instead saw X. (totalt 237 st)
- Do not access Object.prototype method X from target object. (totalt 104 st)
- X is not modified in this loop. (totalt 4 st)
- Unnecessary escape character: \/. (totalt 3 st)
- X is assigned to itself. (totalt 3 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)
- Unnecessary escape character: \}. (totalt 1 st)
- Parsing error: Identifier X has already been declared (totalt 1 st)
- `< script>` in: #49: sw-iframe.html, antal grupperade fel: 2 ( 4.60 betyg )
- `< script>` in: #49: 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: #28: gtm.js, antal grupperade fel: 13 ( 2.40 betyg )
- `content-type=".*javascript.*"` in: #28: gtm.js, antal fel: 1513 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1087 st)
- Expected X and instead saw X. (totalt 224 st)
- Do not access Object.prototype method X from target object. (totalt 97 st)
- Unnecessary escape character: \/. (totalt 92 st)
- X is not modified in this loop. (totalt 3 st)
- X is assigned to itself. (totalt 3 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)
- Unexpected string concatenation of literals. (totalt 1 st)
- Unnecessary X. (totalt 1 st)
- Script URL is a form of eval. (totalt 1 st)
- `content-type=".*javascript.*"` in: #29: fbevents.js, antal grupperade fel: 33 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #29: fbevents.js, antal fel: 2896 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1700 st)
- Expected X and instead saw X. (totalt 824 st)
- Unnecessary escape character: \/. (totalt 101 st)
- Do not access Object.prototype method X from target object. (totalt 100 st)
- Unsafe usage of ThrowStatement. (totalt 16 st)
- Unnecessary escape character: \-. (totalt 16 st)
- X is assigned to itself. (totalt 11 st)
- Unnecessary escape character: \?. (totalt 10 st)
- Unnecessary escape character: \+. (totalt 9 st)
- Unnecessary escape character: \^. (totalt 9 st)
- Unnecessary escape character: \{. (totalt 9 st)
- Unnecessary escape character: \}. (totalt 9 st)
- Unnecessary escape character: \'. (totalt 8 st)
- Unnecessary escape character: \$. (totalt 7 st)
- Unnecessary escape character: \*. (totalt 7 st)
- Unnecessary escape character: \|. (totalt 7 st)
- Unnecessary escape character: \.. (totalt 6 st)
- Unnecessary escape character: \=. (totalt 6 st)
- Unexpected string concatenation of literals. (totalt 4 st)
- Unnecessary escape character: \[. (totalt 4 st)
- Unnecessary escape character: \". (totalt 4 st)
- Unnecessary escape character: \,. (totalt 4 st)
- X is not modified in this loop. (totalt 3 st)
- Comparing to itself is potentially pointless. (totalt 3 st)
- Unnecessary escape character: \). (totalt 3 st)
- Unnecessary escape character: \(. (totalt 3 st)
- Unnecessary X. (totalt 2 st)
- Script URL is a form of eval. (totalt 2 st)
- The Function constructor is eval. (totalt 2 st)
- Unsafe usage of ReturnStatement. (totalt 2 st)
- Unnecessary escape character: \@. (totalt 2 st)
- Unnecessary escape character: \`. (totalt 2 st)
- eval can be harmful. (totalt 1 st)
- `content-type=".*javascript.*"` in: #30: 247627616801291, antal grupperade fel: 33 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #30: 247627616801291, antal fel: 2958 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1749 st)
- Expected X and instead saw X. (totalt 837 st)
- Unnecessary escape character: \/. (totalt 101 st)
- Do not access Object.prototype method X from target object. (totalt 100 st)
- Unsafe usage of ThrowStatement. (totalt 16 st)
- Unnecessary escape character: \-. (totalt 16 st)
- X is assigned to itself. (totalt 11 st)
- Unnecessary escape character: \?. (totalt 10 st)
- Unnecessary escape character: \+. (totalt 9 st)
- Unnecessary escape character: \^. (totalt 9 st)
- Unnecessary escape character: \{. (totalt 9 st)
- Unnecessary escape character: \}. (totalt 9 st)
- Unnecessary escape character: \'. (totalt 8 st)
- Unnecessary escape character: \$. (totalt 7 st)
- Unnecessary escape character: \*. (totalt 7 st)
- Unnecessary escape character: \|. (totalt 7 st)
- Unnecessary escape character: \.. (totalt 6 st)
- Unnecessary escape character: \=. (totalt 6 st)
- Unexpected string concatenation of literals. (totalt 4 st)
- Unnecessary escape character: \[. (totalt 4 st)
- Unnecessary escape character: \". (totalt 4 st)
- Unnecessary escape character: \,. (totalt 4 st)
- X is not modified in this loop. (totalt 3 st)
- Comparing to itself is potentially pointless. (totalt 3 st)
- Unnecessary escape character: \). (totalt 3 st)
- Unnecessary escape character: \(. (totalt 3 st)
- Unnecessary X. (totalt 2 st)
- Script URL is a form of eval. (totalt 2 st)
- The Function constructor is eval. (totalt 2 st)
- Unsafe usage of ReturnStatement. (totalt 2 st)
- Unnecessary escape character: \@. (totalt 2 st)
- Unnecessary escape character: \`. (totalt 2 st)
- eval can be harmful. (totalt 1 st)
- `content-type=".*javascript.*"` in: #32: script.js, antal grupperade fel: 34 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #32: script.js, antal fel: 3268 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1966 st)
- Expected X and instead saw X. (totalt 903 st)
- Do not access Object.prototype method X from target object. (totalt 110 st)
- Unnecessary escape character: \/. (totalt 101 st)
- Unsafe usage of ThrowStatement. (totalt 18 st)
- Unnecessary escape character: \-. (totalt 16 st)
- X is assigned to itself. (totalt 15 st)
- Unnecessary escape character: \?. (totalt 11 st)
- Unnecessary escape character: \+. (totalt 9 st)
- Unnecessary escape character: \^. (totalt 9 st)
- Unnecessary escape character: \{. (totalt 9 st)
- Unnecessary escape character: \}. (totalt 9 st)
- Unnecessary escape character: \'. (totalt 8 st)
- Unnecessary escape character: \$. (totalt 7 st)
- Unnecessary escape character: \*. (totalt 7 st)
- Unnecessary escape character: \=. (totalt 7 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 5 st)
- Unexpected string concatenation of literals. (totalt 4 st)
- Unnecessary escape character: \[. (totalt 4 st)
- Unnecessary escape character: \". (totalt 4 st)
- The Function constructor is eval. (totalt 4 st)
- Unnecessary escape character: \,. (totalt 4 st)
- Unnecessary X. (totalt 3 st)
- Unnecessary escape character: \). (totalt 3 st)
- Unnecessary escape character: \(. (totalt 3 st)
- Script URL is a form of eval. (totalt 2 st)
- Unsafe usage of ReturnStatement. (totalt 2 st)
- Unnecessary escape character: \@. (totalt 2 st)
- Unnecessary escape character: \`. (totalt 2 st)
- Unnecessary escape character: \&. (totalt 2 st)
- eval can be harmful. (totalt 1 st)
- `content-type=".*javascript.*"` in: #33: js, antal grupperade fel: 34 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #33: js, antal fel: 4933 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 3274 st)
- Expected X and instead saw X. (totalt 1140 st)
- Do not access Object.prototype method X from target object. (totalt 214 st)
- Unnecessary escape character: \/. (totalt 104 st)
- X is assigned to itself. (totalt 18 st)
- Unsafe usage of ThrowStatement. (totalt 18 st)
- Unnecessary escape character: \-. (totalt 16 st)
- Unnecessary escape character: \?. (totalt 12 st)
- Unnecessary escape character: \}. (totalt 10 st)
- X is not modified in this loop. (totalt 9 st)
- Unnecessary escape character: \+. (totalt 9 st)
- Unnecessary escape character: \^. (totalt 9 st)
- Unnecessary escape character: \{. (totalt 9 st)
- Unnecessary escape character: \'. (totalt 8 st)
- Unnecessary escape character: \.. (totalt 7 st)
- Unnecessary escape character: \$. (totalt 7 st)
- Unnecessary escape character: \*. (totalt 7 st)
- Unnecessary escape character: \=. (totalt 7 st)
- Unnecessary escape character: \|. (totalt 7 st)
- Comparing to itself is potentially pointless. (totalt 6 st)
- Unexpected string concatenation of literals. (totalt 5 st)
- Unnecessary escape character: \[. (totalt 4 st)
- Unnecessary escape character: \". (totalt 4 st)
- The Function constructor is eval. (totalt 4 st)
- Unnecessary escape character: \,. (totalt 4 st)
- Unnecessary X. (totalt 3 st)
- Script URL is a form of eval. (totalt 3 st)
- Unnecessary escape character: \). (totalt 3 st)
- Unnecessary escape character: \(. (totalt 3 st)
- Unsafe usage of ReturnStatement. (totalt 2 st)
- Unnecessary escape character: \@. (totalt 2 st)
- Unnecessary escape character: \`. (totalt 2 st)
- Unnecessary escape character: \&. (totalt 2 st)
- eval can be harmful. (totalt 1 st)
- `content-type=".*javascript.*"` in: #34: insight.min.js, antal grupperade fel: 34 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #34: insight.min.js, antal fel: 5091 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 3362 st)
- Expected X and instead saw X. (totalt 1199 st)
- Do not access Object.prototype method X from target object. (totalt 215 st)
- Unnecessary escape character: \/. (totalt 105 st)
- Unsafe usage of ThrowStatement. (totalt 19 st)
- X is assigned to itself. (totalt 18 st)
- Unnecessary escape character: \-. (totalt 16 st)
- Unnecessary escape character: \?. (totalt 12 st)
- Unnecessary escape character: \+. (totalt 10 st)
- Unnecessary escape character: \}. (totalt 10 st)
- X is not modified in this loop. (totalt 9 st)
- Unnecessary escape character: \^. (totalt 9 st)
- Unnecessary escape character: \{. (totalt 9 st)
- Unnecessary escape character: \.. (totalt 8 st)
- Unnecessary escape character: \'. (totalt 8 st)
- Unnecessary escape character: \[. (totalt 7 st)
- Unnecessary escape character: \$. (totalt 7 st)
- Unnecessary escape character: \*. (totalt 7 st)
- Unnecessary escape character: \=. (totalt 7 st)
- Unnecessary escape character: \|. (totalt 7 st)
- Comparing to itself is potentially pointless. (totalt 6 st)
- Unexpected string concatenation of literals. (totalt 5 st)
- Unnecessary X. (totalt 4 st)
- Unnecessary escape character: \". (totalt 4 st)
- The Function constructor is eval. (totalt 4 st)
- Unnecessary escape character: \). (totalt 4 st)
- Unnecessary escape character: \(. (totalt 4 st)
- Unnecessary escape character: \,. (totalt 4 st)
- Script URL is a form of eval. (totalt 3 st)
- Unsafe usage of ReturnStatement. (totalt 2 st)
- Unnecessary escape character: \@. (totalt 2 st)
- Unnecessary escape character: \`. (totalt 2 st)
- Unnecessary escape character: \&. (totalt 2 st)
- eval can be harmful. (totalt 1 st)
- `content-type=".*javascript.*"` in: #36: banner.js, antal grupperade fel: 34 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #36: banner.js, antal fel: 5388 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 3577 st)
- Expected X and instead saw X. (totalt 1263 st)
- Do not access Object.prototype method X from target object. (totalt 217 st)
- Unnecessary escape character: \/. (totalt 105 st)
- X is assigned to itself. (totalt 21 st)
- Unsafe usage of ThrowStatement. (totalt 21 st)
- Unnecessary escape character: \-. (totalt 16 st)
- Unnecessary escape character: \?. (totalt 12 st)
- X is not modified in this loop. (totalt 11 st)
- Comparing to itself is potentially pointless. (totalt 10 st)
- Unnecessary escape character: \+. (totalt 10 st)
- Unnecessary escape character: \}. (totalt 10 st)
- Unnecessary escape character: \^. (totalt 9 st)
- Unnecessary escape character: \{. (totalt 9 st)
- Unnecessary escape character: \.. (totalt 8 st)
- Unnecessary escape character: \[. (totalt 8 st)
- Unnecessary escape character: \'. (totalt 8 st)
- Unnecessary escape character: \$. (totalt 7 st)
- Unnecessary escape character: \*. (totalt 7 st)
- Unnecessary escape character: \=. (totalt 7 st)
- Unnecessary escape character: \|. (totalt 7 st)
- The Function constructor is eval. (totalt 7 st)
- Unexpected string concatenation of literals. (totalt 5 st)
- Unnecessary X. (totalt 5 st)
- Unnecessary escape character: \". (totalt 4 st)
- Unnecessary escape character: \). (totalt 4 st)
- Unnecessary escape character: \(. (totalt 4 st)
- Unnecessary escape character: \,. (totalt 4 st)
- Script URL is a form of eval. (totalt 3 st)
- Unsafe usage of ReturnStatement. (totalt 2 st)
- Unnecessary escape character: \@. (totalt 2 st)
- Unnecessary escape character: \`. (totalt 2 st)
- Unnecessary escape character: \&. (totalt 2 st)
- eval can be harmful. (totalt 1 st)