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.74 av 5
- JS är dålig.
Webbstandard
- `< script>` in: #1: fi, antal grupperade fel: 1 ( 4.80 betyg )
- `< script>` in: #1: fi, antal fel: 1 ( 4.80 betyg )
- Parsing error: Unexpected token : (totalt 1 st)
- `< script src="...">` in: #1: fi, antal grupperade fel: 3 ( 4.40 betyg )
- `< script src="...">` in: #1: fi, antal fel: 155 ( 1.00 betyg )
- X is not defined. (totalt 102 st)
- X is defined but never used. (totalt 46 st)
- Unexpected console statement. (totalt 7 st)
- `< script>` in: #32: bc-v4.min.html, antal grupperade fel: 1 ( 4.80 betyg )
- `< script>` in: #32: bc-v4.min.html, antal fel: 1 ( 4.80 betyg )
- X is defined but never used. (totalt 1 st)
- `content-type=".*javascript.*"` in: #7: matomo.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #7: matomo.js, antal fel: 157 ( 1.00 betyg )
- X is not defined. (totalt 102 st)
- X is defined but never used. (totalt 33 st)
- Unexpected console statement. (totalt 12 st)
- X is assigned a value but never used. (totalt 10 st)
- `content-type=".*javascript.*"` in: #8: container-wd7CE, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #8: container-wd7CE, antal fel: 176 ( 1.00 betyg )
- X is not defined. (totalt 103 st)
- X is defined but never used. (totalt 45 st)
- Unexpected console statement. (totalt 16 st)
- X is assigned a value but never used. (totalt 12 st)
- `content-type=".*javascript.*"` in: #16: gtm.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #16: gtm.js, antal fel: 766 ( 1.00 betyg )
- X is defined but never used. (totalt 528 st)
- X is not defined. (totalt 125 st)
- X is assigned a value but never used. (totalt 96 st)
- Unexpected console statement. (totalt 17 st)
- `content-type=".*javascript.*"` in: #28: uc.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #28: uc.js, antal fel: 813 ( 1.00 betyg )
- X is defined but never used. (totalt 548 st)
- X is not defined. (totalt 126 st)
- X is assigned a value but never used. (totalt 111 st)
- Unexpected console statement. (totalt 28 st)
- `content-type=".*javascript.*"` in: #29: matomo.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #29: matomo.js, antal fel: 970 ( 1.00 betyg )
- X is defined but never used. (totalt 581 st)
- X is not defined. (totalt 228 st)
- X is assigned a value but never used. (totalt 121 st)
- Unexpected console statement. (totalt 40 st)
- `content-type=".*javascript.*"` in: #30: intercept-surve, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #30: intercept-surve, antal fel: 979 ( 1.00 betyg )
- X is defined but never used. (totalt 587 st)
- X is not defined. (totalt 229 st)
- X is assigned a value but never used. (totalt 121 st)
- Unexpected console statement. (totalt 42 st)
- `content-type=".*javascript.*"` in: #33: cc.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #33: cc.js, antal fel: 1007 ( 1.00 betyg )
- X is defined but never used. (totalt 599 st)
- X is not defined. (totalt 238 st)
- X is assigned a value but never used. (totalt 127 st)
- Unexpected console statement. (totalt 43 st)
- `content-type=".*javascript.*"` in: #34: scenario, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #34: scenario, antal fel: 1047 ( 1.00 betyg )
- X is defined but never used. (totalt 603 st)
- X is not defined. (totalt 244 st)
- X is assigned a value but never used. (totalt 127 st)
- Unexpected console statement. (totalt 73 st)
Integritet & säkerhet
- `< script>` in: #1: fi, antal grupperade fel: 1 ( 4.80 betyg )
- `< script>` in: #1: fi, antal fel: 1 ( 4.80 betyg )
- Parsing error: Unexpected token : (totalt 1 st)
- `< script src="...">` in: #1: fi, antal grupperade fel: 22 ( 1.00 betyg )
- `< script src="...">` in: #1: fi, antal fel: 726 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 420 st)
- Expected X and instead saw X. (totalt 247 st)
- Unnecessary escape character: \/. (totalt 13 st)
- Do not access Object.prototype method X from target object. (totalt 8 st)
- Unexpected string concatenation of literals. (totalt 7 st)
- Unnecessary escape character: \-. (totalt 6 st)
- Unnecessary escape character: \'. (totalt 4 st)
- Unnecessary escape character: \[. (totalt 3 st)
- Unnecessary escape character: \^. (totalt 3 st)
- Unnecessary X. (totalt 2 st)
- Unnecessary escape character: \?. (totalt 2 st)
- Comparing to itself is potentially pointless. (totalt 1 st)
- X is assigned to itself. (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 escape character: \+. (totalt 1 st)
- Unnecessary escape character: \.. (totalt 1 st)
- Unnecessary escape character: \$. (totalt 1 st)
- Unnecessary escape character: \|. (totalt 1 st)
- `< script>` in: #32: bc-v4.min.html, antal grupperade fel: 2 ( 4.60 betyg )
- `< script>` in: #32: 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: #7: matomo.js, antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #7: matomo.js, antal fel: 14 ( 2.20 betyg )
- Expected X and instead saw X. (totalt 10 st)
- Do not access Object.prototype method X from target object. (totalt 3 st)
- Unnecessary X. (totalt 1 st)
- `content-type=".*javascript.*"` in: #8: container-wd7CE, antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #8: container-wd7CE, antal fel: 16 ( 1.80 betyg )
- Expected X and instead saw X. (totalt 12 st)
- Do not access Object.prototype method X from target object. (totalt 3 st)
- Unnecessary X. (totalt 1 st)
- `content-type=".*javascript.*"` in: #16: gtm.js, antal grupperade fel: 11 ( 2.80 betyg )
- `content-type=".*javascript.*"` in: #16: gtm.js, antal fel: 1151 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 797 st)
- Expected X and instead saw X. (totalt 213 st)
- Do not access Object.prototype method X from target object. (totalt 80 st)
- Unnecessary escape character: \/. (totalt 47 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 1 st)
- eval can be harmful. (totalt 1 st)
- Comparing to itself is potentially pointless. (totalt 1 st)
- Script URL is a form of eval. (totalt 1 st)
- `content-type=".*javascript.*"` in: #28: uc.js, antal grupperade fel: 12 ( 2.60 betyg )
- `content-type=".*javascript.*"` in: #28: uc.js, antal fel: 1503 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1038 st)
- Expected X and instead saw X. (totalt 315 st)
- Do not access Object.prototype method X from target object. (totalt 80 st)
- Unnecessary escape character: \/. (totalt 49 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)
- 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)
- Script URL is a form of eval. (totalt 1 st)
- `content-type=".*javascript.*"` in: #29: matomo.js, antal grupperade fel: 12 ( 2.60 betyg )
- `content-type=".*javascript.*"` in: #29: matomo.js, antal fel: 1517 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1038 st)
- Expected X and instead saw X. (totalt 325 st)
- Do not access Object.prototype method X from target object. (totalt 83 st)
- Unnecessary escape character: \/. (totalt 49 st)
- Unnecessary escape character: \-. (totalt 8 st)
- Unnecessary X. (totalt 3 st)
- X is not modified in this loop. (totalt 3 st)
- X is assigned to itself. (totalt 3 st)
- Unnecessary escape character: \[. (totalt 2 st)
- eval can be harmful. (totalt 1 st)
- Comparing to itself is potentially pointless. (totalt 1 st)
- Script URL is a form of eval. (totalt 1 st)
- `content-type=".*javascript.*"` in: #30: intercept-surve, antal grupperade fel: 12 ( 2.60 betyg )
- `content-type=".*javascript.*"` in: #30: intercept-surve, antal fel: 1680 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1158 st)
- Expected X and instead saw X. (totalt 364 st)
- Do not access Object.prototype method X from target object. (totalt 83 st)
- Unnecessary escape character: \/. (totalt 49 st)
- Unnecessary escape character: \-. (totalt 8 st)
- Unnecessary X. (totalt 6 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)
- eval can be harmful. (totalt 1 st)
- Comparing to itself is potentially pointless. (totalt 1 st)
- Script URL is a form of eval. (totalt 1 st)
- `content-type=".*javascript.*"` in: #33: cc.js, antal grupperade fel: 14 ( 2.20 betyg )
- `content-type=".*javascript.*"` in: #33: cc.js, antal fel: 2028 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1465 st)
- Expected X and instead saw X. (totalt 400 st)
- Do not access Object.prototype method X from target object. (totalt 83 st)
- Unnecessary escape character: \/. (totalt 49 st)
- Unnecessary escape character: \-. (totalt 8 st)
- Unnecessary X. (totalt 6 st)
- X is not modified in this loop. (totalt 4 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)
- 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)
- `content-type=".*javascript.*"` in: #34: scenario, antal grupperade fel: 15 ( 2.00 betyg )
- `content-type=".*javascript.*"` in: #34: scenario, antal fel: 2063 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1465 st)
- Expected X and instead saw X. (totalt 429 st)
- Do not access Object.prototype method X from target object. (totalt 86 st)
- Unnecessary escape character: \/. (totalt 49 st)
- Unnecessary escape character: \-. (totalt 8 st)
- Unnecessary X. (totalt 6 st)
- Unnecessary escape character: \[. (totalt 5 st)
- X is not modified in this loop. (totalt 4 st)
- X is assigned to itself. (totalt 3 st)
- Script URL is a form of eval. (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)
- Unnecessary escape character: \]. (totalt 1 st)