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.80 av 5
- JS är dålig.
Webbstandard
- `content-type=".*javascript.*"` in: #60: init-embed.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #60: 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: #62: geometry.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #62: geometry.js, antal fel: 114 ( 1.00 betyg )
- X is not defined. (totalt 79 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: #63: search.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #63: search.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: #64: main.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #64: 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: #66: common.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #66: 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: #67: util.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #67: 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: #68: map.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #68: 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: #69: overlay.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #69: 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: #71: onion.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #71: 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: #72: search-impl.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #72: 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
- `content-type=".*javascript.*"` in: #60: init-embed.js, antal grupperade fel: 12 ( 2.60 betyg )
- `content-type=".*javascript.*"` in: #60: 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: #62: geometry.js, antal grupperade fel: 12 ( 2.60 betyg )
- `content-type=".*javascript.*"` in: #62: geometry.js, antal fel: 1643 ( 1.00 betyg )
- Expected X and instead saw X. (totalt 888 st)
- Expected an assignment or function call and instead saw an expression. (totalt 703 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: #63: search.js, antal grupperade fel: 12 ( 2.60 betyg )
- `content-type=".*javascript.*"` in: #63: search.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: #64: main.js, antal grupperade fel: 19 ( 1.20 betyg )
- `content-type=".*javascript.*"` in: #64: 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: #66: common.js, antal grupperade fel: 20 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #66: 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: #67: util.js, antal grupperade fel: 20 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #67: 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: #68: map.js, antal grupperade fel: 22 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #68: 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: #69: overlay.js, antal grupperade fel: 22 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #69: 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: #71: onion.js, antal grupperade fel: 22 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #71: 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: #72: search-impl.js, antal grupperade fel: 22 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #72: 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)