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.75 av 5
- JS är ok.
Webbstandard
- `content-type=".*javascript.*"` in: #2: v1, antal grupperade fel: 2 ( 4.60 betyg )
- `content-type=".*javascript.*"` in: #2: v1, antal fel: 236 ( 1.00 betyg )
- X is not defined. (totalt 230 st)
- X is defined but never used. (totalt 6 st)
- `content-type=".*javascript.*"` in: #3: api.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #3: api.js, antal fel: 256 ( 1.00 betyg )
- X is not defined. (totalt 230 st)
- X is defined but never used. (totalt 23 st)
- Unexpected console statement. (totalt 2 st)
- X is assigned a value but never used. (totalt 1 st)
- `content-type=".*javascript.*"` in: #8: v1, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #8: v1, antal fel: 502 ( 1.00 betyg )
- X is not defined. (totalt 467 st)
- X is defined but never used. (totalt 31 st)
- Unexpected console statement. (totalt 3 st)
- X is assigned a value 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: 3 ( 4.40 betyg )
- Unnecessary escape character: \/. (totalt 3 st)
- `content-type=".*javascript.*"` in: #2: v1, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #2: v1, antal fel: 143 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 95 st)
- Expected X and instead saw X. (totalt 46 st)
- eval can be harmful. (totalt 1 st)
- Comparing to itself is potentially pointless. (totalt 1 st)
- `content-type=".*javascript.*"` in: #3: api.js, antal grupperade fel: 6 ( 3.80 betyg )
- `content-type=".*javascript.*"` in: #3: api.js, antal fel: 365 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 247 st)
- Expected X and instead saw X. (totalt 108 st)
- Unsafe usage of ThrowStatement. (totalt 7 st)
- eval can be harmful. (totalt 1 st)
- Comparing to itself is potentially pointless. (totalt 1 st)
- X is not modified in this loop. (totalt 1 st)
- `content-type=".*javascript.*"` in: #8: v1, antal grupperade fel: 6 ( 3.80 betyg )
- `content-type=".*javascript.*"` in: #8: v1, antal fel: 541 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 374 st)
- Expected X and instead saw X. (totalt 150 st)
- Comparing to itself is potentially pointless. (totalt 7 st)
- Unsafe usage of ThrowStatement. (totalt 7 st)
- eval can be harmful. (totalt 2 st)
- X is not modified in this loop. (totalt 1 st)