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: 2.53 av 5
- JS är dålig.
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: 286 ( 1.00 betyg )
- X is defined but never used. (totalt 173 st)
- X is assigned a value but never used. (totalt 72 st)
- Unexpected console statement. (totalt 30 st)
- X is not defined. (totalt 11 st)
- `content-type=".*javascript.*"` in: #23: container-DNyWy, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #23: container-DNyWy, antal fel: 184 ( 1.00 betyg )
- X is not defined. (totalt 104 st)
- X is defined but never used. (totalt 52 st)
- Unexpected console statement. (totalt 16 st)
- X is assigned a value but never used. (totalt 12 st)
- `content-type=".*javascript.*"` in: #34: script.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #34: script.js, antal fel: 232 ( 1.00 betyg )
- X is not defined. (totalt 106 st)
- X is defined but never used. (totalt 95 st)
- Unexpected console statement. (totalt 19 st)
- X is assigned a value but never used. (totalt 12 st)
- `content-type=".*javascript.*"` in: #35: hotjar-3669375., antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #35: hotjar-3669375., antal fel: 256 ( 1.00 betyg )
- X is not defined. (totalt 117 st)
- X is defined but never used. (totalt 103 st)
- Unexpected console statement. (totalt 24 st)
- X is assigned a value but never used. (totalt 12 st)
- `content-type=".*javascript.*"` in: #36: -5B...slug-5D-2, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #36: -5B...slug-5D-2, antal fel: 257 ( 1.00 betyg )
- X is not defined. (totalt 118 st)
- X is defined but never used. (totalt 103 st)
- Unexpected console statement. (totalt 24 st)
- X is assigned a value but never used. (totalt 12 st)
- `content-type=".*javascript.*"` in: #38: banner.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #38: banner.js, antal fel: 336 ( 1.00 betyg )
- X is defined but never used. (totalt 147 st)
- X is not defined. (totalt 145 st)
- Unexpected console statement. (totalt 32 st)
- X is assigned a value but never used. (totalt 12 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: 16 ( 1.80 betyg )
- `< script src="...">` in: #1: Webbsida , antal fel: 5381 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 2967 st)
- Expected X and instead saw X. (totalt 2284 st)
- Do not access Object.prototype method X from target object. (totalt 46 st)
- Comparing to itself is potentially pointless. (totalt 32 st)
- Unsafe usage of ThrowStatement. (totalt 13 st)
- Unsafe usage of ReturnStatement. (totalt 12 st)
- X is not modified in this loop. (totalt 11 st)
- Async method X has no X expression. (totalt 3 st)
- Async arrow function has no X expression. (totalt 3 st)
- The Function constructor is eval. (totalt 2 st)
- Unnecessary escape character: \/. (totalt 2 st)
- Unnecessary X. (totalt 2 st)
- Unnecessary escape character: \-. (totalt 1 st)
- Async function X has no X expression. (totalt 1 st)
- Unnecessary escape character: \.. (totalt 1 st)
- X is assigned to itself. (totalt 1 st)
- `content-type=".*javascript.*"` in: #23: container-DNyWy, antal grupperade fel: 5 ( 4.00 betyg )
- `content-type=".*javascript.*"` in: #23: container-DNyWy, antal fel: 44 ( 1.00 betyg )
- Unnecessary escape character: \/. (totalt 23 st)
- Expected X and instead saw X. (totalt 14 st)
- Do not access Object.prototype method X from target object. (totalt 5 st)
- Unnecessary X. (totalt 1 st)
- Unnecessary escape character: \.. (totalt 1 st)
- `content-type=".*javascript.*"` in: #34: script.js, antal grupperade fel: 14 ( 2.20 betyg )
- `content-type=".*javascript.*"` in: #34: script.js, antal fel: 354 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 217 st)
- Expected X and instead saw X. (totalt 80 st)
- Unnecessary escape character: \/. (totalt 23 st)
- Do not access Object.prototype method X from target object. (totalt 15 st)
- X is assigned to itself. (totalt 4 st)
- Unnecessary X. (totalt 2 st)
- Comparing to itself is potentially pointless. (totalt 2 st)
- The Function constructor is eval. (totalt 2 st)
- X is not modified in this loop. (totalt 2 st)
- Unsafe usage of ThrowStatement. (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)
- `content-type=".*javascript.*"` in: #35: hotjar-3669375., antal grupperade fel: 14 ( 2.20 betyg )
- `content-type=".*javascript.*"` in: #35: hotjar-3669375., antal fel: 397 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 239 st)
- Expected X and instead saw X. (totalt 101 st)
- Unnecessary escape character: \/. (totalt 23 st)
- Do not access Object.prototype method X from target object. (totalt 15 st)
- X is assigned to itself. (totalt 4 st)
- Unnecessary X. (totalt 2 st)
- Comparing to itself is potentially pointless. (totalt 2 st)
- The Function constructor is eval. (totalt 2 st)
- X is not modified in this loop. (totalt 2 st)
- Unsafe usage of ThrowStatement. (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)
- `content-type=".*javascript.*"` in: #36: -5B...slug-5D-2, antal grupperade fel: 14 ( 2.20 betyg )
- `content-type=".*javascript.*"` in: #36: -5B...slug-5D-2, antal fel: 399 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 241 st)
- Expected X and instead saw X. (totalt 101 st)
- Unnecessary escape character: \/. (totalt 23 st)
- Do not access Object.prototype method X from target object. (totalt 15 st)
- X is assigned to itself. (totalt 4 st)
- Unnecessary X. (totalt 2 st)
- Comparing to itself is potentially pointless. (totalt 2 st)
- The Function constructor is eval. (totalt 2 st)
- X is not modified in this loop. (totalt 2 st)
- Unsafe usage of ThrowStatement. (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)
- `content-type=".*javascript.*"` in: #38: banner.js, antal grupperade fel: 15 ( 2.00 betyg )
- `content-type=".*javascript.*"` in: #38: banner.js, antal fel: 692 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 452 st)
- Expected X and instead saw X. (totalt 165 st)
- Unnecessary escape character: \/. (totalt 23 st)
- Do not access Object.prototype method X from target object. (totalt 17 st)
- X is assigned to itself. (totalt 7 st)
- Comparing to itself is potentially pointless. (totalt 6 st)
- The Function constructor is eval. (totalt 5 st)
- X is not modified in this loop. (totalt 4 st)
- Unsafe usage of ThrowStatement. (totalt 4 st)
- Unnecessary X. (totalt 3 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)