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: 3.29 av 5
- JS är ok.
Webbstandard
- `< script>` in: #17: sv, antal grupperade fel: 1 ( 4.80 betyg )
- `< script>` in: #17: sv, antal fel: 1 ( 4.80 betyg )
- Parsing error: Unexpected token : (totalt 1 st)
- `< script src="...">` in: #17: sv, antal grupperade fel: 3 ( 4.40 betyg )
- `< script src="...">` in: #17: sv, antal fel: 9 ( 3.20 betyg )
- X is not defined. (totalt 5 st)
- X is defined but never used. (totalt 3 st)
- Unexpected console statement. (totalt 1 st)
- `< script>` in: #19: PMasNcKHFgI, antal grupperade fel: 1 ( 4.80 betyg )
- `< script>` in: #19: PMasNcKHFgI, antal fel: 2 ( 4.60 betyg )
- X is not defined. (totalt 2 st)
- `< script>` in: #52: inner.html, antal grupperade fel: 1 ( 4.80 betyg )
- `< script>` in: #52: inner.html, antal fel: 1 ( 4.80 betyg )
- X is defined but never used. (totalt 1 st)
- `content-type=".*javascript.*"` in: #26: wp-emoji-releas, antal grupperade fel: 1 ( 4.80 betyg )
- `content-type=".*javascript.*"` in: #26: wp-emoji-releas, antal fel: 1 ( 4.80 betyg )
- X is assigned a value but never used. (totalt 1 st)
- `content-type=".*javascript.*"` in: #30: embed.js, antal grupperade fel: 2 ( 4.60 betyg )
- `content-type=".*javascript.*"` in: #30: embed.js, antal fel: 2 ( 4.60 betyg )
- X is assigned a value but never used. (totalt 1 st)
- X is not defined. (totalt 1 st)
- `content-type=".*javascript.*"` in: #31: www-embed-playe, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #31: www-embed-playe, antal fel: 99 ( 1.00 betyg )
- X is defined but never used. (totalt 86 st)
- X is assigned a value but never used. (totalt 5 st)
- Unexpected console statement. (totalt 5 st)
- X is not defined. (totalt 3 st)
- `content-type=".*javascript.*"` in: #32: base.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #32: base.js, antal fel: 337 ( 1.00 betyg )
- X is defined but never used. (totalt 298 st)
- X is assigned a value but never used. (totalt 17 st)
- Unexpected console statement. (totalt 15 st)
- X is not defined. (totalt 7 st)
- `content-type=".*javascript.*"` in: #35: ad-status.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #35: ad-status.js, antal fel: 337 ( 1.00 betyg )
- X is defined but never used. (totalt 298 st)
- X is assigned a value but never used. (totalt 17 st)
- Unexpected console statement. (totalt 15 st)
- X is not defined. (totalt 7 st)
- `content-type=".*javascript.*"` in: #36: remote.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #36: remote.js, antal fel: 422 ( 1.00 betyg )
- X is defined but never used. (totalt 325 st)
- X is not defined. (totalt 64 st)
- X is assigned a value but never used. (totalt 18 st)
- Unexpected console statement. (totalt 15 st)
- `content-type=".*javascript.*"` in: #37: 37RaLk5j69uYEo1, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #37: 37RaLk5j69uYEo1, antal fel: 422 ( 1.00 betyg )
- X is defined but never used. (totalt 325 st)
- X is not defined. (totalt 64 st)
- X is assigned a value but never used. (totalt 18 st)
- Unexpected console statement. (totalt 15 st)
- `content-type=".*javascript.*"` in: #41: cast-sender.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #41: cast-sender.js, antal fel: 426 ( 1.00 betyg )
- X is defined but never used. (totalt 329 st)
- X is not defined. (totalt 64 st)
- X is assigned a value but never used. (totalt 18 st)
- Unexpected console statement. (totalt 15 st)
- `content-type=".*javascript.*"` in: #43: cast-sender.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #43: cast-sender.js, antal fel: 435 ( 1.00 betyg )
- X is defined but never used. (totalt 337 st)
- X is not defined. (totalt 64 st)
- X is assigned a value but never used. (totalt 18 st)
- Unexpected console statement. (totalt 16 st)
- `content-type=".*javascript.*"` in: #53: out-4.5.44.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #53: out-4.5.44.js, antal fel: 569 ( 1.00 betyg )
- X is defined but never used. (totalt 446 st)
- X is not defined. (totalt 88 st)
- X is assigned a value but never used. (totalt 19 st)
- Unexpected console statement. (totalt 16 st)
Integritet & säkerhet
- `< script>` in: #17: sv, antal grupperade fel: 1 ( 4.80 betyg )
- `< script>` in: #17: sv, antal fel: 1 ( 4.80 betyg )
- Parsing error: Unexpected token : (totalt 1 st)
- `< script src="...">` in: #17: sv, antal grupperade fel: 3 ( 4.40 betyg )
- `< script src="...">` in: #17: sv, antal fel: 418 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 324 st)
- Expected X and instead saw X. (totalt 89 st)
- Do not access Object.prototype method X from target object. (totalt 5 st)
- `< script>` in: #19: PMasNcKHFgI, antal grupperade fel: 1 ( 4.80 betyg )
- `< script>` in: #19: PMasNcKHFgI, antal fel: 4 ( 4.20 betyg )
- Expected X and instead saw X. (totalt 4 st)
- `< script src="...">` in: #50: m-outer-3437aad, antal grupperade fel: 1 ( 4.80 betyg )
- `< script src="...">` in: #50: m-outer-3437aad, antal fel: 2 ( 4.60 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 2 st)
- `< script>` in: #52: inner.html, antal grupperade fel: 1 ( 4.80 betyg )
- `< script>` in: #52: inner.html, antal fel: 3 ( 4.40 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 3 st)
- `content-type=".*javascript.*"` in: #26: wp-emoji-releas, antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #26: wp-emoji-releas, antal fel: 26 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 15 st)
- Expected X and instead saw X. (totalt 9 st)
- Do not access Object.prototype method X from target object. (totalt 2 st)
- `content-type=".*javascript.*"` in: #30: embed.js, antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #30: embed.js, antal fel: 110 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 91 st)
- Expected X and instead saw X. (totalt 17 st)
- Do not access Object.prototype method X from target object. (totalt 2 st)
- `content-type=".*javascript.*"` in: #31: www-embed-playe, antal grupperade fel: 10 ( 3.00 betyg )
- `content-type=".*javascript.*"` in: #31: www-embed-playe, antal fel: 1920 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1273 st)
- Expected X and instead saw X. (totalt 589 st)
- Do not access Object.prototype method X from target object. (totalt 20 st)
- X is assigned to itself. (totalt 14 st)
- Unnecessary X. (totalt 11 st)
- Comparing to itself is potentially pointless. (totalt 5 st)
- Unnecessary escape character: \?. (totalt 4 st)
- Unnecessary escape character: \-. (totalt 2 st)
- Unnecessary escape character: \(. (totalt 1 st)
- Unnecessary escape character: \/. (totalt 1 st)
- `content-type=".*javascript.*"` in: #32: base.js, antal grupperade fel: 15 ( 2.00 betyg )
- `content-type=".*javascript.*"` in: #32: base.js, antal fel: 12912 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 8648 st)
- Expected X and instead saw X. (totalt 4084 st)
- Do not access Object.prototype method X from target object. (totalt 61 st)
- X is assigned to itself. (totalt 43 st)
- Unnecessary X. (totalt 25 st)
- Unnecessary escape character: \?. (totalt 14 st)
- Comparing to itself is potentially pointless. (totalt 10 st)
- Unnecessary escape character: \-. (totalt 6 st)
- Unnecessary escape character: \.. (totalt 6 st)
- Unnecessary escape character: \/. (totalt 5 st)
- Unnecessary escape character: \). (totalt 4 st)
- Unnecessary escape character: \(. (totalt 2 st)
- Script URL is a form of eval. (totalt 2 st)
- Unnecessary escape character: \[. (totalt 1 st)
- Unnecessary escape character: \^. (totalt 1 st)
- `content-type=".*javascript.*"` in: #35: ad-status.js, antal grupperade fel: 15 ( 2.00 betyg )
- `content-type=".*javascript.*"` in: #35: ad-status.js, antal fel: 12912 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 8648 st)
- Expected X and instead saw X. (totalt 4084 st)
- Do not access Object.prototype method X from target object. (totalt 61 st)
- X is assigned to itself. (totalt 43 st)
- Unnecessary X. (totalt 25 st)
- Unnecessary escape character: \?. (totalt 14 st)
- Comparing to itself is potentially pointless. (totalt 10 st)
- Unnecessary escape character: \-. (totalt 6 st)
- Unnecessary escape character: \.. (totalt 6 st)
- Unnecessary escape character: \/. (totalt 5 st)
- Unnecessary escape character: \). (totalt 4 st)
- Unnecessary escape character: \(. (totalt 2 st)
- Script URL is a form of eval. (totalt 2 st)
- Unnecessary escape character: \[. (totalt 1 st)
- Unnecessary escape character: \^. (totalt 1 st)
- `content-type=".*javascript.*"` in: #36: remote.js, antal grupperade fel: 16 ( 1.80 betyg )
- `content-type=".*javascript.*"` in: #36: remote.js, antal fel: 13687 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 9109 st)
- Expected X and instead saw X. (totalt 4390 st)
- Do not access Object.prototype method X from target object. (totalt 61 st)
- X is assigned to itself. (totalt 48 st)
- Unnecessary X. (totalt 25 st)
- Unnecessary escape character: \?. (totalt 14 st)
- Comparing to itself is potentially pointless. (totalt 10 st)
- Unnecessary escape character: \-. (totalt 7 st)
- Unnecessary escape character: \/. (totalt 6 st)
- Unnecessary escape character: \.. (totalt 6 st)
- Unnecessary escape character: \). (totalt 4 st)
- Unnecessary escape character: \(. (totalt 2 st)
- Script URL is a form of eval. (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: #37: 37RaLk5j69uYEo1, antal grupperade fel: 16 ( 1.80 betyg )
- `content-type=".*javascript.*"` in: #37: 37RaLk5j69uYEo1, antal fel: 13702 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 9112 st)
- Expected X and instead saw X. (totalt 4401 st)
- Do not access Object.prototype method X from target object. (totalt 61 st)
- X is assigned to itself. (totalt 48 st)
- Unnecessary X. (totalt 25 st)
- Unnecessary escape character: \?. (totalt 14 st)
- Comparing to itself is potentially pointless. (totalt 10 st)
- Unnecessary escape character: \-. (totalt 7 st)
- Unnecessary escape character: \/. (totalt 6 st)
- Unnecessary escape character: \.. (totalt 6 st)
- Unnecessary escape character: \). (totalt 4 st)
- Unnecessary escape character: \(. (totalt 2 st)
- Script URL is a form of eval. (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: #41: cast-sender.js, antal grupperade fel: 16 ( 1.80 betyg )
- `content-type=".*javascript.*"` in: #41: cast-sender.js, antal fel: 13724 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 9123 st)
- Expected X and instead saw X. (totalt 4412 st)
- Do not access Object.prototype method X from target object. (totalt 61 st)
- X is assigned to itself. (totalt 48 st)
- Unnecessary X. (totalt 25 st)
- Unnecessary escape character: \?. (totalt 14 st)
- Comparing to itself is potentially pointless. (totalt 10 st)
- Unnecessary escape character: \-. (totalt 7 st)
- Unnecessary escape character: \/. (totalt 6 st)
- Unnecessary escape character: \.. (totalt 6 st)
- Unnecessary escape character: \). (totalt 4 st)
- Unnecessary escape character: \(. (totalt 2 st)
- Script URL is a form of eval. (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: #43: cast-sender.js, antal grupperade fel: 16 ( 1.80 betyg )
- `content-type=".*javascript.*"` in: #43: cast-sender.js, antal fel: 13904 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 9206 st)
- Expected X and instead saw X. (totalt 4493 st)
- Do not access Object.prototype method X from target object. (totalt 66 st)
- X is assigned to itself. (totalt 55 st)
- Unnecessary X. (totalt 28 st)
- Unnecessary escape character: \?. (totalt 14 st)
- Comparing to itself is potentially pointless. (totalt 11 st)
- Unnecessary escape character: \-. (totalt 7 st)
- Unnecessary escape character: \/. (totalt 6 st)
- Unnecessary escape character: \.. (totalt 6 st)
- Unnecessary escape character: \). (totalt 4 st)
- Unnecessary escape character: \(. (totalt 2 st)
- Script URL is a form of eval. (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: #53: out-4.5.44.js, antal grupperade fel: 19 ( 1.20 betyg )
- `content-type=".*javascript.*"` in: #53: out-4.5.44.js, antal fel: 14328 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 9459 st)
- Expected X and instead saw X. (totalt 4658 st)
- Do not access Object.prototype method X from target object. (totalt 66 st)
- X is assigned to itself. (totalt 55 st)
- Unnecessary X. (totalt 30 st)
- Unnecessary escape character: \?. (totalt 14 st)
- Comparing to itself is potentially pointless. (totalt 11 st)
- Unnecessary escape character: \-. (totalt 7 st)
- Unnecessary escape character: \/. (totalt 6 st)
- Unnecessary escape character: \.. (totalt 6 st)
- Unnecessary escape character: \). (totalt 4 st)
- Unnecessary escape character: \(. (totalt 2 st)
- Script URL is a form of eval. (totalt 2 st)
- eval can be harmful. (totalt 2 st)
- The Function constructor is eval. (totalt 2 st)
- Unnecessary escape character: \[. (totalt 1 st)
- Unnecessary escape character: \^. (totalt 1 st)
- X is not modified in this loop. (totalt 1 st)
- Unsafe usage of ThrowStatement. (totalt 1 st)