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: 3.44 av 5
- JS är ok.
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: 412 ( 1.00 betyg )
- X is defined but never used. (totalt 379 st)
- X is not defined. (totalt 14 st)
- Unexpected console statement. (totalt 13 st)
- X is assigned a value but never used. (totalt 6 st)
- `< script>` in: #21: 911144975, antal grupperade fel: 1 ( 4.80 betyg )
- `< script>` in: #21: 911144975, antal fel: 1 ( 4.80 betyg )
- X is not defined. (totalt 1 st)
- `content-type=".*javascript.*"` in: #20: gtm.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #20: gtm.js, antal fel: 554 ( 1.00 betyg )
- X is defined but never used. (totalt 451 st)
- X is assigned a value but never used. (totalt 81 st)
- X is not defined. (totalt 21 st)
- Unexpected console statement. (totalt 1 st)
- `content-type=".*javascript.*"` in: #26: d4d7309ea937480, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #26: d4d7309ea937480, antal fel: 622 ( 1.00 betyg )
- X is defined but never used. (totalt 480 st)
- X is assigned a value but never used. (totalt 106 st)
- X is not defined. (totalt 31 st)
- Unexpected console statement. (totalt 5 st)
- `content-type=".*javascript.*"` in: #27: js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #27: js, antal fel: 1028 ( 1.00 betyg )
- X is defined but never used. (totalt 809 st)
- X is assigned a value but never used. (totalt 172 st)
- X is not defined. (totalt 42 st)
- Unexpected console statement. (totalt 5 st)
- `content-type=".*javascript.*"` in: #28: analytics.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #28: analytics.js, antal fel: 1058 ( 1.00 betyg )
- X is defined but never used. (totalt 836 st)
- X is assigned a value but never used. (totalt 172 st)
- X is not defined. (totalt 45 st)
- Unexpected console statement. (totalt 5 st)
- `content-type=".*javascript.*"` in: #29: api.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #29: api.js, antal fel: 1078 ( 1.00 betyg )
- X is defined but never used. (totalt 853 st)
- X is assigned a value but never used. (totalt 173 st)
- X is not defined. (totalt 45 st)
- Unexpected console statement. (totalt 7 st)
- `content-type=".*javascript.*"` in: #32: v1, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #32: v1, antal fel: 1312 ( 1.00 betyg )
- X is defined but never used. (totalt 861 st)
- X is not defined. (totalt 270 st)
- X is assigned a value but never used. (totalt 173 st)
- Unexpected console statement. (totalt 8 st)
- `content-type=".*javascript.*"` in: #34: v1, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #34: v1, antal fel: 1563 ( 1.00 betyg )
- X is defined but never used. (totalt 870 st)
- X is not defined. (totalt 511 st)
- X is assigned a value but never used. (totalt 173 st)
- Unexpected console statement. (totalt 9 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: 17 ( 1.60 betyg )
- `< script src="...">` in: #1: Webbsida , antal fel: 1824 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1163 st)
- Expected X and instead saw X. (totalt 610 st)
- Comparing to itself is potentially pointless. (totalt 13 st)
- Unnecessary X. (totalt 9 st)
- The Function constructor is eval. (totalt 7 st)
- X is not modified in this loop. (totalt 5 st)
- Do not access Object.prototype method X from target object. (totalt 3 st)
- Unnecessary escape character: \/. (totalt 3 st)
- X is assigned to itself. (totalt 2 st)
- Unnecessary escape character: \[. (totalt 2 st)
- Unnecessary escape character: \+. (totalt 1 st)
- Unnecessary escape character: \.. (totalt 1 st)
- Unsafe usage of ThrowStatement. (totalt 1 st)
- Unexpected string concatenation of literals. (totalt 1 st)
- Unnecessary escape character: \-. (totalt 1 st)
- Unnecessary escape character: \^. (totalt 1 st)
- Script URL is a form of eval. (totalt 1 st)
- `content-type=".*javascript.*"` in: #20: gtm.js, antal grupperade fel: 9 ( 3.20 betyg )
- `content-type=".*javascript.*"` in: #20: gtm.js, antal fel: 1202 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 848 st)
- Expected X and instead saw X. (totalt 236 st)
- Do not access Object.prototype method X from target object. (totalt 95 st)
- Unnecessary escape character: \/. (totalt 10 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: #26: d4d7309ea937480, antal grupperade fel: 10 ( 3.00 betyg )
- `content-type=".*javascript.*"` in: #26: d4d7309ea937480, antal fel: 1599 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 858 st)
- Unnecessary escape character: \/. (totalt 394 st)
- Expected X and instead saw X. (totalt 238 st)
- Do not access Object.prototype method X from target object. (totalt 95 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)
- Unnecessary escape character: \[. (totalt 1 st)
- `content-type=".*javascript.*"` in: #27: js, antal grupperade fel: 14 ( 2.20 betyg )
- `content-type=".*javascript.*"` in: #27: js, antal fel: 3210 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 2124 st)
- Expected X and instead saw X. (totalt 470 st)
- Unnecessary escape character: \/. (totalt 400 st)
- Do not access Object.prototype method X from target object. (totalt 189 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)
- Unnecessary escape character: \.. (totalt 1 st)
- Unexpected string concatenation of literals. (totalt 1 st)
- Unnecessary escape character: \}. (totalt 1 st)
- `content-type=".*javascript.*"` in: #28: analytics.js, antal grupperade fel: 14 ( 2.20 betyg )
- `content-type=".*javascript.*"` in: #28: analytics.js, antal fel: 3640 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 2358 st)
- Expected X and instead saw X. (totalt 648 st)
- Unnecessary escape character: \/. (totalt 402 st)
- Do not access Object.prototype method X from target object. (totalt 201 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 escape character: \[. (totalt 3 st)
- Unnecessary X. (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)
- Unnecessary escape character: \}. (totalt 1 st)
- `content-type=".*javascript.*"` in: #29: api.js, antal grupperade fel: 15 ( 2.00 betyg )
- `content-type=".*javascript.*"` in: #29: api.js, antal fel: 3862 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 2510 st)
- Expected X and instead saw X. (totalt 710 st)
- Unnecessary escape character: \/. (totalt 402 st)
- Do not access Object.prototype method X from target object. (totalt 201 st)
- X is not modified in this loop. (totalt 12 st)
- Unsafe usage of ThrowStatement. (totalt 7 st)
- X is assigned to itself. (totalt 6 st)
- Comparing to itself is potentially pointless. (totalt 3 st)
- Unnecessary escape character: \[. (totalt 3 st)
- Unnecessary X. (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)
- Unnecessary escape character: \}. (totalt 1 st)
- `content-type=".*javascript.*"` in: #32: v1, antal grupperade fel: 16 ( 1.80 betyg )
- `content-type=".*javascript.*"` in: #32: v1, antal fel: 4048 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 2640 st)
- Expected X and instead saw X. (totalt 758 st)
- Unnecessary escape character: \/. (totalt 402 st)
- Do not access Object.prototype method X from target object. (totalt 201 st)
- X is not modified in this loop. (totalt 12 st)
- Comparing to itself is potentially pointless. (totalt 10 st)
- Unsafe usage of ThrowStatement. (totalt 7 st)
- X is assigned to itself. (totalt 6 st)
- Unnecessary escape character: \[. (totalt 3 st)
- Unnecessary X. (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)
- Unnecessary escape character: \}. (totalt 1 st)
- eval can be harmful. (totalt 1 st)
- `content-type=".*javascript.*"` in: #34: v1, antal grupperade fel: 16 ( 1.80 betyg )
- `content-type=".*javascript.*"` in: #34: v1, antal fel: 4226 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 2763 st)
- Expected X and instead saw X. (totalt 804 st)
- Unnecessary escape character: \/. (totalt 402 st)
- Do not access Object.prototype method X from target object. (totalt 201 st)
- Comparing to itself is potentially pointless. (totalt 18 st)
- X is not modified in this loop. (totalt 12 st)
- Unsafe usage of ThrowStatement. (totalt 7 st)
- X is assigned to itself. (totalt 6 st)
- Unnecessary escape character: \[. (totalt 3 st)
- Unnecessary X. (totalt 2 st)
- Script URL is a form of eval. (totalt 2 st)
- eval can be harmful. (totalt 2 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)