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: 3.13 av 5
- JS är ok.
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: 3 ( 4.40 betyg )
- `< script src="...">` in: #1: Webbsida , antal fel: 534 ( 1.00 betyg )
- X is not defined. (totalt 486 st)
- X is defined but never used. (totalt 38 st)
- Unexpected console statement. (totalt 10 st)
- `content-type=".*javascript.*"` in: #50: nav-menu.a23fbd, antal grupperade fel: 2 ( 4.60 betyg )
- `content-type=".*javascript.*"` in: #50: nav-menu.a23fbd, antal fel: 10 ( 3.00 betyg )
- X is not defined. (totalt 9 st)
- X is defined but never used. (totalt 1 st)
- `content-type=".*javascript.*"` in: #51: slides.c0029640, antal grupperade fel: 2 ( 4.60 betyg )
- `content-type=".*javascript.*"` in: #51: slides.c0029640, 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: #52: text-editor.2cb, antal grupperade fel: 2 ( 4.60 betyg )
- `content-type=".*javascript.*"` in: #52: text-editor.2cb, 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: #53: load-more.8b46f, antal grupperade fel: 2 ( 4.60 betyg )
- `content-type=".*javascript.*"` in: #53: load-more.8b46f, antal fel: 21 ( 1.00 betyg )
- X is not defined. (totalt 20 st)
- X is defined but never used. (totalt 1 st)
- `content-type=".*javascript.*"` in: #54: posts.aec592653, antal grupperade fel: 2 ( 4.60 betyg )
- `content-type=".*javascript.*"` in: #54: posts.aec592653, antal fel: 31 ( 1.00 betyg )
- X is not defined. (totalt 30 st)
- X is defined but never used. (totalt 1 st)
- `content-type=".*javascript.*"` in: #56: swiper.min.js, antal grupperade fel: 2 ( 4.60 betyg )
- `content-type=".*javascript.*"` in: #56: swiper.min.js, antal fel: 38 ( 1.00 betyg )
- X is not defined. (totalt 32 st)
- X is defined but never used. (totalt 6 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: 11 ( 2.80 betyg )
- `< script src="...">` in: #1: Webbsida , antal fel: 1275 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 925 st)
- Expected X and instead saw X. (totalt 325 st)
- Unnecessary escape character: \/. (totalt 7 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)
- 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: #50: nav-menu.a23fbd, antal grupperade fel: 2 ( 4.60 betyg )
- `content-type=".*javascript.*"` in: #50: nav-menu.a23fbd, antal fel: 16 ( 1.80 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 15 st)
- Expected X and instead saw X. (totalt 1 st)
- `content-type=".*javascript.*"` in: #51: slides.c0029640, antal grupperade fel: 2 ( 4.60 betyg )
- `content-type=".*javascript.*"` in: #51: slides.c0029640, 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: #52: text-editor.2cb, antal grupperade fel: 2 ( 4.60 betyg )
- `content-type=".*javascript.*"` in: #52: text-editor.2cb, antal fel: 30 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 29 st)
- Expected X and instead saw X. (totalt 1 st)
- `content-type=".*javascript.*"` in: #53: load-more.8b46f, antal grupperade fel: 2 ( 4.60 betyg )
- `content-type=".*javascript.*"` in: #53: load-more.8b46f, antal fel: 44 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 43 st)
- Expected X and instead saw X. (totalt 1 st)
- `content-type=".*javascript.*"` in: #54: posts.aec592653, antal grupperade fel: 2 ( 4.60 betyg )
- `content-type=".*javascript.*"` in: #54: posts.aec592653, antal fel: 53 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 52 st)
- Expected X and instead saw X. (totalt 1 st)
- `content-type=".*javascript.*"` in: #56: swiper.min.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #56: swiper.min.js, antal fel: 624 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 554 st)
- Expected X and instead saw X. (totalt 67 st)
- Unnecessary escape character: \/. (totalt 2 st)
- Unnecessary escape character: \.. (totalt 1 st)