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: 301 ( 1.00 betyg )
- X is defined but never used. (totalt 265 st)
- X is not defined. (totalt 14 st)
- Unexpected console statement. (totalt 13 st)
- X is assigned a value but never used. (totalt 9 st)
- `< script>` in: #21: 911143248, antal grupperade fel: 1 ( 4.80 betyg )
- `< script>` in: #21: 911143248, 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: 11deac527fbb9aa, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #26: 11deac527fbb9aa, 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: 1309 ( 1.00 betyg )
- X is defined but never used. (totalt 861 st)
- X is not defined. (totalt 267 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: 1477 ( 1.00 betyg )
- X is defined but never used. (totalt 869 st)
- X is not defined. (totalt 426 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: 16 ( 1.80 betyg )
- `< script src="...">` in: #1: Webbsida , antal fel: 2189 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1245 st)
- Expected X and instead saw X. (totalt 878 st)
- Comparing to itself is potentially pointless. (totalt 29 st)
- Unnecessary X. (totalt 9 st)
- The Function constructor is eval. (totalt 7 st)
- Unnecessary escape character: \/. (totalt 5 st)
- Unnecessary escape character: \[. (totalt 3 st)
- Do not access Object.prototype method X from target object. (totalt 3 st)
- X is assigned to itself. (totalt 2 st)
- Unexpected string concatenation of literals. (totalt 2 st)
- X is not modified in this loop. (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)
- 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: 11deac527fbb9aa, antal grupperade fel: 10 ( 3.00 betyg )
- `content-type=".*javascript.*"` in: #26: 11deac527fbb9aa, antal fel: 1513 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 858 st)
- Unnecessary escape character: \/. (totalt 308 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: 3128 ( 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 318 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: 3558 ( 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 320 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: 3780 ( 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 320 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: 3956 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 2640 st)
- Expected X and instead saw X. (totalt 751 st)
- Unnecessary escape character: \/. (totalt 320 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 7 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: 4130 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 2769 st)
- Expected X and instead saw X. (totalt 788 st)
- Unnecessary escape character: \/. (totalt 320 st)
- Do not access Object.prototype method X from target object. (totalt 201 st)
- Comparing to itself is potentially pointless. (totalt 14 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)