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.54 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: 178 ( 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 4 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: 185 ( 1.00 betyg )
- X is not defined. (totalt 83 st)
- X is defined but never used. (totalt 69 st)
- Unexpected console statement. (totalt 28 st)
- X is assigned a value but never used. (totalt 5 st)
- `content-type=".*javascript.*"` in: #84: common.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #84: common.js, antal fel: 194 ( 1.00 betyg )
- X is not defined. (totalt 84 st)
- X is defined but never used. (totalt 77 st)
- Unexpected console statement. (totalt 28 st)
- X is assigned a value but never used. (totalt 5 st)
- `content-type=".*javascript.*"` in: #85: util.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #85: util.js, antal fel: 213 ( 1.00 betyg )
- X is defined but never used. (totalt 92 st)
- X is not defined. (totalt 85 st)
- Unexpected console statement. (totalt 29 st)
- X is assigned a value but never used. (totalt 7 st)
- `content-type=".*javascript.*"` in: #86: map.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #86: map.js, antal fel: 226 ( 1.00 betyg )
- X is defined but never used. (totalt 99 st)
- X is not defined. (totalt 86 st)
- Unexpected console statement. (totalt 33 st)
- X is assigned a value but never used. (totalt 8 st)
- `content-type=".*javascript.*"` in: #87: overlay.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #87: overlay.js, antal fel: 227 ( 1.00 betyg )
- X is defined but never used. (totalt 99 st)
- X is not defined. (totalt 87 st)
- Unexpected console statement. (totalt 33 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: 228 ( 1.00 betyg )
- X is defined but never used. (totalt 99 st)
- X is not defined. (totalt 88 st)
- Unexpected console statement. (totalt 33 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: 229 ( 1.00 betyg )
- X is defined but never used. (totalt 99 st)
- X is not defined. (totalt 89 st)
- Unexpected console statement. (totalt 33 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: 1637 ( 1.00 betyg )
- Expected X and instead saw X. (totalt 888 st)
- Expected an assignment or function call and instead saw an expression. (totalt 697 st)
- X is assigned to itself. (totalt 22 st)
- Do not access Object.prototype method X from target object. (totalt 9 st)
- Comparing to itself is potentially pointless. (totalt 5 st)
- Unnecessary X. (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 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: 1646 ( 1.00 betyg )
- Expected X and instead saw X. (totalt 888 st)
- Expected an assignment or function call and instead saw an expression. (totalt 705 st)
- X is assigned to itself. (totalt 23 st)
- Do not access Object.prototype method X from target object. (totalt 9 st)
- Comparing to itself is potentially pointless. (totalt 5 st)
- Unnecessary X. (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 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: 1652 ( 1.00 betyg )
- Expected X and instead saw X. (totalt 888 st)
- Expected an assignment or function call and instead saw an expression. (totalt 711 st)
- X is assigned to itself. (totalt 23 st)
- Do not access Object.prototype method X from target object. (totalt 9 st)
- Comparing to itself is potentially pointless. (totalt 5 st)
- Unnecessary X. (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 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: 19 ( 1.20 betyg )
- `content-type=".*javascript.*"` in: #75: main.js, antal fel: 2805 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1372 st)
- Expected X and instead saw X. (totalt 1122 st)
- X is assigned to itself. (totalt 242 st)
- Do not access Object.prototype method X from target object. (totalt 25 st)
- Unnecessary X. (totalt 9 st)
- Unexpected string concatenation of literals. (totalt 7 st)
- Comparing to itself is potentially pointless. (totalt 6 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 function has no X expression. (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: #84: common.js, antal grupperade fel: 20 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #84: common.js, antal fel: 3212 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1664 st)
- Expected X and instead saw X. (totalt 1226 st)
- X is assigned to itself. (totalt 242 st)
- Do not access Object.prototype method X from target object. (totalt 27 st)
- Unnecessary X. (totalt 10 st)
- Unexpected string concatenation of literals. (totalt 9 st)
- Unnecessary escape character: \?. (totalt 8 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)
- Unnecessary escape character: \). (totalt 2 st)
- Unnecessary escape character: \(. (totalt 1 st)
- The Function constructor is eval. (totalt 1 st)
- Async function has no X expression. (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: #85: util.js, antal grupperade fel: 20 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #85: util.js, antal fel: 4497 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 2230 st)
- Expected X and instead saw X. (totalt 1920 st)
- X is assigned to itself. (totalt 248 st)
- Do not access Object.prototype method X from target object. (totalt 38 st)
- Unnecessary X. (totalt 12 st)
- Unexpected string concatenation of literals. (totalt 9 st)
- Unnecessary escape character: \?. (totalt 8 st)
- Comparing to itself is potentially pointless. (totalt 6 st)
- Unnecessary escape character: \/. (totalt 5 st)
- X is not modified in this loop. (totalt 5 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 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: #86: map.js, antal grupperade fel: 22 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #86: map.js, antal fel: 4810 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 2494 st)
- Expected X and instead saw X. (totalt 1957 st)
- X is assigned to itself. (totalt 249 st)
- Do not access Object.prototype method X from target object. (totalt 41 st)
- Unnecessary X. (totalt 15 st)
- Unexpected string concatenation of literals. (totalt 9 st)
- Unnecessary escape character: \?. (totalt 8 st)
- Comparing to itself is potentially pointless. (totalt 6 st)
- Unnecessary escape character: \/. (totalt 6 st)
- X is not modified in this loop. (totalt 5 st)
- Unnecessary escape character: \$. (totalt 4 st)
- Async function has no X expression. (totalt 3 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)
- Unnecessary escape character: \-. (totalt 1 st)
- eval can be harmful. (totalt 1 st)
- `content-type=".*javascript.*"` in: #87: overlay.js, antal grupperade fel: 22 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #87: overlay.js, antal fel: 4825 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 2509 st)
- Expected X and instead saw X. (totalt 1957 st)
- X is assigned to itself. (totalt 249 st)
- Do not access Object.prototype method X from target object. (totalt 41 st)
- Unnecessary X. (totalt 15 st)
- Unexpected string concatenation of literals. (totalt 9 st)
- Unnecessary escape character: \?. (totalt 8 st)
- Comparing to itself is potentially pointless. (totalt 6 st)
- Unnecessary escape character: \/. (totalt 6 st)
- X is not modified in this loop. (totalt 5 st)
- Unnecessary escape character: \$. (totalt 4 st)
- Async function has no X expression. (totalt 3 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)
- 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: 4923 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 2585 st)
- Expected X and instead saw X. (totalt 1978 st)
- X is assigned to itself. (totalt 249 st)
- Do not access Object.prototype method X from target object. (totalt 41 st)
- Unnecessary X. (totalt 16 st)
- Unexpected string concatenation of literals. (totalt 9 st)
- Unnecessary escape character: \?. (totalt 8 st)
- Comparing to itself is potentially pointless. (totalt 6 st)
- Unnecessary escape character: \/. (totalt 6 st)
- X is not modified in this loop. (totalt 5 st)
- Unnecessary escape character: \$. (totalt 4 st)
- Async function has no X expression. (totalt 3 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)
- 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: 4942 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 2604 st)
- Expected X and instead saw X. (totalt 1978 st)
- X is assigned to itself. (totalt 249 st)
- Do not access Object.prototype method X from target object. (totalt 41 st)
- Unnecessary X. (totalt 16 st)
- Unexpected string concatenation of literals. (totalt 9 st)
- Unnecessary escape character: \?. (totalt 8 st)
- Comparing to itself is potentially pointless. (totalt 6 st)
- Unnecessary escape character: \/. (totalt 6 st)
- X is not modified in this loop. (totalt 5 st)
- Unnecessary escape character: \$. (totalt 4 st)
- Async function has no X expression. (totalt 3 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)
- Unnecessary escape character: \-. (totalt 1 st)
- eval can be harmful. (totalt 1 st)