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.88 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 )
- X is assigned a value but never used. (totalt 1 st)
- `< script src="...">` in: #1: Webbsida , antal grupperade fel: 2 ( 4.60 betyg )
- `< script src="...">` in: #1: Webbsida , antal fel: 73 ( 1.00 betyg )
- X is defined but never used. (totalt 43 st)
- X is not defined. (totalt 30 st)
- `< script>` in: #20: ajSU81KFdpE, antal grupperade fel: 1 ( 4.80 betyg )
- `< script>` in: #20: ajSU81KFdpE, antal fel: 2 ( 4.60 betyg )
- X is not defined. (totalt 2 st)
- `content-type=".*javascript.*"` in: #17: spots.min.js, antal grupperade fel: 2 ( 4.60 betyg )
- `content-type=".*javascript.*"` in: #17: spots.min.js, antal fel: 2 ( 4.60 betyg )
- X is not defined. (totalt 1 st)
- X is defined but never used. (totalt 1 st)
- `content-type=".*javascript.*"` in: #18: calendar.min.js, antal grupperade fel: 2 ( 4.60 betyg )
- `content-type=".*javascript.*"` in: #18: calendar.min.js, antal fel: 3 ( 4.40 betyg )
- X is not defined. (totalt 2 st)
- X is defined but never used. (totalt 1 st)
- `content-type=".*javascript.*"` in: #19: gtm.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #19: gtm.js, antal fel: 560 ( 1.00 betyg )
- X is defined but never used. (totalt 448 st)
- X is assigned a value but never used. (totalt 90 st)
- X is not defined. (totalt 21 st)
- Unexpected console statement. (totalt 1 st)
- `content-type=".*javascript.*"` in: #33: js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #33: js, antal fel: 1026 ( 1.00 betyg )
- X is defined but never used. (totalt 820 st)
- X is assigned a value but never used. (totalt 172 st)
- X is not defined. (totalt 33 st)
- Unexpected console statement. (totalt 1 st)
- `content-type=".*javascript.*"` in: #36: embed.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #36: embed.js, antal fel: 1027 ( 1.00 betyg )
- X is defined but never used. (totalt 820 st)
- X is assigned a value but never used. (totalt 172 st)
- X is not defined. (totalt 34 st)
- Unexpected console statement. (totalt 1 st)
- `content-type=".*javascript.*"` in: #37: www-embed-playe, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #37: www-embed-playe, antal fel: 1122 ( 1.00 betyg )
- X is defined but never used. (totalt 904 st)
- X is assigned a value but never used. (totalt 176 st)
- X is not defined. (totalt 36 st)
- Unexpected console statement. (totalt 6 st)
- `content-type=".*javascript.*"` in: #38: base.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #38: base.js, antal fel: 1352 ( 1.00 betyg )
- X is defined but never used. (totalt 1108 st)
- X is assigned a value but never used. (totalt 188 st)
- X is not defined. (totalt 40 st)
- Unexpected console statement. (totalt 16 st)
- `content-type=".*javascript.*"` in: #40: ad-status.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #40: ad-status.js, antal fel: 1352 ( 1.00 betyg )
- X is defined but never used. (totalt 1108 st)
- X is assigned a value but never used. (totalt 188 st)
- X is not defined. (totalt 40 st)
- Unexpected console statement. (totalt 16 st)
- `content-type=".*javascript.*"` in: #41: remote.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #41: remote.js, antal fel: 1437 ( 1.00 betyg )
- X is defined but never used. (totalt 1135 st)
- X is assigned a value but never used. (totalt 189 st)
- X is not defined. (totalt 97 st)
- Unexpected console statement. (totalt 16 st)
- `content-type=".*javascript.*"` in: #42: -vAZRY36HfmPKeR, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #42: -vAZRY36HfmPKeR, antal fel: 1437 ( 1.00 betyg )
- X is defined but never used. (totalt 1135 st)
- X is assigned a value but never used. (totalt 189 st)
- X is not defined. (totalt 97 st)
- Unexpected console statement. (totalt 16 st)
- `content-type=".*javascript.*"` in: #47: cast-sender.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #47: cast-sender.js, antal fel: 1441 ( 1.00 betyg )
- X is defined but never used. (totalt 1139 st)
- X is assigned a value but never used. (totalt 189 st)
- X is not defined. (totalt 97 st)
- Unexpected console statement. (totalt 16 st)
- `content-type=".*javascript.*"` in: #49: cast-sender.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #49: cast-sender.js, antal fel: 1450 ( 1.00 betyg )
- X is defined but never used. (totalt 1147 st)
- X is assigned a value but never used. (totalt 189 st)
- X is not defined. (totalt 97 st)
- Unexpected console statement. (totalt 17 st)
Integritet & säkerhet
- `< script>` in: #1: Webbsida , antal grupperade fel: 2 ( 4.60 betyg )
- `< script>` in: #1: Webbsida , antal fel: 5 ( 4.00 betyg )
- Unnecessary escape character: \/. (totalt 4 st)
- Expected X and instead saw X. (totalt 1 st)
- `< script src="...">` in: #1: Webbsida , antal grupperade fel: 9 ( 3.20 betyg )
- `< script src="...">` in: #1: Webbsida , antal fel: 589 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 355 st)
- Expected X and instead saw X. (totalt 217 st)
- X is assigned to itself. (totalt 4 st)
- Do not access Object.prototype method X from target object. (totalt 3 st)
- Unnecessary escape character: \/. (totalt 3 st)
- Comparing to itself is potentially pointless. (totalt 3 st)
- The Function constructor is eval. (totalt 2 st)
- Unnecessary X. (totalt 1 st)
- Unsafe usage of ThrowStatement. (totalt 1 st)
- `< script>` in: #20: ajSU81KFdpE, antal grupperade fel: 1 ( 4.80 betyg )
- `< script>` in: #20: ajSU81KFdpE, antal fel: 4 ( 4.20 betyg )
- Expected X and instead saw X. (totalt 4 st)
- `content-type=".*javascript.*"` in: #18: calendar.min.js, antal grupperade fel: 1 ( 4.80 betyg )
- `content-type=".*javascript.*"` in: #18: calendar.min.js, antal fel: 3 ( 4.40 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 3 st)
- `content-type=".*javascript.*"` in: #19: gtm.js, antal grupperade fel: 10 ( 3.00 betyg )
- `content-type=".*javascript.*"` in: #19: gtm.js, antal fel: 1085 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 782 st)
- Expected X and instead saw X. (totalt 200 st)
- Do not access Object.prototype method X from target object. (totalt 85 st)
- Unnecessary escape character: \/. (totalt 8 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: #33: js, antal grupperade fel: 12 ( 2.60 betyg )
- `content-type=".*javascript.*"` in: #33: js, antal fel: 2506 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1883 st)
- Expected X and instead saw X. (totalt 419 st)
- Do not access Object.prototype method X from target object. (totalt 172 st)
- Unnecessary escape character: \/. (totalt 11 st)
- X is not modified in this loop. (totalt 7 st)
- X is assigned to itself. (totalt 6 st)
- Comparing to itself is potentially pointless. (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)
- Unnecessary escape character: \?. (totalt 1 st)
- Unnecessary escape character: \}. (totalt 1 st)
- `content-type=".*javascript.*"` in: #36: embed.js, antal grupperade fel: 12 ( 2.60 betyg )
- `content-type=".*javascript.*"` in: #36: embed.js, antal fel: 2592 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1961 st)
- Expected X and instead saw X. (totalt 427 st)
- Do not access Object.prototype method X from target object. (totalt 172 st)
- Unnecessary escape character: \/. (totalt 11 st)
- X is not modified in this loop. (totalt 7 st)
- X is assigned to itself. (totalt 6 st)
- Comparing to itself is potentially pointless. (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)
- Unnecessary escape character: \?. (totalt 1 st)
- Unnecessary escape character: \}. (totalt 1 st)
- `content-type=".*javascript.*"` in: #37: www-embed-playe, antal grupperade fel: 14 ( 2.20 betyg )
- `content-type=".*javascript.*"` in: #37: www-embed-playe, antal fel: 4330 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 3115 st)
- Expected X and instead saw X. (totalt 960 st)
- Do not access Object.prototype method X from target object. (totalt 190 st)
- X is assigned to itself. (totalt 20 st)
- Unnecessary X. (totalt 12 st)
- Unnecessary escape character: \/. (totalt 11 st)
- X is not modified in this loop. (totalt 7 st)
- Comparing to itself is potentially pointless. (totalt 7 st)
- Script URL is a form of eval. (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)
- `content-type=".*javascript.*"` in: #38: base.js, antal grupperade fel: 18 ( 1.40 betyg )
- `content-type=".*javascript.*"` in: #38: base.js, antal fel: 15452 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 10626 st)
- Expected X and instead saw X. (totalt 4448 st)
- Do not access Object.prototype method X from target object. (totalt 232 st)
- X is assigned to itself. (totalt 49 st)
- Unnecessary X. (totalt 26 st)
- Unnecessary escape character: \/. (totalt 15 st)
- Comparing to itself is potentially pointless. (totalt 12 st)
- Unnecessary escape character: \?. (totalt 11 st)
- X is not modified in this loop. (totalt 7 st)
- Unnecessary escape character: \-. (totalt 6 st)
- Unnecessary escape character: \.. (totalt 6 st)
- Script URL is a form of eval. (totalt 4 st)
- Unnecessary escape character: \). (totalt 4 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)
- `content-type=".*javascript.*"` in: #40: ad-status.js, antal grupperade fel: 18 ( 1.40 betyg )
- `content-type=".*javascript.*"` in: #40: ad-status.js, antal fel: 15452 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 10626 st)
- Expected X and instead saw X. (totalt 4448 st)
- Do not access Object.prototype method X from target object. (totalt 232 st)
- X is assigned to itself. (totalt 49 st)
- Unnecessary X. (totalt 26 st)
- Unnecessary escape character: \/. (totalt 15 st)
- Comparing to itself is potentially pointless. (totalt 12 st)
- Unnecessary escape character: \?. (totalt 11 st)
- X is not modified in this loop. (totalt 7 st)
- Unnecessary escape character: \-. (totalt 6 st)
- Unnecessary escape character: \.. (totalt 6 st)
- Script URL is a form of eval. (totalt 4 st)
- Unnecessary escape character: \). (totalt 4 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)
- `content-type=".*javascript.*"` in: #41: remote.js, antal grupperade fel: 18 ( 1.40 betyg )
- `content-type=".*javascript.*"` in: #41: remote.js, antal fel: 16232 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 11088 st)
- Expected X and instead saw X. (totalt 4757 st)
- Do not access Object.prototype method X from target object. (totalt 232 st)
- X is assigned to itself. (totalt 54 st)
- Unnecessary X. (totalt 27 st)
- Unnecessary escape character: \/. (totalt 16 st)
- Comparing to itself is potentially pointless. (totalt 12 st)
- Unnecessary escape character: \?. (totalt 11 st)
- X is not modified in this loop. (totalt 7 st)
- Unnecessary escape character: \-. (totalt 7 st)
- Unnecessary escape character: \.. (totalt 6 st)
- Script URL is a form of eval. (totalt 4 st)
- Unnecessary escape character: \). (totalt 4 st)
- eval can be harmful. (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)
- `content-type=".*javascript.*"` in: #42: -vAZRY36HfmPKeR, antal grupperade fel: 18 ( 1.40 betyg )
- `content-type=".*javascript.*"` in: #42: -vAZRY36HfmPKeR, antal fel: 16249 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 11093 st)
- Expected X and instead saw X. (totalt 4768 st)
- Do not access Object.prototype method X from target object. (totalt 232 st)
- X is assigned to itself. (totalt 54 st)
- Unnecessary X. (totalt 27 st)
- Unnecessary escape character: \/. (totalt 16 st)
- Comparing to itself is potentially pointless. (totalt 12 st)
- Unnecessary escape character: \?. (totalt 11 st)
- X is not modified in this loop. (totalt 7 st)
- Unnecessary escape character: \-. (totalt 7 st)
- Unnecessary escape character: \.. (totalt 6 st)
- Script URL is a form of eval. (totalt 4 st)
- Unnecessary escape character: \). (totalt 4 st)
- eval can be harmful. (totalt 3 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)
- `content-type=".*javascript.*"` in: #47: cast-sender.js, antal grupperade fel: 18 ( 1.40 betyg )
- `content-type=".*javascript.*"` in: #47: cast-sender.js, antal fel: 16271 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 11104 st)
- Expected X and instead saw X. (totalt 4779 st)
- Do not access Object.prototype method X from target object. (totalt 232 st)
- X is assigned to itself. (totalt 54 st)
- Unnecessary X. (totalt 27 st)
- Unnecessary escape character: \/. (totalt 16 st)
- Comparing to itself is potentially pointless. (totalt 12 st)
- Unnecessary escape character: \?. (totalt 11 st)
- X is not modified in this loop. (totalt 7 st)
- Unnecessary escape character: \-. (totalt 7 st)
- Unnecessary escape character: \.. (totalt 6 st)
- Script URL is a form of eval. (totalt 4 st)
- Unnecessary escape character: \). (totalt 4 st)
- eval can be harmful. (totalt 3 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)
- `content-type=".*javascript.*"` in: #49: cast-sender.js, antal grupperade fel: 18 ( 1.40 betyg )
- `content-type=".*javascript.*"` in: #49: cast-sender.js, antal fel: 16451 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 11189 st)
- Expected X and instead saw X. (totalt 4858 st)
- Do not access Object.prototype method X from target object. (totalt 237 st)
- X is assigned to itself. (totalt 61 st)
- Unnecessary X. (totalt 30 st)
- Unnecessary escape character: \/. (totalt 16 st)
- Comparing to itself is potentially pointless. (totalt 13 st)
- Unnecessary escape character: \?. (totalt 11 st)
- X is not modified in this loop. (totalt 7 st)
- Unnecessary escape character: \-. (totalt 7 st)
- Unnecessary escape character: \.. (totalt 6 st)
- Script URL is a form of eval. (totalt 4 st)
- Unnecessary escape character: \). (totalt 4 st)
- eval can be harmful. (totalt 3 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)