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.23 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: 495 ( 1.00 betyg )
- X is not defined. (totalt 253 st)
- X is defined but never used. (totalt 178 st)
- Unexpected console statement. (totalt 43 st)
- X is assigned a value but never used. (totalt 21 st)
- `content-type=".*javascript.*"` in: #14: gtm.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #14: gtm.js, antal fel: 438 ( 1.00 betyg )
- X is defined but never used. (totalt 346 st)
- X is assigned a value but never used. (totalt 82 st)
- X is not defined. (totalt 9 st)
- Unexpected console statement. (totalt 1 st)
- `content-type=".*javascript.*"` in: #16: 757f9ec9-b059-4, antal grupperade fel: 5 ( 4.00 betyg )
- `content-type=".*javascript.*"` in: #16: 757f9ec9-b059-4, antal fel: 439 ( 1.00 betyg )
- X is defined but never used. (totalt 346 st)
- X is assigned a value but never used. (totalt 82 st)
- X is not defined. (totalt 9 st)
- Unexpected console statement. (totalt 1 st)
- Parsing error: Unexpected token : (totalt 1 st)
- `content-type=".*javascript.*"` in: #24: js, antal grupperade fel: 5 ( 4.00 betyg )
- `content-type=".*javascript.*"` in: #24: js, antal fel: 838 ( 1.00 betyg )
- X is defined but never used. (totalt 673 st)
- X is assigned a value but never used. (totalt 143 st)
- X is not defined. (totalt 20 st)
- Unexpected console statement. (totalt 1 st)
- Parsing error: Unexpected token : (totalt 1 st)
- `content-type=".*javascript.*"` in: #25: js, antal grupperade fel: 6 ( 3.80 betyg )
- `content-type=".*javascript.*"` in: #25: js, antal fel: 839 ( 1.00 betyg )
- X is defined but never used. (totalt 673 st)
- X is assigned a value but never used. (totalt 143 st)
- X is not defined. (totalt 20 st)
- Unexpected console statement. (totalt 1 st)
- Parsing error: Unexpected token : (totalt 1 st)
- Parsing error: Deleting local variable in strict mode (totalt 1 st)
- `content-type=".*javascript.*"` in: #27: otBannerSdk.js, antal grupperade fel: 6 ( 3.80 betyg )
- `content-type=".*javascript.*"` in: #27: otBannerSdk.js, antal fel: 898 ( 1.00 betyg )
- X is defined but never used. (totalt 698 st)
- X is assigned a value but never used. (totalt 143 st)
- Unexpected console statement. (totalt 35 st)
- X is not defined. (totalt 20 st)
- Parsing error: Unexpected token : (totalt 1 st)
- Parsing error: Deleting local variable in strict mode (totalt 1 st)
- `content-type=".*javascript.*"` in: #28: sv.json, antal grupperade fel: 6 ( 3.80 betyg )
- `content-type=".*javascript.*"` in: #28: sv.json, antal fel: 899 ( 1.00 betyg )
- X is defined but never used. (totalt 698 st)
- X is assigned a value but never used. (totalt 143 st)
- Unexpected console statement. (totalt 35 st)
- X is not defined. (totalt 20 st)
- Parsing error: Unexpected token : (totalt 2 st)
- Parsing error: Deleting local variable in strict mode (totalt 1 st)
- `content-type=".*javascript.*"` in: #30: destination, antal grupperade fel: 6 ( 3.80 betyg )
- `content-type=".*javascript.*"` in: #30: destination, antal fel: 1447 ( 1.00 betyg )
- X is defined but never used. (totalt 1130 st)
- X is assigned a value but never used. (totalt 236 st)
- X is not defined. (totalt 43 st)
- Unexpected console statement. (totalt 35 st)
- Parsing error: Unexpected token : (totalt 2 st)
- Parsing error: Deleting local variable in strict mode (totalt 1 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: 33 ( 1.00 betyg )
- `< script src="...">` in: #1: Webbsida , antal fel: 2380 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1466 st)
- Expected X and instead saw X. (totalt 711 st)
- Unnecessary escape character: \/. (totalt 99 st)
- Do not access Object.prototype method X from target object. (totalt 21 st)
- Unnecessary escape character: \+. (totalt 10 st)
- Unnecessary escape character: \*. (totalt 7 st)
- Unnecessary escape character: \(. (totalt 7 st)
- Unnecessary escape character: \). (totalt 7 st)
- X is not modified in this loop. (totalt 6 st)
- Unnecessary escape character: \$. (totalt 6 st)
- Unnecessary escape character: \.. (totalt 4 st)
- The Function constructor is eval. (totalt 3 st)
- Comparing to itself is potentially pointless. (totalt 3 st)
- Unnecessary escape character: \[. (totalt 3 st)
- Unsafe usage of ThrowStatement. (totalt 2 st)
- Unnecessary X. (totalt 2 st)
- X is assigned to itself. (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 2 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: #14: gtm.js, antal grupperade fel: 13 ( 2.40 betyg )
- `content-type=".*javascript.*"` in: #14: gtm.js, antal fel: 2062 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1181 st)
- Unnecessary escape character: \/. (totalt 528 st)
- Expected X and instead saw X. (totalt 231 st)
- Do not access Object.prototype method X from target object. (totalt 108 st)
- X is not modified in this loop. (totalt 4 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: #16: 757f9ec9-b059-4, antal grupperade fel: 14 ( 2.20 betyg )
- `content-type=".*javascript.*"` in: #16: 757f9ec9-b059-4, antal fel: 2063 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1181 st)
- Unnecessary escape character: \/. (totalt 528 st)
- Expected X and instead saw X. (totalt 231 st)
- Do not access Object.prototype method X from target object. (totalt 108 st)
- X is not modified in this loop. (totalt 4 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)
- Parsing error: Unexpected token : (totalt 1 st)
- `content-type=".*javascript.*"` in: #24: js, antal grupperade fel: 15 ( 2.00 betyg )
- `content-type=".*javascript.*"` in: #24: js, antal fel: 3672 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 2448 st)
- Unnecessary escape character: \/. (totalt 531 st)
- Expected X and instead saw X. (totalt 463 st)
- Do not access Object.prototype method X from target object. (totalt 202 st)
- X is not modified in this loop. (totalt 8 st)
- X is assigned to itself. (totalt 6 st)
- Comparing to itself is potentially pointless. (totalt 2 st)
- Unnecessary escape character: \?. (totalt 2 st)
- Unnecessary escape character: \.. (totalt 2 st)
- Unexpected string concatenation of literals. (totalt 2 st)
- Script URL is a form of eval. (totalt 2 st)
- eval can be harmful. (totalt 1 st)
- Unnecessary X. (totalt 1 st)
- Parsing error: Unexpected token : (totalt 1 st)
- Unnecessary escape character: \}. (totalt 1 st)
- `content-type=".*javascript.*"` in: #25: js, antal grupperade fel: 16 ( 1.80 betyg )
- `content-type=".*javascript.*"` in: #25: js, antal fel: 3673 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 2448 st)
- Unnecessary escape character: \/. (totalt 531 st)
- Expected X and instead saw X. (totalt 463 st)
- Do not access Object.prototype method X from target object. (totalt 202 st)
- X is not modified in this loop. (totalt 8 st)
- X is assigned to itself. (totalt 6 st)
- Comparing to itself is potentially pointless. (totalt 2 st)
- Unnecessary escape character: \?. (totalt 2 st)
- Unnecessary escape character: \.. (totalt 2 st)
- Unexpected string concatenation of literals. (totalt 2 st)
- Script URL is a form of eval. (totalt 2 st)
- eval can be harmful. (totalt 1 st)
- Unnecessary X. (totalt 1 st)
- Parsing error: Unexpected token : (totalt 1 st)
- Unnecessary escape character: \}. (totalt 1 st)
- Parsing error: Deleting local variable in strict mode (totalt 1 st)
- `content-type=".*javascript.*"` in: #27: otBannerSdk.js, antal grupperade fel: 18 ( 1.40 betyg )
- `content-type=".*javascript.*"` in: #27: otBannerSdk.js, antal fel: 4740 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 3360 st)
- Expected X and instead saw X. (totalt 610 st)
- Unnecessary escape character: \/. (totalt 531 st)
- Do not access Object.prototype method X from target object. (totalt 205 st)
- X is not modified in this loop. (totalt 8 st)
- X is assigned to itself. (totalt 6 st)
- Comparing to itself is potentially pointless. (totalt 4 st)
- Unnecessary escape character: \?. (totalt 2 st)
- Unnecessary escape character: \.. (totalt 2 st)
- Unexpected string concatenation of literals. (totalt 2 st)
- Script URL is a form of eval. (totalt 2 st)
- The Function constructor is eval. (totalt 2 st)
- eval can be harmful. (totalt 1 st)
- Unnecessary X. (totalt 1 st)
- Parsing error: Unexpected token : (totalt 1 st)
- Unnecessary escape character: \}. (totalt 1 st)
- Parsing error: Deleting local variable in strict mode (totalt 1 st)
- Unnecessary escape character: \_. (totalt 1 st)
- `content-type=".*javascript.*"` in: #28: sv.json, antal grupperade fel: 18 ( 1.40 betyg )
- `content-type=".*javascript.*"` in: #28: sv.json, antal fel: 4741 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 3360 st)
- Expected X and instead saw X. (totalt 610 st)
- Unnecessary escape character: \/. (totalt 531 st)
- Do not access Object.prototype method X from target object. (totalt 205 st)
- X is not modified in this loop. (totalt 8 st)
- X is assigned to itself. (totalt 6 st)
- Comparing to itself is potentially pointless. (totalt 4 st)
- Unnecessary escape character: \?. (totalt 2 st)
- Unnecessary escape character: \.. (totalt 2 st)
- Unexpected string concatenation of literals. (totalt 2 st)
- Script URL is a form of eval. (totalt 2 st)
- Parsing error: Unexpected token : (totalt 2 st)
- The Function constructor is eval. (totalt 2 st)
- eval can be harmful. (totalt 1 st)
- Unnecessary X. (totalt 1 st)
- Unnecessary escape character: \}. (totalt 1 st)
- Parsing error: Deleting local variable in strict mode (totalt 1 st)
- Unnecessary escape character: \_. (totalt 1 st)
- `content-type=".*javascript.*"` in: #30: destination, antal grupperade fel: 18 ( 1.40 betyg )
- `content-type=".*javascript.*"` in: #30: destination, antal fel: 5913 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 4241 st)
- Expected X and instead saw X. (totalt 815 st)
- Unnecessary escape character: \/. (totalt 534 st)
- Do not access Object.prototype method X from target object. (totalt 279 st)
- X is not modified in this loop. (totalt 11 st)
- X is assigned to itself. (totalt 9 st)
- Comparing to itself is potentially pointless. (totalt 5 st)
- Unnecessary escape character: \?. (totalt 3 st)
- Script URL is a form of eval. (totalt 3 st)
- Unnecessary escape character: \.. (totalt 2 st)
- Unexpected string concatenation of literals. (totalt 2 st)
- Parsing error: Unexpected token : (totalt 2 st)
- The Function constructor is eval. (totalt 2 st)
- eval can be harmful. (totalt 1 st)
- Unnecessary X. (totalt 1 st)
- Unnecessary escape character: \}. (totalt 1 st)
- Parsing error: Deleting local variable in strict mode (totalt 1 st)
- Unnecessary escape character: \_. (totalt 1 st)