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.34 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: 1476 ( 1.00 betyg )
- X is not defined. (totalt 1097 st)
- X is defined but never used. (totalt 243 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: #54: Common-e150c13a, antal grupperade fel: 2 ( 4.60 betyg )
- `content-type=".*javascript.*"` in: #54: 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: #56: js, antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #56: js, antal fel: 534 ( 1.00 betyg )
- X is defined but never used. (totalt 425 st)
- X is assigned a value but never used. (totalt 90 st)
- X is not defined. (totalt 19 st)
- `content-type=".*javascript.*"` in: #58: wp-emoji-releas, antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #58: wp-emoji-releas, antal fel: 535 ( 1.00 betyg )
- X is defined but never used. (totalt 425 st)
- X is assigned a value but never used. (totalt 91 st)
- X is not defined. (totalt 19 st)
- `content-type=".*javascript.*"` in: #62: sdk.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #62: sdk.js, antal fel: 615 ( 1.00 betyg )
- X is defined but never used. (totalt 483 st)
- X is assigned a value but never used. (totalt 93 st)
- X is not defined. (totalt 20 st)
- Unexpected console statement. (totalt 19 st)
- `content-type=".*javascript.*"` in: #64: klarna-test-dri, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #64: klarna-test-dri, antal fel: 616 ( 1.00 betyg )
- X is defined but never used. (totalt 484 st)
- X is assigned a value but never used. (totalt 93 st)
- X is not defined. (totalt 20 st)
- Unexpected console statement. (totalt 19 st)
- `content-type=".*javascript.*"` in: #65: common.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #65: common.js, antal fel: 625 ( 1.00 betyg )
- X is defined but never used. (totalt 492 st)
- X is assigned a value but never used. (totalt 93 st)
- X is not defined. (totalt 21 st)
- Unexpected console statement. (totalt 19 st)
- `content-type=".*javascript.*"` in: #66: util.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #66: util.js, antal fel: 644 ( 1.00 betyg )
- X is defined but never used. (totalt 507 st)
- X is assigned a value but never used. (totalt 95 st)
- X is not defined. (totalt 22 st)
- Unexpected console statement. (totalt 20 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: 3226 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1708 st)
- Expected X and instead saw X. (totalt 1130 st)
- X is assigned to itself. (totalt 226 st)
- Unnecessary escape character: \.. (totalt 33 st)
- Do not access Object.prototype method X from target object. (totalt 27 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 function has no X expression. (totalt 1 st)
- Async arrow function 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: #54: Common-e150c13a, antal grupperade fel: 7 ( 3.60 betyg )
- `content-type=".*javascript.*"` in: #54: 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: #56: js, antal grupperade fel: 12 ( 2.60 betyg )
- `content-type=".*javascript.*"` in: #56: js, antal fel: 2017 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1437 st)
- Expected X and instead saw X. (totalt 455 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: #58: wp-emoji-releas, antal grupperade fel: 12 ( 2.60 betyg )
- `content-type=".*javascript.*"` in: #58: wp-emoji-releas, antal fel: 2043 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1452 st)
- Expected X and instead saw X. (totalt 464 st)
- Do not access Object.prototype method X from target object. (totalt 105 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: #62: sdk.js, antal grupperade fel: 21 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #62: sdk.js, antal fel: 3489 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 2138 st)
- Expected X and instead saw X. (totalt 995 st)
- Unnecessary escape character: \.. (totalt 156 st)
- Do not access Object.prototype method X from target object. (totalt 113 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: klarna-test-dri, antal grupperade fel: 21 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #64: klarna-test-dri, antal fel: 3508 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 2147 st)
- Expected X and instead saw X. (totalt 1005 st)
- Unnecessary escape character: \.. (totalt 156 st)
- Do not access Object.prototype method X from target object. (totalt 113 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: #65: common.js, antal grupperade fel: 23 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #65: common.js, antal fel: 3915 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 2439 st)
- Expected X and instead saw X. (totalt 1109 st)
- Unnecessary escape character: \.. (totalt 156 st)
- Do not access Object.prototype method X from target object. (totalt 115 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: #66: util.js, antal grupperade fel: 25 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #66: util.js, antal fel: 5200 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 3005 st)
- Expected X and instead saw X. (totalt 1803 st)
- Unnecessary escape character: \.. (totalt 156 st)
- Do not access Object.prototype method X from target object. (totalt 126 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)