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.47 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: 318 ( 1.00 betyg )
- X is defined but never used. (totalt 282 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: #25: 911144086, antal grupperade fel: 1 ( 4.80 betyg )
- `< script>` in: #25: 911144086, antal fel: 1 ( 4.80 betyg )
- X is not defined. (totalt 1 st)
- `content-type=".*javascript.*"` in: #24: gtm.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #24: 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: #31: d0b03b35ee97b4e, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #31: d0b03b35ee97b4e, 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: #32: js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #32: js, antal fel: 1088 ( 1.00 betyg )
- X is defined but never used. (totalt 852 st)
- X is assigned a value but never used. (totalt 188 st)
- X is not defined. (totalt 43 st)
- Unexpected console statement. (totalt 5 st)
- `content-type=".*javascript.*"` in: #33: analytics.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #33: analytics.js, antal fel: 1118 ( 1.00 betyg )
- X is defined but never used. (totalt 879 st)
- X is assigned a value but never used. (totalt 188 st)
- X is not defined. (totalt 46 st)
- Unexpected console statement. (totalt 5 st)
- `content-type=".*javascript.*"` in: #35: api.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #35: api.js, antal fel: 1138 ( 1.00 betyg )
- X is defined but never used. (totalt 896 st)
- X is assigned a value but never used. (totalt 189 st)
- X is not defined. (totalt 46 st)
- Unexpected console statement. (totalt 7 st)
- `content-type=".*javascript.*"` in: #38: v1, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #38: v1, antal fel: 1355 ( 1.00 betyg )
- X is defined but never used. (totalt 905 st)
- X is not defined. (totalt 253 st)
- X is assigned a value but never used. (totalt 189 st)
- Unexpected console statement. (totalt 8 st)
- `content-type=".*javascript.*"` in: #40: v1, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #40: v1, antal fel: 1622 ( 1.00 betyg )
- X is defined but never used. (totalt 913 st)
- X is not defined. (totalt 511 st)
- X is assigned a value but never used. (totalt 189 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: 2146 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1212 st)
- Expected X and instead saw X. (totalt 868 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: #24: gtm.js, antal grupperade fel: 9 ( 3.20 betyg )
- `content-type=".*javascript.*"` in: #24: 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: #31: d0b03b35ee97b4e, antal grupperade fel: 10 ( 3.00 betyg )
- `content-type=".*javascript.*"` in: #31: d0b03b35ee97b4e, antal fel: 1573 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 858 st)
- Unnecessary escape character: \/. (totalt 368 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: #32: js, antal grupperade fel: 12 ( 2.60 betyg )
- `content-type=".*javascript.*"` in: #32: js, antal fel: 2994 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1959 st)
- Expected X and instead saw X. (totalt 457 st)
- Unnecessary escape character: \/. (totalt 371 st)
- Do not access Object.prototype method X from target object. (totalt 182 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)
- `content-type=".*javascript.*"` in: #33: analytics.js, antal grupperade fel: 12 ( 2.60 betyg )
- `content-type=".*javascript.*"` in: #33: analytics.js, antal fel: 3424 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 2193 st)
- Expected X and instead saw X. (totalt 635 st)
- Unnecessary escape character: \/. (totalt 373 st)
- Do not access Object.prototype method X from target object. (totalt 194 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)
- `content-type=".*javascript.*"` in: #35: api.js, antal grupperade fel: 13 ( 2.40 betyg )
- `content-type=".*javascript.*"` in: #35: api.js, antal fel: 3646 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 2345 st)
- Expected X and instead saw X. (totalt 697 st)
- Unnecessary escape character: \/. (totalt 373 st)
- Do not access Object.prototype method X from target object. (totalt 194 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)
- `content-type=".*javascript.*"` in: #38: v1, antal grupperade fel: 14 ( 2.20 betyg )
- `content-type=".*javascript.*"` in: #38: v1, antal fel: 3822 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 2476 st)
- Expected X and instead saw X. (totalt 737 st)
- Unnecessary escape character: \/. (totalt 373 st)
- Do not access Object.prototype method X from target object. (totalt 194 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)
- eval can be harmful. (totalt 1 st)
- `content-type=".*javascript.*"` in: #40: v1, antal grupperade fel: 14 ( 2.20 betyg )
- `content-type=".*javascript.*"` in: #40: v1, antal fel: 3997 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 2599 st)
- Expected X and instead saw X. (totalt 781 st)
- Unnecessary escape character: \/. (totalt 373 st)
- Do not access Object.prototype method X from target object. (totalt 194 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)