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.68 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: 166 ( 1.00 betyg )
- X is defined but never used. (totalt 110 st)
- Unexpected console statement. (totalt 32 st)
- X is assigned a value but never used. (totalt 12 st)
- X is not defined. (totalt 12 st)
- `< script>` in: #62: 914816658, antal grupperade fel: 1 ( 4.80 betyg )
- `< script>` in: #62: 914816658, antal fel: 1 ( 4.80 betyg )
- Parsing error: Unexpected token const (totalt 1 st)
- `content-type=".*javascript.*"` in: #27: e8210b138006804, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #27: e8210b138006804, antal fel: 60 ( 1.00 betyg )
- X is defined but never used. (totalt 25 st)
- X is assigned a value but never used. (totalt 20 st)
- X is not defined. (totalt 11 st)
- Unexpected console statement. (totalt 4 st)
- `content-type=".*javascript.*"` in: #56: gtm.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #56: gtm.js, antal fel: 503 ( 1.00 betyg )
- X is defined but never used. (totalt 367 st)
- X is assigned a value but never used. (totalt 108 st)
- X is not defined. (totalt 23 st)
- Unexpected console statement. (totalt 5 st)
- `content-type=".*javascript.*"` in: #59: hotjar-3676969., antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #59: hotjar-3676969., antal fel: 527 ( 1.00 betyg )
- X is defined but never used. (totalt 375 st)
- X is assigned a value but never used. (totalt 108 st)
- X is not defined. (totalt 34 st)
- Unexpected console statement. (totalt 10 st)
- `content-type=".*javascript.*"` in: #60: script.outbound, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #60: script.outbound, antal fel: 531 ( 1.00 betyg )
- X is defined but never used. (totalt 376 st)
- X is assigned a value but never used. (totalt 108 st)
- X is not defined. (totalt 36 st)
- Unexpected console statement. (totalt 11 st)
- `content-type=".*javascript.*"` in: #63: player.module.j, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #63: player.module.j, antal fel: 623 ( 1.00 betyg )
- X is defined but never used. (totalt 462 st)
- X is assigned a value but never used. (totalt 111 st)
- X is not defined. (totalt 37 st)
- Unexpected console statement. (totalt 13 st)
- `content-type=".*javascript.*"` in: #64: vendor.module.j, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #64: vendor.module.j, antal fel: 801 ( 1.00 betyg )
- X is defined but never used. (totalt 556 st)
- X is assigned a value but never used. (totalt 113 st)
- X is not defined. (totalt 110 st)
- Unexpected console statement. (totalt 22 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: 28 ( 1.00 betyg )
- `< script src="...">` in: #1: Webbsida , antal fel: 2739 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1562 st)
- Expected X and instead saw X. (totalt 1085 st)
- Do not access Object.prototype method X from target object. (totalt 39 st)
- Comparing to itself is potentially pointless. (totalt 7 st)
- Redundant use of `await` on a return value. (totalt 7 st)
- Unnecessary X. (totalt 6 st)
- Unnecessary escape character: \-. (totalt 5 st)
- X is not modified in this loop. (totalt 5 st)
- Unnecessary escape character: \.. (totalt 3 st)
- Unnecessary escape character: \/. (totalt 2 st)
- X is assigned to itself. (totalt 1 st)
- Async arrow function has no X expression. (totalt 1 st)
- The Function constructor is eval. (totalt 1 st)
- Async function X has no X expression. (totalt 1 st)
- Async method X has no X expression. (totalt 1 st)
- Unsafe usage of ReturnStatement. (totalt 1 st)
- Unsafe usage of ThrowStatement. (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)
- Unnecessary escape character: \|. (totalt 1 st)
- `< script>` in: #62: 914816658, antal grupperade fel: 1 ( 4.80 betyg )
- `< script>` in: #62: 914816658, antal fel: 1 ( 4.80 betyg )
- Parsing error: Unexpected token const (totalt 1 st)
- `content-type=".*javascript.*"` in: #27: e8210b138006804, antal grupperade fel: 5 ( 4.00 betyg )
- `content-type=".*javascript.*"` in: #27: e8210b138006804, antal fel: 565 ( 1.00 betyg )
- Unnecessary escape character: \/. (totalt 551 st)
- Expected an assignment or function call and instead saw an expression. (totalt 10 st)
- Expected X and instead saw X. (totalt 2 st)
- Do not access Object.prototype method X from target object. (totalt 1 st)
- Unnecessary escape character: \[. (totalt 1 st)
- `content-type=".*javascript.*"` in: #56: gtm.js, antal grupperade fel: 15 ( 2.00 betyg )
- `content-type=".*javascript.*"` in: #56: gtm.js, antal fel: 2220 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1210 st)
- Unnecessary escape character: \/. (totalt 646 st)
- Expected X and instead saw X. (totalt 235 st)
- Do not access Object.prototype method X from target object. (totalt 110 st)
- Unnecessary escape character: \-. (totalt 4 st)
- X is not modified in this loop. (totalt 4 st)
- X is assigned to itself. (totalt 3 st)
- Unnecessary escape character: \[. (totalt 1 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: #59: hotjar-3676969., antal grupperade fel: 15 ( 2.00 betyg )
- `content-type=".*javascript.*"` in: #59: hotjar-3676969., antal fel: 2263 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1232 st)
- Unnecessary escape character: \/. (totalt 646 st)
- Expected X and instead saw X. (totalt 256 st)
- Do not access Object.prototype method X from target object. (totalt 110 st)
- Unnecessary escape character: \-. (totalt 4 st)
- X is not modified in this loop. (totalt 4 st)
- X is assigned to itself. (totalt 3 st)
- Unnecessary escape character: \[. (totalt 1 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: #60: script.outbound, antal grupperade fel: 15 ( 2.00 betyg )
- `content-type=".*javascript.*"` in: #60: script.outbound, antal fel: 2282 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1250 st)
- Unnecessary escape character: \/. (totalt 646 st)
- Expected X and instead saw X. (totalt 257 st)
- Do not access Object.prototype method X from target object. (totalt 110 st)
- Unnecessary escape character: \-. (totalt 4 st)
- X is not modified in this loop. (totalt 4 st)
- X is assigned to itself. (totalt 3 st)
- Unnecessary escape character: \[. (totalt 1 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: #63: player.module.j, antal grupperade fel: 15 ( 2.00 betyg )
- `content-type=".*javascript.*"` in: #63: player.module.j, antal fel: 4077 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 2248 st)
- Expected X and instead saw X. (totalt 1050 st)
- Unnecessary escape character: \/. (totalt 646 st)
- Do not access Object.prototype method X from target object. (totalt 113 st)
- Unnecessary escape character: \-. (totalt 4 st)
- X is not modified in this loop. (totalt 4 st)
- X is assigned to itself. (totalt 3 st)
- Unnecessary X. (totalt 2 st)
- Unnecessary escape character: \[. (totalt 1 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)
- Script URL is a form of eval. (totalt 1 st)
- `content-type=".*javascript.*"` in: #64: vendor.module.j, antal grupperade fel: 17 ( 1.60 betyg )
- `content-type=".*javascript.*"` in: #64: vendor.module.j, antal fel: 5837 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 3295 st)
- Expected X and instead saw X. (totalt 1732 st)
- Unnecessary escape character: \/. (totalt 646 st)
- Do not access Object.prototype method X from target object. (totalt 118 st)
- X is not modified in this loop. (totalt 9 st)
- Comparing to itself is potentially pointless. (totalt 9 st)
- Unsafe usage of ThrowStatement. (totalt 9 st)
- Unnecessary escape character: \-. (totalt 4 st)
- The Function constructor is eval. (totalt 4 st)
- X is assigned to itself. (totalt 3 st)
- Unnecessary X. (totalt 2 st)
- Unnecessary escape character: \[. (totalt 1 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)
- Script URL is a form of eval. (totalt 1 st)