Javascript
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.19 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: 545 ( 1.00 betyg )
- X is defined but never used. (totalt 429 st)
- X is assigned a value but never used. (totalt 71 st)
- X is not defined. (totalt 36 st)
- Unexpected console statement. (totalt 9 st)
- `content-type=".*javascript.*"` in: #27: main.min.js, antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #27: main.min.js, antal fel: 41 ( 1.00 betyg )
- X is defined but never used. (totalt 19 st)
- X is not defined. (totalt 18 st)
- Unexpected console statement. (totalt 4 st)
- `content-type=".*javascript.*"` in: #40: js, antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #40: js, antal fel: 48 ( 1.00 betyg )
- X is not defined. (totalt 24 st)
- X is defined but never used. (totalt 20 st)
- Unexpected console statement. (totalt 4 st)
- `content-type=".*javascript.*"` in: #42: main.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #42: main.js, antal fel: 114 ( 1.00 betyg )
- X is defined but never used. (totalt 58 st)
- Unexpected console statement. (totalt 28 st)
- X is not defined. (totalt 26 st)
- X is assigned a value but never used. (totalt 2 st)
- `content-type=".*javascript.*"` in: #44: common.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #44: common.js, antal fel: 126 ( 1.00 betyg )
- X is defined but never used. (totalt 69 st)
- Unexpected console statement. (totalt 28 st)
- X is not defined. (totalt 27 st)
- X is assigned a value but never used. (totalt 2 st)
- `content-type=".*javascript.*"` in: #45: map.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #45: map.js, antal fel: 139 ( 1.00 betyg )
- X is defined but never used. (totalt 76 st)
- Unexpected console statement. (totalt 32 st)
- X is not defined. (totalt 28 st)
- X is assigned a value but never used. (totalt 3 st)
- `content-type=".*javascript.*"` in: #46: util.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #46: util.js, antal fel: 158 ( 1.00 betyg )
- X is defined but never used. (totalt 91 st)
- Unexpected console statement. (totalt 33 st)
- X is not defined. (totalt 29 st)
- X is assigned a value but never used. (totalt 5 st)
- `content-type=".*javascript.*"` in: #47: infowindow.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #47: infowindow.js, antal fel: 160 ( 1.00 betyg )
- X is defined but never used. (totalt 91 st)
- Unexpected console statement. (totalt 34 st)
- X is not defined. (totalt 30 st)
- X is assigned a value but never used. (totalt 5 st)
- `content-type=".*javascript.*"` in: #48: marker.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #48: marker.js, antal fel: 165 ( 1.00 betyg )
- X is defined but never used. (totalt 91 st)
- Unexpected console statement. (totalt 38 st)
- X is not defined. (totalt 31 st)
- X is assigned a value but never used. (totalt 5 st)
- `content-type=".*javascript.*"` in: #51: log.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #51: log.js, antal fel: 172 ( 1.00 betyg )
- X is defined but never used. (totalt 95 st)
- Unexpected console statement. (totalt 38 st)
- X is not defined. (totalt 32 st)
- X is assigned a value but never used. (totalt 7 st)
- `content-type=".*javascript.*"` in: #56: onion.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #56: onion.js, antal fel: 173 ( 1.00 betyg )
- X is defined but never used. (totalt 95 st)
- Unexpected console statement. (totalt 38 st)
- X is not defined. (totalt 33 st)
- X is assigned a value but never used. (totalt 7 st)
- `content-type=".*javascript.*"` in: #72: vt, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #72: vt, antal fel: 175 ( 1.00 betyg )
- X is defined but never used. (totalt 95 st)
- Unexpected console statement. (totalt 38 st)
- X is not defined. (totalt 35 st)
- X is assigned a value but never used. (totalt 7 st)
- `content-type=".*javascript.*"` in: #73: controls.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #73: controls.js, antal fel: 176 ( 1.00 betyg )
- X is defined but never used. (totalt 95 st)
- Unexpected console statement. (totalt 38 st)
- X is not defined. (totalt 36 st)
- X is assigned a value but never used. (totalt 7 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: 14 ( 2.20 betyg )
- `< script src="...">` in: #1: Webbsida , antal fel: 2839 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1906 st)
- Expected X and instead saw X. (totalt 787 st)
- Do not access Object.prototype method X from target object. (totalt 100 st)
- Unsafe usage of ThrowStatement. (totalt 10 st)
- Comparing to itself is potentially pointless. (totalt 7 st)
- X is assigned to itself. (totalt 7 st)
- X is not modified in this loop. (totalt 5 st)
- Unnecessary escape character: \/. (totalt 5 st)
- Unsafe usage of ReturnStatement. (totalt 4 st)
- The Function constructor is eval. (totalt 3 st)
- Unnecessary X. (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)
- `content-type=".*javascript.*"` in: #27: main.min.js, antal grupperade fel: 5 ( 4.00 betyg )
- `content-type=".*javascript.*"` in: #27: main.min.js, antal fel: 405 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 250 st)
- Expected X and instead saw X. (totalt 152 st)
- Unnecessary escape character: \/. (totalt 1 st)
- Unnecessary escape character: \.. (totalt 1 st)
- Unnecessary escape character: \@. (totalt 1 st)
- `content-type=".*javascript.*"` in: #40: js, antal grupperade fel: 5 ( 4.00 betyg )
- `content-type=".*javascript.*"` in: #40: js, antal fel: 406 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 250 st)
- Expected X and instead saw X. (totalt 153 st)
- Unnecessary escape character: \/. (totalt 1 st)
- Unnecessary escape character: \.. (totalt 1 st)
- Unnecessary escape character: \@. (totalt 1 st)
- `content-type=".*javascript.*"` in: #42: main.js, antal grupperade fel: 14 ( 2.20 betyg )
- `content-type=".*javascript.*"` in: #42: main.js, antal fel: 1517 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 891 st)
- Expected X and instead saw X. (totalt 368 st)
- X is assigned to itself. (totalt 218 st)
- Do not access Object.prototype method X from target object. (totalt 15 st)
- Unexpected string concatenation of literals. (totalt 7 st)
- Unnecessary X. (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 1 st)
- Async arrow function has no X expression. (totalt 1 st)
- Unnecessary escape character: \[. (totalt 1 st)
- Unnecessary escape character: \^. (totalt 1 st)
- Comparing to itself is potentially pointless. (totalt 1 st)
- `content-type=".*javascript.*"` in: #44: common.js, antal grupperade fel: 16 ( 1.80 betyg )
- `content-type=".*javascript.*"` in: #44: common.js, antal fel: 1954 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1233 st)
- Expected X and instead saw X. (totalt 452 st)
- X is assigned to itself. (totalt 218 st)
- Do not access Object.prototype method X from target object. (totalt 17 st)
- Unexpected string concatenation of literals. (totalt 9 st)
- Unnecessary X. (totalt 6 st)
- Unnecessary escape character: \/. (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 1 st)
- Async arrow function has no X expression. (totalt 1 st)
- Unnecessary escape character: \[. (totalt 1 st)
- Unnecessary escape character: \^. (totalt 1 st)
- Comparing to itself is potentially pointless. (totalt 1 st)
- Async method X has no X expression. (totalt 1 st)
- `content-type=".*javascript.*"` in: #45: map.js, antal grupperade fel: 19 ( 1.20 betyg )
- `content-type=".*javascript.*"` in: #45: map.js, antal fel: 2266 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1491 st)
- Expected X and instead saw X. (totalt 494 st)
- X is assigned to itself. (totalt 219 st)
- Do not access Object.prototype method X from target object. (totalt 20 st)
- Unexpected string concatenation of literals. (totalt 9 st)
- Unnecessary X. (totalt 9 st)
- Unnecessary escape character: \/. (totalt 6 st)
- Unnecessary escape character: \?. (totalt 4 st)
- Unnecessary escape character: \.. (totalt 2 st)
- Unnecessary escape character: \). (totalt 2 st)
- Async function has no X expression. (totalt 2 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)
- Comparing to itself is potentially pointless. (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: #46: util.js, antal grupperade fel: 23 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #46: util.js, antal fel: 3632 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 2120 st)
- Expected X and instead saw X. (totalt 1207 st)
- X is assigned to itself. (totalt 225 st)
- Do not access Object.prototype method X from target object. (totalt 30 st)
- Unnecessary X. (totalt 11 st)
- Unexpected string concatenation of literals. (totalt 9 st)
- Unnecessary escape character: \/. (totalt 6 st)
- Unnecessary escape character: \?. (totalt 4 st)
- Unnecessary escape character: \.. (totalt 2 st)
- Unnecessary escape character: \). (totalt 2 st)
- Async function has no X expression. (totalt 2 st)
- X is not modified in this loop. (totalt 2 st)
- Unnecessary escape character: \$. (totalt 2 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)
- Comparing to itself is potentially pointless. (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)
- The Function constructor is eval. (totalt 1 st)
- Unnecessary escape character: \(. (totalt 1 st)
- `content-type=".*javascript.*"` in: #47: infowindow.js, antal grupperade fel: 23 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #47: infowindow.js, antal fel: 3671 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 2155 st)
- Expected X and instead saw X. (totalt 1211 st)
- X is assigned to itself. (totalt 225 st)
- Do not access Object.prototype method X from target object. (totalt 30 st)
- Unnecessary X. (totalt 11 st)
- Unexpected string concatenation of literals. (totalt 9 st)
- Unnecessary escape character: \/. (totalt 6 st)
- Unnecessary escape character: \?. (totalt 4 st)
- Unnecessary escape character: \.. (totalt 2 st)
- Unnecessary escape character: \). (totalt 2 st)
- Async function has no X expression. (totalt 2 st)
- X is not modified in this loop. (totalt 2 st)
- Unnecessary escape character: \$. (totalt 2 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)
- Comparing to itself is potentially pointless. (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)
- The Function constructor is eval. (totalt 1 st)
- Unnecessary escape character: \(. (totalt 1 st)
- `content-type=".*javascript.*"` in: #48: marker.js, antal grupperade fel: 23 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #48: marker.js, antal fel: 4000 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 2438 st)
- Expected X and instead saw X. (totalt 1252 st)
- X is assigned to itself. (totalt 230 st)
- Do not access Object.prototype method X from target object. (totalt 30 st)
- Unnecessary X. (totalt 11 st)
- Unexpected string concatenation of literals. (totalt 9 st)
- Unnecessary escape character: \/. (totalt 6 st)
- Unnecessary escape character: \?. (totalt 4 st)
- Unnecessary escape character: \.. (totalt 2 st)
- Unnecessary escape character: \). (totalt 2 st)
- Async function has no X expression. (totalt 2 st)
- X is not modified in this loop. (totalt 2 st)
- Unnecessary escape character: \$. (totalt 2 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)
- Comparing to itself is potentially pointless. (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)
- The Function constructor is eval. (totalt 1 st)
- Unnecessary escape character: \(. (totalt 1 st)
- `content-type=".*javascript.*"` in: #51: log.js, antal grupperade fel: 23 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #51: log.js, antal fel: 4168 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 2562 st)
- Expected X and instead saw X. (totalt 1295 st)
- X is assigned to itself. (totalt 230 st)
- Do not access Object.prototype method X from target object. (totalt 30 st)
- Unnecessary X. (totalt 11 st)
- Unexpected string concatenation of literals. (totalt 9 st)
- Unnecessary escape character: \/. (totalt 6 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)
- X is not modified in this loop. (totalt 2 st)
- Unnecessary escape character: \$. (totalt 2 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)
- Comparing to itself is potentially pointless. (totalt 1 st)
- Async method X has no X expression. (totalt 1 st)
- eval can be harmful. (totalt 1 st)
- The Function constructor is eval. (totalt 1 st)
- Unnecessary escape character: \(. (totalt 1 st)
- `content-type=".*javascript.*"` in: #56: onion.js, antal grupperade fel: 23 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #56: onion.js, antal fel: 4282 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 2646 st)
- Expected X and instead saw X. (totalt 1324 st)
- X is assigned to itself. (totalt 230 st)
- Do not access Object.prototype method X from target object. (totalt 30 st)
- Unnecessary X. (totalt 12 st)
- Unexpected string concatenation of literals. (totalt 9 st)
- Unnecessary escape character: \/. (totalt 6 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)
- X is not modified in this loop. (totalt 2 st)
- Unnecessary escape character: \$. (totalt 2 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)
- Comparing to itself is potentially pointless. (totalt 1 st)
- Async method X has no X expression. (totalt 1 st)
- eval can be harmful. (totalt 1 st)
- The Function constructor is eval. (totalt 1 st)
- Unnecessary escape character: \(. (totalt 1 st)
- `content-type=".*javascript.*"` in: #72: vt, antal grupperade fel: 23 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #72: vt, antal fel: 4283 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 2647 st)
- Expected X and instead saw X. (totalt 1324 st)
- X is assigned to itself. (totalt 230 st)
- Do not access Object.prototype method X from target object. (totalt 30 st)
- Unnecessary X. (totalt 12 st)
- Unexpected string concatenation of literals. (totalt 9 st)
- Unnecessary escape character: \/. (totalt 6 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)
- X is not modified in this loop. (totalt 2 st)
- Unnecessary escape character: \$. (totalt 2 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)
- Comparing to itself is potentially pointless. (totalt 1 st)
- Async method X has no X expression. (totalt 1 st)
- eval can be harmful. (totalt 1 st)
- The Function constructor is eval. (totalt 1 st)
- Unnecessary escape character: \(. (totalt 1 st)
- `content-type=".*javascript.*"` in: #73: controls.js, antal grupperade fel: 23 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #73: controls.js, antal fel: 4617 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 2922 st)
- Expected X and instead saw X. (totalt 1381 st)
- X is assigned to itself. (totalt 230 st)
- Do not access Object.prototype method X from target object. (totalt 30 st)
- Unnecessary X. (totalt 12 st)
- Unexpected string concatenation of literals. (totalt 9 st)
- Unnecessary escape character: \/. (totalt 6 st)
- Unnecessary escape character: \?. (totalt 4 st)
- Unnecessary escape character: \-. (totalt 3 st)
- Async function has no X expression. (totalt 3 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 1 st)
- Async arrow function has no X expression. (totalt 1 st)
- Unnecessary escape character: \[. (totalt 1 st)
- Unnecessary escape character: \^. (totalt 1 st)
- Comparing to itself is potentially pointless. (totalt 1 st)
- Async method X has no X expression. (totalt 1 st)
- eval can be harmful. (totalt 1 st)
- The Function constructor is eval. (totalt 1 st)
- Unnecessary escape character: \(. (totalt 1 st)