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.52 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: 133 ( 1.00 betyg )
- X is defined but never used. (totalt 88 st)
- Unexpected console statement. (totalt 19 st)
- X is assigned a value but never used. (totalt 14 st)
- X is not defined. (totalt 12 st)
- `< script>` in: #50: shared.html, antal grupperade fel: 2 ( 4.60 betyg )
- `< script>` in: #50: shared.html, antal fel: 9 ( 3.20 betyg )
- X is not defined. (totalt 8 st)
- X is defined but never used. (totalt 1 st)
- `content-type=".*javascript.*"` in: #33: gtm.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #33: gtm.js, antal fel: 518 ( 1.00 betyg )
- X is defined but never used. (totalt 423 st)
- X is assigned a value but never used. (totalt 79 st)
- X is not defined. (totalt 15 st)
- Unexpected console statement. (totalt 1 st)
- `content-type=".*javascript.*"` in: #36: sso.min.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #36: sso.min.js, antal fel: 577 ( 1.00 betyg )
- X is defined but never used. (totalt 473 st)
- X is assigned a value but never used. (totalt 79 st)
- X is not defined. (totalt 24 st)
- Unexpected console statement. (totalt 1 st)
- `content-type=".*javascript.*"` in: #48: -5B...slug-5D-f, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #48: -5B...slug-5D-f, antal fel: 578 ( 1.00 betyg )
- X is defined but never used. (totalt 473 st)
- X is assigned a value but never used. (totalt 79 st)
- X is not defined. (totalt 25 st)
- Unexpected console statement. (totalt 1 st)
- `content-type=".*javascript.*"` in: #51: cookies.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #51: cookies.js, antal fel: 582 ( 1.00 betyg )
- X is defined but never used. (totalt 477 st)
- X is assigned a value but never used. (totalt 79 st)
- X is not defined. (totalt 25 st)
- Unexpected console statement. (totalt 1 st)
- `content-type=".*javascript.*"` in: #53: sdk.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #53: sdk.js, antal fel: 591 ( 1.00 betyg )
- X is defined but never used. (totalt 482 st)
- X is assigned a value but never used. (totalt 79 st)
- X is not defined. (totalt 25 st)
- Unexpected console statement. (totalt 5 st)
- `content-type=".*javascript.*"` in: #55: frame.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #55: frame.js, antal fel: 847 ( 1.00 betyg )
- X is defined but never used. (totalt 671 st)
- X is assigned a value but never used. (totalt 87 st)
- Unexpected console statement. (totalt 50 st)
- X is not defined. (totalt 39 st)
- `content-type=".*javascript.*"` in: #58: bundle.producti, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #58: bundle.producti, antal fel: 847 ( 1.00 betyg )
- X is defined but never used. (totalt 671 st)
- X is assigned a value but never used. (totalt 87 st)
- Unexpected console statement. (totalt 50 st)
- X is not defined. (totalt 39 st)
- `content-type=".*javascript.*"` in: #59: b145caac243d6f1, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #59: b145caac243d6f1, antal fel: 876 ( 1.00 betyg )
- X is defined but never used. (totalt 697 st)
- X is assigned a value but never used. (totalt 87 st)
- Unexpected console statement. (totalt 50 st)
- X is not defined. (totalt 42 st)
- `content-type=".*javascript.*"` in: #62: main.dacf57dc.j, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #62: main.dacf57dc.j, antal fel: 931 ( 1.00 betyg )
- X is defined but never used. (totalt 742 st)
- X is assigned a value but never used. (totalt 87 st)
- Unexpected console statement. (totalt 54 st)
- X is not defined. (totalt 48 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: 14 ( 2.20 betyg )
- `< script src="...">` in: #1: sv, antal fel: 2571 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1444 st)
- Expected X and instead saw X. (totalt 1063 st)
- Do not access Object.prototype method X from target object. (totalt 37 st)
- X is not modified in this loop. (totalt 5 st)
- Async function X has no X expression. (totalt 5 st)
- Unsafe usage of ThrowStatement. (totalt 3 st)
- The Function constructor is eval. (totalt 3 st)
- Unnecessary X. (totalt 2 st)
- Unsafe usage of ReturnStatement. (totalt 2 st)
- Comparing to itself is potentially pointless. (totalt 2 st)
- Redundant use of `await` on a return value. (totalt 2 st)
- Unnecessary escape character: \-. (totalt 1 st)
- Async method X has no X expression. (totalt 1 st)
- Unnecessary escape character: \/. (totalt 1 st)
- `< script>` in: #50: shared.html, antal grupperade fel: 2 ( 4.60 betyg )
- `< script>` in: #50: shared.html, antal fel: 4 ( 4.20 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 2 st)
- Do not access Object.prototype method X from target object. (totalt 2 st)
- `content-type=".*javascript.*"` in: #33: gtm.js, antal grupperade fel: 10 ( 3.00 betyg )
- `content-type=".*javascript.*"` in: #33: gtm.js, antal fel: 1421 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 863 st)
- Unnecessary escape character: \/. (totalt 249 st)
- Expected X and instead saw X. (totalt 210 st)
- Do not access Object.prototype method X from target object. (totalt 89 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 X. (totalt 1 st)
- Script URL is a form of eval. (totalt 1 st)
- `content-type=".*javascript.*"` in: #36: sso.min.js, antal grupperade fel: 22 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #36: sso.min.js, antal fel: 3427 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1858 st)
- Expected X and instead saw X. (totalt 1093 st)
- Unnecessary escape character: \/. (totalt 252 st)
- Do not access Object.prototype method X from target object. (totalt 150 st)
- Comparing to itself is potentially pointless. (totalt 22 st)
- X is not modified in this loop. (totalt 12 st)
- Unnecessary X. (totalt 8 st)
- The Function constructor is eval. (totalt 8 st)
- X is assigned to itself. (totalt 4 st)
- Unsafe usage of ThrowStatement. (totalt 3 st)
- eval can be harmful. (totalt 2 st)
- Script URL is a form of eval. (totalt 2 st)
- Unnecessary escape character: \-. (totalt 2 st)
- Unnecessary escape character: \[. (totalt 2 st)
- Unnecessary escape character: \.. (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)
- `content-type=".*javascript.*"` in: #48: -5B...slug-5D-f, antal grupperade fel: 22 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #48: -5B...slug-5D-f, antal fel: 3431 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1860 st)
- Expected X and instead saw X. (totalt 1095 st)
- Unnecessary escape character: \/. (totalt 252 st)
- Do not access Object.prototype method X from target object. (totalt 150 st)
- Comparing to itself is potentially pointless. (totalt 22 st)
- X is not modified in this loop. (totalt 12 st)
- Unnecessary X. (totalt 8 st)
- The Function constructor is eval. (totalt 8 st)
- X is assigned to itself. (totalt 4 st)
- Unsafe usage of ThrowStatement. (totalt 3 st)
- eval can be harmful. (totalt 2 st)
- Script URL is a form of eval. (totalt 2 st)
- Unnecessary escape character: \-. (totalt 2 st)
- Unnecessary escape character: \[. (totalt 2 st)
- Unnecessary escape character: \.. (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)
- `content-type=".*javascript.*"` in: #51: cookies.js, antal grupperade fel: 22 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #51: cookies.js, antal fel: 3433 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1861 st)
- Expected X and instead saw X. (totalt 1095 st)
- Unnecessary escape character: \/. (totalt 252 st)
- Do not access Object.prototype method X from target object. (totalt 151 st)
- Comparing to itself is potentially pointless. (totalt 22 st)
- X is not modified in this loop. (totalt 12 st)
- Unnecessary X. (totalt 8 st)
- The Function constructor is eval. (totalt 8 st)
- X is assigned to itself. (totalt 4 st)
- Unsafe usage of ThrowStatement. (totalt 3 st)
- eval can be harmful. (totalt 2 st)
- Script URL is a form of eval. (totalt 2 st)
- Unnecessary escape character: \-. (totalt 2 st)
- Unnecessary escape character: \[. (totalt 2 st)
- Unnecessary escape character: \.. (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)
- `content-type=".*javascript.*"` in: #53: sdk.js, antal grupperade fel: 22 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #53: sdk.js, antal fel: 3515 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1921 st)
- Expected X and instead saw X. (totalt 1115 st)
- Unnecessary escape character: \/. (totalt 253 st)
- Do not access Object.prototype method X from target object. (totalt 151 st)
- Comparing to itself is potentially pointless. (totalt 22 st)
- X is not modified in this loop. (totalt 12 st)
- The Function constructor is eval. (totalt 9 st)
- Unnecessary X. (totalt 8 st)
- X is assigned to itself. (totalt 4 st)
- Unsafe usage of ThrowStatement. (totalt 3 st)
- eval can be harmful. (totalt 2 st)
- Script URL is a form of eval. (totalt 2 st)
- Unnecessary escape character: \-. (totalt 2 st)
- Unnecessary escape character: \[. (totalt 2 st)
- Unnecessary escape character: \.. (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)
- `content-type=".*javascript.*"` in: #55: frame.js, antal grupperade fel: 28 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #55: frame.js, antal fel: 7341 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 4281 st)
- Expected X and instead saw X. (totalt 2487 st)
- Unnecessary escape character: \/. (totalt 256 st)
- Do not access Object.prototype method X from target object. (totalt 190 st)
- Comparing to itself is potentially pointless. (totalt 35 st)
- X is not modified in this loop. (totalt 19 st)
- The Function constructor is eval. (totalt 11 st)
- Unnecessary X. (totalt 9 st)
- Unsafe usage of ThrowStatement. (totalt 9 st)
- Unnecessary escape character: \.. (totalt 8 st)
- Unnecessary escape character: \-. (totalt 6 st)
- X is assigned to itself. (totalt 4 st)
- Unnecessary escape character: \[. (totalt 3 st)
- eval can be harmful. (totalt 2 st)
- Script URL is a form of eval. (totalt 2 st)
- Unnecessary escape character: \{. (totalt 2 st)
- Unnecessary escape character: \|. (totalt 2 st)
- Unnecessary escape character: \(. (totalt 2 st)
- Unnecessary escape character: \). (totalt 2 st)
- Unnecessary escape character: \$. (totalt 2 st)
- Unnecessary escape character: \+. (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)
- Unsafe usage of ReturnStatement. (totalt 1 st)
- Redundant use of `await` on a return value. (totalt 1 st)
- `content-type=".*javascript.*"` in: #58: bundle.producti, antal grupperade fel: 28 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #58: bundle.producti, antal fel: 7342 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 4282 st)
- Expected X and instead saw X. (totalt 2487 st)
- Unnecessary escape character: \/. (totalt 256 st)
- Do not access Object.prototype method X from target object. (totalt 190 st)
- Comparing to itself is potentially pointless. (totalt 35 st)
- X is not modified in this loop. (totalt 19 st)
- The Function constructor is eval. (totalt 11 st)
- Unnecessary X. (totalt 9 st)
- Unsafe usage of ThrowStatement. (totalt 9 st)
- Unnecessary escape character: \.. (totalt 8 st)
- Unnecessary escape character: \-. (totalt 6 st)
- X is assigned to itself. (totalt 4 st)
- Unnecessary escape character: \[. (totalt 3 st)
- eval can be harmful. (totalt 2 st)
- Script URL is a form of eval. (totalt 2 st)
- Unnecessary escape character: \{. (totalt 2 st)
- Unnecessary escape character: \|. (totalt 2 st)
- Unnecessary escape character: \(. (totalt 2 st)
- Unnecessary escape character: \). (totalt 2 st)
- Unnecessary escape character: \$. (totalt 2 st)
- Unnecessary escape character: \+. (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)
- Unsafe usage of ReturnStatement. (totalt 1 st)
- Redundant use of `await` on a return value. (totalt 1 st)
- `content-type=".*javascript.*"` in: #59: b145caac243d6f1, antal grupperade fel: 28 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #59: b145caac243d6f1, antal fel: 7757 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 4462 st)
- Expected X and instead saw X. (totalt 2694 st)
- Unnecessary escape character: \/. (totalt 257 st)
- Do not access Object.prototype method X from target object. (totalt 192 st)
- Comparing to itself is potentially pointless. (totalt 49 st)
- X is not modified in this loop. (totalt 19 st)
- The Function constructor is eval. (totalt 15 st)
- Unnecessary X. (totalt 12 st)
- Unsafe usage of ThrowStatement. (totalt 12 st)
- Unnecessary escape character: \.. (totalt 8 st)
- Unnecessary escape character: \-. (totalt 6 st)
- X is assigned to itself. (totalt 4 st)
- Script URL is a form of eval. (totalt 3 st)
- Unnecessary escape character: \[. (totalt 3 st)
- eval can be harmful. (totalt 2 st)
- Unnecessary escape character: \{. (totalt 2 st)
- Unnecessary escape character: \|. (totalt 2 st)
- Unnecessary escape character: \(. (totalt 2 st)
- Unnecessary escape character: \). (totalt 2 st)
- Unnecessary escape character: \$. (totalt 2 st)
- Unnecessary escape character: \+. (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)
- Unsafe usage of ReturnStatement. (totalt 1 st)
- Redundant use of `await` on a return value. (totalt 1 st)
- `content-type=".*javascript.*"` in: #62: main.dacf57dc.j, antal grupperade fel: 28 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #62: main.dacf57dc.j, antal fel: 8691 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 5198 st)
- Expected X and instead saw X. (totalt 2852 st)
- Unnecessary escape character: \/. (totalt 258 st)
- Do not access Object.prototype method X from target object. (totalt 220 st)
- Comparing to itself is potentially pointless. (totalt 51 st)
- X is not modified in this loop. (totalt 24 st)
- The Function constructor is eval. (totalt 15 st)
- Unsafe usage of ThrowStatement. (totalt 14 st)
- Unnecessary X. (totalt 12 st)
- Unnecessary escape character: \.. (totalt 8 st)
- Unnecessary escape character: \-. (totalt 7 st)
- X is assigned to itself. (totalt 4 st)
- Script URL is a form of eval. (totalt 3 st)
- Unnecessary escape character: \[. (totalt 3 st)
- eval can be harmful. (totalt 2 st)
- Unnecessary escape character: \{. (totalt 2 st)
- Unnecessary escape character: \|. (totalt 2 st)
- Unnecessary escape character: \(. (totalt 2 st)
- Unnecessary escape character: \). (totalt 2 st)
- Unnecessary escape character: \$. (totalt 2 st)
- Unnecessary escape character: \+. (totalt 2 st)
- Unsafe usage of ReturnStatement. (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)
- Redundant use of `await` on a return value. (totalt 1 st)