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.28 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 )
- X is defined 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: 7 ( 3.60 betyg )
- X is defined but never used. (totalt 3 st)
- X is not defined. (totalt 2 st)
- X is assigned a value but never used. (totalt 1 st)
- Unexpected console statement. (totalt 1 st)
- `content-type=".*javascript.*"` in: #24: gtm.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #24: gtm.js, antal fel: 576 ( 1.00 betyg )
- X is defined but never used. (totalt 466 st)
- X is assigned a value but never used. (totalt 88 st)
- X is not defined. (totalt 21 st)
- Unexpected console statement. (totalt 1 st)
- `content-type=".*javascript.*"` in: #25: 40e9fa5f-d981-4, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #25: 40e9fa5f-d981-4, antal fel: 576 ( 1.00 betyg )
- X is defined but never used. (totalt 466 st)
- X is assigned a value but never used. (totalt 88 st)
- X is not defined. (totalt 21 st)
- Unexpected console statement. (totalt 1 st)
- `content-type=".*javascript.*"` in: #29: recaptcha--sv.j, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #29: recaptcha--sv.j, antal fel: 676 ( 1.00 betyg )
- X is defined but never used. (totalt 544 st)
- X is assigned a value but never used. (totalt 90 st)
- X is not defined. (totalt 38 st)
- Unexpected console statement. (totalt 4 st)
- `content-type=".*javascript.*"` in: #30: load.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #30: load.js, antal fel: 678 ( 1.00 betyg )
- X is defined but never used. (totalt 544 st)
- X is assigned a value but never used. (totalt 90 st)
- X is not defined. (totalt 40 st)
- Unexpected console statement. (totalt 4 st)
- `content-type=".*javascript.*"` in: #32: otBannerSdk.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #32: otBannerSdk.js, antal fel: 743 ( 1.00 betyg )
- X is defined but never used. (totalt 571 st)
- X is assigned a value but never used. (totalt 90 st)
- X is not defined. (totalt 41 st)
- Unexpected console statement. (totalt 41 st)
- `content-type=".*javascript.*"` in: #34: curator.embed.j, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #34: curator.embed.j, antal fel: 815 ( 1.00 betyg )
- X is defined but never used. (totalt 621 st)
- X is assigned a value but never used. (totalt 91 st)
- Unexpected console statement. (totalt 61 st)
- X is not defined. (totalt 42 st)
- `content-type=".*javascript.*"` in: #36: sdk.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #36: sdk.js, antal fel: 815 ( 1.00 betyg )
- X is defined but never used. (totalt 621 st)
- X is assigned a value but never used. (totalt 91 st)
- Unexpected console statement. (totalt 61 st)
- X is not defined. (totalt 42 st)
- `content-type=".*javascript.*"` in: #41: sdk.js, antal grupperade fel: 5 ( 4.00 betyg )
- `content-type=".*javascript.*"` in: #41: sdk.js, antal fel: 816 ( 1.00 betyg )
- X is defined but never used. (totalt 621 st)
- X is assigned a value but never used. (totalt 91 st)
- Unexpected console statement. (totalt 61 st)
- X is not defined. (totalt 42 st)
- Parsing error: X in strict mode (totalt 1 st)
- `content-type=".*javascript.*"` in: #42: main.js, antal grupperade fel: 5 ( 4.00 betyg )
- `content-type=".*javascript.*"` in: #42: main.js, antal fel: 893 ( 1.00 betyg )
- X is defined but never used. (totalt 656 st)
- X is assigned a value but never used. (totalt 92 st)
- X is not defined. (totalt 78 st)
- Unexpected console statement. (totalt 66 st)
- Parsing error: X in strict mode (totalt 1 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: 7 ( 3.60 betyg )
- `< script src="...">` in: #1: Webbsida , antal fel: 158 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 141 st)
- Expected X and instead saw X. (totalt 12 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)
- eval can be harmful. (totalt 1 st)
- `content-type=".*javascript.*"` in: #24: gtm.js, antal grupperade fel: 10 ( 3.00 betyg )
- `content-type=".*javascript.*"` in: #24: gtm.js, antal fel: 1039 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 750 st)
- Expected X and instead saw X. (totalt 199 st)
- Do not access Object.prototype method X from target object. (totalt 74 st)
- Unnecessary escape character: \/. (totalt 6 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: #25: 40e9fa5f-d981-4, antal grupperade fel: 10 ( 3.00 betyg )
- `content-type=".*javascript.*"` in: #25: 40e9fa5f-d981-4, antal fel: 1044 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 753 st)
- Expected X and instead saw X. (totalt 199 st)
- Do not access Object.prototype method X from target object. (totalt 74 st)
- Unnecessary escape character: \/. (totalt 8 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: #29: recaptcha--sv.j, antal grupperade fel: 19 ( 1.20 betyg )
- `content-type=".*javascript.*"` in: #29: recaptcha--sv.j, antal fel: 3309 ( 1.00 betyg )
- Expected X and instead saw X. (totalt 1840 st)
- Expected an assignment or function call and instead saw an expression. (totalt 1327 st)
- Do not access Object.prototype method X from target object. (totalt 78 st)
- Unnecessary escape character: \/. (totalt 17 st)
- X is assigned to itself. (totalt 9 st)
- Comparing to itself is potentially pointless. (totalt 5 st)
- Unnecessary escape character: \). (totalt 5 st)
- X is not modified in this loop. (totalt 4 st)
- Unnecessary escape character: \?. (totalt 4 st)
- eval can be harmful. (totalt 3 st)
- Unnecessary escape character: \^. (totalt 3 st)
- Unnecessary escape character: \-. (totalt 3 st)
- Unnecessary escape character: \.. (totalt 3 st)
- Unnecessary X. (totalt 2 st)
- Unnecessary escape character: \(. (totalt 2 st)
- Script URL is a form of eval. (totalt 1 st)
- Unnecessary escape character: \+. (totalt 1 st)
- Unnecessary escape character: \[. (totalt 1 st)
- Unnecessary escape character: \{. (totalt 1 st)
- `content-type=".*javascript.*"` in: #30: load.js, antal grupperade fel: 19 ( 1.20 betyg )
- `content-type=".*javascript.*"` in: #30: load.js, antal fel: 3309 ( 1.00 betyg )
- Expected X and instead saw X. (totalt 1840 st)
- Expected an assignment or function call and instead saw an expression. (totalt 1327 st)
- Do not access Object.prototype method X from target object. (totalt 78 st)
- Unnecessary escape character: \/. (totalt 17 st)
- X is assigned to itself. (totalt 9 st)
- Comparing to itself is potentially pointless. (totalt 5 st)
- Unnecessary escape character: \). (totalt 5 st)
- X is not modified in this loop. (totalt 4 st)
- Unnecessary escape character: \?. (totalt 4 st)
- eval can be harmful. (totalt 3 st)
- Unnecessary escape character: \^. (totalt 3 st)
- Unnecessary escape character: \-. (totalt 3 st)
- Unnecessary escape character: \.. (totalt 3 st)
- Unnecessary X. (totalt 2 st)
- Unnecessary escape character: \(. (totalt 2 st)
- Script URL is a form of eval. (totalt 1 st)
- Unnecessary escape character: \+. (totalt 1 st)
- Unnecessary escape character: \[. (totalt 1 st)
- Unnecessary escape character: \{. (totalt 1 st)
- `content-type=".*javascript.*"` in: #32: otBannerSdk.js, antal grupperade fel: 21 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #32: otBannerSdk.js, antal fel: 4399 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 2244 st)
- Expected X and instead saw X. (totalt 2003 st)
- Do not access Object.prototype method X from target object. (totalt 82 st)
- Unnecessary escape character: \/. (totalt 17 st)
- X is assigned to itself. (totalt 10 st)
- Comparing to itself is potentially pointless. (totalt 7 st)
- Unnecessary escape character: \). (totalt 5 st)
- X is not modified in this loop. (totalt 4 st)
- Unnecessary escape character: \?. (totalt 4 st)
- eval can be harmful. (totalt 3 st)
- Unnecessary escape character: \^. (totalt 3 st)
- Unnecessary escape character: \-. (totalt 3 st)
- Unnecessary escape character: \.. (totalt 3 st)
- Unnecessary X. (totalt 2 st)
- Unnecessary escape character: \(. (totalt 2 st)
- The Function constructor is eval. (totalt 2 st)
- Script URL is a form of eval. (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)
- `content-type=".*javascript.*"` in: #34: curator.embed.j, antal grupperade fel: 25 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #34: curator.embed.j, antal fel: 5546 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 2925 st)
- Expected X and instead saw X. (totalt 2428 st)
- Do not access Object.prototype method X from target object. (totalt 85 st)
- Comparing to itself is potentially pointless. (totalt 21 st)
- Unnecessary escape character: \/. (totalt 20 st)
- X is assigned to itself. (totalt 13 st)
- Unnecessary escape character: \?. (totalt 8 st)
- The Function constructor is eval. (totalt 6 st)
- Unnecessary escape character: \). (totalt 5 st)
- X is not modified in this loop. (totalt 4 st)
- Unnecessary escape character: \-. (totalt 4 st)
- Unnecessary escape character: \.. (totalt 4 st)
- eval can be harmful. (totalt 3 st)
- Script URL is a form of eval. (totalt 3 st)
- Unnecessary escape character: \^. (totalt 3 st)
- Unnecessary X. (totalt 2 st)
- Unnecessary escape character: \(. (totalt 2 st)
- Unnecessary escape character: \&. (totalt 2 st)
- Redundant use of `await` on a return value. (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)
- Async function has no X expression. (totalt 1 st)
- Async method X has no X expression. (totalt 1 st)
- `content-type=".*javascript.*"` in: #36: sdk.js, antal grupperade fel: 25 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #36: sdk.js, antal fel: 5553 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 2928 st)
- Expected X and instead saw X. (totalt 2428 st)
- Do not access Object.prototype method X from target object. (totalt 85 st)
- Unnecessary escape character: \/. (totalt 24 st)
- Comparing to itself is potentially pointless. (totalt 21 st)
- X is assigned to itself. (totalt 13 st)
- Unnecessary escape character: \?. (totalt 8 st)
- The Function constructor is eval. (totalt 6 st)
- Unnecessary escape character: \). (totalt 5 st)
- X is not modified in this loop. (totalt 4 st)
- Unnecessary escape character: \-. (totalt 4 st)
- Unnecessary escape character: \.. (totalt 4 st)
- eval can be harmful. (totalt 3 st)
- Script URL is a form of eval. (totalt 3 st)
- Unnecessary escape character: \^. (totalt 3 st)
- Unnecessary X. (totalt 2 st)
- Unnecessary escape character: \(. (totalt 2 st)
- Unnecessary escape character: \&. (totalt 2 st)
- Redundant use of `await` on a return value. (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)
- Async function has no X expression. (totalt 1 st)
- Async method X has no X expression. (totalt 1 st)
- `content-type=".*javascript.*"` in: #41: sdk.js, antal grupperade fel: 26 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #41: sdk.js, antal fel: 5554 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 2928 st)
- Expected X and instead saw X. (totalt 2428 st)
- Do not access Object.prototype method X from target object. (totalt 85 st)
- Unnecessary escape character: \/. (totalt 24 st)
- Comparing to itself is potentially pointless. (totalt 21 st)
- X is assigned to itself. (totalt 13 st)
- Unnecessary escape character: \?. (totalt 8 st)
- The Function constructor is eval. (totalt 6 st)
- Unnecessary escape character: \). (totalt 5 st)
- X is not modified in this loop. (totalt 4 st)
- Unnecessary escape character: \-. (totalt 4 st)
- Unnecessary escape character: \.. (totalt 4 st)
- eval can be harmful. (totalt 3 st)
- Script URL is a form of eval. (totalt 3 st)
- Unnecessary escape character: \^. (totalt 3 st)
- Unnecessary X. (totalt 2 st)
- Unnecessary escape character: \(. (totalt 2 st)
- Unnecessary escape character: \&. (totalt 2 st)
- Redundant use of `await` on a return value. (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)
- Async function has no X expression. (totalt 1 st)
- Async method X has no X expression. (totalt 1 st)
- Parsing error: X in strict mode (totalt 1 st)
- `content-type=".*javascript.*"` in: #42: main.js, antal grupperade fel: 26 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #42: main.js, antal fel: 6145 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 3304 st)
- Expected X and instead saw X. (totalt 2617 st)
- Do not access Object.prototype method X from target object. (totalt 86 st)
- Unnecessary escape character: \/. (totalt 31 st)
- Comparing to itself is potentially pointless. (totalt 24 st)
- X is assigned to itself. (totalt 13 st)
- Unnecessary escape character: \?. (totalt 10 st)
- X is not modified in this loop. (totalt 8 st)
- Unnecessary escape character: \.. (totalt 7 st)
- The Function constructor is eval. (totalt 7 st)
- Unnecessary escape character: \). (totalt 5 st)
- Unnecessary escape character: \-. (totalt 5 st)
- Unnecessary escape character: \[. (totalt 4 st)
- eval can be harmful. (totalt 3 st)
- Unnecessary X. (totalt 3 st)
- Script URL is a form of eval. (totalt 3 st)
- Unnecessary escape character: \^. (totalt 3 st)
- Unnecessary escape character: \(. (totalt 2 st)
- Unnecessary escape character: \&. (totalt 2 st)
- Redundant use of `await` on a return value. (totalt 2 st)
- Unnecessary escape character: \+. (totalt 1 st)
- Unnecessary escape character: \{. (totalt 1 st)
- Unnecessary escape character: \_. (totalt 1 st)
- Async function has no X expression. (totalt 1 st)
- Async method X has no X expression. (totalt 1 st)
- Parsing error: X in strict mode (totalt 1 st)