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.36 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: 234 ( 1.00 betyg )
- X is not defined. (totalt 115 st)
- X is defined but never used. (totalt 111 st)
- Unexpected console statement. (totalt 4 st)
- X is assigned a value but never used. (totalt 4 st)
- `content-type=".*javascript.*"` in: #35: update.min.js, antal grupperade fel: 1 ( 4.80 betyg )
- `content-type=".*javascript.*"` in: #35: update.min.js, antal fel: 4 ( 4.20 betyg )
- X is defined but never used. (totalt 4 st)
- `content-type=".*javascript.*"` in: #36: ls.attrchange.m, antal grupperade fel: 2 ( 4.60 betyg )
- `content-type=".*javascript.*"` in: #36: ls.attrchange.m, antal fel: 6 ( 3.80 betyg )
- X is defined but never used. (totalt 4 st)
- X is not defined. (totalt 2 st)
- `content-type=".*javascript.*"` in: #37: lazysizes.min.j, antal grupperade fel: 2 ( 4.60 betyg )
- `content-type=".*javascript.*"` in: #37: lazysizes.min.j, antal fel: 6 ( 3.80 betyg )
- X is defined but never used. (totalt 4 st)
- X is not defined. (totalt 2 st)
- `content-type=".*javascript.*"` in: #39: flowbox.js, antal grupperade fel: 2 ( 4.60 betyg )
- `content-type=".*javascript.*"` in: #39: flowbox.js, antal fel: 6 ( 3.80 betyg )
- X is defined but never used. (totalt 4 st)
- X is not defined. (totalt 2 st)
- `content-type=".*javascript.*"` in: #44: flowbox-flow-em, antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #44: flowbox-flow-em, antal fel: 93 ( 1.00 betyg )
- X is defined but never used. (totalt 74 st)
- Unexpected console statement. (totalt 11 st)
- X is not defined. (totalt 8 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: 17 ( 1.60 betyg )
- `< script src="...">` in: #1: Webbsida , antal fel: 2258 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1261 st)
- Expected X and instead saw X. (totalt 912 st)
- Comparing to itself is potentially pointless. (totalt 27 st)
- Unnecessary escape character: \/. (totalt 18 st)
- Unnecessary escape character: \-. (totalt 11 st)
- Unnecessary escape character: \.. (totalt 7 st)
- Unnecessary X. (totalt 5 st)
- Do not access Object.prototype method X from target object. (totalt 4 st)
- X is not modified in this loop. (totalt 4 st)
- Unnecessary escape character: \". (totalt 2 st)
- X is assigned to itself. (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)
- The Function constructor is eval. (totalt 1 st)
- Unnecessary escape character: \&. (totalt 1 st)
- `content-type=".*javascript.*"` in: #35: update.min.js, antal grupperade fel: 1 ( 4.80 betyg )
- `content-type=".*javascript.*"` in: #35: update.min.js, antal fel: 15 ( 2.00 betyg )
- Expected X and instead saw X. (totalt 15 st)
- `content-type=".*javascript.*"` in: #36: ls.attrchange.m, antal grupperade fel: 2 ( 4.60 betyg )
- `content-type=".*javascript.*"` in: #36: ls.attrchange.m, antal fel: 31 ( 1.00 betyg )
- Expected X and instead saw X. (totalt 21 st)
- Expected an assignment or function call and instead saw an expression. (totalt 10 st)
- `content-type=".*javascript.*"` in: #37: lazysizes.min.j, antal grupperade fel: 2 ( 4.60 betyg )
- `content-type=".*javascript.*"` in: #37: lazysizes.min.j, antal fel: 49 ( 1.00 betyg )
- Expected X and instead saw X. (totalt 36 st)
- Expected an assignment or function call and instead saw an expression. (totalt 13 st)
- `content-type=".*javascript.*"` in: #39: flowbox.js, antal grupperade fel: 2 ( 4.60 betyg )
- `content-type=".*javascript.*"` in: #39: flowbox.js, antal fel: 51 ( 1.00 betyg )
- Expected X and instead saw X. (totalt 36 st)
- Expected an assignment or function call and instead saw an expression. (totalt 15 st)
- `content-type=".*javascript.*"` in: #44: flowbox-flow-em, antal grupperade fel: 11 ( 2.80 betyg )
- `content-type=".*javascript.*"` in: #44: flowbox-flow-em, antal fel: 1035 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 617 st)
- Expected X and instead saw X. (totalt 370 st)
- Do not access Object.prototype method X from target object. (totalt 30 st)
- X is not modified in this loop. (totalt 5 st)
- Comparing to itself is potentially pointless. (totalt 4 st)
- X is assigned to itself. (totalt 3 st)
- The Function constructor is eval. (totalt 2 st)
- Unnecessary escape character: \-. (totalt 1 st)
- Unnecessary escape character: \/. (totalt 1 st)
- Async function has no X expression. (totalt 1 st)
- Async arrow function has no X expression. (totalt 1 st)