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.23 av 5
- JS är ok.
Webbstandard
- `< script>` in: #1: Webbsida , antal grupperade fel: 1 ( 4.80 betyg )
- `< script>` in: #1: Webbsida , antal fel: 2 ( 4.60 betyg )
- X is not defined. (totalt 2 st)
- `< script src="...">` in: #1: Webbsida , antal grupperade fel: 4 ( 4.20 betyg )
- `< script src="...">` in: #1: Webbsida , antal fel: 92 ( 1.00 betyg )
- X is not defined. (totalt 72 st)
- X is defined but never used. (totalt 18 st)
- Unexpected console statement. (totalt 1 st)
- X is assigned a value but never used. (totalt 1 st)
- `content-type=".*javascript.*"` in: #14: analytics.js, antal grupperade fel: 2 ( 4.60 betyg )
- `content-type=".*javascript.*"` in: #14: analytics.js, antal fel: 30 ( 1.00 betyg )
- X is defined but never used. (totalt 27 st)
- X is not defined. (totalt 3 st)
Integritet & säkerhet
- `< script>` in: #1: Webbsida , antal grupperade fel: 1 ( 4.80 betyg )
- `< script>` in: #1: Webbsida , antal fel: 2 ( 4.60 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 2 st)
- `< script src="...">` in: #1: Webbsida , antal grupperade fel: 7 ( 3.60 betyg )
- `< script src="...">` in: #1: Webbsida , antal fel: 505 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 244 st)
- Expected X and instead saw X. (totalt 235 st)
- Unnecessary escape character: \/. (totalt 21 st)
- Comparing to itself is potentially pointless. (totalt 2 st)
- Unnecessary X. (totalt 1 st)
- Do not access Object.prototype method X from target object. (totalt 1 st)
- X is assigned to itself. (totalt 1 st)
- `content-type=".*javascript.*"` in: #14: analytics.js, antal grupperade fel: 7 ( 3.60 betyg )
- `content-type=".*javascript.*"` in: #14: analytics.js, antal fel: 430 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 234 st)
- Expected X and instead saw X. (totalt 178 st)
- Do not access Object.prototype method X from target object. (totalt 12 st)
- Unnecessary escape character: \[. (totalt 2 st)
- Unnecessary escape character: \/. (totalt 2 st)
- Comparing to itself is potentially pointless. (totalt 1 st)
- Unnecessary X. (totalt 1 st)