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.45 av 5
- JS är dålig.
Webbstandard
- `< script>` in: #1: Webbsida , antal grupperade fel: 4 ( 4.20 betyg )
- `< script>` in: #1: Webbsida , antal fel: 23 ( 1.00 betyg )
- X is not defined. (totalt 14 st)
- X is assigned a value but never used. (totalt 5 st)
- X is defined but never used. (totalt 3 st)
- Unexpected console statement. (totalt 1 st)
- `< script src="...">` in: #1: Webbsida , antal grupperade fel: 4 ( 4.20 betyg )
- `< script src="...">` in: #1: Webbsida , antal fel: 915 ( 1.00 betyg )
- X is defined but never used. (totalt 551 st)
- X is not defined. (totalt 220 st)
- X is assigned a value but never used. (totalt 109 st)
- Unexpected console statement. (totalt 35 st)
- `< script>` in: #30: Nr00gzaJ6T8, antal grupperade fel: 1 ( 4.80 betyg )
- `< script>` in: #30: Nr00gzaJ6T8, antal fel: 2 ( 4.60 betyg )
- X is not defined. (totalt 2 st)
- `content-type=".*javascript.*"` in: #29: analytics.js, antal grupperade fel: 2 ( 4.60 betyg )
- `content-type=".*javascript.*"` in: #29: analytics.js, antal fel: 30 ( 1.00 betyg )
- X is defined but never used. (totalt 27 st)
- X is not defined. (totalt 3 st)
- `content-type=".*javascript.*"` in: #39: iframe-api, antal grupperade fel: 2 ( 4.60 betyg )
- `content-type=".*javascript.*"` in: #39: iframe-api, antal fel: 32 ( 1.00 betyg )
- X is defined but never used. (totalt 29 st)
- X is not defined. (totalt 3 st)
- `content-type=".*javascript.*"` in: #44: js, antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #44: js, antal fel: 529 ( 1.00 betyg )
- X is defined but never used. (totalt 425 st)
- X is assigned a value but never used. (totalt 85 st)
- X is not defined. (totalt 19 st)
- `content-type=".*javascript.*"` in: #48: embed.js, antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #48: embed.js, antal fel: 530 ( 1.00 betyg )
- X is defined but never used. (totalt 425 st)
- X is assigned a value but never used. (totalt 85 st)
- X is not defined. (totalt 20 st)
- `content-type=".*javascript.*"` in: #49: www-embed-playe, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #49: www-embed-playe, antal fel: 625 ( 1.00 betyg )
- X is defined but never used. (totalt 509 st)
- X is assigned a value but never used. (totalt 89 st)
- X is not defined. (totalt 22 st)
- Unexpected console statement. (totalt 5 st)
- `content-type=".*javascript.*"` in: #50: base.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #50: base.js, antal fel: 855 ( 1.00 betyg )
- X is defined but never used. (totalt 713 st)
- X is assigned a value but never used. (totalt 101 st)
- X is not defined. (totalt 26 st)
- Unexpected console statement. (totalt 15 st)
- `content-type=".*javascript.*"` in: #51: www-widgetapi.j, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #51: www-widgetapi.j, antal fel: 872 ( 1.00 betyg )
- X is defined but never used. (totalt 723 st)
- X is assigned a value but never used. (totalt 101 st)
- X is not defined. (totalt 28 st)
- Unexpected console statement. (totalt 20 st)
- `content-type=".*javascript.*"` in: #53: ad-status.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #53: ad-status.js, antal fel: 872 ( 1.00 betyg )
- X is defined but never used. (totalt 723 st)
- X is assigned a value but never used. (totalt 101 st)
- X is not defined. (totalt 28 st)
- Unexpected console statement. (totalt 20 st)
- `content-type=".*javascript.*"` in: #54: remote.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #54: remote.js, antal fel: 957 ( 1.00 betyg )
- X is defined but never used. (totalt 750 st)
- X is assigned a value but never used. (totalt 102 st)
- X is not defined. (totalt 85 st)
- Unexpected console statement. (totalt 20 st)
- `content-type=".*javascript.*"` in: #55: mb36QiQZpRAdIpv, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #55: mb36QiQZpRAdIpv, antal fel: 957 ( 1.00 betyg )
- X is defined but never used. (totalt 750 st)
- X is assigned a value but never used. (totalt 102 st)
- X is not defined. (totalt 85 st)
- Unexpected console statement. (totalt 20 st)
- `content-type=".*javascript.*"` in: #60: cast-sender.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #60: cast-sender.js, antal fel: 961 ( 1.00 betyg )
- X is defined but never used. (totalt 754 st)
- X is assigned a value but never used. (totalt 102 st)
- X is not defined. (totalt 85 st)
- Unexpected console statement. (totalt 20 st)
- `content-type=".*javascript.*"` in: #62: cast-sender.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #62: cast-sender.js, antal fel: 970 ( 1.00 betyg )
- X is defined but never used. (totalt 762 st)
- X is assigned a value but never used. (totalt 102 st)
- X is not defined. (totalt 85 st)
- Unexpected console statement. (totalt 21 st)
Integritet & säkerhet
- `< script>` in: #1: Webbsida , antal grupperade fel: 3 ( 4.40 betyg )
- `< script>` in: #1: Webbsida , antal fel: 42 ( 1.00 betyg )
- Unnecessary escape character: \/. (totalt 38 st)
- Do not access Object.prototype method X from target object. (totalt 2 st)
- Expected an assignment or function call and instead saw an expression. (totalt 2 st)
- `< script src="...">` in: #1: Webbsida , antal grupperade fel: 23 ( 1.00 betyg )
- `< script src="...">` in: #1: Webbsida , antal fel: 2750 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1914 st)
- Expected X and instead saw X. (totalt 648 st)
- Do not access Object.prototype method X from target object. (totalt 99 st)
- Unnecessary X. (totalt 25 st)
- Unnecessary escape character: \/. (totalt 16 st)
- Unnecessary escape character: \-. (totalt 8 st)
- Unnecessary escape character: \.. (totalt 6 st)
- X is not modified in this loop. (totalt 4 st)
- Comparing to itself is potentially pointless. (totalt 4 st)
- Unnecessary escape character: \:. (totalt 4 st)
- Unnecessary escape character: \+. (totalt 4 st)
- X is assigned to itself. (totalt 3 st)
- Unnecessary escape character: \[. (totalt 3 st)
- Unnecessary escape character: \?. (totalt 2 st)
- Unnecessary escape character: \}. (totalt 2 st)
- Script URL is a form of eval. (totalt 1 st)
- eval can be harmful. (totalt 1 st)
- The Function constructor is eval. (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: \S. (totalt 1 st)
- `< script>` in: #30: Nr00gzaJ6T8, antal grupperade fel: 1 ( 4.80 betyg )
- `< script>` in: #30: Nr00gzaJ6T8, antal fel: 4 ( 4.20 betyg )
- Expected X and instead saw X. (totalt 4 st)
- `content-type=".*javascript.*"` in: #29: analytics.js, antal grupperade fel: 7 ( 3.60 betyg )
- `content-type=".*javascript.*"` in: #29: analytics.js, antal fel: 430 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 234 st)
- Expected X and instead saw X. (totalt 178 st)
- Do not access Object.prototype method X from target object. (totalt 12 st)
- Unnecessary escape character: \[. (totalt 2 st)
- Unnecessary escape character: \/. (totalt 2 st)
- Comparing to itself is potentially pointless. (totalt 1 st)
- Unnecessary X. (totalt 1 st)
- `content-type=".*javascript.*"` in: #39: iframe-api, antal grupperade fel: 7 ( 3.60 betyg )
- `content-type=".*javascript.*"` in: #39: iframe-api, antal fel: 438 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 234 st)
- Expected X and instead saw X. (totalt 178 st)
- Do not access Object.prototype method X from target object. (totalt 13 st)
- Unnecessary escape character: \/. (totalt 9 st)
- Unnecessary escape character: \[. (totalt 2 st)
- Comparing to itself is potentially pointless. (totalt 1 st)
- Unnecessary X. (totalt 1 st)
- `content-type=".*javascript.*"` in: #44: js, antal grupperade fel: 12 ( 2.60 betyg )
- `content-type=".*javascript.*"` in: #44: js, antal fel: 1812 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1297 st)
- Expected X and instead saw X. (totalt 396 st)
- Do not access Object.prototype method X from target object. (totalt 93 st)
- Unnecessary escape character: \/. (totalt 12 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 2 st)
- Unnecessary escape character: \[. (totalt 2 st)
- Unnecessary X. (totalt 1 st)
- Unnecessary escape character: \?. (totalt 1 st)
- Script URL is a form of eval. (totalt 1 st)
- Unnecessary escape character: \}. (totalt 1 st)
- `content-type=".*javascript.*"` in: #48: embed.js, antal grupperade fel: 12 ( 2.60 betyg )
- `content-type=".*javascript.*"` in: #48: embed.js, antal fel: 1898 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1375 st)
- Expected X and instead saw X. (totalt 404 st)
- Do not access Object.prototype method X from target object. (totalt 93 st)
- Unnecessary escape character: \/. (totalt 12 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 2 st)
- Unnecessary escape character: \[. (totalt 2 st)
- Unnecessary X. (totalt 1 st)
- Unnecessary escape character: \?. (totalt 1 st)
- Script URL is a form of eval. (totalt 1 st)
- Unnecessary escape character: \}. (totalt 1 st)
- `content-type=".*javascript.*"` in: #49: www-embed-playe, antal grupperade fel: 14 ( 2.20 betyg )
- `content-type=".*javascript.*"` in: #49: www-embed-playe, antal fel: 3636 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 2529 st)
- Expected X and instead saw X. (totalt 937 st)
- Do not access Object.prototype method X from target object. (totalt 111 st)
- X is assigned to itself. (totalt 17 st)
- Unnecessary escape character: \/. (totalt 12 st)
- Unnecessary X. (totalt 12 st)
- Comparing to itself is potentially pointless. (totalt 7 st)
- X is not modified in this loop. (totalt 3 st)
- Unnecessary escape character: \[. (totalt 2 st)
- Unnecessary escape character: \-. (totalt 2 st)
- Unnecessary escape character: \?. (totalt 1 st)
- Script URL is a form of eval. (totalt 1 st)
- Unnecessary escape character: \}. (totalt 1 st)
- Unnecessary escape character: \(. (totalt 1 st)
- `content-type=".*javascript.*"` in: #50: base.js, antal grupperade fel: 17 ( 1.60 betyg )
- `content-type=".*javascript.*"` in: #50: base.js, antal fel: 14758 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 10040 st)
- Expected X and instead saw X. (totalt 4425 st)
- Do not access Object.prototype method X from target object. (totalt 153 st)
- X is assigned to itself. (totalt 46 st)
- Unnecessary X. (totalt 26 st)
- Unnecessary escape character: \/. (totalt 16 st)
- Comparing to itself is potentially pointless. (totalt 12 st)
- Unnecessary escape character: \?. (totalt 11 st)
- Unnecessary escape character: \-. (totalt 6 st)
- Unnecessary escape character: \.. (totalt 6 st)
- Unnecessary escape character: \). (totalt 4 st)
- Unnecessary escape character: \[. (totalt 3 st)
- X is not modified in this loop. (totalt 3 st)
- Script URL is a form of eval. (totalt 3 st)
- Unnecessary escape character: \(. (totalt 2 st)
- Unnecessary escape character: \}. (totalt 1 st)
- Unnecessary escape character: \^. (totalt 1 st)
- `content-type=".*javascript.*"` in: #51: www-widgetapi.j, antal grupperade fel: 17 ( 1.60 betyg )
- `content-type=".*javascript.*"` in: #51: www-widgetapi.j, antal fel: 14969 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 10140 st)
- Expected X and instead saw X. (totalt 4516 st)
- Do not access Object.prototype method X from target object. (totalt 160 st)
- X is assigned to itself. (totalt 55 st)
- Unnecessary X. (totalt 26 st)
- Comparing to itself is potentially pointless. (totalt 16 st)
- Unnecessary escape character: \/. (totalt 16 st)
- Unnecessary escape character: \?. (totalt 11 st)
- Unnecessary escape character: \-. (totalt 6 st)
- Unnecessary escape character: \.. (totalt 6 st)
- Unnecessary escape character: \). (totalt 4 st)
- Unnecessary escape character: \[. (totalt 3 st)
- X is not modified in this loop. (totalt 3 st)
- Script URL is a form of eval. (totalt 3 st)
- Unnecessary escape character: \(. (totalt 2 st)
- Unnecessary escape character: \}. (totalt 1 st)
- Unnecessary escape character: \^. (totalt 1 st)
- `content-type=".*javascript.*"` in: #53: ad-status.js, antal grupperade fel: 17 ( 1.60 betyg )
- `content-type=".*javascript.*"` in: #53: ad-status.js, antal fel: 14969 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 10140 st)
- Expected X and instead saw X. (totalt 4516 st)
- Do not access Object.prototype method X from target object. (totalt 160 st)
- X is assigned to itself. (totalt 55 st)
- Unnecessary X. (totalt 26 st)
- Comparing to itself is potentially pointless. (totalt 16 st)
- Unnecessary escape character: \/. (totalt 16 st)
- Unnecessary escape character: \?. (totalt 11 st)
- Unnecessary escape character: \-. (totalt 6 st)
- Unnecessary escape character: \.. (totalt 6 st)
- Unnecessary escape character: \). (totalt 4 st)
- Unnecessary escape character: \[. (totalt 3 st)
- X is not modified in this loop. (totalt 3 st)
- Script URL is a form of eval. (totalt 3 st)
- Unnecessary escape character: \(. (totalt 2 st)
- Unnecessary escape character: \}. (totalt 1 st)
- Unnecessary escape character: \^. (totalt 1 st)
- `content-type=".*javascript.*"` in: #54: remote.js, antal grupperade fel: 18 ( 1.40 betyg )
- `content-type=".*javascript.*"` in: #54: remote.js, antal fel: 15749 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 10602 st)
- Expected X and instead saw X. (totalt 4825 st)
- Do not access Object.prototype method X from target object. (totalt 160 st)
- X is assigned to itself. (totalt 60 st)
- Unnecessary X. (totalt 27 st)
- Unnecessary escape character: \/. (totalt 17 st)
- Comparing to itself is potentially pointless. (totalt 16 st)
- Unnecessary escape character: \?. (totalt 11 st)
- Unnecessary escape character: \-. (totalt 7 st)
- Unnecessary escape character: \.. (totalt 6 st)
- Unnecessary escape character: \). (totalt 4 st)
- Unnecessary escape character: \[. (totalt 3 st)
- X is not modified in this loop. (totalt 3 st)
- Script URL is a form of eval. (totalt 3 st)
- Unnecessary escape character: \(. (totalt 2 st)
- Unnecessary escape character: \}. (totalt 1 st)
- Unnecessary escape character: \^. (totalt 1 st)
- eval can be harmful. (totalt 1 st)
- `content-type=".*javascript.*"` in: #55: mb36QiQZpRAdIpv, antal grupperade fel: 18 ( 1.40 betyg )
- `content-type=".*javascript.*"` in: #55: mb36QiQZpRAdIpv, antal fel: 15764 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 10605 st)
- Expected X and instead saw X. (totalt 4836 st)
- Do not access Object.prototype method X from target object. (totalt 160 st)
- X is assigned to itself. (totalt 60 st)
- Unnecessary X. (totalt 27 st)
- Unnecessary escape character: \/. (totalt 17 st)
- Comparing to itself is potentially pointless. (totalt 16 st)
- Unnecessary escape character: \?. (totalt 11 st)
- Unnecessary escape character: \-. (totalt 7 st)
- Unnecessary escape character: \.. (totalt 6 st)
- Unnecessary escape character: \). (totalt 4 st)
- Unnecessary escape character: \[. (totalt 3 st)
- X is not modified in this loop. (totalt 3 st)
- Script URL is a form of eval. (totalt 3 st)
- Unnecessary escape character: \(. (totalt 2 st)
- eval can be harmful. (totalt 2 st)
- Unnecessary escape character: \}. (totalt 1 st)
- Unnecessary escape character: \^. (totalt 1 st)
- `content-type=".*javascript.*"` in: #60: cast-sender.js, antal grupperade fel: 18 ( 1.40 betyg )
- `content-type=".*javascript.*"` in: #60: cast-sender.js, antal fel: 15786 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 10616 st)
- Expected X and instead saw X. (totalt 4847 st)
- Do not access Object.prototype method X from target object. (totalt 160 st)
- X is assigned to itself. (totalt 60 st)
- Unnecessary X. (totalt 27 st)
- Unnecessary escape character: \/. (totalt 17 st)
- Comparing to itself is potentially pointless. (totalt 16 st)
- Unnecessary escape character: \?. (totalt 11 st)
- Unnecessary escape character: \-. (totalt 7 st)
- Unnecessary escape character: \.. (totalt 6 st)
- Unnecessary escape character: \). (totalt 4 st)
- Unnecessary escape character: \[. (totalt 3 st)
- X is not modified in this loop. (totalt 3 st)
- Script URL is a form of eval. (totalt 3 st)
- Unnecessary escape character: \(. (totalt 2 st)
- eval can be harmful. (totalt 2 st)
- Unnecessary escape character: \}. (totalt 1 st)
- Unnecessary escape character: \^. (totalt 1 st)
- `content-type=".*javascript.*"` in: #62: cast-sender.js, antal grupperade fel: 18 ( 1.40 betyg )
- `content-type=".*javascript.*"` in: #62: cast-sender.js, antal fel: 15966 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 10701 st)
- Expected X and instead saw X. (totalt 4926 st)
- Do not access Object.prototype method X from target object. (totalt 165 st)
- X is assigned to itself. (totalt 67 st)
- Unnecessary X. (totalt 30 st)
- Comparing to itself is potentially pointless. (totalt 17 st)
- Unnecessary escape character: \/. (totalt 17 st)
- Unnecessary escape character: \?. (totalt 11 st)
- Unnecessary escape character: \-. (totalt 7 st)
- Unnecessary escape character: \.. (totalt 6 st)
- Unnecessary escape character: \). (totalt 4 st)
- Unnecessary escape character: \[. (totalt 3 st)
- X is not modified in this loop. (totalt 3 st)
- Script URL is a form of eval. (totalt 3 st)
- Unnecessary escape character: \(. (totalt 2 st)
- eval can be harmful. (totalt 2 st)
- Unnecessary escape character: \}. (totalt 1 st)
- Unnecessary escape character: \^. (totalt 1 st)