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.36 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: 1263 ( 1.00 betyg )
- X is not defined. (totalt 706 st)
- X is defined but never used. (totalt 366 st)
- Unexpected console statement. (totalt 106 st)
- X is assigned a value but never used. (totalt 85 st)
- `content-type=".*javascript.*"` in: #19: gtm.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #19: gtm.js, antal fel: 542 ( 1.00 betyg )
- X is defined but never used. (totalt 436 st)
- X is assigned a value but never used. (totalt 86 st)
- X is not defined. (totalt 19 st)
- Unexpected console statement. (totalt 1 st)
- `content-type=".*javascript.*"` in: #21: tracking.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #21: tracking.js, antal fel: 566 ( 1.00 betyg )
- X is defined but never used. (totalt 441 st)
- X is assigned a value but never used. (totalt 88 st)
- X is not defined. (totalt 19 st)
- Unexpected console statement. (totalt 18 st)
- `content-type=".*javascript.*"` in: #22: 0cfd035e.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #22: 0cfd035e.js, antal fel: 593 ( 1.00 betyg )
- X is defined but never used. (totalt 466 st)
- X is assigned a value but never used. (totalt 88 st)
- X is not defined. (totalt 21 st)
- Unexpected console statement. (totalt 18 st)
- `content-type=".*javascript.*"` in: #46: js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #46: js, antal fel: 1036 ( 1.00 betyg )
- X is defined but never used. (totalt 829 st)
- X is assigned a value but never used. (totalt 158 st)
- X is not defined. (totalt 31 st)
- Unexpected console statement. (totalt 18 st)
- `content-type=".*javascript.*"` in: #47: analytics.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #47: analytics.js, antal fel: 1066 ( 1.00 betyg )
- X is defined but never used. (totalt 856 st)
- X is assigned a value but never used. (totalt 158 st)
- X is not defined. (totalt 34 st)
- Unexpected console statement. (totalt 18 st)
- `content-type=".*javascript.*"` in: #50: core.pt5ow5lr.j, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #50: core.pt5ow5lr.j, antal fel: 1090 ( 1.00 betyg )
- X is defined but never used. (totalt 874 st)
- X is assigned a value but never used. (totalt 160 st)
- X is not defined. (totalt 35 st)
- Unexpected console statement. (totalt 21 st)
- `content-type=".*javascript.*"` in: #67: embed.min.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #67: embed.min.js, antal fel: 1104 ( 1.00 betyg )
- X is defined but never used. (totalt 878 st)
- X is assigned a value but never used. (totalt 160 st)
- X is not defined. (totalt 35 st)
- Unexpected console statement. (totalt 31 st)
- `content-type=".*javascript.*"` in: #72: common.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #72: common.js, antal fel: 1116 ( 1.00 betyg )
- X is defined but never used. (totalt 889 st)
- X is assigned a value but never used. (totalt 160 st)
- X is not defined. (totalt 36 st)
- Unexpected console statement. (totalt 31 st)
- `content-type=".*javascript.*"` in: #73: util.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #73: util.js, antal fel: 1135 ( 1.00 betyg )
- X is defined but never used. (totalt 904 st)
- X is assigned a value but never used. (totalt 162 st)
- X is not defined. (totalt 37 st)
- Unexpected console statement. (totalt 32 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: 22 ( 1.00 betyg )
- `< script src="...">` in: #1: Webbsida , antal fel: 5600 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 3777 st)
- Expected X and instead saw X. (totalt 1430 st)
- X is assigned to itself. (totalt 222 st)
- Do not access Object.prototype method X from target object. (totalt 85 st)
- Unnecessary X. (totalt 20 st)
- Unnecessary escape character: \/. (totalt 14 st)
- Unexpected string concatenation of literals. (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 4 st)
- The Function constructor is eval. (totalt 3 st)
- Unsafe usage of ThrowStatement. (totalt 3 st)
- Unnecessary escape character: \-. (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)
- Async arrow function has no X expression. (totalt 1 st)
- Unnecessary escape character: \^. (totalt 1 st)
- eval can be harmful. (totalt 1 st)
- Unnecessary escape character: \?. (totalt 1 st)
- Unnecessary escape character: \(. (totalt 1 st)
- `< script>` in: #51: sm.25.html, antal grupperade fel: 2 ( 4.60 betyg )
- `< script>` in: #51: sm.25.html, antal fel: 6 ( 3.80 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 3 st)
- Expected X and instead saw X. (totalt 3 st)
- `content-type=".*javascript.*"` in: #19: gtm.js, antal grupperade fel: 10 ( 3.00 betyg )
- `content-type=".*javascript.*"` in: #19: gtm.js, antal fel: 1283 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 912 st)
- Expected X and instead saw X. (totalt 245 st)
- Do not access Object.prototype method X from target object. (totalt 107 st)
- X is not modified in this loop. (totalt 7 st)
- Unnecessary escape character: \/. (totalt 5 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 X. (totalt 1 st)
- Script URL is a form of eval. (totalt 1 st)
- `content-type=".*javascript.*"` in: #21: tracking.js, antal grupperade fel: 11 ( 2.80 betyg )
- `content-type=".*javascript.*"` in: #21: tracking.js, antal fel: 1680 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1163 st)
- Expected X and instead saw X. (totalt 388 st)
- Do not access Object.prototype method X from target object. (totalt 107 st)
- X is not modified in this loop. (totalt 7 st)
- Unnecessary escape character: \/. (totalt 5 st)
- X is assigned to itself. (totalt 3 st)
- Comparing to itself is potentially pointless. (totalt 3 st)
- eval can be harmful. (totalt 1 st)
- Unnecessary X. (totalt 1 st)
- Script URL is a form of eval. (totalt 1 st)
- The Function constructor is eval. (totalt 1 st)
- `content-type=".*javascript.*"` in: #22: 0cfd035e.js, antal grupperade fel: 25 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #22: 0cfd035e.js, antal fel: 2569 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1418 st)
- Expected X and instead saw X. (totalt 987 st)
- Do not access Object.prototype method X from target object. (totalt 108 st)
- Unnecessary escape character: \/. (totalt 19 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)
- Comparing to itself is potentially pointless. (totalt 3 st)
- Unnecessary X. (totalt 3 st)
- Unnecessary escape character: \|. (totalt 2 st)
- eval can be harmful. (totalt 1 st)
- Script URL is a form of eval. (totalt 1 st)
- The Function constructor is 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)
- 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)
- Unnecessary escape character: \.. (totalt 1 st)
- Unnecessary escape character: \^. (totalt 1 st)
- Unnecessary escape character: \$. (totalt 1 st)
- `content-type=".*javascript.*"` in: #46: js, antal grupperade fel: 25 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #46: js, antal fel: 4081 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 2582 st)
- Expected X and instead saw X. (totalt 1224 st)
- Do not access Object.prototype method X from target object. (totalt 205 st)
- Unnecessary escape character: \/. (totalt 22 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 4 st)
- Unnecessary escape character: \". (totalt 4 st)
- Unnecessary X. (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)
- eval can be harmful. (totalt 1 st)
- The Function constructor is 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)
- 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)
- Unnecessary escape character: \$. (totalt 1 st)
- `content-type=".*javascript.*"` in: #47: analytics.js, antal grupperade fel: 25 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #47: analytics.js, antal fel: 4511 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 2816 st)
- Expected X and instead saw X. (totalt 1402 st)
- Do not access Object.prototype method X from target object. (totalt 217 st)
- Unnecessary escape character: \/. (totalt 24 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 5 st)
- Unnecessary X. (totalt 4 st)
- Unnecessary escape character: \". (totalt 4 st)
- Unnecessary escape character: \[. (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)
- eval can be harmful. (totalt 1 st)
- The Function constructor is 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)
- 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)
- `content-type=".*javascript.*"` in: #50: core.pt5ow5lr.j, antal grupperade fel: 26 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #50: core.pt5ow5lr.j, antal fel: 4828 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 2977 st)
- Expected X and instead saw X. (totalt 1543 st)
- Do not access Object.prototype method X from target object. (totalt 218 st)
- Unnecessary escape character: \/. (totalt 27 st)
- X is not modified in this loop. (totalt 11 st)
- X is assigned to itself. (totalt 8 st)
- Comparing to itself is potentially pointless. (totalt 5 st)
- Script URL is a form of eval. (totalt 5 st)
- Unnecessary X. (totalt 4 st)
- Unnecessary escape character: \[. (totalt 4 st)
- Unnecessary escape character: \". (totalt 4 st)
- Unnecessary escape character: \.. (totalt 3 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)
- eval can be harmful. (totalt 1 st)
- The Function constructor is 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)
- Unnecessary escape character: \+. (totalt 1 st)
- Unnecessary escape character: \$. (totalt 1 st)
- Unnecessary escape character: \:. (totalt 1 st)
- `content-type=".*javascript.*"` in: #67: embed.min.js, antal grupperade fel: 27 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #67: embed.min.js, antal fel: 4862 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 3008 st)
- Expected X and instead saw X. (totalt 1545 st)
- Do not access Object.prototype method X from target object. (totalt 218 st)
- Unnecessary escape character: \/. (totalt 27 st)
- X is not modified in this loop. (totalt 11 st)
- X is assigned to itself. (totalt 8 st)
- Comparing to itself is potentially pointless. (totalt 5 st)
- Script URL is a form of eval. (totalt 5 st)
- Unnecessary X. (totalt 4 st)
- Unnecessary escape character: \[. (totalt 4 st)
- Unnecessary escape character: \". (totalt 4 st)
- Unnecessary escape character: \.. (totalt 3 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)
- eval can be harmful. (totalt 1 st)
- The Function constructor is 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)
- Unnecessary escape character: \+. (totalt 1 st)
- Unnecessary escape character: \$. (totalt 1 st)
- Unnecessary escape character: \:. (totalt 1 st)
- Async arrow function has no X expression. (totalt 1 st)
- `content-type=".*javascript.*"` in: #72: common.js, antal grupperade fel: 29 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #72: common.js, antal fel: 5327 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 3351 st)
- Expected X and instead saw X. (totalt 1656 st)
- Do not access Object.prototype method X from target object. (totalt 220 st)
- Unnecessary escape character: \/. (totalt 28 st)
- X is not modified in this loop. (totalt 11 st)
- X is assigned to itself. (totalt 8 st)
- Unnecessary escape character: \?. (totalt 6 st)
- Comparing to itself is potentially pointless. (totalt 5 st)
- Unnecessary X. (totalt 5 st)
- Script URL is a form of eval. (totalt 5 st)
- Unnecessary escape character: \[. (totalt 4 st)
- Unnecessary escape character: \". (totalt 4 st)
- Unnecessary escape character: \.. (totalt 3 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)
- Unexpected string concatenation of literals. (totalt 2 st)
- eval can be harmful. (totalt 1 st)
- The Function constructor is 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)
- Unnecessary escape character: \+. (totalt 1 st)
- Unnecessary escape character: \$. (totalt 1 st)
- Unnecessary escape character: \:. (totalt 1 st)
- Async arrow function has no X expression. (totalt 1 st)
- Async method X has no X expression. (totalt 1 st)
- `content-type=".*javascript.*"` in: #73: util.js, antal grupperade fel: 29 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #73: util.js, antal fel: 6590 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 3911 st)
- Expected X and instead saw X. (totalt 2335 st)
- Do not access Object.prototype method X from target object. (totalt 230 st)
- Unnecessary escape character: \/. (totalt 28 st)
- X is assigned to itself. (totalt 14 st)
- X is not modified in this loop. (totalt 13 st)
- Unnecessary X. (totalt 7 st)
- Unnecessary escape character: \?. (totalt 6 st)
- Comparing to itself is potentially pointless. (totalt 5 st)
- Script URL is a form of eval. (totalt 5 st)
- Unnecessary escape character: \[. (totalt 4 st)
- Unnecessary escape character: \". (totalt 4 st)
- Unnecessary escape character: \.. (totalt 3 st)
- Unnecessary escape character: \$. (totalt 3 st)
- The Function constructor is 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)
- Unexpected string concatenation of literals. (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)
- Async arrow function has no X expression. (totalt 1 st)
- Async method X has no X expression. (totalt 1 st)