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.28 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 self (totalt 1 st)
- `< script src="...">` in: #1: Webbsida , antal grupperade fel: 4 ( 4.20 betyg )
- `< script src="...">` in: #1: Webbsida , antal fel: 324 ( 1.00 betyg )
- X is defined but never used. (totalt 230 st)
- X is assigned a value but never used. (totalt 44 st)
- Unexpected console statement. (totalt 30 st)
- X is not defined. (totalt 20 st)
- `< script>` in: #57: favicon.ico, antal grupperade fel: 1 ( 4.80 betyg )
- `< script>` in: #57: favicon.ico, antal fel: 1 ( 4.80 betyg )
- Parsing error: Unexpected token self (totalt 1 st)
- `< script src="...">` in: #57: favicon.ico, antal grupperade fel: 4 ( 4.20 betyg )
- `< script src="...">` in: #57: favicon.ico, antal fel: 293 ( 1.00 betyg )
- X is defined but never used. (totalt 207 st)
- X is assigned a value but never used. (totalt 43 st)
- Unexpected console statement. (totalt 24 st)
- X is not defined. (totalt 19 st)
- `content-type=".*javascript.*"` in: #47: focus-visible.m, antal grupperade fel: 2 ( 4.60 betyg )
- `content-type=".*javascript.*"` in: #47: focus-visible.m, antal fel: 5 ( 4.00 betyg )
- X is defined but never used. (totalt 3 st)
- X is not defined. (totalt 2 st)
- `content-type=".*javascript.*"` in: #58: container-sAg3O, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #58: container-sAg3O, antal fel: 188 ( 1.00 betyg )
- X is not defined. (totalt 106 st)
- X is defined but never used. (totalt 54 st)
- Unexpected console statement. (totalt 16 st)
- X is assigned a value but never used. (totalt 12 st)
- `content-type=".*javascript.*"` in: #59: script.v2.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #59: script.v2.js, antal fel: 191 ( 1.00 betyg )
- X is not defined. (totalt 108 st)
- X is defined but never used. (totalt 54 st)
- Unexpected console statement. (totalt 17 st)
- X is assigned a value but never used. (totalt 12 st)
- `content-type=".*javascript.*"` in: #60: cookieControl-9, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #60: cookieControl-9, antal fel: 348 ( 1.00 betyg )
- X is defined but never used. (totalt 188 st)
- X is not defined. (totalt 114 st)
- Unexpected console statement. (totalt 34 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 self (totalt 1 st)
- `< script src="...">` in: #1: Webbsida , antal grupperade fel: 15 ( 2.00 betyg )
- `< script src="...">` in: #1: Webbsida , antal fel: 4505 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 2511 st)
- Expected X and instead saw X. (totalt 1905 st)
- Do not access Object.prototype method X from target object. (totalt 52 st)
- Comparing to itself is potentially pointless. (totalt 16 st)
- X is not modified in this loop. (totalt 4 st)
- Unnecessary X. (totalt 3 st)
- Script URL is a form of eval. (totalt 2 st)
- Async function X has no X expression. (totalt 2 st)
- Async method X has no X expression. (totalt 2 st)
- Unnecessary escape character: \.. (totalt 2 st)
- The Function constructor is eval. (totalt 2 st)
- X is assigned to itself. (totalt 1 st)
- Async arrow function has no X expression. (totalt 1 st)
- Unnecessary escape character: \;. (totalt 1 st)
- Unsafe usage of ReturnStatement. (totalt 1 st)
- `< script>` in: #57: favicon.ico, antal grupperade fel: 1 ( 4.80 betyg )
- `< script>` in: #57: favicon.ico, antal fel: 1 ( 4.80 betyg )
- Parsing error: Unexpected token self (totalt 1 st)
- `< script src="...">` in: #57: favicon.ico, antal grupperade fel: 15 ( 2.00 betyg )
- `< script src="...">` in: #57: favicon.ico, antal fel: 4236 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 2413 st)
- Expected X and instead saw X. (totalt 1734 st)
- Do not access Object.prototype method X from target object. (totalt 52 st)
- Comparing to itself is potentially pointless. (totalt 16 st)
- X is not modified in this loop. (totalt 4 st)
- Unnecessary X. (totalt 3 st)
- Script URL is a form of eval. (totalt 2 st)
- Async function X has no X expression. (totalt 2 st)
- Async method X has no X expression. (totalt 2 st)
- Unnecessary escape character: \.. (totalt 2 st)
- The Function constructor is eval. (totalt 2 st)
- X is assigned to itself. (totalt 1 st)
- Async arrow function has no X expression. (totalt 1 st)
- Unnecessary escape character: \;. (totalt 1 st)
- Unsafe usage of ReturnStatement. (totalt 1 st)
- `content-type=".*javascript.*"` in: #47: focus-visible.m, antal grupperade fel: 2 ( 4.60 betyg )
- `content-type=".*javascript.*"` in: #47: focus-visible.m, antal fel: 17 ( 1.60 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 11 st)
- Expected X and instead saw X. (totalt 6 st)
- `content-type=".*javascript.*"` in: #58: container-sAg3O, antal grupperade fel: 6 ( 3.80 betyg )
- `content-type=".*javascript.*"` in: #58: container-sAg3O, antal fel: 122 ( 1.00 betyg )
- Unnecessary escape character: \/. (totalt 84 st)
- Expected X and instead saw X. (totalt 20 st)
- Expected an assignment or function call and instead saw an expression. (totalt 11 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: #59: script.v2.js, antal grupperade fel: 7 ( 3.60 betyg )
- `content-type=".*javascript.*"` in: #59: script.v2.js, antal fel: 147 ( 1.00 betyg )
- Unnecessary escape character: \/. (totalt 84 st)
- Expected X and instead saw X. (totalt 34 st)
- Expected an assignment or function call and instead saw an expression. (totalt 19 st)
- Do not access Object.prototype method X from target object. (totalt 5 st)
- Async arrow function has no X expression. (totalt 3 st)
- Unnecessary X. (totalt 1 st)
- Unnecessary escape character: \.. (totalt 1 st)
- `content-type=".*javascript.*"` in: #60: cookieControl-9, antal grupperade fel: 13 ( 2.40 betyg )
- `content-type=".*javascript.*"` in: #60: cookieControl-9, antal fel: 1595 ( 1.00 betyg )
- Expected X and instead saw X. (totalt 844 st)
- Expected an assignment or function call and instead saw an expression. (totalt 627 st)
- Unnecessary escape character: \/. (totalt 85 st)
- Comparing to itself is potentially pointless. (totalt 14 st)
- Do not access Object.prototype method X from target object. (totalt 7 st)
- Unnecessary X. (totalt 5 st)
- The Function constructor is eval. (totalt 5 st)
- Async arrow function has no X expression. (totalt 3 st)
- Unnecessary escape character: \.. (totalt 1 st)
- Unnecessary escape character: \[. (totalt 1 st)
- X is not modified in this loop. (totalt 1 st)
- Unsafe usage of ThrowStatement. (totalt 1 st)
- X is assigned to itself. (totalt 1 st)