Javascript
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.32 av 5
- JS är dålig.Webbstandard
- `< script>` in: #1: Webbsida , antal grupperade fel: 2 ( 4.60 betyg )
- `< script>` in: #1: Webbsida , antal fel: 41 ( 1.00 betyg )
- X is not defined. (totalt 40 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: 402 ( 1.00 betyg )
- X is defined but never used. (totalt 189 st)
- X is not defined. (totalt 187 st)
- Unexpected console statement. (totalt 25 st)
- Parsing error: X in strict mode (totalt 1 st)
- `< script>` in: #77: svQK-q9epFc, antal grupperade fel: 1 ( 4.80 betyg )
- `< script>` in: #77: svQK-q9epFc, antal fel: 2 ( 4.60 betyg )
- X is not defined. (totalt 2 st)
- `content-type=".*javascript.*"` in: #47: a17fdb70-d258-4, antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #47: a17fdb70-d258-4, antal fel: 42 ( 1.00 betyg )
- X is defined but never used. (totalt 28 st)
- Unexpected console statement. (totalt 11 st)
- X is not defined. (totalt 3 st)
- `content-type=".*javascript.*"` in: #75: js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #75: js, antal fel: 584 ( 1.00 betyg )
- X is defined but never used. (totalt 454 st)
- X is assigned a value but never used. (totalt 94 st)
- X is not defined. (totalt 25 st)
- Unexpected console statement. (totalt 11 st)
- `content-type=".*javascript.*"` in: #76: ppms.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #76: ppms.js, antal fel: 604 ( 1.00 betyg )
- X is defined but never used. (totalt 467 st)
- X is assigned a value but never used. (totalt 94 st)
- X is not defined. (totalt 29 st)
- Unexpected console statement. (totalt 14 st)
- `content-type=".*javascript.*"` in: #81: embed.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #81: embed.js, antal fel: 605 ( 1.00 betyg )
- X is defined but never used. (totalt 467 st)
- X is assigned a value but never used. (totalt 94 st)
- X is not defined. (totalt 30 st)
- Unexpected console statement. (totalt 14 st)
- `content-type=".*javascript.*"` in: #82: www-embed-playe, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #82: www-embed-playe, antal fel: 700 ( 1.00 betyg )
- X is defined but never used. (totalt 551 st)
- X is assigned a value but never used. (totalt 98 st)
- X is not defined. (totalt 32 st)
- Unexpected console statement. (totalt 19 st)
- `content-type=".*javascript.*"` in: #83: base.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #83: base.js, antal fel: 930 ( 1.00 betyg )
- X is defined but never used. (totalt 755 st)
- X is assigned a value but never used. (totalt 110 st)
- X is not defined. (totalt 36 st)
- Unexpected console statement. (totalt 29 st)
- `content-type=".*javascript.*"` in: #84: ad-status.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #84: ad-status.js, antal fel: 930 ( 1.00 betyg )
- X is defined but never used. (totalt 755 st)
- X is assigned a value but never used. (totalt 110 st)
- X is not defined. (totalt 36 st)
- Unexpected console statement. (totalt 29 st)
- `content-type=".*javascript.*"` in: #85: remote.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #85: remote.js, antal fel: 1015 ( 1.00 betyg )
- X is defined but never used. (totalt 782 st)
- X is assigned a value but never used. (totalt 111 st)
- X is not defined. (totalt 93 st)
- Unexpected console statement. (totalt 29 st)
- `content-type=".*javascript.*"` in: #86: rqDMfREJsMUq8q-, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #86: rqDMfREJsMUq8q-, antal fel: 1015 ( 1.00 betyg )
- X is defined but never used. (totalt 782 st)
- X is assigned a value but never used. (totalt 111 st)
- X is not defined. (totalt 93 st)
- Unexpected console statement. (totalt 29 st)
- `content-type=".*javascript.*"` in: #91: cast-sender.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #91: cast-sender.js, antal fel: 1019 ( 1.00 betyg )
- X is defined but never used. (totalt 786 st)
- X is assigned a value but never used. (totalt 111 st)
- X is not defined. (totalt 93 st)
- Unexpected console statement. (totalt 29 st)
- `content-type=".*javascript.*"` in: #96: cast-sender.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #96: cast-sender.js, antal fel: 1028 ( 1.00 betyg )
- X is defined but never used. (totalt 794 st)
- X is assigned a value but never used. (totalt 111 st)
- X is not defined. (totalt 93 st)
- Unexpected console statement. (totalt 30 st)
Integritet & säkerhet
- `< script>` in: #1: Webbsida , antal grupperade fel: 2 ( 4.60 betyg )
- `< script>` in: #1: Webbsida , antal fel: 22 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 16 st)
- Expected X and instead saw X. (totalt 6 st)
- `< script src="...">` in: #1: Webbsida , antal grupperade fel: 20 ( 1.00 betyg )
- `< script src="...">` in: #1: Webbsida , antal fel: 3626 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 2182 st)
- Expected X and instead saw X. (totalt 1242 st)
- Do not access Object.prototype method X from target object. (totalt 47 st)
- X is not modified in this loop. (totalt 27 st)
- Comparing to itself is potentially pointless. (totalt 20 st)
- Unsafe usage of ThrowStatement. (totalt 19 st)
- The Function constructor is eval. (totalt 17 st)
- Unnecessary X. (totalt 16 st)
- Unnecessary escape character: \/. (totalt 13 st)
- X is assigned to itself. (totalt 11 st)
- Unnecessary escape character: \-. (totalt 10 st)
- Async arrow function has no X expression. (totalt 9 st)
- Script URL is a form of eval. (totalt 4 st)
- Unnecessary escape character: \=. (totalt 2 st)
- Unexpected string concatenation of literals. (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)
- Parsing error: X in strict mode (totalt 1 st)
- `< script>` in: #77: svQK-q9epFc, antal grupperade fel: 1 ( 4.80 betyg )
- `< script>` in: #77: svQK-q9epFc, antal fel: 4 ( 4.20 betyg )
- Expected X and instead saw X. (totalt 4 st)
- `content-type=".*javascript.*"` in: #47: a17fdb70-d258-4, antal grupperade fel: 12 ( 2.60 betyg )
- `content-type=".*javascript.*"` in: #47: a17fdb70-d258-4, antal fel: 946 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 586 st)
- Expected X and instead saw X. (totalt 327 st)
- Do not access Object.prototype method X from target object. (totalt 11 st)
- Unnecessary escape character: \-. (totalt 5 st)
- Unnecessary escape character: \.. (totalt 5 st)
- Unnecessary X. (totalt 4 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)
- The Function constructor is eval. (totalt 1 st)
- eval can be harmful. (totalt 1 st)
- `content-type=".*javascript.*"` in: #75: js, antal grupperade fel: 18 ( 1.40 betyg )
- `content-type=".*javascript.*"` in: #75: js, antal fel: 2208 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1542 st)
- Expected X and instead saw X. (totalt 542 st)
- Do not access Object.prototype method X from target object. (totalt 88 st)
- Unnecessary escape character: \.. (totalt 6 st)
- Unnecessary escape character: \/. (totalt 5 st)
- Unnecessary escape character: \-. (totalt 5 st)
- Unnecessary X. (totalt 4 st)
- X is not modified in this loop. (totalt 3 st)
- X is assigned to itself. (totalt 3 st)
- Unnecessary escape character: \). (totalt 2 st)
- Unnecessary escape character: \:. (totalt 1 st)
- Unnecessary escape character: \*. (totalt 1 st)
- The Function constructor is eval. (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)
- Unexpected string concatenation of literals. (totalt 1 st)
- Script URL is a form of eval. (totalt 1 st)
- `content-type=".*javascript.*"` in: #76: ppms.js, antal grupperade fel: 18 ( 1.40 betyg )
- `content-type=".*javascript.*"` in: #76: ppms.js, antal fel: 2474 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1804 st)
- Expected X and instead saw X. (totalt 545 st)
- Do not access Object.prototype method X from target object. (totalt 88 st)
- Unnecessary escape character: \.. (totalt 6 st)
- Unnecessary escape character: \/. (totalt 5 st)
- Unnecessary escape character: \-. (totalt 5 st)
- Unnecessary X. (totalt 4 st)
- X is not modified in this loop. (totalt 3 st)
- X is assigned to itself. (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)
- The Function constructor is eval. (totalt 1 st)
- Comparing to itself is potentially pointless. (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: #81: embed.js, antal grupperade fel: 18 ( 1.40 betyg )
- `content-type=".*javascript.*"` in: #81: embed.js, antal fel: 2560 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1882 st)
- Expected X and instead saw X. (totalt 553 st)
- Do not access Object.prototype method X from target object. (totalt 88 st)
- Unnecessary escape character: \.. (totalt 6 st)
- Unnecessary escape character: \/. (totalt 5 st)
- Unnecessary escape character: \-. (totalt 5 st)
- Unnecessary X. (totalt 4 st)
- X is not modified in this loop. (totalt 3 st)
- X is assigned to itself. (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)
- The Function constructor is eval. (totalt 1 st)
- Comparing to itself is potentially pointless. (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: #82: www-embed-playe, antal grupperade fel: 19 ( 1.20 betyg )
- `content-type=".*javascript.*"` in: #82: www-embed-playe, antal fel: 4298 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 3036 st)
- Expected X and instead saw X. (totalt 1086 st)
- Do not access Object.prototype method X from target object. (totalt 106 st)
- X is assigned to itself. (totalt 17 st)
- Unnecessary X. (totalt 15 st)
- Unnecessary escape character: \-. (totalt 7 st)
- Unnecessary escape character: \.. (totalt 6 st)
- Comparing to itself is potentially pointless. (totalt 6 st)
- Unnecessary escape character: \/. (totalt 5 st)
- X is not modified in this loop. (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)
- The Function constructor is eval. (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)
- Unnecessary escape character: \(. (totalt 1 st)
- `content-type=".*javascript.*"` in: #83: base.js, antal grupperade fel: 21 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #83: base.js, antal fel: 15420 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 10547 st)
- Expected X and instead saw X. (totalt 4574 st)
- Do not access Object.prototype method X from target object. (totalt 148 st)
- X is assigned to itself. (totalt 46 st)
- Unnecessary X. (totalt 29 st)
- Unnecessary escape character: \.. (totalt 12 st)
- Unnecessary escape character: \-. (totalt 11 st)
- Comparing to itself is potentially pointless. (totalt 11 st)
- Unnecessary escape character: \?. (totalt 11 st)
- Unnecessary escape character: \/. (totalt 9 st)
- Unnecessary escape character: \). (totalt 6 st)
- X is not modified in this loop. (totalt 3 st)
- Script URL is a form of eval. (totalt 3 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)
- The Function constructor is eval. (totalt 1 st)
- Unexpected string concatenation of literals. (totalt 1 st)
- Unnecessary escape character: \[. (totalt 1 st)
- Unnecessary escape character: \^. (totalt 1 st)
- `content-type=".*javascript.*"` in: #84: ad-status.js, antal grupperade fel: 21 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #84: ad-status.js, antal fel: 15420 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 10547 st)
- Expected X and instead saw X. (totalt 4574 st)
- Do not access Object.prototype method X from target object. (totalt 148 st)
- X is assigned to itself. (totalt 46 st)
- Unnecessary X. (totalt 29 st)
- Unnecessary escape character: \.. (totalt 12 st)
- Unnecessary escape character: \-. (totalt 11 st)
- Comparing to itself is potentially pointless. (totalt 11 st)
- Unnecessary escape character: \?. (totalt 11 st)
- Unnecessary escape character: \/. (totalt 9 st)
- Unnecessary escape character: \). (totalt 6 st)
- X is not modified in this loop. (totalt 3 st)
- Script URL is a form of eval. (totalt 3 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)
- The Function constructor is eval. (totalt 1 st)
- Unexpected string concatenation of literals. (totalt 1 st)
- Unnecessary escape character: \[. (totalt 1 st)
- Unnecessary escape character: \^. (totalt 1 st)
- `content-type=".*javascript.*"` in: #85: remote.js, antal grupperade fel: 21 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #85: remote.js, antal fel: 16200 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 11009 st)
- Expected X and instead saw X. (totalt 4883 st)
- Do not access Object.prototype method X from target object. (totalt 148 st)
- X is assigned to itself. (totalt 51 st)
- Unnecessary X. (totalt 30 st)
- Unnecessary escape character: \-. (totalt 12 st)
- Unnecessary escape character: \.. (totalt 12 st)
- Comparing to itself is potentially pointless. (totalt 11 st)
- Unnecessary escape character: \?. (totalt 11 st)
- Unnecessary escape character: \/. (totalt 10 st)
- Unnecessary escape character: \). (totalt 6 st)
- eval can be harmful. (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)
- The Function constructor is eval. (totalt 1 st)
- Unexpected string concatenation of literals. (totalt 1 st)
- Unnecessary escape character: \[. (totalt 1 st)
- Unnecessary escape character: \^. (totalt 1 st)
- `content-type=".*javascript.*"` in: #86: rqDMfREJsMUq8q-, antal grupperade fel: 21 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #86: rqDMfREJsMUq8q-, antal fel: 16218 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 11015 st)
- Expected X and instead saw X. (totalt 4894 st)
- Do not access Object.prototype method X from target object. (totalt 148 st)
- X is assigned to itself. (totalt 51 st)
- Unnecessary X. (totalt 30 st)
- Unnecessary escape character: \-. (totalt 12 st)
- Unnecessary escape character: \.. (totalt 12 st)
- Comparing to itself is potentially pointless. (totalt 11 st)
- Unnecessary escape character: \?. (totalt 11 st)
- Unnecessary escape character: \/. (totalt 10 st)
- Unnecessary escape character: \). (totalt 6 st)
- eval can be harmful. (totalt 4 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)
- The Function constructor is eval. (totalt 1 st)
- Unexpected string concatenation of literals. (totalt 1 st)
- Unnecessary escape character: \[. (totalt 1 st)
- Unnecessary escape character: \^. (totalt 1 st)
- `content-type=".*javascript.*"` in: #91: cast-sender.js, antal grupperade fel: 21 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #91: cast-sender.js, antal fel: 16240 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 11026 st)
- Expected X and instead saw X. (totalt 4905 st)
- Do not access Object.prototype method X from target object. (totalt 148 st)
- X is assigned to itself. (totalt 51 st)
- Unnecessary X. (totalt 30 st)
- Unnecessary escape character: \-. (totalt 12 st)
- Unnecessary escape character: \.. (totalt 12 st)
- Comparing to itself is potentially pointless. (totalt 11 st)
- Unnecessary escape character: \?. (totalt 11 st)
- Unnecessary escape character: \/. (totalt 10 st)
- Unnecessary escape character: \). (totalt 6 st)
- eval can be harmful. (totalt 4 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)
- The Function constructor is eval. (totalt 1 st)
- Unexpected string concatenation of literals. (totalt 1 st)
- Unnecessary escape character: \[. (totalt 1 st)
- Unnecessary escape character: \^. (totalt 1 st)
- `content-type=".*javascript.*"` in: #96: cast-sender.js, antal grupperade fel: 21 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #96: cast-sender.js, antal fel: 16420 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 11111 st)
- Expected X and instead saw X. (totalt 4984 st)
- Do not access Object.prototype method X from target object. (totalt 153 st)
- X is assigned to itself. (totalt 58 st)
- Unnecessary X. (totalt 33 st)
- Unnecessary escape character: \-. (totalt 12 st)
- Unnecessary escape character: \.. (totalt 12 st)
- Comparing to itself is potentially pointless. (totalt 12 st)
- Unnecessary escape character: \?. (totalt 11 st)
- Unnecessary escape character: \/. (totalt 10 st)
- Unnecessary escape character: \). (totalt 6 st)
- eval can be harmful. (totalt 4 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)
- The Function constructor is eval. (totalt 1 st)
- Unexpected string concatenation of literals. (totalt 1 st)
- Unnecessary escape character: \[. (totalt 1 st)
- Unnecessary escape character: \^. (totalt 1 st)