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.24 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: 1049 ( 1.00 betyg )
- X is not defined. (totalt 795 st)
- X is defined but never used. (totalt 177 st)
- Unexpected console statement. (totalt 45 st)
- X is assigned a value but never used. (totalt 32 st)
- `content-type=".*javascript.*"` in: #73: animated-headli, antal grupperade fel: 1 ( 4.80 betyg )
- `content-type=".*javascript.*"` in: #73: animated-headli, antal fel: 8 ( 3.40 betyg )
- X is not defined. (totalt 8 st)
- `content-type=".*javascript.*"` in: #74: text-editor.c08, antal grupperade fel: 1 ( 4.80 betyg )
- `content-type=".*javascript.*"` in: #74: text-editor.c08, antal fel: 11 ( 2.80 betyg )
- X is not defined. (totalt 11 st)
- `content-type=".*javascript.*"` in: #75: form.5fb35271b8, antal grupperade fel: 1 ( 4.80 betyg )
- `content-type=".*javascript.*"` in: #75: form.5fb35271b8, antal fel: 42 ( 1.00 betyg )
- X is not defined. (totalt 42 st)
- `content-type=".*javascript.*"` in: #76: popup.f7b15b2ca, antal grupperade fel: 1 ( 4.80 betyg )
- `content-type=".*javascript.*"` in: #76: popup.f7b15b2ca, antal fel: 45 ( 1.00 betyg )
- X is not defined. (totalt 45 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: 2426 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1671 st)
- Expected X and instead saw X. (totalt 598 st)
- Unnecessary escape character: \-. (totalt 101 st)
- Do not access Object.prototype method X from target object. (totalt 26 st)
- Unnecessary escape character: \/. (totalt 9 st)
- X is assigned to itself. (totalt 8 st)
- Comparing to itself is potentially pointless. (totalt 3 st)
- The Function constructor is eval. (totalt 3 st)
- Unnecessary escape character: \[. (totalt 2 st)
- Unnecessary X. (totalt 1 st)
- X is not modified in this loop. (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: #73: animated-headli, antal grupperade fel: 1 ( 4.80 betyg )
- `content-type=".*javascript.*"` in: #73: animated-headli, antal fel: 20 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 20 st)
- `content-type=".*javascript.*"` in: #74: text-editor.c08, antal grupperade fel: 1 ( 4.80 betyg )
- `content-type=".*javascript.*"` in: #74: text-editor.c08, antal fel: 24 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 24 st)
- `content-type=".*javascript.*"` in: #75: form.5fb35271b8, antal grupperade fel: 2 ( 4.60 betyg )
- `content-type=".*javascript.*"` in: #75: form.5fb35271b8, antal fel: 72 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 71 st)
- Expected X and instead saw X. (totalt 1 st)
- `content-type=".*javascript.*"` in: #76: popup.f7b15b2ca, antal grupperade fel: 2 ( 4.60 betyg )
- `content-type=".*javascript.*"` in: #76: popup.f7b15b2ca, antal fel: 73 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 72 st)
- Expected X and instead saw X. (totalt 1 st)