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.21 av 5
- JS är dålig.
Webbstandard
- `< script>` in: #1: Webbsida , antal grupperade fel: 2 ( 4.60 betyg )
- `< script>` in: #1: Webbsida , antal fel: 3 ( 4.40 betyg )
- X is assigned a value but never used. (totalt 2 st)
- X is not defined. (totalt 1 st)
- `< script src="...">` in: #1: Webbsida , antal grupperade fel: 4 ( 4.20 betyg )
- `< script src="...">` in: #1: Webbsida , antal fel: 600 ( 1.00 betyg )
- X is defined but never used. (totalt 445 st)
- X is assigned a value but never used. (totalt 95 st)
- X is not defined. (totalt 48 st)
- Unexpected console statement. (totalt 12 st)
- `content-type=".*javascript.*"` in: #36: loader.js, antal grupperade fel: 2 ( 4.60 betyg )
- `content-type=".*javascript.*"` in: #36: loader.js, antal fel: 31 ( 1.00 betyg )
- X is defined but never used. (totalt 22 st)
- Unexpected console statement. (totalt 9 st)
- `content-type=".*javascript.*"` in: #37: js, antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #37: js, antal fel: 38 ( 1.00 betyg )
- X is defined but never used. (totalt 23 st)
- Unexpected console statement. (totalt 9 st)
- X is not defined. (totalt 6 st)
- `content-type=".*javascript.*"` in: #38: geometry.js, antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #38: geometry.js, antal fel: 39 ( 1.00 betyg )
- X is defined but never used. (totalt 23 st)
- Unexpected console statement. (totalt 9 st)
- X is not defined. (totalt 7 st)
- `content-type=".*javascript.*"` in: #39: main.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #39: main.js, antal fel: 105 ( 1.00 betyg )
- X is defined but never used. (totalt 61 st)
- Unexpected console statement. (totalt 33 st)
- X is not defined. (totalt 9 st)
- X is assigned a value but never used. (totalt 2 st)
- `content-type=".*javascript.*"` in: #40: tile.stamen.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #40: tile.stamen.js, antal fel: 135 ( 1.00 betyg )
- X is defined but never used. (totalt 61 st)
- X is not defined. (totalt 37 st)
- Unexpected console statement. (totalt 35 st)
- X is assigned a value but never used. (totalt 2 st)
- `content-type=".*javascript.*"` in: #43: common.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #43: common.js, antal fel: 147 ( 1.00 betyg )
- X is defined but never used. (totalt 72 st)
- X is not defined. (totalt 38 st)
- Unexpected console statement. (totalt 35 st)
- X is assigned a value but never used. (totalt 2 st)
- `content-type=".*javascript.*"` in: #44: util.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #44: util.js, antal fel: 166 ( 1.00 betyg )
- X is defined but never used. (totalt 87 st)
- X is not defined. (totalt 39 st)
- Unexpected console statement. (totalt 36 st)
- X is assigned a value but never used. (totalt 4 st)
- `content-type=".*javascript.*"` in: #45: map.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #45: map.js, antal fel: 179 ( 1.00 betyg )
- X is defined but never used. (totalt 94 st)
- Unexpected console statement. (totalt 40 st)
- X is not defined. (totalt 40 st)
- X is assigned a value but never used. (totalt 5 st)
- `content-type=".*javascript.*"` in: #46: marker.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #46: marker.js, antal fel: 184 ( 1.00 betyg )
- X is defined but never used. (totalt 94 st)
- Unexpected console statement. (totalt 44 st)
- X is not defined. (totalt 41 st)
- X is assigned a value but never used. (totalt 5 st)
- `content-type=".*javascript.*"` in: #48: onion.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #48: onion.js, antal fel: 185 ( 1.00 betyg )
- X is defined but never used. (totalt 94 st)
- Unexpected console statement. (totalt 44 st)
- X is not defined. (totalt 42 st)
- X is assigned a value but never used. (totalt 5 st)
- `content-type=".*javascript.*"` in: #59: controls.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #59: controls.js, antal fel: 186 ( 1.00 betyg )
- X is defined but never used. (totalt 94 st)
- Unexpected console statement. (totalt 44 st)
- X is not defined. (totalt 43 st)
- X is assigned a value but never used. (totalt 5 st)
Integritet & säkerhet
- `< script>` in: #1: Webbsida , antal grupperade fel: 1 ( 4.80 betyg )
- `< script>` in: #1: Webbsida , antal fel: 7 ( 3.60 betyg )
- Unnecessary escape character: \/. (totalt 7 st)
- `< script src="...">` in: #1: Webbsida , antal grupperade fel: 23 ( 1.00 betyg )
- `< script src="...">` in: #1: Webbsida , antal fel: 2523 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1863 st)
- Expected X and instead saw X. (totalt 496 st)
- Do not access Object.prototype method X from target object. (totalt 94 st)
- Unnecessary escape character: \/. (totalt 13 st)
- Unnecessary escape character: \-. (totalt 7 st)
- Unnecessary escape character: \+. (totalt 6 st)
- Unnecessary escape character: \$. (totalt 5 st)
- Unnecessary escape character: \(. (totalt 5 st)
- Unnecessary escape character: \). (totalt 5 st)
- Unnecessary escape character: \*. (totalt 5 st)
- X is assigned to itself. (totalt 4 st)
- X is not modified in this loop. (totalt 3 st)
- Comparing to itself is potentially pointless. (totalt 3 st)
- Unnecessary escape character: \:. (totalt 3 st)
- Unnecessary escape character: \.. (totalt 2 st)
- Unsafe usage of ReturnStatement. (totalt 2 st)
- Unnecessary escape character: \?. (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)
- Unnecessary X. (totalt 1 st)
- Unnecessary escape character: \,. (totalt 1 st)
- Unnecessary escape character: \#. (totalt 1 st)
- `content-type=".*javascript.*"` in: #36: loader.js, antal grupperade fel: 9 ( 3.20 betyg )
- `content-type=".*javascript.*"` in: #36: loader.js, antal fel: 298 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 147 st)
- Expected X and instead saw X. (totalt 133 st)
- Unnecessary X. (totalt 6 st)
- Comparing to itself is potentially pointless. (totalt 4 st)
- Unnecessary escape character: \?. (totalt 4 st)
- Unnecessary escape character: \[. (totalt 1 st)
- Unnecessary escape character: \^. (totalt 1 st)
- Unnecessary escape character: \/. (totalt 1 st)
- Do not access Object.prototype method X from target object. (totalt 1 st)
- `content-type=".*javascript.*"` in: #37: js, antal grupperade fel: 9 ( 3.20 betyg )
- `content-type=".*javascript.*"` in: #37: js, antal fel: 299 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 147 st)
- Expected X and instead saw X. (totalt 134 st)
- Unnecessary X. (totalt 6 st)
- Comparing to itself is potentially pointless. (totalt 4 st)
- Unnecessary escape character: \?. (totalt 4 st)
- Unnecessary escape character: \[. (totalt 1 st)
- Unnecessary escape character: \^. (totalt 1 st)
- Unnecessary escape character: \/. (totalt 1 st)
- Do not access Object.prototype method X from target object. (totalt 1 st)
- `content-type=".*javascript.*"` in: #38: geometry.js, antal grupperade fel: 9 ( 3.20 betyg )
- `content-type=".*javascript.*"` in: #38: geometry.js, antal fel: 305 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 153 st)
- Expected X and instead saw X. (totalt 134 st)
- Unnecessary X. (totalt 6 st)
- Comparing to itself is potentially pointless. (totalt 4 st)
- Unnecessary escape character: \?. (totalt 4 st)
- Unnecessary escape character: \[. (totalt 1 st)
- Unnecessary escape character: \^. (totalt 1 st)
- Unnecessary escape character: \/. (totalt 1 st)
- Do not access Object.prototype method X from target object. (totalt 1 st)
- `content-type=".*javascript.*"` in: #39: main.js, antal grupperade fel: 14 ( 2.20 betyg )
- `content-type=".*javascript.*"` in: #39: main.js, antal fel: 1416 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 794 st)
- Expected X and instead saw X. (totalt 349 st)
- X is assigned to itself. (totalt 218 st)
- Do not access Object.prototype method X from target object. (totalt 16 st)
- Unnecessary X. (totalt 11 st)
- Unexpected string concatenation of literals. (totalt 7 st)
- Comparing to itself is potentially pointless. (totalt 5 st)
- Unnecessary escape character: \/. (totalt 4 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 arrow function has no X expression. (totalt 1 st)
- Unnecessary escape character: \.. (totalt 1 st)
- `content-type=".*javascript.*"` in: #40: tile.stamen.js, antal grupperade fel: 14 ( 2.20 betyg )
- `content-type=".*javascript.*"` in: #40: tile.stamen.js, antal fel: 1416 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 794 st)
- Expected X and instead saw X. (totalt 349 st)
- X is assigned to itself. (totalt 218 st)
- Do not access Object.prototype method X from target object. (totalt 16 st)
- Unnecessary X. (totalt 11 st)
- Unexpected string concatenation of literals. (totalt 7 st)
- Comparing to itself is potentially pointless. (totalt 5 st)
- Unnecessary escape character: \/. (totalt 4 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 arrow function has no X expression. (totalt 1 st)
- Unnecessary escape character: \.. (totalt 1 st)
- `content-type=".*javascript.*"` in: #43: common.js, antal grupperade fel: 15 ( 2.00 betyg )
- `content-type=".*javascript.*"` in: #43: common.js, antal fel: 1853 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1136 st)
- Expected X and instead saw X. (totalt 433 st)
- X is assigned to itself. (totalt 218 st)
- Do not access Object.prototype method X from target object. (totalt 18 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 5 st)
- Unnecessary escape character: \/. (totalt 5 st)
- Unnecessary escape character: \[. (totalt 2 st)
- Unnecessary escape character: \^. (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)
- Async method X has no X expression. (totalt 1 st)
- `content-type=".*javascript.*"` in: #44: util.js, antal grupperade fel: 19 ( 1.20 betyg )
- `content-type=".*javascript.*"` in: #44: util.js, antal fel: 3219 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1765 st)
- Expected X and instead saw X. (totalt 1146 st)
- X is assigned to itself. (totalt 224 st)
- Do not access Object.prototype method X from target object. (totalt 28 st)
- Unnecessary X. (totalt 14 st)
- Unexpected string concatenation of literals. (totalt 9 st)
- Unnecessary escape character: \?. (totalt 8 st)
- Comparing to itself is potentially pointless. (totalt 5 st)
- Unnecessary escape character: \/. (totalt 5 st)
- Unnecessary escape character: \[. (totalt 2 st)
- Unnecessary escape character: \^. (totalt 2 st)
- Unnecessary escape character: \). (totalt 2 st)
- X is not modified in this loop. (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)
- Async method X has no X expression. (totalt 1 st)
- The Function constructor is eval. (totalt 1 st)
- Unnecessary escape character: \(. (totalt 1 st)
- `content-type=".*javascript.*"` in: #45: map.js, antal grupperade fel: 22 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #45: map.js, antal fel: 3531 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 2023 st)
- Expected X and instead saw X. (totalt 1188 st)
- X is assigned to itself. (totalt 225 st)
- Do not access Object.prototype method X from target object. (totalt 31 st)
- Unnecessary X. (totalt 17 st)
- Unexpected string concatenation of literals. (totalt 9 st)
- Unnecessary escape character: \?. (totalt 8 st)
- Unnecessary escape character: \/. (totalt 6 st)
- Comparing to itself is potentially pointless. (totalt 5 st)
- Unnecessary escape character: \[. (totalt 2 st)
- Unnecessary escape character: \^. (totalt 2 st)
- Unnecessary escape character: \). (totalt 2 st)
- X is not modified in this loop. (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)
- Async method X has no X expression. (totalt 1 st)
- The Function constructor is eval. (totalt 1 st)
- Unnecessary escape character: \(. (totalt 1 st)
- Unnecessary escape character: \-. (totalt 1 st)
- eval can be harmful. (totalt 1 st)
- `content-type=".*javascript.*"` in: #46: marker.js, antal grupperade fel: 22 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #46: marker.js, antal fel: 3860 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 2306 st)
- Expected X and instead saw X. (totalt 1229 st)
- X is assigned to itself. (totalt 230 st)
- Do not access Object.prototype method X from target object. (totalt 31 st)
- Unnecessary X. (totalt 17 st)
- Unexpected string concatenation of literals. (totalt 9 st)
- Unnecessary escape character: \?. (totalt 8 st)
- Unnecessary escape character: \/. (totalt 6 st)
- Comparing to itself is potentially pointless. (totalt 5 st)
- Unnecessary escape character: \[. (totalt 2 st)
- Unnecessary escape character: \^. (totalt 2 st)
- Unnecessary escape character: \). (totalt 2 st)
- X is not modified in this loop. (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)
- Async method X has no X expression. (totalt 1 st)
- The Function constructor is eval. (totalt 1 st)
- Unnecessary escape character: \(. (totalt 1 st)
- Unnecessary escape character: \-. (totalt 1 st)
- eval can be harmful. (totalt 1 st)
- `content-type=".*javascript.*"` in: #48: onion.js, antal grupperade fel: 22 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #48: onion.js, antal fel: 3974 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 2390 st)
- Expected X and instead saw X. (totalt 1258 st)
- X is assigned to itself. (totalt 230 st)
- Do not access Object.prototype method X from target object. (totalt 31 st)
- Unnecessary X. (totalt 18 st)
- Unexpected string concatenation of literals. (totalt 9 st)
- Unnecessary escape character: \?. (totalt 8 st)
- Unnecessary escape character: \/. (totalt 6 st)
- Comparing to itself is potentially pointless. (totalt 5 st)
- Unnecessary escape character: \[. (totalt 2 st)
- Unnecessary escape character: \^. (totalt 2 st)
- Unnecessary escape character: \). (totalt 2 st)
- X is not modified in this loop. (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)
- Async method X has no X expression. (totalt 1 st)
- The Function constructor is eval. (totalt 1 st)
- Unnecessary escape character: \(. (totalt 1 st)
- Unnecessary escape character: \-. (totalt 1 st)
- eval can be harmful. (totalt 1 st)
- `content-type=".*javascript.*"` in: #59: controls.js, antal grupperade fel: 22 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #59: controls.js, antal fel: 4308 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 2665 st)
- Expected X and instead saw X. (totalt 1315 st)
- X is assigned to itself. (totalt 230 st)
- Do not access Object.prototype method X from target object. (totalt 31 st)
- Unnecessary X. (totalt 18 st)
- Unexpected string concatenation of literals. (totalt 9 st)
- Unnecessary escape character: \?. (totalt 8 st)
- Unnecessary escape character: \/. (totalt 6 st)
- Comparing to itself is potentially pointless. (totalt 5 st)
- Async function has no X expression. (totalt 3 st)
- Unnecessary escape character: \[. (totalt 2 st)
- Unnecessary escape character: \^. (totalt 2 st)
- Unnecessary escape character: \). (totalt 2 st)
- X is not modified in this loop. (totalt 2 st)
- Unnecessary escape character: \$. (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)
- Async method X has no X expression. (totalt 1 st)
- The Function constructor is eval. (totalt 1 st)
- Unnecessary escape character: \(. (totalt 1 st)
- eval can be harmful. (totalt 1 st)