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.78 av 5
- JS är dålig.
Webbstandard
- `< script>` in: #1: Webbsida , antal grupperade fel: 3 ( 4.40 betyg )
- `< script>` in: #1: Webbsida , antal fel: 14 ( 2.20 betyg )
- X is assigned a value but never used. (totalt 7 st)
- X is defined but never used. (totalt 4 st)
- X is not defined. (totalt 3 st)
- `< script src="...">` in: #1: Webbsida , antal grupperade fel: 4 ( 4.20 betyg )
- `< script src="...">` in: #1: Webbsida , antal fel: 585 ( 1.00 betyg )
- X is not defined. (totalt 474 st)
- X is defined but never used. (totalt 84 st)
- Unexpected console statement. (totalt 21 st)
- X is assigned a value but never used. (totalt 6 st)
- `< script>` in: #168: page.php, antal grupperade fel: 2 ( 4.60 betyg )
- `< script>` in: #168: page.php, antal fel: 12 ( 2.60 betyg )
- X is not defined. (totalt 10 st)
- X is defined but never used. (totalt 2 st)
- `< script src="...">` in: #168: page.php, antal grupperade fel: 4 ( 4.20 betyg )
- `< script src="...">` in: #168: page.php, antal fel: 951 ( 1.00 betyg )
- X is not defined. (totalt 620 st)
- X is defined but never used. (totalt 327 st)
- Unexpected console statement. (totalt 3 st)
- X is assigned a value but never used. (totalt 1 st)
- `content-type=".*javascript.*"` in: #134: swiper.min.js, antal grupperade fel: 2 ( 4.60 betyg )
- `content-type=".*javascript.*"` in: #134: swiper.min.js, antal fel: 7 ( 3.60 betyg )
- X is defined but never used. (totalt 5 st)
- X is not defined. (totalt 2 st)
- `content-type=".*javascript.*"` in: #165: text-editor.2c3, antal grupperade fel: 2 ( 4.60 betyg )
- `content-type=".*javascript.*"` in: #165: text-editor.2c3, antal fel: 10 ( 3.00 betyg )
- X is not defined. (totalt 5 st)
- X is defined but never used. (totalt 5 st)
- `content-type=".*javascript.*"` in: #166: image-carousel., antal grupperade fel: 2 ( 4.60 betyg )
- `content-type=".*javascript.*"` in: #166: image-carousel., antal fel: 11 ( 2.80 betyg )
- X is not defined. (totalt 6 st)
- X is defined but never used. (totalt 5 st)
- `content-type=".*javascript.*"` in: #167: video.d11c91c1b, antal grupperade fel: 2 ( 4.60 betyg )
- `content-type=".*javascript.*"` in: #167: video.d11c91c1b, antal fel: 18 ( 1.40 betyg )
- X is not defined. (totalt 13 st)
- X is defined but never used. (totalt 5 st)
- `content-type=".*javascript.*"` in: #178: dSV4gHhljOL.js, antal grupperade fel: 2 ( 4.60 betyg )
- `content-type=".*javascript.*"` in: #178: dSV4gHhljOL.js, antal fel: 86 ( 1.00 betyg )
- X is not defined. (totalt 49 st)
- X is defined but never used. (totalt 37 st)
Integritet & säkerhet
- `< script>` in: #1: Webbsida , antal grupperade fel: 3 ( 4.40 betyg )
- `< script>` in: #1: Webbsida , antal fel: 65 ( 1.00 betyg )
- Unnecessary escape character: \/. (totalt 48 st)
- Expected X and instead saw X. (totalt 9 st)
- Expected an assignment or function call and instead saw an expression. (totalt 8 st)
- `< script src="...">` in: #1: Webbsida , antal grupperade fel: 14 ( 2.20 betyg )
- `< script src="...">` in: #1: Webbsida , antal fel: 1819 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1269 st)
- Expected X and instead saw X. (totalt 506 st)
- Do not access Object.prototype method X from target object. (totalt 14 st)
- Unnecessary escape character: \/. (totalt 6 st)
- Unnecessary X. (totalt 4 st)
- X is assigned to itself. (totalt 4 st)
- X is not modified in this loop. (totalt 4 st)
- Comparing to itself is potentially pointless. (totalt 3 st)
- Unnecessary escape character: \:. (totalt 2 st)
- Unnecessary escape character: \-. (totalt 2 st)
- The Function constructor is eval. (totalt 2 st)
- Unnecessary escape character: \'. (totalt 1 st)
- Unnecessary escape character: \.. (totalt 1 st)
- Unnecessary escape character: \+. (totalt 1 st)
- `< script>` in: #168: page.php, antal grupperade fel: 3 ( 4.40 betyg )
- `< script>` in: #168: page.php, antal fel: 883 ( 1.00 betyg )
- Unnecessary escape character: \/. (totalt 874 st)
- Expected an assignment or function call and instead saw an expression. (totalt 5 st)
- Expected X and instead saw X. (totalt 4 st)
- `< script src="...">` in: #168: page.php, antal grupperade fel: 22 ( 1.00 betyg )
- `< script src="...">` in: #168: page.php, antal fel: 2539 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1459 st)
- Expected X and instead saw X. (totalt 945 st)
- Unnecessary X. (totalt 46 st)
- X is assigned to itself. (totalt 36 st)
- Unnecessary escape character: \". (totalt 11 st)
- Unnecessary escape character: \/. (totalt 7 st)
- Unexpected string concatenation of literals. (totalt 5 st)
- Unnecessary escape character: \'. (totalt 5 st)
- Unnecessary escape character: \). (totalt 4 st)
- Unnecessary escape character: \(. (totalt 4 st)
- Unnecessary escape character: \-. (totalt 3 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)
- Script URL is a form of eval. (totalt 1 st)
- Unnecessary escape character: \.. (totalt 1 st)
- Unnecessary escape character: \*. (totalt 1 st)
- Unnecessary escape character: \&. (totalt 1 st)
- Unnecessary escape character: \[. (totalt 1 st)
- The Function constructor is eval. (totalt 1 st)
- Unexpected negating the left operand of X operator. (totalt 1 st)
- `content-type=".*javascript.*"` in: #134: swiper.min.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #134: swiper.min.js, antal fel: 571 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 502 st)
- Expected X and instead saw X. (totalt 66 st)
- Unnecessary escape character: \/. (totalt 2 st)
- Unnecessary escape character: \.. (totalt 1 st)
- `content-type=".*javascript.*"` in: #165: text-editor.2c3, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #165: text-editor.2c3, antal fel: 575 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 506 st)
- Expected X and instead saw X. (totalt 66 st)
- Unnecessary escape character: \/. (totalt 2 st)
- Unnecessary escape character: \.. (totalt 1 st)
- `content-type=".*javascript.*"` in: #166: image-carousel., antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #166: image-carousel., antal fel: 576 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 507 st)
- Expected X and instead saw X. (totalt 66 st)
- Unnecessary escape character: \/. (totalt 2 st)
- Unnecessary escape character: \.. (totalt 1 st)
- `content-type=".*javascript.*"` in: #167: video.d11c91c1b, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #167: video.d11c91c1b, antal fel: 587 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 518 st)
- Expected X and instead saw X. (totalt 66 st)
- Unnecessary escape character: \/. (totalt 2 st)
- Unnecessary escape character: \.. (totalt 1 st)
- `content-type=".*javascript.*"` in: #178: dSV4gHhljOL.js, antal grupperade fel: 9 ( 3.20 betyg )
- `content-type=".*javascript.*"` in: #178: dSV4gHhljOL.js, antal fel: 1758 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1465 st)
- Expected X and instead saw X. (totalt 281 st)
- X is not modified in this loop. (totalt 3 st)
- Unnecessary escape character: \/. (totalt 2 st)
- Script URL is a form of eval. (totalt 2 st)
- Comparing to itself is potentially pointless. (totalt 2 st)
- Unnecessary escape character: \.. (totalt 1 st)
- Unnecessary escape character: \". (totalt 1 st)
- X is assigned to itself. (totalt 1 st)