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.91 av 5
- JS är dålig.
Webbstandard
- `< script>` in: #1: sv-se, antal grupperade fel: 1 ( 4.80 betyg )
- `< script>` in: #1: sv-se, antal fel: 1 ( 4.80 betyg )
- X is not defined. (totalt 1 st)
- `< script src="...">` in: #1: sv-se, antal grupperade fel: 4 ( 4.20 betyg )
- `< script src="...">` in: #1: sv-se, antal fel: 398 ( 1.00 betyg )
- X is defined but never used. (totalt 269 st)
- X is not defined. (totalt 76 st)
- Unexpected console statement. (totalt 51 st)
- X is assigned a value but never used. (totalt 2 st)
- `< script>` in: #24: XDFrame, antal grupperade fel: 2 ( 4.60 betyg )
- `< script>` in: #24: XDFrame, antal fel: 2 ( 4.60 betyg )
- X is not defined. (totalt 1 st)
- X is defined but never used. (totalt 1 st)
- `< script src="...">` in: #24: XDFrame, antal grupperade fel: 4 ( 4.20 betyg )
- `< script src="...">` in: #24: XDFrame, antal fel: 135 ( 1.00 betyg )
- X is defined but never used. (totalt 86 st)
- X is not defined. (totalt 36 st)
- Unexpected console statement. (totalt 10 st)
- X is assigned a value but never used. (totalt 3 st)
- `< script>` in: #27: bc-v4.min.html, antal grupperade fel: 1 ( 4.80 betyg )
- `< script>` in: #27: bc-v4.min.html, antal fel: 1 ( 4.80 betyg )
- X is defined but never used. (totalt 1 st)
- `content-type=".*javascript.*"` in: #18: gtm.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #18: gtm.js, antal fel: 431 ( 1.00 betyg )
- X is defined but never used. (totalt 334 st)
- X is assigned a value but never used. (totalt 87 st)
- X is not defined. (totalt 9 st)
- Unexpected console statement. (totalt 1 st)
- `content-type=".*javascript.*"` in: #19: getForm, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #19: getForm, antal fel: 432 ( 1.00 betyg )
- X is defined but never used. (totalt 334 st)
- X is assigned a value but never used. (totalt 87 st)
- X is not defined. (totalt 10 st)
- Unexpected console statement. (totalt 1 st)
- `content-type=".*javascript.*"` in: #26: uc.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #26: uc.js, antal fel: 479 ( 1.00 betyg )
- X is defined but never used. (totalt 354 st)
- X is assigned a value but never used. (totalt 102 st)
- Unexpected console statement. (totalt 12 st)
- X is not defined. (totalt 11 st)
- `content-type=".*javascript.*"` in: #28: cc.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #28: cc.js, antal fel: 507 ( 1.00 betyg )
- X is defined but never used. (totalt 366 st)
- X is assigned a value but never used. (totalt 108 st)
- X is not defined. (totalt 20 st)
- Unexpected console statement. (totalt 13 st)
Integritet & säkerhet
- `< script>` in: #1: sv-se, antal grupperade fel: 1 ( 4.80 betyg )
- `< script>` in: #1: sv-se, antal fel: 1 ( 4.80 betyg )
- Expected X and instead saw X. (totalt 1 st)
- `< script src="...">` in: #1: sv-se, antal grupperade fel: 22 ( 1.00 betyg )
- `< script src="...">` in: #1: sv-se, antal fel: 3664 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 2521 st)
- Expected X and instead saw X. (totalt 1027 st)
- Unnecessary escape character: \/. (totalt 18 st)
- Do not access Object.prototype method X from target object. (totalt 17 st)
- Unnecessary escape character: \.. (totalt 8 st)
- X is not modified in this loop. (totalt 8 st)
- The Function constructor is eval. (totalt 7 st)
- Unnecessary escape character: \[. (totalt 7 st)
- Unnecessary escape character: \*. (totalt 6 st)
- Unnecessary X. (totalt 6 st)
- Comparing to itself is potentially pointless. (totalt 6 st)
- Unnecessary escape character: \(. (totalt 5 st)
- Unsafe usage of ThrowStatement. (totalt 5 st)
- Unnecessary escape character: \+. (totalt 4 st)
- Unnecessary escape character: \). (totalt 4 st)
- Script URL is a form of eval. (totalt 4 st)
- Unnecessary escape character: \?. (totalt 4 st)
- Unnecessary escape character: \:. (totalt 2 st)
- Unnecessary escape character: \'. (totalt 2 st)
- Async arrow function has no X expression. (totalt 1 st)
- Async function X has no X expression. (totalt 1 st)
- Unsafe usage of ReturnStatement. (totalt 1 st)
- `< script>` in: #24: XDFrame, antal grupperade fel: 1 ( 4.80 betyg )
- `< script>` in: #24: XDFrame, antal fel: 1 ( 4.80 betyg )
- Expected X and instead saw X. (totalt 1 st)
- `< script src="...">` in: #24: XDFrame, antal grupperade fel: 18 ( 1.40 betyg )
- `< script src="...">` in: #24: XDFrame, antal fel: 879 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 537 st)
- Expected X and instead saw X. (totalt 310 st)
- Do not access Object.prototype method X from target object. (totalt 8 st)
- Unnecessary escape character: \/. (totalt 6 st)
- Unnecessary escape character: \*. (totalt 2 st)
- Unnecessary escape character: \[. (totalt 2 st)
- Script URL is a form of eval. (totalt 2 st)
- X is not modified in this loop. (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)
- Unnecessary escape character: \). (totalt 1 st)
- Unnecessary escape character: \+. (totalt 1 st)
- Unnecessary X. (totalt 1 st)
- Comparing to itself is potentially pointless. (totalt 1 st)
- X is assigned to itself. (totalt 1 st)
- The Function constructor is eval. (totalt 1 st)
- `< script>` in: #27: bc-v4.min.html, antal grupperade fel: 2 ( 4.60 betyg )
- `< script>` in: #27: bc-v4.min.html, antal fel: 2 ( 4.60 betyg )
- Expected X and instead saw X. (totalt 1 st)
- Expected an assignment or function call and instead saw an expression. (totalt 1 st)
- `content-type=".*javascript.*"` in: #18: gtm.js, antal grupperade fel: 13 ( 2.40 betyg )
- `content-type=".*javascript.*"` in: #18: gtm.js, antal fel: 1783 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1133 st)
- Unnecessary escape character: \/. (totalt 298 st)
- Expected X and instead saw X. (totalt 232 st)
- Do not access Object.prototype method X from target object. (totalt 107 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 escape character: \?. (totalt 1 st)
- Unnecessary escape character: \.. (totalt 1 st)
- Unexpected string concatenation of literals. (totalt 1 st)
- Unnecessary X. (totalt 1 st)
- Script URL is a form of eval. (totalt 1 st)
- `content-type=".*javascript.*"` in: #19: getForm, antal grupperade fel: 13 ( 2.40 betyg )
- `content-type=".*javascript.*"` in: #19: getForm, antal fel: 1833 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1133 st)
- Unnecessary escape character: \/. (totalt 348 st)
- Expected X and instead saw X. (totalt 232 st)
- Do not access Object.prototype method X from target object. (totalt 107 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 escape character: \?. (totalt 1 st)
- Unnecessary escape character: \.. (totalt 1 st)
- Unexpected string concatenation of literals. (totalt 1 st)
- Unnecessary X. (totalt 1 st)
- Script URL is a form of eval. (totalt 1 st)
- `content-type=".*javascript.*"` in: #26: uc.js, antal grupperade fel: 15 ( 2.00 betyg )
- `content-type=".*javascript.*"` in: #26: uc.js, antal fel: 2185 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1374 st)
- Unnecessary escape character: \/. (totalt 350 st)
- Expected X and instead saw X. (totalt 334 st)
- Do not access Object.prototype method X from target object. (totalt 107 st)
- Unnecessary escape character: \-. (totalt 4 st)
- X is not modified in this loop. (totalt 3 st)
- X is assigned to itself. (totalt 3 st)
- Unnecessary X. (totalt 2 st)
- Unnecessary escape character: \[. (totalt 2 st)
- eval can be harmful. (totalt 1 st)
- Comparing to itself is potentially pointless. (totalt 1 st)
- Unnecessary escape character: \?. (totalt 1 st)
- Unnecessary escape character: \.. (totalt 1 st)
- Unexpected string concatenation of literals. (totalt 1 st)
- Script URL is a form of eval. (totalt 1 st)
- `content-type=".*javascript.*"` in: #28: cc.js, antal grupperade fel: 17 ( 1.60 betyg )
- `content-type=".*javascript.*"` in: #28: cc.js, antal fel: 2532 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1680 st)
- Expected X and instead saw X. (totalt 370 st)
- Unnecessary escape character: \/. (totalt 350 st)
- Do not access Object.prototype method X from target object. (totalt 107 st)
- Unnecessary escape character: \-. (totalt 4 st)
- X is not modified in this loop. (totalt 3 st)
- X is assigned to itself. (totalt 3 st)
- Script URL is a form of eval. (totalt 3 st)
- Unnecessary escape character: \[. (totalt 3 st)
- Unnecessary X. (totalt 2 st)
- eval can be harmful. (totalt 1 st)
- Comparing to itself is potentially pointless. (totalt 1 st)
- Unnecessary escape character: \?. (totalt 1 st)
- Unnecessary escape character: \.. (totalt 1 st)
- Unexpected string concatenation of literals. (totalt 1 st)
- Unnecessary escape character: \< . (totalt 1 st)
- Unnecessary escape character: \>. (totalt 1 st)