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.83 av 5
- JS är dålig.
Webbstandard
- `< script>` in: #1: fi, antal grupperade fel: 1 ( 4.80 betyg )
- `< script>` in: #1: fi, antal fel: 1 ( 4.80 betyg )
- Parsing error: Unexpected token : (totalt 1 st)
- `< script src="...">` in: #1: fi, antal grupperade fel: 4 ( 4.20 betyg )
- `< script src="...">` in: #1: fi, antal fel: 214 ( 1.00 betyg )
- X is not defined. (totalt 105 st)
- X is defined but never used. (totalt 99 st)
- Unexpected console statement. (totalt 6 st)
- X is assigned a value but never used. (totalt 4 st)
- `< script>` in: #120: embed, antal grupperade fel: 2 ( 4.60 betyg )
- `< script>` in: #120: embed, antal fel: 3 ( 4.40 betyg )
- X is defined but never used. (totalt 2 st)
- X is not defined. (totalt 1 st)
- `< script src="...">` in: #120: embed, antal grupperade fel: 2 ( 4.60 betyg )
- `< script src="...">` in: #120: embed, antal fel: 7 ( 3.60 betyg )
- X is not defined. (totalt 6 st)
- X is defined but never used. (totalt 1 st)
- `< script>` in: #136: embed, antal grupperade fel: 2 ( 4.60 betyg )
- `< script>` in: #136: embed, antal fel: 3 ( 4.40 betyg )
- X is defined but never used. (totalt 2 st)
- X is not defined. (totalt 1 st)
- `< script src="...">` in: #136: embed, antal grupperade fel: 2 ( 4.60 betyg )
- `< script src="...">` in: #136: embed, antal fel: 7 ( 3.60 betyg )
- X is not defined. (totalt 6 st)
- X is defined but never used. (totalt 1 st)
- `content-type=".*javascript.*"` in: #135: cookiesjsr.min., antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #135: cookiesjsr.min., antal fel: 118 ( 1.00 betyg )
- X is defined but never used. (totalt 90 st)
- Unexpected console statement. (totalt 15 st)
- X is not defined. (totalt 8 st)
- X is assigned a value but never used. (totalt 5 st)
- `content-type=".*javascript.*"` in: #143: init-embed.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #143: init-embed.js, antal fel: 231 ( 1.00 betyg )
- X is defined but never used. (totalt 117 st)
- X is not defined. (totalt 86 st)
- Unexpected console statement. (totalt 20 st)
- X is assigned a value but never used. (totalt 8 st)
- `content-type=".*javascript.*"` in: #144: search.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #144: search.js, antal fel: 234 ( 1.00 betyg )
- X is defined but never used. (totalt 118 st)
- X is not defined. (totalt 88 st)
- Unexpected console statement. (totalt 20 st)
- X is assigned a value but never used. (totalt 8 st)
- `content-type=".*javascript.*"` in: #145: geometry.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #145: geometry.js, antal fel: 235 ( 1.00 betyg )
- X is defined but never used. (totalt 118 st)
- X is not defined. (totalt 89 st)
- Unexpected console statement. (totalt 20 st)
- X is assigned a value but never used. (totalt 8 st)
- `content-type=".*javascript.*"` in: #146: main.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #146: main.js, antal fel: 301 ( 1.00 betyg )
- X is defined but never used. (totalt 156 st)
- X is not defined. (totalt 91 st)
- Unexpected console statement. (totalt 44 st)
- X is assigned a value but never used. (totalt 10 st)
- `content-type=".*javascript.*"` in: #148: common.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #148: common.js, antal fel: 313 ( 1.00 betyg )
- X is defined but never used. (totalt 167 st)
- X is not defined. (totalt 92 st)
- Unexpected console statement. (totalt 44 st)
- X is assigned a value but never used. (totalt 10 st)
- `content-type=".*javascript.*"` in: #149: util.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #149: util.js, antal fel: 332 ( 1.00 betyg )
- X is defined but never used. (totalt 182 st)
- X is not defined. (totalt 93 st)
- Unexpected console statement. (totalt 45 st)
- X is assigned a value but never used. (totalt 12 st)
- `content-type=".*javascript.*"` in: #150: map.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #150: map.js, antal fel: 345 ( 1.00 betyg )
- X is defined but never used. (totalt 189 st)
- X is not defined. (totalt 94 st)
- Unexpected console statement. (totalt 49 st)
- X is assigned a value but never used. (totalt 13 st)
- `content-type=".*javascript.*"` in: #151: overlay.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #151: overlay.js, antal fel: 346 ( 1.00 betyg )
- X is defined but never used. (totalt 189 st)
- X is not defined. (totalt 95 st)
- Unexpected console statement. (totalt 49 st)
- X is assigned a value but never used. (totalt 13 st)
Integritet & säkerhet
- `< script>` in: #1: fi, antal grupperade fel: 1 ( 4.80 betyg )
- `< script>` in: #1: fi, antal fel: 1 ( 4.80 betyg )
- Parsing error: Unexpected token : (totalt 1 st)
- `< script src="...">` in: #1: fi, antal grupperade fel: 13 ( 2.40 betyg )
- `< script src="...">` in: #1: fi, antal fel: 822 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 489 st)
- Expected X and instead saw X. (totalt 295 st)
- Do not access Object.prototype method X from target object. (totalt 10 st)
- Unnecessary X. (totalt 8 st)
- Unnecessary escape character: \/. (totalt 6 st)
- Unexpected string concatenation of literals. (totalt 5 st)
- Unnecessary escape character: \+. (totalt 2 st)
- Unnecessary escape character: \.. (totalt 2 st)
- Comparing to itself is potentially pointless. (totalt 1 st)
- X is assigned to itself. (totalt 1 st)
- Unnecessary escape character: \?. (totalt 1 st)
- Script URL is a form of eval. (totalt 1 st)
- eval can be harmful. (totalt 1 st)
- `< script src="...">` in: #120: embed, antal grupperade fel: 1 ( 4.80 betyg )
- `< script src="...">` in: #120: embed, antal fel: 1 ( 4.80 betyg )
- Expected X and instead saw X. (totalt 1 st)
- `< script src="...">` in: #136: embed, antal grupperade fel: 1 ( 4.80 betyg )
- `< script src="...">` in: #136: embed, antal fel: 1 ( 4.80 betyg )
- Expected X and instead saw X. (totalt 1 st)
- `content-type=".*javascript.*"` in: #135: cookiesjsr.min., antal grupperade fel: 13 ( 2.40 betyg )
- `content-type=".*javascript.*"` in: #135: cookiesjsr.min., antal fel: 1343 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 895 st)
- Expected X and instead saw X. (totalt 375 st)
- Do not access Object.prototype method X from target object. (totalt 40 st)
- Comparing to itself is potentially pointless. (totalt 15 st)
- X is not modified in this loop. (totalt 5 st)
- Unnecessary X. (totalt 4 st)
- The Function constructor is eval. (totalt 3 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)
- Unnecessary escape character: \/. (totalt 1 st)
- X is assigned to itself. (totalt 1 st)
- Unsafe usage of ThrowStatement. (totalt 1 st)
- `content-type=".*javascript.*"` in: #143: init-embed.js, antal grupperade fel: 16 ( 1.80 betyg )
- `content-type=".*javascript.*"` in: #143: init-embed.js, antal fel: 2989 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1628 st)
- Expected X and instead saw X. (totalt 1238 st)
- Do not access Object.prototype method X from target object. (totalt 49 st)
- X is assigned to itself. (totalt 23 st)
- Comparing to itself is potentially pointless. (totalt 18 st)
- Unnecessary X. (totalt 8 st)
- X is not modified in this loop. (totalt 8 st)
- The Function constructor is eval. (totalt 4 st)
- Unnecessary escape character: \?. (totalt 4 st)
- Unnecessary escape character: \/. (totalt 2 st)
- Unnecessary escape character: \$. (totalt 2 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)
- Unsafe usage of ThrowStatement. (totalt 1 st)
- Unnecessary escape character: \(. (totalt 1 st)
- `content-type=".*javascript.*"` in: #144: search.js, antal grupperade fel: 16 ( 1.80 betyg )
- `content-type=".*javascript.*"` in: #144: search.js, antal fel: 2998 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1636 st)
- Expected X and instead saw X. (totalt 1238 st)
- Do not access Object.prototype method X from target object. (totalt 49 st)
- X is assigned to itself. (totalt 24 st)
- Comparing to itself is potentially pointless. (totalt 18 st)
- Unnecessary X. (totalt 8 st)
- X is not modified in this loop. (totalt 8 st)
- The Function constructor is eval. (totalt 4 st)
- Unnecessary escape character: \?. (totalt 4 st)
- Unnecessary escape character: \/. (totalt 2 st)
- Unnecessary escape character: \$. (totalt 2 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)
- Unsafe usage of ThrowStatement. (totalt 1 st)
- Unnecessary escape character: \(. (totalt 1 st)
- `content-type=".*javascript.*"` in: #145: geometry.js, antal grupperade fel: 16 ( 1.80 betyg )
- `content-type=".*javascript.*"` in: #145: geometry.js, antal fel: 3004 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1642 st)
- Expected X and instead saw X. (totalt 1238 st)
- Do not access Object.prototype method X from target object. (totalt 49 st)
- X is assigned to itself. (totalt 24 st)
- Comparing to itself is potentially pointless. (totalt 18 st)
- Unnecessary X. (totalt 8 st)
- X is not modified in this loop. (totalt 8 st)
- The Function constructor is eval. (totalt 4 st)
- Unnecessary escape character: \?. (totalt 4 st)
- Unnecessary escape character: \/. (totalt 2 st)
- Unnecessary escape character: \$. (totalt 2 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)
- Unsafe usage of ThrowStatement. (totalt 1 st)
- Unnecessary escape character: \(. (totalt 1 st)
- `content-type=".*javascript.*"` in: #146: main.js, antal grupperade fel: 21 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #146: main.js, antal fel: 4115 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 2283 st)
- Expected X and instead saw X. (totalt 1453 st)
- X is assigned to itself. (totalt 242 st)
- Do not access Object.prototype method X from target object. (totalt 64 st)
- Comparing to itself is potentially pointless. (totalt 19 st)
- Unnecessary X. (totalt 13 st)
- Unexpected string concatenation of literals. (totalt 8 st)
- X is not modified in this loop. (totalt 8 st)
- Unnecessary escape character: \/. (totalt 5 st)
- The Function constructor is eval. (totalt 4 st)
- Unnecessary escape character: \?. (totalt 4 st)
- Unnecessary escape character: \$. (totalt 2 st)
- Unnecessary escape character: \). (totalt 2 st)
- Script URL is a form of eval. (totalt 1 st)
- Unnecessary escape character: \-. (totalt 1 st)
- Unsafe usage of ThrowStatement. (totalt 1 st)
- Unnecessary escape character: \(. (totalt 1 st)
- Async arrow function has no X expression. (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: #148: common.js, antal grupperade fel: 22 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #148: common.js, antal fel: 4552 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 2625 st)
- Expected X and instead saw X. (totalt 1537 st)
- X is assigned to itself. (totalt 242 st)
- Do not access Object.prototype method X from target object. (totalt 66 st)
- Comparing to itself is potentially pointless. (totalt 19 st)
- Unnecessary X. (totalt 14 st)
- Unexpected string concatenation of literals. (totalt 10 st)
- X is not modified in this loop. (totalt 8 st)
- Unnecessary escape character: \?. (totalt 8 st)
- Unnecessary escape character: \/. (totalt 6 st)
- The Function constructor is eval. (totalt 4 st)
- Unnecessary escape character: \$. (totalt 2 st)
- Unnecessary escape character: \). (totalt 2 st)
- Script URL is a form of eval. (totalt 1 st)
- Unnecessary escape character: \-. (totalt 1 st)
- Unsafe usage of ThrowStatement. (totalt 1 st)
- Unnecessary escape character: \(. (totalt 1 st)
- Async arrow function has no X expression. (totalt 1 st)
- Unnecessary escape character: \[. (totalt 1 st)
- Unnecessary escape character: \^. (totalt 1 st)
- Unnecessary escape character: \.. (totalt 1 st)
- Async method X has no X expression. (totalt 1 st)
- `content-type=".*javascript.*"` in: #149: util.js, antal grupperade fel: 22 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #149: util.js, antal fel: 5918 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 3254 st)
- Expected X and instead saw X. (totalt 2250 st)
- X is assigned to itself. (totalt 248 st)
- Do not access Object.prototype method X from target object. (totalt 76 st)
- Comparing to itself is potentially pointless. (totalt 19 st)
- Unnecessary X. (totalt 16 st)
- Unexpected string concatenation of literals. (totalt 10 st)
- X is not modified in this loop. (totalt 10 st)
- Unnecessary escape character: \?. (totalt 8 st)
- Unnecessary escape character: \/. (totalt 6 st)
- The Function constructor is eval. (totalt 5 st)
- Unnecessary escape character: \$. (totalt 4 st)
- Unnecessary escape character: \(. (totalt 2 st)
- Unnecessary escape character: \). (totalt 2 st)
- Script URL is a form of eval. (totalt 1 st)
- Unnecessary escape character: \-. (totalt 1 st)
- Unsafe usage of ThrowStatement. (totalt 1 st)
- Async arrow function has no X expression. (totalt 1 st)
- Unnecessary escape character: \[. (totalt 1 st)
- Unnecessary escape character: \^. (totalt 1 st)
- Unnecessary escape character: \.. (totalt 1 st)
- Async method X has no X expression. (totalt 1 st)
- `content-type=".*javascript.*"` in: #150: map.js, antal grupperade fel: 24 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #150: map.js, antal fel: 6230 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 3512 st)
- Expected X and instead saw X. (totalt 2292 st)
- X is assigned to itself. (totalt 249 st)
- Do not access Object.prototype method X from target object. (totalt 79 st)
- Unnecessary X. (totalt 19 st)
- Comparing to itself is potentially pointless. (totalt 19 st)
- Unexpected string concatenation of literals. (totalt 10 st)
- X is not modified in this loop. (totalt 10 st)
- Unnecessary escape character: \?. (totalt 8 st)
- Unnecessary escape character: \/. (totalt 7 st)
- The Function constructor is eval. (totalt 5 st)
- Unnecessary escape character: \$. (totalt 4 st)
- Unnecessary escape character: \-. (totalt 2 st)
- Unnecessary escape character: \(. (totalt 2 st)
- Unnecessary escape character: \). (totalt 2 st)
- Async function has no X expression. (totalt 2 st)
- Script URL is a form of eval. (totalt 1 st)
- Unsafe usage of ThrowStatement. (totalt 1 st)
- Async arrow function has no X expression. (totalt 1 st)
- Unnecessary escape character: \[. (totalt 1 st)
- Unnecessary escape character: \^. (totalt 1 st)
- Unnecessary escape character: \.. (totalt 1 st)
- Async method X has no X expression. (totalt 1 st)
- eval can be harmful. (totalt 1 st)
- `content-type=".*javascript.*"` in: #151: overlay.js, antal grupperade fel: 24 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #151: overlay.js, antal fel: 6245 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 3527 st)
- Expected X and instead saw X. (totalt 2292 st)
- X is assigned to itself. (totalt 249 st)
- Do not access Object.prototype method X from target object. (totalt 79 st)
- Unnecessary X. (totalt 19 st)
- Comparing to itself is potentially pointless. (totalt 19 st)
- Unexpected string concatenation of literals. (totalt 10 st)
- X is not modified in this loop. (totalt 10 st)
- Unnecessary escape character: \?. (totalt 8 st)
- Unnecessary escape character: \/. (totalt 7 st)
- The Function constructor is eval. (totalt 5 st)
- Unnecessary escape character: \$. (totalt 4 st)
- Unnecessary escape character: \-. (totalt 2 st)
- Unnecessary escape character: \(. (totalt 2 st)
- Unnecessary escape character: \). (totalt 2 st)
- Async function has no X expression. (totalt 2 st)
- Script URL is a form of eval. (totalt 1 st)
- Unsafe usage of ThrowStatement. (totalt 1 st)
- Async arrow function has no X expression. (totalt 1 st)
- Unnecessary escape character: \[. (totalt 1 st)
- Unnecessary escape character: \^. (totalt 1 st)
- Unnecessary escape character: \.. (totalt 1 st)
- Async method X has no X expression. (totalt 1 st)
- eval can be harmful. (totalt 1 st)