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.40 av 5
- JS är dålig.
Webbstandard
- `< script>` in: #1: sv, antal grupperade fel: 1 ( 4.80 betyg )
- `< script>` in: #1: sv, antal fel: 1 ( 4.80 betyg )
- Parsing error: Unexpected token : (totalt 1 st)
- `< script src="...">` in: #1: sv, antal grupperade fel: 4 ( 4.20 betyg )
- `< script src="...">` in: #1: sv, antal fel: 229 ( 1.00 betyg )
- X is defined but never used. (totalt 197 st)
- X is not defined. (totalt 15 st)
- Unexpected console statement. (totalt 13 st)
- X is assigned a value but never used. (totalt 4 st)
- `content-type=".*javascript.*"` in: #48: gtm.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #48: gtm.js, antal fel: 455 ( 1.00 betyg )
- X is defined but never used. (totalt 356 st)
- X is assigned a value but never used. (totalt 89 st)
- X is not defined. (totalt 9 st)
- Unexpected console statement. (totalt 1 st)
- `content-type=".*javascript.*"` in: #49: 8217c2b4-651f-4, antal grupperade fel: 5 ( 4.00 betyg )
- `content-type=".*javascript.*"` in: #49: 8217c2b4-651f-4, antal fel: 456 ( 1.00 betyg )
- X is defined but never used. (totalt 356 st)
- X is assigned a value but never used. (totalt 89 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: #60: otBannerSdk.js, antal grupperade fel: 5 ( 4.00 betyg )
- `content-type=".*javascript.*"` in: #60: otBannerSdk.js, antal fel: 513 ( 1.00 betyg )
- X is defined but never used. (totalt 381 st)
- X is assigned a value but never used. (totalt 89 st)
- Unexpected console statement. (totalt 33 st)
- X is not defined. (totalt 9 st)
- Parsing error: Unexpected token : (totalt 1 st)
- `content-type=".*javascript.*"` in: #61: inis.js, antal grupperade fel: 5 ( 4.00 betyg )
- `content-type=".*javascript.*"` in: #61: inis.js, antal fel: 513 ( 1.00 betyg )
- X is defined but never used. (totalt 381 st)
- X is assigned a value but never used. (totalt 89 st)
- Unexpected console statement. (totalt 33 st)
- X is not defined. (totalt 9 st)
- Parsing error: Unexpected token : (totalt 1 st)
- `content-type=".*javascript.*"` in: #62: sv.json, antal grupperade fel: 5 ( 4.00 betyg )
- `content-type=".*javascript.*"` in: #62: sv.json, antal fel: 514 ( 1.00 betyg )
- X is defined but never used. (totalt 381 st)
- X is assigned a value but never used. (totalt 89 st)
- Unexpected console statement. (totalt 33 st)
- X is not defined. (totalt 9 st)
- Parsing error: Unexpected token : (totalt 2 st)
Integritet & säkerhet
- `< script>` in: #1: sv, antal grupperade fel: 1 ( 4.80 betyg )
- `< script>` in: #1: sv, antal fel: 1 ( 4.80 betyg )
- Parsing error: Unexpected token : (totalt 1 st)
- `< script src="...">` in: #1: sv, antal grupperade fel: 12 ( 2.60 betyg )
- `< script src="...">` in: #1: sv, antal fel: 2185 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1405 st)
- Expected X and instead saw X. (totalt 714 st)
- Do not access Object.prototype method X from target object. (totalt 38 st)
- X is not modified in this loop. (totalt 8 st)
- Unnecessary X. (totalt 6 st)
- Comparing to itself is potentially pointless. (totalt 5 st)
- X is assigned to itself. (totalt 3 st)
- The Function constructor is eval. (totalt 2 st)
- Unnecessary escape character: \/. (totalt 1 st)
- Unnecessary escape character: \-. (totalt 1 st)
- Unsafe usage of ReturnStatement. (totalt 1 st)
- Unsafe usage of ThrowStatement. (totalt 1 st)
- `content-type=".*javascript.*"` in: #48: gtm.js, antal grupperade fel: 14 ( 2.20 betyg )
- `content-type=".*javascript.*"` in: #48: gtm.js, antal fel: 2067 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1213 st)
- Unnecessary escape character: \/. (totalt 493 st)
- Expected X and instead saw X. (totalt 236 st)
- Do not access Object.prototype method X from target object. (totalt 108 st)
- Unnecessary escape character: \-. (totalt 4 st)
- X is not modified in this loop. (totalt 3 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: #49: 8217c2b4-651f-4, antal grupperade fel: 15 ( 2.00 betyg )
- `content-type=".*javascript.*"` in: #49: 8217c2b4-651f-4, antal fel: 2068 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1213 st)
- Unnecessary escape character: \/. (totalt 493 st)
- Expected X and instead saw X. (totalt 236 st)
- Do not access Object.prototype method X from target object. (totalt 108 st)
- Unnecessary escape character: \-. (totalt 4 st)
- X is not modified in this loop. (totalt 3 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: #60: otBannerSdk.js, antal grupperade fel: 17 ( 1.60 betyg )
- `content-type=".*javascript.*"` in: #60: otBannerSdk.js, antal fel: 3119 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 2113 st)
- Unnecessary escape character: \/. (totalt 493 st)
- Expected X and instead saw X. (totalt 379 st)
- Do not access Object.prototype method X from target object. (totalt 111 st)
- Unnecessary escape character: \-. (totalt 4 st)
- X is not modified in this loop. (totalt 3 st)
- X is assigned to itself. (totalt 3 st)
- Comparing to itself is potentially pointless. (totalt 3 st)
- The Function constructor is eval. (totalt 2 st)
- eval can be harmful. (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)
- Unnecessary escape character: \_. (totalt 1 st)
- `content-type=".*javascript.*"` in: #61: inis.js, antal grupperade fel: 17 ( 1.60 betyg )
- `content-type=".*javascript.*"` in: #61: inis.js, antal fel: 3124 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 2113 st)
- Unnecessary escape character: \/. (totalt 493 st)
- Expected X and instead saw X. (totalt 379 st)
- Do not access Object.prototype method X from target object. (totalt 111 st)
- Unnecessary escape character: \-. (totalt 7 st)
- X is not modified in this loop. (totalt 3 st)
- X is assigned to itself. (totalt 3 st)
- Comparing to itself is potentially pointless. (totalt 3 st)
- Unnecessary escape character: \_. (totalt 3 st)
- The Function constructor is eval. (totalt 2 st)
- eval can be harmful. (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: #62: sv.json, antal grupperade fel: 17 ( 1.60 betyg )
- `content-type=".*javascript.*"` in: #62: sv.json, antal fel: 3125 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 2113 st)
- Unnecessary escape character: \/. (totalt 493 st)
- Expected X and instead saw X. (totalt 379 st)
- Do not access Object.prototype method X from target object. (totalt 111 st)
- Unnecessary escape character: \-. (totalt 7 st)
- X is not modified in this loop. (totalt 3 st)
- X is assigned to itself. (totalt 3 st)
- Comparing to itself is potentially pointless. (totalt 3 st)
- Unnecessary escape character: \_. (totalt 3 st)
- Parsing error: Unexpected token : (totalt 2 st)
- The Function constructor is eval. (totalt 2 st)
- eval can be harmful. (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)