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.22 av 5
- JS är dålig.
Webbstandard
- `< script>` in: #1: Webbsida , antal grupperade fel: 3 ( 4.40 betyg )
- `< script>` in: #1: Webbsida , antal fel: 7 ( 3.60 betyg )
- X is assigned a value but never used. (totalt 4 st)
- X is not defined. (totalt 2 st)
- X is defined but never used. (totalt 1 st)
- `< script src="...">` in: #1: Webbsida , antal grupperade fel: 4 ( 4.20 betyg )
- `< script src="...">` in: #1: Webbsida , antal fel: 636 ( 1.00 betyg )
- X is not defined. (totalt 513 st)
- X is defined but never used. (totalt 93 st)
- Unexpected console statement. (totalt 24 st)
- X is assigned a value but never used. (totalt 6 st)
- `content-type=".*javascript.*"` in: #9: wp-emoji-releas, antal grupperade fel: 1 ( 4.80 betyg )
- `content-type=".*javascript.*"` in: #9: wp-emoji-releas, antal fel: 1 ( 4.80 betyg )
- X is assigned a value but never used. (totalt 1 st)
- `content-type=".*javascript.*"` in: #19: analytics.js, antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #19: analytics.js, antal fel: 31 ( 1.00 betyg )
- X is defined but never used. (totalt 27 st)
- X is not defined. (totalt 3 st)
- X is assigned a value but never used. (totalt 1 st)
- `content-type=".*javascript.*"` in: #27: common.js, antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #27: common.js, antal fel: 41 ( 1.00 betyg )
- X is defined but never used. (totalt 36 st)
- X is not defined. (totalt 4 st)
- X is assigned a value but never used. (totalt 1 st)
- `content-type=".*javascript.*"` in: #28: util.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #28: util.js, antal fel: 60 ( 1.00 betyg )
- X is defined but never used. (totalt 51 st)
- X is not defined. (totalt 5 st)
- X is assigned a value but never used. (totalt 3 st)
- Unexpected console statement. (totalt 1 st)
- `content-type=".*javascript.*"` in: #29: map.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #29: map.js, antal fel: 75 ( 1.00 betyg )
- X is defined but never used. (totalt 60 st)
- X is not defined. (totalt 6 st)
- Unexpected console statement. (totalt 5 st)
- X is assigned a value but never used. (totalt 4 st)
- `content-type=".*javascript.*"` in: #30: marker.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #30: marker.js, antal fel: 80 ( 1.00 betyg )
- X is defined but never used. (totalt 60 st)
- Unexpected console statement. (totalt 9 st)
- X is not defined. (totalt 7 st)
- X is assigned a value but never used. (totalt 4 st)
- `content-type=".*javascript.*"` in: #31: js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #31: js, antal fel: 583 ( 1.00 betyg )
- X is defined but never used. (totalt 457 st)
- X is assigned a value but never used. (totalt 94 st)
- X is not defined. (totalt 23 st)
- Unexpected console statement. (totalt 9 st)
- `content-type=".*javascript.*"` in: #35: onion.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #35: onion.js, antal fel: 584 ( 1.00 betyg )
- X is defined but never used. (totalt 457 st)
- X is assigned a value but never used. (totalt 94 st)
- X is not defined. (totalt 24 st)
- Unexpected console statement. (totalt 9 st)
- `content-type=".*javascript.*"` in: #38: infowindow.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #38: infowindow.js, antal fel: 586 ( 1.00 betyg )
- X is defined but never used. (totalt 457 st)
- X is assigned a value but never used. (totalt 94 st)
- X is not defined. (totalt 25 st)
- Unexpected console statement. (totalt 10 st)
- `content-type=".*javascript.*"` in: #39: controls.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #39: controls.js, antal fel: 587 ( 1.00 betyg )
- X is defined but never used. (totalt 457 st)
- X is assigned a value but never used. (totalt 94 st)
- X is not defined. (totalt 26 st)
- Unexpected console statement. (totalt 10 st)
- `content-type=".*javascript.*"` in: #46: vt, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #46: vt, antal fel: 589 ( 1.00 betyg )
- X is defined but never used. (totalt 457 st)
- X is assigned a value but never used. (totalt 94 st)
- X is not defined. (totalt 28 st)
- Unexpected console statement. (totalt 10 st)
Integritet & säkerhet
- `< script>` in: #1: Webbsida , antal grupperade fel: 2 ( 4.60 betyg )
- `< script>` in: #1: Webbsida , antal fel: 54 ( 1.00 betyg )
- Unnecessary escape character: \/. (totalt 43 st)
- Expected an assignment or function call and instead saw an expression. (totalt 11 st)
- `< script src="...">` in: #1: Webbsida , antal grupperade fel: 16 ( 1.80 betyg )
- `< script src="...">` in: #1: Webbsida , antal fel: 2289 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1516 st)
- Expected X and instead saw X. (totalt 488 st)
- X is assigned to itself. (totalt 205 st)
- Do not access Object.prototype method X from target object. (totalt 18 st)
- Unnecessary escape character: \/. (totalt 16 st)
- X is not modified in this loop. (totalt 16 st)
- Unnecessary X. (totalt 8 st)
- Unexpected string concatenation of literals. (totalt 7 st)
- Comparing to itself is potentially pointless. (totalt 4 st)
- Unnecessary escape character: \[. (totalt 2 st)
- Unnecessary escape character: \.. (totalt 2 st)
- Async arrow function has no X expression. (totalt 2 st)
- Unnecessary escape character: \). (totalt 2 st)
- The Function constructor is eval. (totalt 1 st)
- Script URL is a form of eval. (totalt 1 st)
- Unnecessary escape character: \^. (totalt 1 st)
- `content-type=".*javascript.*"` in: #9: wp-emoji-releas, antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #9: wp-emoji-releas, antal fel: 28 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 16 st)
- Expected X and instead saw X. (totalt 10 st)
- Do not access Object.prototype method X from target object. (totalt 2 st)
- `content-type=".*javascript.*"` in: #19: analytics.js, antal grupperade fel: 7 ( 3.60 betyg )
- `content-type=".*javascript.*"` in: #19: analytics.js, antal fel: 458 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 250 st)
- Expected X and instead saw X. (totalt 188 st)
- Do not access Object.prototype method X from target object. (totalt 14 st)
- Unnecessary escape character: \[. (totalt 2 st)
- Unnecessary escape character: \/. (totalt 2 st)
- Comparing to itself is potentially pointless. (totalt 1 st)
- Unnecessary X. (totalt 1 st)
- `content-type=".*javascript.*"` in: #27: common.js, antal grupperade fel: 10 ( 3.00 betyg )
- `content-type=".*javascript.*"` in: #27: common.js, antal fel: 890 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 588 st)
- Expected X and instead saw X. (totalt 271 st)
- Do not access Object.prototype method X from target object. (totalt 16 st)
- Unnecessary escape character: \?. (totalt 4 st)
- Unnecessary escape character: \/. (totalt 3 st)
- Unnecessary escape character: \[. (totalt 2 st)
- Unnecessary X. (totalt 2 st)
- Unexpected string concatenation of literals. (totalt 2 st)
- Comparing to itself is potentially pointless. (totalt 1 st)
- Async method X has no X expression. (totalt 1 st)
- `content-type=".*javascript.*"` in: #28: util.js, antal grupperade fel: 15 ( 2.00 betyg )
- `content-type=".*javascript.*"` in: #28: util.js, antal fel: 2311 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1273 st)
- Expected X and instead saw X. (totalt 984 st)
- Do not access Object.prototype method X from target object. (totalt 25 st)
- X is assigned to itself. (totalt 6 st)
- Unnecessary X. (totalt 4 st)
- Unnecessary escape character: \?. (totalt 4 st)
- Unnecessary escape character: \/. (totalt 3 st)
- Unnecessary escape character: \[. (totalt 2 st)
- Unexpected string concatenation of literals. (totalt 2 st)
- X is not modified in this loop. (totalt 2 st)
- Unnecessary escape character: \$. (totalt 2 st)
- Comparing to itself is potentially pointless. (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: #29: map.js, antal grupperade fel: 18 ( 1.40 betyg )
- `content-type=".*javascript.*"` in: #29: map.js, antal fel: 2633 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1531 st)
- Expected X and instead saw X. (totalt 1036 st)
- Do not access Object.prototype method X from target object. (totalt 28 st)
- Unnecessary X. (totalt 7 st)
- X is assigned to itself. (totalt 7 st)
- Unnecessary escape character: \/. (totalt 4 st)
- Unnecessary escape character: \?. (totalt 4 st)
- Unnecessary escape character: \[. (totalt 2 st)
- Unexpected string concatenation of literals. (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)
- Comparing to itself is potentially pointless. (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: #30: marker.js, antal grupperade fel: 18 ( 1.40 betyg )
- `content-type=".*javascript.*"` in: #30: marker.js, antal fel: 2951 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1803 st)
- Expected X and instead saw X. (totalt 1077 st)
- Do not access Object.prototype method X from target object. (totalt 28 st)
- X is assigned to itself. (totalt 12 st)
- Unnecessary X. (totalt 7 st)
- Unnecessary escape character: \/. (totalt 4 st)
- Unnecessary escape character: \?. (totalt 4 st)
- Unnecessary escape character: \[. (totalt 2 st)
- Unexpected string concatenation of literals. (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)
- Comparing to itself is potentially pointless. (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: #31: js, antal grupperade fel: 20 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #31: js, antal fel: 4324 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 2865 st)
- Expected X and instead saw X. (totalt 1295 st)
- Do not access Object.prototype method X from target object. (totalt 108 st)
- X is assigned to itself. (totalt 15 st)
- Unnecessary escape character: \/. (totalt 7 st)
- Unnecessary X. (totalt 7 st)
- Unnecessary escape character: \?. (totalt 5 st)
- X is not modified in this loop. (totalt 5 st)
- Comparing to itself is potentially pointless. (totalt 2 st)
- Unnecessary escape character: \[. (totalt 2 st)
- Unexpected string concatenation of literals. (totalt 2 st)
- Unnecessary escape character: \$. (totalt 2 st)
- Async function has no X expression. (totalt 2 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)
- Script URL is a form of eval. (totalt 1 st)
- Unnecessary escape character: \}. (totalt 1 st)
- `content-type=".*javascript.*"` in: #35: onion.js, antal grupperade fel: 20 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #35: onion.js, antal fel: 4428 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 2944 st)
- Expected X and instead saw X. (totalt 1319 st)
- Do not access Object.prototype method X from target object. (totalt 108 st)
- X is assigned to itself. (totalt 15 st)
- Unnecessary X. (totalt 8 st)
- Unnecessary escape character: \/. (totalt 7 st)
- Unnecessary escape character: \?. (totalt 5 st)
- X is not modified in this loop. (totalt 5 st)
- Comparing to itself is potentially pointless. (totalt 2 st)
- Unnecessary escape character: \[. (totalt 2 st)
- Unexpected string concatenation of literals. (totalt 2 st)
- Unnecessary escape character: \$. (totalt 2 st)
- Async function has no X expression. (totalt 2 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)
- Script URL is a form of eval. (totalt 1 st)
- Unnecessary escape character: \}. (totalt 1 st)
- `content-type=".*javascript.*"` in: #38: infowindow.js, antal grupperade fel: 20 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #38: infowindow.js, antal fel: 4467 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 2979 st)
- Expected X and instead saw X. (totalt 1323 st)
- Do not access Object.prototype method X from target object. (totalt 108 st)
- X is assigned to itself. (totalt 15 st)
- Unnecessary X. (totalt 8 st)
- Unnecessary escape character: \/. (totalt 7 st)
- Unnecessary escape character: \?. (totalt 5 st)
- X is not modified in this loop. (totalt 5 st)
- Comparing to itself is potentially pointless. (totalt 2 st)
- Unnecessary escape character: \[. (totalt 2 st)
- Unexpected string concatenation of literals. (totalt 2 st)
- Unnecessary escape character: \$. (totalt 2 st)
- Async function has no X expression. (totalt 2 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)
- Script URL is a form of eval. (totalt 1 st)
- Unnecessary escape character: \}. (totalt 1 st)
- `content-type=".*javascript.*"` in: #39: controls.js, antal grupperade fel: 20 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #39: controls.js, antal fel: 4795 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 3250 st)
- Expected X and instead saw X. (totalt 1378 st)
- Do not access Object.prototype method X from target object. (totalt 108 st)
- X is assigned to itself. (totalt 15 st)
- Unnecessary X. (totalt 8 st)
- Unnecessary escape character: \/. (totalt 7 st)
- Unnecessary escape character: \?. (totalt 5 st)
- X is not modified in this loop. (totalt 5 st)
- Async function has no X expression. (totalt 3 st)
- Comparing to itself is potentially pointless. (totalt 2 st)
- Unnecessary escape character: \[. (totalt 2 st)
- Unexpected string concatenation of literals. (totalt 2 st)
- Unnecessary escape character: \$. (totalt 2 st)
- Unnecessary escape character: \-. (totalt 2 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)
- Script URL is a form of eval. (totalt 1 st)
- Unnecessary escape character: \}. (totalt 1 st)
- `content-type=".*javascript.*"` in: #46: vt, antal grupperade fel: 20 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #46: vt, antal fel: 4796 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 3251 st)
- Expected X and instead saw X. (totalt 1378 st)
- Do not access Object.prototype method X from target object. (totalt 108 st)
- X is assigned to itself. (totalt 15 st)
- Unnecessary X. (totalt 8 st)
- Unnecessary escape character: \/. (totalt 7 st)
- Unnecessary escape character: \?. (totalt 5 st)
- X is not modified in this loop. (totalt 5 st)
- Async function has no X expression. (totalt 3 st)
- Comparing to itself is potentially pointless. (totalt 2 st)
- Unnecessary escape character: \[. (totalt 2 st)
- Unexpected string concatenation of literals. (totalt 2 st)
- Unnecessary escape character: \$. (totalt 2 st)
- Unnecessary escape character: \-. (totalt 2 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)
- Script URL is a form of eval. (totalt 1 st)
- Unnecessary escape character: \}. (totalt 1 st)