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.19 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: 691 ( 1.00 betyg )
- X is not defined. (totalt 528 st)
- X is defined but never used. (totalt 124 st)
- Unexpected console statement. (totalt 20 st)
- X is assigned a value but never used. (totalt 19 st)
- `content-type=".*javascript.*"` in: #72: search-form.b70, antal grupperade fel: 1 ( 4.80 betyg )
- `content-type=".*javascript.*"` in: #72: search-form.b70, antal fel: 2 ( 4.60 betyg )
- X is not defined. (totalt 2 st)
- `content-type=".*javascript.*"` in: #73: nav-menu.a23fbd, antal grupperade fel: 2 ( 4.60 betyg )
- `content-type=".*javascript.*"` in: #73: nav-menu.a23fbd, 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: #74: media-carousel., antal grupperade fel: 2 ( 4.60 betyg )
- `content-type=".*javascript.*"` in: #74: media-carousel., antal fel: 20 ( 1.00 betyg )
- X is not defined. (totalt 19 st)
- X is defined but never used. (totalt 1 st)
- `content-type=".*javascript.*"` in: #75: text-editor.c08, antal grupperade fel: 2 ( 4.60 betyg )
- `content-type=".*javascript.*"` in: #75: text-editor.c08, antal fel: 23 ( 1.00 betyg )
- X is not defined. (totalt 22 st)
- X is defined but never used. (totalt 1 st)
- `content-type=".*javascript.*"` in: #76: load-more.8b46f, antal grupperade fel: 2 ( 4.60 betyg )
- `content-type=".*javascript.*"` in: #76: load-more.8b46f, antal fel: 28 ( 1.00 betyg )
- X is not defined. (totalt 27 st)
- X is defined but never used. (totalt 1 st)
- `content-type=".*javascript.*"` in: #77: posts.aec592653, antal grupperade fel: 2 ( 4.60 betyg )
- `content-type=".*javascript.*"` in: #77: posts.aec592653, antal fel: 38 ( 1.00 betyg )
- X is not defined. (totalt 37 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: 22 ( 1.00 betyg )
- `< script src="...">` in: #1: Webbsida , antal fel: 3056 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 2242 st)
- Expected X and instead saw X. (totalt 726 st)
- Do not access Object.prototype method X from target object. (totalt 16 st)
- Unnecessary escape character: \/. (totalt 13 st)
- Comparing to itself is potentially pointless. (totalt 10 st)
- The Function constructor is eval. (totalt 8 st)
- X is assigned to itself. (totalt 7 st)
- Unnecessary X. (totalt 6 st)
- Unnecessary escape character: \-. (totalt 4 st)
- Unnecessary escape character: \?. (totalt 3 st)
- X is not modified in this loop. (totalt 3 st)
- Unnecessary escape character: \+. (totalt 3 st)
- Unsafe usage of ThrowStatement. (totalt 2 st)
- Unnecessary escape character: \$. (totalt 2 st)
- Unnecessary escape character: \*. (totalt 2 st)
- Unnecessary escape character: \^. (totalt 2 st)
- Unnecessary escape character: \|. (totalt 2 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)
- Unnecessary escape character: \{. (totalt 1 st)
- `content-type=".*javascript.*"` in: #72: search-form.b70, antal grupperade fel: 1 ( 4.80 betyg )
- `content-type=".*javascript.*"` in: #72: search-form.b70, antal fel: 6 ( 3.80 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 6 st)
- `content-type=".*javascript.*"` in: #73: nav-menu.a23fbd, antal grupperade fel: 2 ( 4.60 betyg )
- `content-type=".*javascript.*"` in: #73: nav-menu.a23fbd, 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: media-carousel., antal grupperade fel: 2 ( 4.60 betyg )
- `content-type=".*javascript.*"` in: #74: media-carousel., antal fel: 34 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 33 st)
- Expected X and instead saw X. (totalt 1 st)
- `content-type=".*javascript.*"` in: #75: text-editor.c08, antal grupperade fel: 2 ( 4.60 betyg )
- `content-type=".*javascript.*"` in: #75: text-editor.c08, antal fel: 38 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 37 st)
- Expected X and instead saw X. (totalt 1 st)
- `content-type=".*javascript.*"` in: #76: load-more.8b46f, antal grupperade fel: 2 ( 4.60 betyg )
- `content-type=".*javascript.*"` in: #76: load-more.8b46f, antal fel: 52 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 51 st)
- Expected X and instead saw X. (totalt 1 st)
- `content-type=".*javascript.*"` in: #77: posts.aec592653, antal grupperade fel: 2 ( 4.60 betyg )
- `content-type=".*javascript.*"` in: #77: posts.aec592653, antal fel: 61 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 60 st)
- Expected X and instead saw X. (totalt 1 st)