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.32 av 5
- JS är ok.
Webbstandard
- `< script>` in: #1: Webbsida , antal grupperade fel: 2 ( 4.60 betyg )
- `< script>` in: #1: Webbsida , antal fel: 2 ( 4.60 betyg )
- X is defined but never used. (totalt 1 st)
- X is assigned a value but never used. (totalt 1 st)
- `< script src="...">` in: #1: Webbsida , antal grupperade fel: 4 ( 4.20 betyg )
- `< script src="...">` in: #1: Webbsida , antal fel: 612 ( 1.00 betyg )
- X is not defined. (totalt 576 st)
- X is defined but never used. (totalt 16 st)
- X is assigned a value but never used. (totalt 15 st)
- Unexpected console statement. (totalt 5 st)
- `content-type=".*javascript.*"` in: #26: gtm.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #26: gtm.js, antal fel: 543 ( 1.00 betyg )
- X is defined but never used. (totalt 439 st)
- X is assigned a value but never used. (totalt 85 st)
- X is not defined. (totalt 18 st)
- Unexpected console statement. (totalt 1 st)
- `content-type=".*javascript.*"` in: #32: otBannerSdk.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #32: otBannerSdk.js, antal fel: 599 ( 1.00 betyg )
- X is defined but never used. (totalt 463 st)
- X is assigned a value but never used. (totalt 85 st)
- Unexpected console statement. (totalt 33 st)
- X is not defined. (totalt 18 st)
- `content-type=".*javascript.*"` in: #34: sdk-iframe-inte, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #34: sdk-iframe-inte, antal fel: 1041 ( 1.00 betyg )
- X is defined but never used. (totalt 691 st)
- X is not defined. (totalt 136 st)
- Unexpected console statement. (totalt 123 st)
- X is assigned a value but never used. (totalt 91 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 )
- Expected X and instead saw X. (totalt 1 st)
- `< script src="...">` in: #1: Webbsida , antal grupperade fel: 11 ( 2.80 betyg )
- `< script src="...">` in: #1: Webbsida , antal fel: 792 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 530 st)
- Expected X and instead saw X. (totalt 204 st)
- Unexpected string concatenation of literals. (totalt 35 st)
- Unnecessary X. (totalt 7 st)
- X is not modified in this loop. (totalt 7 st)
- X is assigned to itself. (totalt 3 st)
- Unnecessary escape character: \/. (totalt 2 st)
- Unnecessary escape character: \[. (totalt 1 st)
- Unnecessary escape character: \{. (totalt 1 st)
- eval can be harmful. (totalt 1 st)
- Do not access Object.prototype method X from target object. (totalt 1 st)
- `content-type=".*javascript.*"` in: #26: gtm.js, antal grupperade fel: 10 ( 3.00 betyg )
- `content-type=".*javascript.*"` in: #26: gtm.js, antal fel: 1142 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 816 st)
- Expected X and instead saw X. (totalt 205 st)
- Do not access Object.prototype method X from target object. (totalt 89 st)
- Unnecessary escape character: \/. (totalt 22 st)
- X is not modified in this loop. (totalt 3 st)
- X is assigned to itself. (totalt 3 st)
- eval can be harmful. (totalt 1 st)
- Comparing to itself is potentially pointless. (totalt 1 st)
- Unnecessary X. (totalt 1 st)
- Script URL is a form of eval. (totalt 1 st)
- `content-type=".*javascript.*"` in: #32: otBannerSdk.js, antal grupperade fel: 12 ( 2.60 betyg )
- `content-type=".*javascript.*"` in: #32: otBannerSdk.js, antal fel: 2167 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1692 st)
- Expected X and instead saw X. (totalt 345 st)
- Do not access Object.prototype method X from target object. (totalt 93 st)
- Unnecessary escape character: \/. (totalt 22 st)
- X is not modified in this loop. (totalt 3 st)
- X is assigned to itself. (totalt 3 st)
- Comparing to itself is potentially pointless. (totalt 3 st)
- The Function constructor is eval. (totalt 2 st)
- eval can be harmful. (totalt 1 st)
- Unnecessary X. (totalt 1 st)
- Script URL is a form of eval. (totalt 1 st)
- Unnecessary escape character: \_. (totalt 1 st)
- `content-type=".*javascript.*"` in: #34: sdk-iframe-inte, antal grupperade fel: 20 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #34: sdk-iframe-inte, antal fel: 6924 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 4605 st)
- Expected X and instead saw X. (totalt 1957 st)
- X is assigned to itself. (totalt 153 st)
- Do not access Object.prototype method X from target object. (totalt 133 st)
- Unnecessary escape character: \/. (totalt 26 st)
- Comparing to itself is potentially pointless. (totalt 12 st)
- X is not modified in this loop. (totalt 7 st)
- The Function constructor is eval. (totalt 5 st)
- Unnecessary escape character: \?. (totalt 4 st)
- Async function X has no X expression. (totalt 4 st)
- Async method X has no X expression. (totalt 4 st)
- Unnecessary escape character: \-. (totalt 3 st)
- Async function has no X expression. (totalt 3 st)
- Script URL is a form of eval. (totalt 2 st)
- eval can be harmful. (totalt 1 st)
- Unnecessary X. (totalt 1 st)
- Unnecessary escape character: \_. (totalt 1 st)
- Async arrow function has no X expression. (totalt 1 st)
- Redundant use of `await` on a return value. (totalt 1 st)
- Unexpected string concatenation of literals. (totalt 1 st)