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.55 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 )
- Parsing error: Unexpected token : (totalt 1 st)
- `< script src="...">` in: #1: Webbsida , antal grupperade fel: 4 ( 4.20 betyg )
- `< script src="...">` in: #1: Webbsida , antal fel: 179 ( 1.00 betyg )
- X is not defined. (totalt 114 st)
- X is defined but never used. (totalt 57 st)
- X is assigned a value but never used. (totalt 5 st)
- Unexpected console statement. (totalt 3 st)
- `< script>` in: #64: embed, antal grupperade fel: 2 ( 4.60 betyg )
- `< script>` in: #64: 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: #64: embed, antal grupperade fel: 2 ( 4.60 betyg )
- `< script src="...">` in: #64: 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: #71: init-embed.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #71: init-embed.js, antal fel: 113 ( 1.00 betyg )
- X is not defined. (totalt 78 st)
- X is defined but never used. (totalt 27 st)
- Unexpected console statement. (totalt 5 st)
- X is assigned a value but never used. (totalt 3 st)
- `content-type=".*javascript.*"` in: #73: search.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #73: search.js, antal fel: 116 ( 1.00 betyg )
- X is not defined. (totalt 80 st)
- X is defined but never used. (totalt 28 st)
- Unexpected console statement. (totalt 5 st)
- X is assigned a value but never used. (totalt 3 st)
- `content-type=".*javascript.*"` in: #74: geometry.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #74: geometry.js, antal fel: 117 ( 1.00 betyg )
- X is not defined. (totalt 81 st)
- X is defined but never used. (totalt 28 st)
- Unexpected console statement. (totalt 5 st)
- X is assigned a value but never used. (totalt 3 st)
- `content-type=".*javascript.*"` in: #75: main.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #75: main.js, antal fel: 183 ( 1.00 betyg )
- X is not defined. (totalt 83 st)
- X is defined but never used. (totalt 66 st)
- Unexpected console statement. (totalt 29 st)
- X is assigned a value but never used. (totalt 5 st)
- `content-type=".*javascript.*"` in: #79: common.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #79: common.js, antal fel: 195 ( 1.00 betyg )
- X is not defined. (totalt 84 st)
- X is defined but never used. (totalt 77 st)
- Unexpected console statement. (totalt 29 st)
- X is assigned a value but never used. (totalt 5 st)
- `content-type=".*javascript.*"` in: #80: util.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #80: util.js, antal fel: 214 ( 1.00 betyg )
- X is defined but never used. (totalt 92 st)
- X is not defined. (totalt 85 st)
- Unexpected console statement. (totalt 30 st)
- X is assigned a value but never used. (totalt 7 st)
- `content-type=".*javascript.*"` in: #81: map.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #81: map.js, antal fel: 227 ( 1.00 betyg )
- X is defined but never used. (totalt 99 st)
- X is not defined. (totalt 86 st)
- Unexpected console statement. (totalt 34 st)
- X is assigned a value but never used. (totalt 8 st)
- `content-type=".*javascript.*"` in: #82: overlay.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #82: overlay.js, antal fel: 228 ( 1.00 betyg )
- X is defined but never used. (totalt 99 st)
- X is not defined. (totalt 87 st)
- Unexpected console statement. (totalt 34 st)
- X is assigned a value but never used. (totalt 8 st)
- `content-type=".*javascript.*"` in: #89: onion.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #89: onion.js, antal fel: 229 ( 1.00 betyg )
- X is defined but never used. (totalt 99 st)
- X is not defined. (totalt 88 st)
- Unexpected console statement. (totalt 34 st)
- X is assigned a value but never used. (totalt 8 st)
- `content-type=".*javascript.*"` in: #90: search-impl.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #90: search-impl.js, antal fel: 230 ( 1.00 betyg )
- X is defined but never used. (totalt 99 st)
- X is not defined. (totalt 89 st)
- Unexpected console statement. (totalt 34 st)
- X is assigned a value but never used. (totalt 8 st)
Integritet & säkerhet
- `< script>` in: #1: Webbsida , antal grupperade fel: 1 ( 4.80 betyg )
- `< script>` in: #1: Webbsida , antal fel: 1 ( 4.80 betyg )
- Parsing error: Unexpected token : (totalt 1 st)
- `< script src="...">` in: #1: Webbsida , antal grupperade fel: 9 ( 3.20 betyg )
- `< script src="...">` in: #1: Webbsida , antal fel: 673 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 370 st)
- Expected X and instead saw X. (totalt 271 st)
- Unnecessary escape character: \/. (totalt 12 st)
- Do not access Object.prototype method X from target object. (totalt 8 st)
- Unexpected string concatenation of literals. (totalt 5 st)
- Unnecessary X. (totalt 4 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 src="...">` in: #64: embed, antal grupperade fel: 1 ( 4.80 betyg )
- `< script src="...">` in: #64: embed, antal fel: 1 ( 4.80 betyg )
- Expected X and instead saw X. (totalt 1 st)
- `content-type=".*javascript.*"` in: #71: init-embed.js, antal grupperade fel: 12 ( 2.60 betyg )
- `content-type=".*javascript.*"` in: #71: init-embed.js, antal fel: 1642 ( 1.00 betyg )
- Expected X and instead saw X. (totalt 859 st)
- Expected an assignment or function call and instead saw an expression. (totalt 733 st)
- X is assigned to itself. (totalt 22 st)
- Do not access Object.prototype method X from target object. (totalt 9 st)
- Unnecessary X. (totalt 4 st)
- Unnecessary escape character: \?. (totalt 4 st)
- Comparing to itself is potentially pointless. (totalt 3 st)
- X is not modified in this loop. (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)
- `content-type=".*javascript.*"` in: #73: search.js, antal grupperade fel: 12 ( 2.60 betyg )
- `content-type=".*javascript.*"` in: #73: search.js, antal fel: 1651 ( 1.00 betyg )
- Expected X and instead saw X. (totalt 859 st)
- Expected an assignment or function call and instead saw an expression. (totalt 741 st)
- X is assigned to itself. (totalt 23 st)
- Do not access Object.prototype method X from target object. (totalt 9 st)
- Unnecessary X. (totalt 4 st)
- Unnecessary escape character: \?. (totalt 4 st)
- Comparing to itself is potentially pointless. (totalt 3 st)
- X is not modified in this loop. (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)
- `content-type=".*javascript.*"` in: #74: geometry.js, antal grupperade fel: 12 ( 2.60 betyg )
- `content-type=".*javascript.*"` in: #74: geometry.js, antal fel: 1657 ( 1.00 betyg )
- Expected X and instead saw X. (totalt 859 st)
- Expected an assignment or function call and instead saw an expression. (totalt 747 st)
- X is assigned to itself. (totalt 23 st)
- Do not access Object.prototype method X from target object. (totalt 9 st)
- Unnecessary X. (totalt 4 st)
- Unnecessary escape character: \?. (totalt 4 st)
- Comparing to itself is potentially pointless. (totalt 3 st)
- X is not modified in this loop. (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)
- `content-type=".*javascript.*"` in: #75: main.js, antal grupperade fel: 18 ( 1.40 betyg )
- `content-type=".*javascript.*"` in: #75: main.js, antal fel: 2768 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1388 st)
- Expected X and instead saw X. (totalt 1074 st)
- X is assigned to itself. (totalt 241 st)
- Do not access Object.prototype method X from target object. (totalt 24 st)
- Unnecessary X. (totalt 9 st)
- Unexpected string concatenation of literals. (totalt 7 st)
- Comparing to itself is potentially pointless. (totalt 4 st)
- Unnecessary escape character: \/. (totalt 4 st)
- Unnecessary escape character: \?. (totalt 4 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)
- The Function constructor is eval. (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: #79: common.js, antal grupperade fel: 19 ( 1.20 betyg )
- `content-type=".*javascript.*"` in: #79: common.js, antal fel: 3205 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1730 st)
- Expected X and instead saw X. (totalt 1158 st)
- X is assigned to itself. (totalt 241 st)
- Do not access Object.prototype method X from target object. (totalt 26 st)
- Unnecessary X. (totalt 10 st)
- Unexpected string concatenation of literals. (totalt 9 st)
- Unnecessary escape character: \?. (totalt 8 st)
- Unnecessary escape character: \/. (totalt 5 st)
- Comparing to itself is potentially pointless. (totalt 4 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)
- The Function constructor is eval. (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: #80: util.js, antal grupperade fel: 19 ( 1.20 betyg )
- `content-type=".*javascript.*"` in: #80: util.js, antal fel: 4571 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 2359 st)
- Expected X and instead saw X. (totalt 1871 st)
- X is assigned to itself. (totalt 247 st)
- Do not access Object.prototype method X from target object. (totalt 36 st)
- Unnecessary X. (totalt 12 st)
- Unexpected string concatenation of literals. (totalt 9 st)
- Unnecessary escape character: \?. (totalt 8 st)
- X is not modified in this loop. (totalt 5 st)
- Unnecessary escape character: \/. (totalt 5 st)
- Comparing to itself is potentially pointless. (totalt 4 st)
- Unnecessary escape character: \$. (totalt 4 st)
- Unnecessary escape character: \(. (totalt 2 st)
- The Function constructor is eval. (totalt 2 st)
- Unnecessary escape character: \). (totalt 2 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: #81: map.js, antal grupperade fel: 22 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #81: map.js, antal fel: 4883 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 2617 st)
- Expected X and instead saw X. (totalt 1913 st)
- X is assigned to itself. (totalt 248 st)
- Do not access Object.prototype method X from target object. (totalt 39 st)
- Unnecessary X. (totalt 15 st)
- Unexpected string concatenation of literals. (totalt 9 st)
- Unnecessary escape character: \?. (totalt 8 st)
- Unnecessary escape character: \/. (totalt 6 st)
- X is not modified in this loop. (totalt 5 st)
- Comparing to itself is potentially pointless. (totalt 4 st)
- Unnecessary escape character: \$. (totalt 4 st)
- Unnecessary escape character: \(. (totalt 2 st)
- The Function constructor is eval. (totalt 2 st)
- Unnecessary escape character: \). (totalt 2 st)
- Async function has no X expression. (totalt 2 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)
- Unnecessary escape character: \-. (totalt 1 st)
- eval can be harmful. (totalt 1 st)
- `content-type=".*javascript.*"` in: #82: overlay.js, antal grupperade fel: 22 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #82: overlay.js, antal fel: 4898 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 2632 st)
- Expected X and instead saw X. (totalt 1913 st)
- X is assigned to itself. (totalt 248 st)
- Do not access Object.prototype method X from target object. (totalt 39 st)
- Unnecessary X. (totalt 15 st)
- Unexpected string concatenation of literals. (totalt 9 st)
- Unnecessary escape character: \?. (totalt 8 st)
- Unnecessary escape character: \/. (totalt 6 st)
- X is not modified in this loop. (totalt 5 st)
- Comparing to itself is potentially pointless. (totalt 4 st)
- Unnecessary escape character: \$. (totalt 4 st)
- Unnecessary escape character: \(. (totalt 2 st)
- The Function constructor is eval. (totalt 2 st)
- Unnecessary escape character: \). (totalt 2 st)
- Async function has no X expression. (totalt 2 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)
- Unnecessary escape character: \-. (totalt 1 st)
- eval can be harmful. (totalt 1 st)
- `content-type=".*javascript.*"` in: #89: onion.js, antal grupperade fel: 22 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #89: onion.js, antal fel: 5012 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 2716 st)
- Expected X and instead saw X. (totalt 1942 st)
- X is assigned to itself. (totalt 248 st)
- Do not access Object.prototype method X from target object. (totalt 39 st)
- Unnecessary X. (totalt 16 st)
- Unexpected string concatenation of literals. (totalt 9 st)
- Unnecessary escape character: \?. (totalt 8 st)
- Unnecessary escape character: \/. (totalt 6 st)
- X is not modified in this loop. (totalt 5 st)
- Comparing to itself is potentially pointless. (totalt 4 st)
- Unnecessary escape character: \$. (totalt 4 st)
- Unnecessary escape character: \(. (totalt 2 st)
- The Function constructor is eval. (totalt 2 st)
- Unnecessary escape character: \). (totalt 2 st)
- Async function has no X expression. (totalt 2 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)
- Unnecessary escape character: \-. (totalt 1 st)
- eval can be harmful. (totalt 1 st)
- `content-type=".*javascript.*"` in: #90: search-impl.js, antal grupperade fel: 22 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #90: search-impl.js, antal fel: 5031 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 2735 st)
- Expected X and instead saw X. (totalt 1942 st)
- X is assigned to itself. (totalt 248 st)
- Do not access Object.prototype method X from target object. (totalt 39 st)
- Unnecessary X. (totalt 16 st)
- Unexpected string concatenation of literals. (totalt 9 st)
- Unnecessary escape character: \?. (totalt 8 st)
- Unnecessary escape character: \/. (totalt 6 st)
- X is not modified in this loop. (totalt 5 st)
- Comparing to itself is potentially pointless. (totalt 4 st)
- Unnecessary escape character: \$. (totalt 4 st)
- Unnecessary escape character: \(. (totalt 2 st)
- The Function constructor is eval. (totalt 2 st)
- Unnecessary escape character: \). (totalt 2 st)
- Async function has no X expression. (totalt 2 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)
- Unnecessary escape character: \-. (totalt 1 st)
- eval can be harmful. (totalt 1 st)