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.48 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: 1638 ( 1.00 betyg )
- X is not defined. (totalt 1182 st)
- X is defined but never used. (totalt 373 st)
- Unexpected console statement. (totalt 58 st)
- X is assigned a value but never used. (totalt 25 st)
- `content-type=".*javascript.*"` in: #68: analytics.js, antal grupperade fel: 2 ( 4.60 betyg )
- `content-type=".*javascript.*"` in: #68: analytics.js, antal fel: 30 ( 1.00 betyg )
- X is defined but never used. (totalt 27 st)
- X is not defined. (totalt 3 st)
- `content-type=".*javascript.*"` in: #72: ga.js, antal grupperade fel: 2 ( 4.60 betyg )
- `content-type=".*javascript.*"` in: #72: ga.js, antal fel: 31 ( 1.00 betyg )
- X is defined but never used. (totalt 28 st)
- X is not defined. (totalt 3 st)
- `content-type=".*javascript.*"` in: #87: js, antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #87: js, antal fel: 533 ( 1.00 betyg )
- X is defined but never used. (totalt 424 st)
- X is assigned a value but never used. (totalt 90 st)
- X is not defined. (totalt 19 st)
- `content-type=".*javascript.*"` in: #88: swiper.min.js, antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #88: swiper.min.js, antal fel: 539 ( 1.00 betyg )
- X is defined but never used. (totalt 428 st)
- X is assigned a value but never used. (totalt 90 st)
- X is not defined. (totalt 21 st)
- `content-type=".*javascript.*"` in: #96: counter.02cef29, antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #96: counter.02cef29, antal fel: 541 ( 1.00 betyg )
- X is defined but never used. (totalt 428 st)
- X is assigned a value but never used. (totalt 90 st)
- X is not defined. (totalt 23 st)
- `content-type=".*javascript.*"` in: #97: text-editor.2c3, antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #97: text-editor.2c3, antal fel: 544 ( 1.00 betyg )
- X is defined but never used. (totalt 428 st)
- X is assigned a value but never used. (totalt 90 st)
- X is not defined. (totalt 26 st)
- `content-type=".*javascript.*"` in: #98: v2.2.2.0.umd.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #98: v2.2.2.0.umd.js, antal fel: 550 ( 1.00 betyg )
- X is defined but never used. (totalt 432 st)
- X is assigned a value but never used. (totalt 91 st)
- X is not defined. (totalt 26 st)
- Unexpected console statement. (totalt 1 st)
- `content-type=".*javascript.*"` in: #99: we.2.2.0.umd.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #99: we.2.2.0.umd.js, antal fel: 560 ( 1.00 betyg )
- X is defined but never used. (totalt 439 st)
- X is assigned a value but never used. (totalt 93 st)
- X is not defined. (totalt 26 st)
- Unexpected console statement. (totalt 2 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: 20 ( 1.00 betyg )
- `< script src="...">` in: #1: Webbsida , antal fel: 3953 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 2623 st)
- Expected X and instead saw X. (totalt 1210 st)
- Do not access Object.prototype method X from target object. (totalt 21 st)
- Comparing to itself is potentially pointless. (totalt 19 st)
- X is assigned to itself. (totalt 12 st)
- Unnecessary escape character: \-. (totalt 11 st)
- Unnecessary escape character: \/. (totalt 10 st)
- Unexpected string concatenation of literals. (totalt 10 st)
- The Function constructor is eval. (totalt 9 st)
- Unnecessary escape character: \&. (totalt 8 st)
- Unnecessary X. (totalt 5 st)
- Unnecessary escape character: \?. (totalt 5 st)
- X is not modified in this loop. (totalt 3 st)
- Unnecessary escape character: \[. (totalt 1 st)
- Unnecessary escape character: \(. (totalt 1 st)
- Unnecessary escape character: \+. (totalt 1 st)
- Unsafe usage of ThrowStatement. (totalt 1 st)
- Unnecessary escape character: \=. (totalt 1 st)
- Unnecessary escape character: \@. (totalt 1 st)
- Script URL is a form of eval. (totalt 1 st)
- `content-type=".*javascript.*"` in: #68: analytics.js, antal grupperade fel: 7 ( 3.60 betyg )
- `content-type=".*javascript.*"` in: #68: analytics.js, antal fel: 430 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 234 st)
- Expected X and instead saw X. (totalt 178 st)
- Do not access Object.prototype method X from target object. (totalt 12 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: #72: ga.js, antal grupperade fel: 7 ( 3.60 betyg )
- `content-type=".*javascript.*"` in: #72: ga.js, antal fel: 431 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 235 st)
- Expected X and instead saw X. (totalt 178 st)
- Do not access Object.prototype method X from target object. (totalt 12 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: #87: js, antal grupperade fel: 12 ( 2.60 betyg )
- `content-type=".*javascript.*"` in: #87: js, antal fel: 1804 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1297 st)
- Expected X and instead saw X. (totalt 396 st)
- Do not access Object.prototype method X from target object. (totalt 92 st)
- Unnecessary escape character: \/. (totalt 5 st)
- X is not modified in this loop. (totalt 3 st)
- X is assigned to itself. (totalt 3 st)
- Comparing to itself is potentially pointless. (totalt 2 st)
- Unnecessary escape character: \[. (totalt 2 st)
- Unnecessary X. (totalt 1 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: #88: swiper.min.js, antal grupperade fel: 12 ( 2.60 betyg )
- `content-type=".*javascript.*"` in: #88: swiper.min.js, antal fel: 2280 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1719 st)
- Expected X and instead saw X. (totalt 449 st)
- Do not access Object.prototype method X from target object. (totalt 92 st)
- Unnecessary escape character: \/. (totalt 6 st)
- X is not modified in this loop. (totalt 3 st)
- X is assigned to itself. (totalt 3 st)
- Comparing to itself is potentially pointless. (totalt 2 st)
- Unnecessary escape character: \[. (totalt 2 st)
- Unnecessary X. (totalt 1 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: #96: counter.02cef29, antal grupperade fel: 12 ( 2.60 betyg )
- `content-type=".*javascript.*"` in: #96: counter.02cef29, antal fel: 2283 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1722 st)
- Expected X and instead saw X. (totalt 449 st)
- Do not access Object.prototype method X from target object. (totalt 92 st)
- Unnecessary escape character: \/. (totalt 6 st)
- X is not modified in this loop. (totalt 3 st)
- X is assigned to itself. (totalt 3 st)
- Comparing to itself is potentially pointless. (totalt 2 st)
- Unnecessary escape character: \[. (totalt 2 st)
- Unnecessary X. (totalt 1 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: #97: text-editor.2c3, antal grupperade fel: 12 ( 2.60 betyg )
- `content-type=".*javascript.*"` in: #97: text-editor.2c3, antal fel: 2287 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1726 st)
- Expected X and instead saw X. (totalt 449 st)
- Do not access Object.prototype method X from target object. (totalt 92 st)
- Unnecessary escape character: \/. (totalt 6 st)
- X is not modified in this loop. (totalt 3 st)
- X is assigned to itself. (totalt 3 st)
- Comparing to itself is potentially pointless. (totalt 2 st)
- Unnecessary escape character: \[. (totalt 2 st)
- Unnecessary X. (totalt 1 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: #98: v2.2.2.0.umd.js, antal grupperade fel: 15 ( 2.00 betyg )
- `content-type=".*javascript.*"` in: #98: v2.2.2.0.umd.js, antal fel: 2417 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1793 st)
- Expected X and instead saw X. (totalt 501 st)
- Do not access Object.prototype method X from target object. (totalt 93 st)
- Async method X has no X expression. (totalt 7 st)
- Unnecessary escape character: \/. (totalt 6 st)
- X is not modified in this loop. (totalt 3 st)
- X is assigned to itself. (totalt 3 st)
- Comparing to itself is potentially pointless. (totalt 2 st)
- Unnecessary escape character: \[. (totalt 2 st)
- Unnecessary escape character: \=. (totalt 2 st)
- Unnecessary X. (totalt 1 st)
- Unnecessary escape character: \?. (totalt 1 st)
- Script URL is a form of eval. (totalt 1 st)
- Unnecessary escape character: \}. (totalt 1 st)
- Async arrow function has no X expression. (totalt 1 st)
- `content-type=".*javascript.*"` in: #99: we.2.2.0.umd.js, antal grupperade fel: 16 ( 1.80 betyg )
- `content-type=".*javascript.*"` in: #99: we.2.2.0.umd.js, antal fel: 2755 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1969 st)
- Expected X and instead saw X. (totalt 642 st)
- Do not access Object.prototype method X from target object. (totalt 94 st)
- Async method X has no X expression. (totalt 23 st)
- Unnecessary escape character: \/. (totalt 7 st)
- X is not modified in this loop. (totalt 3 st)
- X is assigned to itself. (totalt 3 st)
- Async arrow function has no X expression. (totalt 3 st)
- Comparing to itself is potentially pointless. (totalt 2 st)
- Unnecessary escape character: \[. (totalt 2 st)
- Unnecessary escape character: \=. (totalt 2 st)
- Unnecessary X. (totalt 1 st)
- Unnecessary escape character: \?. (totalt 1 st)
- Script URL is a form of eval. (totalt 1 st)
- Unnecessary escape character: \}. (totalt 1 st)
- Async function X has no X expression. (totalt 1 st)