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.35 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: 1473 ( 1.00 betyg )
- X is not defined. (totalt 1097 st)
- X is defined but never used. (totalt 240 st)
- Unexpected console statement. (totalt 86 st)
- X is assigned a value but never used. (totalt 50 st)
- `content-type=".*javascript.*"` in: #48: analytics.js, antal grupperade fel: 2 ( 4.60 betyg )
- `content-type=".*javascript.*"` in: #48: analytics.js, antal fel: 30 ( 1.00 betyg )
- X is defined but never used. (totalt 27 st)
- X is not defined. (totalt 3 st)
- `content-type=".*javascript.*"` in: #53: Common-e150c13a, antal grupperade fel: 2 ( 4.60 betyg )
- `content-type=".*javascript.*"` in: #53: Common-e150c13a, antal fel: 37 ( 1.00 betyg )
- X is defined but never used. (totalt 34 st)
- X is not defined. (totalt 3 st)
- `content-type=".*javascript.*"` in: #57: js, antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #57: js, antal fel: 517 ( 1.00 betyg )
- X is defined but never used. (totalt 410 st)
- X is assigned a value but never used. (totalt 89 st)
- X is not defined. (totalt 18 st)
- `content-type=".*javascript.*"` in: #61: sdk.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #61: sdk.js, antal fel: 588 ( 1.00 betyg )
- X is defined but never used. (totalt 462 st)
- X is assigned a value but never used. (totalt 91 st)
- X is not defined. (totalt 20 st)
- Unexpected console statement. (totalt 15 st)
- `content-type=".*javascript.*"` in: #63: klarna-test-dri, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #63: klarna-test-dri, antal fel: 589 ( 1.00 betyg )
- X is defined but never used. (totalt 463 st)
- X is assigned a value but never used. (totalt 91 st)
- X is not defined. (totalt 20 st)
- Unexpected console statement. (totalt 15 st)
- `content-type=".*javascript.*"` in: #64: common.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #64: common.js, antal fel: 601 ( 1.00 betyg )
- X is defined but never used. (totalt 474 st)
- X is assigned a value but never used. (totalt 91 st)
- X is not defined. (totalt 21 st)
- Unexpected console statement. (totalt 15 st)
- `content-type=".*javascript.*"` in: #65: util.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #65: util.js, antal fel: 620 ( 1.00 betyg )
- X is defined but never used. (totalt 489 st)
- X is assigned a value but never used. (totalt 93 st)
- X is not defined. (totalt 22 st)
- Unexpected console statement. (totalt 16 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: 25 ( 1.00 betyg )
- `< script src="...">` in: #1: Webbsida , antal fel: 3185 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1688 st)
- Expected X and instead saw X. (totalt 1111 st)
- X is assigned to itself. (totalt 225 st)
- Unnecessary escape character: \.. (totalt 33 st)
- Do not access Object.prototype method X from target object. (totalt 26 st)
- Unexpected string concatenation of literals. (totalt 26 st)
- Unnecessary escape character: \/. (totalt 17 st)
- Comparing to itself is potentially pointless. (totalt 11 st)
- Unnecessary X. (totalt 8 st)
- The Function constructor is eval. (totalt 8 st)
- Unnecessary escape character: \[. (totalt 7 st)
- Unnecessary escape character: \:. (totalt 4 st)
- Unnecessary escape character: \^. (totalt 3 st)
- X is not modified in this loop. (totalt 3 st)
- Unsafe usage of ThrowStatement. (totalt 2 st)
- Unnecessary escape character: \}. (totalt 2 st)
- Unnecessary escape character: \). (totalt 2 st)
- Unnecessary escape character: \{. (totalt 2 st)
- Unsafe usage of ReturnStatement. (totalt 1 st)
- Unnecessary escape character: \ . (totalt 1 st)
- Unnecessary escape character: \'. (totalt 1 st)
- Async arrow function has no X expression. (totalt 1 st)
- Async method X has no X expression. (totalt 1 st)
- Unnecessary escape character: \+. (totalt 1 st)
- Unnecessary escape character: \-. (totalt 1 st)
- `content-type=".*javascript.*"` in: #48: analytics.js, antal grupperade fel: 7 ( 3.60 betyg )
- `content-type=".*javascript.*"` in: #48: 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)
- `content-type=".*javascript.*"` in: #53: Common-e150c13a, antal grupperade fel: 7 ( 3.60 betyg )
- `content-type=".*javascript.*"` in: #53: Common-e150c13a, antal fel: 534 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 299 st)
- Expected X and instead saw X. (totalt 210 st)
- Do not access Object.prototype method X from target object. (totalt 17 st)
- Comparing to itself is potentially pointless. (totalt 3 st)
- Unnecessary escape character: \[. (totalt 2 st)
- Unnecessary escape character: \/. (totalt 2 st)
- Unnecessary X. (totalt 1 st)
- `content-type=".*javascript.*"` in: #57: js, antal grupperade fel: 12 ( 2.60 betyg )
- `content-type=".*javascript.*"` in: #57: js, antal fel: 1948 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1394 st)
- Expected X and instead saw X. (totalt 429 st)
- Do not access Object.prototype method X from target object. (totalt 103 st)
- Unnecessary escape character: \/. (totalt 5 st)
- Comparing to itself is potentially pointless. (totalt 4 st)
- X is not modified in this loop. (totalt 4 st)
- X is assigned to itself. (totalt 3 st)
- Unnecessary escape character: \[. (totalt 2 st)
- Unnecessary X. (totalt 1 st)
- Unnecessary escape character: \?. (totalt 1 st)
- Script URL is a form of eval. (totalt 1 st)
- Unnecessary escape character: \}. (totalt 1 st)
- `content-type=".*javascript.*"` in: #61: sdk.js, antal grupperade fel: 21 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #61: sdk.js, antal fel: 3350 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 2056 st)
- Expected X and instead saw X. (totalt 941 st)
- Unnecessary escape character: \.. (totalt 156 st)
- Do not access Object.prototype method X from target object. (totalt 110 st)
- Unnecessary escape character: \/. (totalt 36 st)
- Unnecessary escape character: \). (totalt 16 st)
- Unnecessary escape character: \-. (totalt 6 st)
- Comparing to itself is potentially pointless. (totalt 4 st)
- X is not modified in this loop. (totalt 4 st)
- X is assigned to itself. (totalt 3 st)
- Unnecessary escape character: \+. (totalt 3 st)
- Unnecessary escape character: \:. (totalt 3 st)
- Unnecessary escape character: \[. (totalt 2 st)
- Unnecessary escape character: \,. (totalt 2 st)
- Unnecessary escape character: \(. (totalt 2 st)
- Unnecessary X. (totalt 1 st)
- Unnecessary escape character: \?. (totalt 1 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: #63: klarna-test-dri, antal grupperade fel: 21 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #63: klarna-test-dri, antal fel: 3369 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 2065 st)
- Expected X and instead saw X. (totalt 951 st)
- Unnecessary escape character: \.. (totalt 156 st)
- Do not access Object.prototype method X from target object. (totalt 110 st)
- Unnecessary escape character: \/. (totalt 36 st)
- Unnecessary escape character: \). (totalt 16 st)
- Unnecessary escape character: \-. (totalt 6 st)
- Comparing to itself is potentially pointless. (totalt 4 st)
- X is not modified in this loop. (totalt 4 st)
- X is assigned to itself. (totalt 3 st)
- Unnecessary escape character: \+. (totalt 3 st)
- Unnecessary escape character: \:. (totalt 3 st)
- Unnecessary escape character: \[. (totalt 2 st)
- Unnecessary escape character: \,. (totalt 2 st)
- Unnecessary escape character: \(. (totalt 2 st)
- Unnecessary X. (totalt 1 st)
- Unnecessary escape character: \?. (totalt 1 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: #64: common.js, antal grupperade fel: 23 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #64: common.js, antal fel: 3806 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 2407 st)
- Expected X and instead saw X. (totalt 1035 st)
- Unnecessary escape character: \.. (totalt 156 st)
- Do not access Object.prototype method X from target object. (totalt 112 st)
- Unnecessary escape character: \/. (totalt 37 st)
- Unnecessary escape character: \). (totalt 16 st)
- Unnecessary escape character: \-. (totalt 6 st)
- Unnecessary escape character: \?. (totalt 5 st)
- Comparing to itself is potentially pointless. (totalt 4 st)
- X is not modified in this loop. (totalt 4 st)
- X is assigned to itself. (totalt 3 st)
- Unnecessary escape character: \+. (totalt 3 st)
- Unnecessary escape character: \:. (totalt 3 st)
- Unnecessary escape character: \[. (totalt 2 st)
- Unnecessary X. (totalt 2 st)
- Unnecessary escape character: \,. (totalt 2 st)
- Unnecessary escape character: \(. (totalt 2 st)
- Unexpected string concatenation of literals. (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)
- Async method X has no X expression. (totalt 1 st)
- `content-type=".*javascript.*"` in: #65: util.js, antal grupperade fel: 25 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #65: util.js, antal fel: 5172 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 3036 st)
- Expected X and instead saw X. (totalt 1748 st)
- Unnecessary escape character: \.. (totalt 156 st)
- Do not access Object.prototype method X from target object. (totalt 122 st)
- Unnecessary escape character: \/. (totalt 37 st)
- Unnecessary escape character: \). (totalt 16 st)
- X is assigned to itself. (totalt 9 st)
- X is not modified in this loop. (totalt 6 st)
- Unnecessary escape character: \-. (totalt 6 st)
- Unnecessary escape character: \?. (totalt 5 st)
- Comparing to itself is potentially pointless. (totalt 4 st)
- Unnecessary X. (totalt 4 st)
- Unnecessary escape character: \+. (totalt 3 st)
- Unnecessary escape character: \:. (totalt 3 st)
- Unnecessary escape character: \(. (totalt 3 st)
- Unnecessary escape character: \[. (totalt 2 st)
- Unnecessary escape character: \,. (totalt 2 st)
- Unexpected string concatenation of literals. (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)
- Async method X has no X expression. (totalt 1 st)
- The Function constructor is eval. (totalt 1 st)