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.07 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: 4 ( 4.20 betyg )
- `< script src="...">` in: #1: Webbsida , antal fel: 764 ( 1.00 betyg )
- X is not defined. (totalt 618 st)
- X is defined but never used. (totalt 101 st)
- Unexpected console statement. (totalt 42 st)
- X is assigned a value but never used. (totalt 3 st)
- `content-type=".*javascript.*"` in: #109: nav-menu.a23fbd, antal grupperade fel: 2 ( 4.60 betyg )
- `content-type=".*javascript.*"` in: #109: 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: #110: search-form.b70, antal grupperade fel: 2 ( 4.60 betyg )
- `content-type=".*javascript.*"` in: #110: search-form.b70, antal fel: 12 ( 2.60 betyg )
- X is not defined. (totalt 11 st)
- X is defined but never used. (totalt 1 st)
- `content-type=".*javascript.*"` in: #111: slides.c0029640, antal grupperade fel: 2 ( 4.60 betyg )
- `content-type=".*javascript.*"` in: #111: slides.c0029640, antal fel: 15 ( 2.00 betyg )
- X is not defined. (totalt 14 st)
- X is defined but never used. (totalt 1 st)
- `content-type=".*javascript.*"` in: #112: nested-carousel, antal grupperade fel: 2 ( 4.60 betyg )
- `content-type=".*javascript.*"` in: #112: nested-carousel, antal fel: 24 ( 1.00 betyg )
- X is not defined. (totalt 23 st)
- X is defined but never used. (totalt 1 st)
- `content-type=".*javascript.*"` in: #113: text-editor.c08, antal grupperade fel: 2 ( 4.60 betyg )
- `content-type=".*javascript.*"` in: #113: text-editor.c08, antal fel: 27 ( 1.00 betyg )
- X is not defined. (totalt 26 st)
- X is defined but never used. (totalt 1 st)
- `content-type=".*javascript.*"` in: #114: loop.4a16d82b8b, antal grupperade fel: 2 ( 4.60 betyg )
- `content-type=".*javascript.*"` in: #114: loop.4a16d82b8b, antal fel: 52 ( 1.00 betyg )
- X is not defined. (totalt 51 st)
- X is defined but never used. (totalt 1 st)
- `content-type=".*javascript.*"` in: #115: loop-carousel.f, antal grupperade fel: 2 ( 4.60 betyg )
- `content-type=".*javascript.*"` in: #115: loop-carousel.f, antal fel: 54 ( 1.00 betyg )
- X is not defined. (totalt 53 st)
- X is defined but never used. (totalt 1 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: 14 ( 2.20 betyg )
- `< script src="...">` in: #1: Webbsida , antal fel: 2471 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1860 st)
- Expected X and instead saw X. (totalt 564 st)
- Unnecessary escape character: \/. (totalt 11 st)
- Do not access Object.prototype method X from target object. (totalt 7 st)
- Unnecessary escape character: \-. (totalt 7 st)
- X is assigned to itself. (totalt 5 st)
- Comparing to itself is potentially pointless. (totalt 4 st)
- Unnecessary escape character: \+. (totalt 3 st)
- The Function constructor is eval. (totalt 3 st)
- Unnecessary X. (totalt 2 st)
- X is not modified in this loop. (totalt 2 st)
- Unnecessary escape character: \.. (totalt 1 st)
- Unnecessary escape character: \?. (totalt 1 st)
- Unsafe usage of ThrowStatement. (totalt 1 st)
- `content-type=".*javascript.*"` in: #109: nav-menu.a23fbd, antal grupperade fel: 2 ( 4.60 betyg )
- `content-type=".*javascript.*"` in: #109: 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: #110: search-form.b70, antal grupperade fel: 2 ( 4.60 betyg )
- `content-type=".*javascript.*"` in: #110: search-form.b70, 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: #111: slides.c0029640, antal grupperade fel: 2 ( 4.60 betyg )
- `content-type=".*javascript.*"` in: #111: slides.c0029640, antal fel: 32 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 31 st)
- Expected X and instead saw X. (totalt 1 st)
- `content-type=".*javascript.*"` in: #112: nested-carousel, antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #112: nested-carousel, antal fel: 45 ( 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)
- Async method X has no X expression. (totalt 1 st)
- `content-type=".*javascript.*"` in: #113: text-editor.c08, antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #113: text-editor.c08, antal fel: 49 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 47 st)
- Expected X and instead saw X. (totalt 1 st)
- Async method X has no X expression. (totalt 1 st)
- `content-type=".*javascript.*"` in: #114: loop.4a16d82b8b, antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #114: loop.4a16d82b8b, antal fel: 76 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 71 st)
- Expected X and instead saw X. (totalt 4 st)
- Async method X has no X expression. (totalt 1 st)
- `content-type=".*javascript.*"` in: #115: loop-carousel.f, antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #115: loop-carousel.f, antal fel: 80 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 74 st)
- Expected X and instead saw X. (totalt 4 st)
- Async method X has no X expression. (totalt 2 st)