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.33 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: 149 ( 1.00 betyg )
- X is defined but never used. (totalt 96 st)
- Unexpected console statement. (totalt 28 st)
- X is not defined. (totalt 24 st)
- X is assigned a value but never used. (totalt 1 st)
- `< script>` in: #19: 5s1LmtU5PBtIsYB, antal grupperade fel: 1 ( 4.80 betyg )
- `< script>` in: #19: 5s1LmtU5PBtIsYB, antal fel: 1 ( 4.80 betyg )
- Parsing error: Unexpected token : (totalt 1 st)
- `< script src="...">` in: #19: 5s1LmtU5PBtIsYB, antal grupperade fel: 4 ( 4.20 betyg )
- `< script src="...">` in: #19: 5s1LmtU5PBtIsYB, antal fel: 416 ( 1.00 betyg )
- X is defined but never used. (totalt 273 st)
- Unexpected console statement. (totalt 67 st)
- X is assigned a value but never used. (totalt 46 st)
- X is not defined. (totalt 30 st)
- `content-type=".*javascript.*"` in: #12: gtm.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #12: gtm.js, antal fel: 527 ( 1.00 betyg )
- X is defined but never used. (totalt 425 st)
- X is assigned a value but never used. (totalt 86 st)
- X is not defined. (totalt 15 st)
- Unexpected console statement. (totalt 1 st)
- `content-type=".*javascript.*"` in: #17: ai.2.gbl.min.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #17: ai.2.gbl.min.js, antal fel: 616 ( 1.00 betyg )
- X is defined but never used. (totalt 511 st)
- X is assigned a value but never used. (totalt 86 st)
- X is not defined. (totalt 18 st)
- Unexpected console statement. (totalt 1 st)
- `content-type=".*javascript.*"` in: #34: js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #34: js, antal fel: 1083 ( 1.00 betyg )
- X is defined but never used. (totalt 880 st)
- X is assigned a value but never used. (totalt 170 st)
- X is not defined. (totalt 32 st)
- Unexpected console statement. (totalt 1 st)
- `content-type=".*javascript.*"` in: #35: lanlt.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #35: lanlt.js, antal fel: 1119 ( 1.00 betyg )
- X is defined but never used. (totalt 906 st)
- X is assigned a value but never used. (totalt 170 st)
- X is not defined. (totalt 33 st)
- Unexpected console statement. (totalt 10 st)
- `content-type=".*javascript.*"` in: #36: otBannerSdk.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #36: otBannerSdk.js, antal fel: 1184 ( 1.00 betyg )
- X is defined but never used. (totalt 933 st)
- X is assigned a value but never used. (totalt 170 st)
- Unexpected console statement. (totalt 47 st)
- X is not defined. (totalt 34 st)
- `content-type=".*javascript.*"` in: #67: 8739.dadc000ef5, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #67: 8739.dadc000ef5, antal fel: 1195 ( 1.00 betyg )
- X is defined but never used. (totalt 938 st)
- X is assigned a value but never used. (totalt 170 st)
- Unexpected console statement. (totalt 47 st)
- X is not defined. (totalt 40 st)
- `content-type=".*javascript.*"` in: #68: 537.070aaf8ddb8, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #68: 537.070aaf8ddb8, antal fel: 1197 ( 1.00 betyg )
- X is defined but never used. (totalt 940 st)
- X is assigned a value but never used. (totalt 170 st)
- Unexpected console statement. (totalt 47 st)
- X is not defined. (totalt 40 st)
- `content-type=".*javascript.*"` in: #69: 9195.7effef0bbc, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #69: 9195.7effef0bbc, antal fel: 1248 ( 1.00 betyg )
- X is defined but never used. (totalt 983 st)
- X is assigned a value but never used. (totalt 170 st)
- Unexpected console statement. (totalt 55 st)
- X is not defined. (totalt 40 st)
- `content-type=".*javascript.*"` in: #70: 9575.de60c421df, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #70: 9575.de60c421df, antal fel: 1250 ( 1.00 betyg )
- X is defined but never used. (totalt 985 st)
- X is assigned a value but never used. (totalt 170 st)
- Unexpected console statement. (totalt 55 st)
- X is not defined. (totalt 40 st)
- `content-type=".*javascript.*"` in: #71: spotify-player-, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #71: spotify-player-, antal fel: 1251 ( 1.00 betyg )
- X is defined but never used. (totalt 986 st)
- X is assigned a value but never used. (totalt 170 st)
- Unexpected console statement. (totalt 55 st)
- X is not defined. (totalt 40 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: 1578 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 944 st)
- Expected X and instead saw X. (totalt 557 st)
- Unnecessary escape character: \-. (totalt 46 st)
- Async function X has no X expression. (totalt 7 st)
- Unsafe usage of ThrowStatement. (totalt 7 st)
- Async method X has no X expression. (totalt 3 st)
- Unnecessary X. (totalt 3 st)
- Unnecessary escape character: \/. (totalt 2 st)
- The Function constructor is eval. (totalt 2 st)
- Async arrow function has no X expression. (totalt 2 st)
- X is not modified in this loop. (totalt 2 st)
- Do not access Object.prototype method X from target object. (totalt 1 st)
- Unnecessary escape character: \.. (totalt 1 st)
- Async function has no X expression. (totalt 1 st)
- `< script>` in: #19: 5s1LmtU5PBtIsYB, antal grupperade fel: 1 ( 4.80 betyg )
- `< script>` in: #19: 5s1LmtU5PBtIsYB, antal fel: 1 ( 4.80 betyg )
- Parsing error: Unexpected token : (totalt 1 st)
- `< script src="...">` in: #19: 5s1LmtU5PBtIsYB, antal grupperade fel: 33 ( 1.00 betyg )
- `< script src="...">` in: #19: 5s1LmtU5PBtIsYB, antal fel: 6080 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 3741 st)
- Expected X and instead saw X. (totalt 2179 st)
- Do not access Object.prototype method X from target object. (totalt 79 st)
- Comparing to itself is potentially pointless. (totalt 13 st)
- Async function X has no X expression. (totalt 8 st)
- Unnecessary escape character: \/. (totalt 7 st)
- Unnecessary escape character: \+. (totalt 5 st)
- X is not modified in this loop. (totalt 4 st)
- Unnecessary escape character: \.. (totalt 4 st)
- The Function constructor is eval. (totalt 3 st)
- Unnecessary X. (totalt 3 st)
- Async method X has no X expression. (totalt 3 st)
- Script URL is a form of eval. (totalt 2 st)
- Async arrow function has no X expression. (totalt 2 st)
- Unsafe usage of ThrowStatement. (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)
- eval can be harmful. (totalt 2 st)
- Redundant use of `await` on a return value. (totalt 1 st)
- Unnecessary escape character: \#. (totalt 1 st)
- Unsafe usage of ReturnStatement. (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)
- X is assigned to itself. (totalt 1 st)
- Async function has no X expression. (totalt 1 st)
- `content-type=".*javascript.*"` in: #12: gtm.js, antal grupperade fel: 10 ( 3.00 betyg )
- `content-type=".*javascript.*"` in: #12: gtm.js, antal fel: 1142 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 826 st)
- Expected X and instead saw X. (totalt 201 st)
- Do not access Object.prototype method X from target object. (totalt 91 st)
- Unnecessary escape character: \/. (totalt 13 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 X. (totalt 1 st)
- Script URL is a form of eval. (totalt 1 st)
- `content-type=".*javascript.*"` in: #17: ai.2.gbl.min.js, antal grupperade fel: 14 ( 2.20 betyg )
- `content-type=".*javascript.*"` in: #17: ai.2.gbl.min.js, antal fel: 1611 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1239 st)
- Expected X and instead saw X. (totalt 237 st)
- Do not access Object.prototype method X from target object. (totalt 92 st)
- Unnecessary escape character: \/. (totalt 17 st)
- X is assigned to itself. (totalt 6 st)
- Unnecessary escape character: \.. (totalt 5 st)
- X is not modified in this loop. (totalt 4 st)
- Script URL is a form of eval. (totalt 3 st)
- Unnecessary escape character: \@. (totalt 2 st)
- Unnecessary escape character: \(. (totalt 2 st)
- eval can be harmful. (totalt 1 st)
- Comparing to itself is potentially pointless. (totalt 1 st)
- Unnecessary X. (totalt 1 st)
- Unnecessary escape character: \". (totalt 1 st)
- `content-type=".*javascript.*"` in: #34: js, antal grupperade fel: 16 ( 1.80 betyg )
- `content-type=".*javascript.*"` in: #34: js, antal fel: 3011 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 2321 st)
- Expected X and instead saw X. (totalt 457 st)
- Do not access Object.prototype method X from target object. (totalt 177 st)
- Unnecessary escape character: \/. (totalt 20 st)
- X is assigned to itself. (totalt 9 st)
- X is not modified in this loop. (totalt 7 st)
- Unnecessary escape character: \.. (totalt 5 st)
- Script URL is a form of eval. (totalt 4 st)
- Comparing to itself is potentially pointless. (totalt 2 st)
- Unnecessary escape character: \@. (totalt 2 st)
- Unnecessary escape character: \(. (totalt 2 st)
- eval can be harmful. (totalt 1 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: #35: lanlt.js, antal grupperade fel: 19 ( 1.20 betyg )
- `content-type=".*javascript.*"` in: #35: lanlt.js, antal fel: 3615 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 2661 st)
- Expected X and instead saw X. (totalt 684 st)
- Do not access Object.prototype method X from target object. (totalt 197 st)
- Unnecessary escape character: \/. (totalt 21 st)
- X is assigned to itself. (totalt 9 st)
- X is not modified in this loop. (totalt 8 st)
- Unsafe usage of ThrowStatement. (totalt 8 st)
- Unnecessary escape character: \.. (totalt 6 st)
- Script URL is a form of eval. (totalt 4 st)
- Unnecessary X. (totalt 3 st)
- Unsafe usage of ReturnStatement. (totalt 3 st)
- Comparing to itself is potentially pointless. (totalt 2 st)
- Unnecessary escape character: \@. (totalt 2 st)
- Unnecessary escape character: \(. (totalt 2 st)
- eval can be harmful. (totalt 1 st)
- Unnecessary escape character: \". (totalt 1 st)
- Unnecessary escape character: \?. (totalt 1 st)
- Unnecessary escape character: \}. (totalt 1 st)
- The Function constructor is eval. (totalt 1 st)
- `content-type=".*javascript.*"` in: #36: otBannerSdk.js, antal grupperade fel: 20 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #36: otBannerSdk.js, antal fel: 4692 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 3567 st)
- Expected X and instead saw X. (totalt 845 st)
- Do not access Object.prototype method X from target object. (totalt 201 st)
- Unnecessary escape character: \/. (totalt 21 st)
- X is assigned to itself. (totalt 10 st)
- X is not modified in this loop. (totalt 8 st)
- Unsafe usage of ThrowStatement. (totalt 8 st)
- Unnecessary escape character: \.. (totalt 6 st)
- Comparing to itself is potentially pointless. (totalt 4 st)
- Script URL is a form of eval. (totalt 4 st)
- Unnecessary X. (totalt 3 st)
- Unsafe usage of ReturnStatement. (totalt 3 st)
- The Function constructor is eval. (totalt 3 st)
- Unnecessary escape character: \@. (totalt 2 st)
- Unnecessary escape character: \(. (totalt 2 st)
- eval can be harmful. (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: #67: 8739.dadc000ef5, antal grupperade fel: 20 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #67: 8739.dadc000ef5, antal fel: 4798 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 3649 st)
- Expected X and instead saw X. (totalt 869 st)
- Do not access Object.prototype method X from target object. (totalt 201 st)
- Unnecessary escape character: \/. (totalt 21 st)
- X is assigned to itself. (totalt 10 st)
- X is not modified in this loop. (totalt 8 st)
- Unsafe usage of ThrowStatement. (totalt 8 st)
- Unnecessary escape character: \.. (totalt 6 st)
- Comparing to itself is potentially pointless. (totalt 4 st)
- Script URL is a form of eval. (totalt 4 st)
- Unnecessary X. (totalt 3 st)
- Unsafe usage of ReturnStatement. (totalt 3 st)
- The Function constructor is eval. (totalt 3 st)
- Unnecessary escape character: \@. (totalt 2 st)
- Unnecessary escape character: \(. (totalt 2 st)
- eval can be harmful. (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: #68: 537.070aaf8ddb8, antal grupperade fel: 20 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #68: 537.070aaf8ddb8, antal fel: 4804 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 3651 st)
- Expected X and instead saw X. (totalt 873 st)
- Do not access Object.prototype method X from target object. (totalt 201 st)
- Unnecessary escape character: \/. (totalt 21 st)
- X is assigned to itself. (totalt 10 st)
- X is not modified in this loop. (totalt 8 st)
- Unsafe usage of ThrowStatement. (totalt 8 st)
- Unnecessary escape character: \.. (totalt 6 st)
- Comparing to itself is potentially pointless. (totalt 4 st)
- Script URL is a form of eval. (totalt 4 st)
- Unnecessary X. (totalt 3 st)
- Unsafe usage of ReturnStatement. (totalt 3 st)
- The Function constructor is eval. (totalt 3 st)
- Unnecessary escape character: \@. (totalt 2 st)
- Unnecessary escape character: \(. (totalt 2 st)
- eval can be harmful. (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: #69: 9195.7effef0bbc, antal grupperade fel: 23 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #69: 9195.7effef0bbc, antal fel: 5723 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 4287 st)
- Expected X and instead saw X. (totalt 1134 st)
- Do not access Object.prototype method X from target object. (totalt 206 st)
- Unnecessary escape character: \/. (totalt 23 st)
- Unsafe usage of ThrowStatement. (totalt 13 st)
- X is assigned to itself. (totalt 11 st)
- X is not modified in this loop. (totalt 10 st)
- Unnecessary escape character: \.. (totalt 8 st)
- Comparing to itself is potentially pointless. (totalt 4 st)
- Script URL is a form of eval. (totalt 4 st)
- The Function constructor is eval. (totalt 4 st)
- Unnecessary X. (totalt 3 st)
- Unnecessary escape character: \(. (totalt 3 st)
- Unsafe usage of ReturnStatement. (totalt 3 st)
- Unnecessary escape character: \@. (totalt 2 st)
- eval can be harmful. (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: #70: 9575.de60c421df, antal grupperade fel: 23 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #70: 9575.de60c421df, antal fel: 5745 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 4296 st)
- Expected X and instead saw X. (totalt 1147 st)
- Do not access Object.prototype method X from target object. (totalt 206 st)
- Unnecessary escape character: \/. (totalt 23 st)
- Unsafe usage of ThrowStatement. (totalt 13 st)
- X is assigned to itself. (totalt 11 st)
- X is not modified in this loop. (totalt 10 st)
- Unnecessary escape character: \.. (totalt 8 st)
- Comparing to itself is potentially pointless. (totalt 4 st)
- Script URL is a form of eval. (totalt 4 st)
- The Function constructor is eval. (totalt 4 st)
- Unnecessary X. (totalt 3 st)
- Unnecessary escape character: \(. (totalt 3 st)
- Unsafe usage of ReturnStatement. (totalt 3 st)
- Unnecessary escape character: \@. (totalt 2 st)
- eval can be harmful. (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: #71: spotify-player-, antal grupperade fel: 25 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #71: spotify-player-, antal fel: 5773 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 4314 st)
- Expected X and instead saw X. (totalt 1151 st)
- Do not access Object.prototype method X from target object. (totalt 206 st)
- Unnecessary escape character: \/. (totalt 23 st)
- Unsafe usage of ThrowStatement. (totalt 13 st)
- X is assigned to itself. (totalt 11 st)
- X is not modified in this loop. (totalt 10 st)
- Unnecessary escape character: \.. (totalt 8 st)
- Comparing to itself is potentially pointless. (totalt 4 st)
- Script URL is a form of eval. (totalt 4 st)
- The Function constructor is eval. (totalt 4 st)
- Async method X has no X expression. (totalt 4 st)
- Unnecessary X. (totalt 3 st)
- Unnecessary escape character: \(. (totalt 3 st)
- Unsafe usage of ReturnStatement. (totalt 3 st)
- Unnecessary escape character: \@. (totalt 2 st)
- Async function X has no X expression. (totalt 2 st)
- eval can be harmful. (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)