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.93 av 5
- JS är dålig.
Webbstandard
- `< script>` in: #1: Webbsida , antal grupperade fel: 3 ( 4.40 betyg )
- `< script>` in: #1: Webbsida , antal fel: 9 ( 3.20 betyg )
- X is assigned a value but never used. (totalt 4 st)
- X is defined but never used. (totalt 3 st)
- X is not defined. (totalt 2 st)
- `< script src="...">` in: #1: Webbsida , antal grupperade fel: 4 ( 4.20 betyg )
- `< script src="...">` in: #1: Webbsida , antal fel: 751 ( 1.00 betyg )
- X is not defined. (totalt 659 st)
- X is defined but never used. (totalt 66 st)
- Unexpected console statement. (totalt 21 st)
- X is assigned a value but never used. (totalt 5 st)
- `content-type=".*javascript.*"` in: #72: nav-menu.997320, antal grupperade fel: 2 ( 4.60 betyg )
- `content-type=".*javascript.*"` in: #72: nav-menu.997320, antal fel: 13 ( 2.40 betyg )
- X is not defined. (totalt 12 st)
- X is defined but never used. (totalt 1 st)
- `content-type=".*javascript.*"` in: #73: slides.c0029640, antal grupperade fel: 2 ( 4.60 betyg )
- `content-type=".*javascript.*"` in: #73: slides.c0029640, antal fel: 16 ( 1.80 betyg )
- X is not defined. (totalt 15 st)
- X is defined but never used. (totalt 1 st)
- `content-type=".*javascript.*"` in: #74: text-editor.2c3, antal grupperade fel: 2 ( 4.60 betyg )
- `content-type=".*javascript.*"` in: #74: text-editor.2c3, antal fel: 19 ( 1.20 betyg )
- X is not defined. (totalt 18 st)
- X is defined but never used. (totalt 1 st)
- `content-type=".*javascript.*"` in: #75: swiper.min.js, antal grupperade fel: 2 ( 4.60 betyg )
- `content-type=".*javascript.*"` in: #75: swiper.min.js, antal fel: 26 ( 1.00 betyg )
- X is not defined. (totalt 20 st)
- X is defined but never used. (totalt 6 st)
Integritet & säkerhet
- `< script>` in: #1: Webbsida , antal grupperade fel: 3 ( 4.40 betyg )
- `< script>` in: #1: Webbsida , antal fel: 87 ( 1.00 betyg )
- Unnecessary escape character: \/. (totalt 68 st)
- Expected an assignment or function call and instead saw an expression. (totalt 10 st)
- Expected X and instead saw X. (totalt 9 st)
- `< script src="...">` in: #1: Webbsida , antal grupperade fel: 12 ( 2.60 betyg )
- `< script src="...">` in: #1: Webbsida , antal fel: 1846 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1304 st)
- Expected X and instead saw X. (totalt 514 st)
- Unnecessary escape character: \/. (totalt 8 st)
- Do not access Object.prototype method X from target object. (totalt 4 st)
- X is assigned to itself. (totalt 4 st)
- Comparing to itself is potentially pointless. (totalt 3 st)
- The Function constructor is eval. (totalt 3 st)
- X is not modified in this loop. (totalt 2 st)
- Unnecessary X. (totalt 1 st)
- Unnecessary escape character: \?. (totalt 1 st)
- Unnecessary escape character: \+. (totalt 1 st)
- Unnecessary escape character: \-. (totalt 1 st)
- `content-type=".*javascript.*"` in: #72: nav-menu.997320, antal grupperade fel: 2 ( 4.60 betyg )
- `content-type=".*javascript.*"` in: #72: nav-menu.997320, antal fel: 12 ( 2.60 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 11 st)
- Expected X and instead saw X. (totalt 1 st)
- `content-type=".*javascript.*"` in: #73: slides.c0029640, antal grupperade fel: 2 ( 4.60 betyg )
- `content-type=".*javascript.*"` in: #73: slides.c0029640, antal fel: 22 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 21 st)
- Expected X and instead saw X. (totalt 1 st)
- `content-type=".*javascript.*"` in: #74: text-editor.2c3, antal grupperade fel: 2 ( 4.60 betyg )
- `content-type=".*javascript.*"` in: #74: text-editor.2c3, antal fel: 26 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 25 st)
- Expected X and instead saw X. (totalt 1 st)
- `content-type=".*javascript.*"` in: #75: swiper.min.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #75: swiper.min.js, antal fel: 597 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 527 st)
- Expected X and instead saw X. (totalt 67 st)
- Unnecessary escape character: \/. (totalt 2 st)
- Unnecessary escape character: \.. (totalt 1 st)