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.61 av 5
- JS är dålig.
Webbstandard
- `< script>` in: #13: , antal grupperade fel: 1 ( 4.80 betyg )
- `< script>` in: #13: , antal fel: 1 ( 4.80 betyg )
- Parsing error: Unexpected token { (totalt 1 st)
- `content-type=".*javascript.*"` in: #16: webpack-53eafc1, antal grupperade fel: 1 ( 4.80 betyg )
- `content-type=".*javascript.*"` in: #16: webpack-53eafc1, antal fel: 1 ( 4.80 betyg )
- Unexpected console statement. (totalt 1 st)
- `content-type=".*javascript.*"` in: #17: framework.0c772, antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #17: framework.0c772, antal fel: 50 ( 1.00 betyg )
- X is defined but never used. (totalt 39 st)
- Unexpected console statement. (totalt 6 st)
- X is not defined. (totalt 5 st)
- `content-type=".*javascript.*"` in: #18: commons.8a23166, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #18: commons.8a23166, antal fel: 199 ( 1.00 betyg )
- X is defined but never used. (totalt 158 st)
- Unexpected console statement. (totalt 26 st)
- X is not defined. (totalt 14 st)
- X is assigned a value but never used. (totalt 1 st)
- `content-type=".*javascript.*"` in: #19: main-158da788a8, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #19: main-158da788a8, antal fel: 214 ( 1.00 betyg )
- X is defined but never used. (totalt 169 st)
- Unexpected console statement. (totalt 29 st)
- X is not defined. (totalt 15 st)
- X is assigned a value but never used. (totalt 1 st)
- `content-type=".*javascript.*"` in: #20: -app-fb5a3c2c1f, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #20: -app-fb5a3c2c1f, antal fel: 222 ( 1.00 betyg )
- X is defined but never used. (totalt 175 st)
- Unexpected console statement. (totalt 30 st)
- X is not defined. (totalt 16 st)
- X is assigned a value but never used. (totalt 1 st)
- `content-type=".*javascript.*"` in: #21: 9244a3efc8645c2, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #21: 9244a3efc8645c2, antal fel: 290 ( 1.00 betyg )
- X is defined but never used. (totalt 237 st)
- Unexpected console statement. (totalt 36 st)
- X is not defined. (totalt 16 st)
- X is assigned a value but never used. (totalt 1 st)
- `content-type=".*javascript.*"` in: #22: c8a430c7a05e32d, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #22: c8a430c7a05e32d, antal fel: 292 ( 1.00 betyg )
- X is defined but never used. (totalt 238 st)
- Unexpected console statement. (totalt 37 st)
- X is not defined. (totalt 16 st)
- X is assigned a value but never used. (totalt 1 st)
- `content-type=".*javascript.*"` in: #23: template-page-f, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #23: template-page-f, antal fel: 311 ( 1.00 betyg )
- X is defined but never used. (totalt 245 st)
- Unexpected console statement. (totalt 48 st)
- X is not defined. (totalt 17 st)
- X is assigned a value but never used. (totalt 1 st)
- `content-type=".*javascript.*"` in: #28: -buildManifest., antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #28: -buildManifest., antal fel: 311 ( 1.00 betyg )
- X is defined but never used. (totalt 245 st)
- Unexpected console statement. (totalt 48 st)
- X is not defined. (totalt 17 st)
- X is assigned a value but never used. (totalt 1 st)
- `content-type=".*javascript.*"` in: #29: -ssgManifest.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #29: -ssgManifest.js, antal fel: 311 ( 1.00 betyg )
- X is defined but never used. (totalt 245 st)
- Unexpected console statement. (totalt 48 st)
- X is not defined. (totalt 17 st)
- X is assigned a value but never used. (totalt 1 st)
- `content-type=".*javascript.*"` in: #30: siteanalyze-604, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #30: siteanalyze-604, antal fel: 311 ( 1.00 betyg )
- X is defined but never used. (totalt 245 st)
- Unexpected console statement. (totalt 48 st)
- X is not defined. (totalt 17 st)
- X is assigned a value but never used. (totalt 1 st)
- `content-type=".*javascript.*"` in: #39: gtm.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #39: gtm.js, antal fel: 863 ( 1.00 betyg )
- X is defined but never used. (totalt 686 st)
- X is assigned a value but never used. (totalt 87 st)
- Unexpected console statement. (totalt 49 st)
- X is not defined. (totalt 41 st)
- `content-type=".*javascript.*"` in: #40: uc.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #40: uc.js, antal fel: 910 ( 1.00 betyg )
- X is defined but never used. (totalt 706 st)
- X is assigned a value but never used. (totalt 102 st)
- Unexpected console statement. (totalt 60 st)
- X is not defined. (totalt 42 st)
- `content-type=".*javascript.*"` in: #42: cc.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #42: cc.js, antal fel: 938 ( 1.00 betyg )
- X is defined but never used. (totalt 718 st)
- X is assigned a value but never used. (totalt 108 st)
- Unexpected console statement. (totalt 61 st)
- X is not defined. (totalt 51 st)
- `content-type=".*javascript.*"` in: #43: single-post-ede, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #43: single-post-ede, antal fel: 939 ( 1.00 betyg )
- X is defined but never used. (totalt 718 st)
- X is assigned a value but never used. (totalt 108 st)
- Unexpected console statement. (totalt 61 st)
- X is not defined. (totalt 52 st)
- `content-type=".*javascript.*"` in: #44: template-page-a, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #44: template-page-a, antal fel: 941 ( 1.00 betyg )
- X is defined but never used. (totalt 719 st)
- X is assigned a value but never used. (totalt 108 st)
- Unexpected console statement. (totalt 61 st)
- X is not defined. (totalt 53 st)
Integritet & säkerhet
- `< script>` in: #13: , antal grupperade fel: 1 ( 4.80 betyg )
- `< script>` in: #13: , antal fel: 1 ( 4.80 betyg )
- Parsing error: Unexpected token { (totalt 1 st)
- `content-type=".*javascript.*"` in: #16: webpack-53eafc1, antal grupperade fel: 2 ( 4.60 betyg )
- `content-type=".*javascript.*"` in: #16: webpack-53eafc1, antal fel: 16 ( 1.80 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 15 st)
- Expected X and instead saw X. (totalt 1 st)
- `content-type=".*javascript.*"` in: #17: framework.0c772, antal grupperade fel: 7 ( 3.60 betyg )
- `content-type=".*javascript.*"` in: #17: framework.0c772, antal fel: 577 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 461 st)
- Expected X and instead saw X. (totalt 80 st)
- Do not access Object.prototype method X from target object. (totalt 27 st)
- X is not modified in this loop. (totalt 5 st)
- Comparing to itself is potentially pointless. (totalt 2 st)
- Unnecessary escape character: \-. (totalt 1 st)
- Unnecessary escape character: \/. (totalt 1 st)
- `content-type=".*javascript.*"` in: #18: commons.8a23166, antal grupperade fel: 10 ( 3.00 betyg )
- `content-type=".*javascript.*"` in: #18: commons.8a23166, antal fel: 981 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 750 st)
- Expected X and instead saw X. (totalt 183 st)
- Do not access Object.prototype method X from target object. (totalt 28 st)
- X is not modified in this loop. (totalt 6 st)
- Unsafe usage of ThrowStatement. (totalt 4 st)
- Unnecessary escape character: \/. (totalt 3 st)
- Comparing to itself is potentially pointless. (totalt 2 st)
- The Function constructor is eval. (totalt 2 st)
- Unnecessary X. (totalt 2 st)
- Unnecessary escape character: \-. (totalt 1 st)
- `content-type=".*javascript.*"` in: #19: main-158da788a8, antal grupperade fel: 10 ( 3.00 betyg )
- `content-type=".*javascript.*"` in: #19: main-158da788a8, antal fel: 1056 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 821 st)
- Expected X and instead saw X. (totalt 186 st)
- Do not access Object.prototype method X from target object. (totalt 29 st)
- X is not modified in this loop. (totalt 6 st)
- Unsafe usage of ThrowStatement. (totalt 4 st)
- Unnecessary escape character: \/. (totalt 3 st)
- Comparing to itself is potentially pointless. (totalt 2 st)
- The Function constructor is eval. (totalt 2 st)
- Unnecessary X. (totalt 2 st)
- Unnecessary escape character: \-. (totalt 1 st)
- `content-type=".*javascript.*"` in: #20: -app-fb5a3c2c1f, antal grupperade fel: 10 ( 3.00 betyg )
- `content-type=".*javascript.*"` in: #20: -app-fb5a3c2c1f, antal fel: 1066 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 831 st)
- Expected X and instead saw X. (totalt 186 st)
- Do not access Object.prototype method X from target object. (totalt 29 st)
- X is not modified in this loop. (totalt 6 st)
- Unsafe usage of ThrowStatement. (totalt 4 st)
- Unnecessary escape character: \/. (totalt 3 st)
- Comparing to itself is potentially pointless. (totalt 2 st)
- The Function constructor is eval. (totalt 2 st)
- Unnecessary X. (totalt 2 st)
- Unnecessary escape character: \-. (totalt 1 st)
- `content-type=".*javascript.*"` in: #21: 9244a3efc8645c2, antal grupperade fel: 11 ( 2.80 betyg )
- `content-type=".*javascript.*"` in: #21: 9244a3efc8645c2, antal fel: 1521 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1092 st)
- Expected X and instead saw X. (totalt 357 st)
- Do not access Object.prototype method X from target object. (totalt 38 st)
- Comparing to itself is potentially pointless. (totalt 10 st)
- X is not modified in this loop. (totalt 7 st)
- Unsafe usage of ThrowStatement. (totalt 7 st)
- Unnecessary escape character: \/. (totalt 3 st)
- The Function constructor is eval. (totalt 3 st)
- Unnecessary X. (totalt 2 st)
- Unnecessary escape character: \-. (totalt 1 st)
- eval can be harmful. (totalt 1 st)
- `content-type=".*javascript.*"` in: #22: c8a430c7a05e32d, antal grupperade fel: 11 ( 2.80 betyg )
- `content-type=".*javascript.*"` in: #22: c8a430c7a05e32d, antal fel: 1547 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1104 st)
- Expected X and instead saw X. (totalt 369 st)
- Do not access Object.prototype method X from target object. (totalt 39 st)
- Comparing to itself is potentially pointless. (totalt 10 st)
- Unsafe usage of ThrowStatement. (totalt 8 st)
- X is not modified in this loop. (totalt 7 st)
- Unnecessary escape character: \/. (totalt 3 st)
- The Function constructor is eval. (totalt 3 st)
- Unnecessary X. (totalt 2 st)
- Unnecessary escape character: \-. (totalt 1 st)
- eval can be harmful. (totalt 1 st)
- `content-type=".*javascript.*"` in: #23: template-page-f, antal grupperade fel: 11 ( 2.80 betyg )
- `content-type=".*javascript.*"` in: #23: template-page-f, antal fel: 1651 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1194 st)
- Expected X and instead saw X. (totalt 380 st)
- Do not access Object.prototype method X from target object. (totalt 40 st)
- Comparing to itself is potentially pointless. (totalt 10 st)
- Unsafe usage of ThrowStatement. (totalt 10 st)
- X is not modified in this loop. (totalt 7 st)
- Unnecessary escape character: \/. (totalt 3 st)
- The Function constructor is eval. (totalt 3 st)
- Unnecessary X. (totalt 2 st)
- Unnecessary escape character: \-. (totalt 1 st)
- eval can be harmful. (totalt 1 st)
- `content-type=".*javascript.*"` in: #28: -buildManifest., antal grupperade fel: 11 ( 2.80 betyg )
- `content-type=".*javascript.*"` in: #28: -buildManifest., antal fel: 1652 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1195 st)
- Expected X and instead saw X. (totalt 380 st)
- Do not access Object.prototype method X from target object. (totalt 40 st)
- Comparing to itself is potentially pointless. (totalt 10 st)
- Unsafe usage of ThrowStatement. (totalt 10 st)
- X is not modified in this loop. (totalt 7 st)
- Unnecessary escape character: \/. (totalt 3 st)
- The Function constructor is eval. (totalt 3 st)
- Unnecessary X. (totalt 2 st)
- Unnecessary escape character: \-. (totalt 1 st)
- eval can be harmful. (totalt 1 st)
- `content-type=".*javascript.*"` in: #29: -ssgManifest.js, antal grupperade fel: 11 ( 2.80 betyg )
- `content-type=".*javascript.*"` in: #29: -ssgManifest.js, antal fel: 1653 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1196 st)
- Expected X and instead saw X. (totalt 380 st)
- Do not access Object.prototype method X from target object. (totalt 40 st)
- Comparing to itself is potentially pointless. (totalt 10 st)
- Unsafe usage of ThrowStatement. (totalt 10 st)
- X is not modified in this loop. (totalt 7 st)
- Unnecessary escape character: \/. (totalt 3 st)
- The Function constructor is eval. (totalt 3 st)
- Unnecessary X. (totalt 2 st)
- Unnecessary escape character: \-. (totalt 1 st)
- eval can be harmful. (totalt 1 st)
- `content-type=".*javascript.*"` in: #30: siteanalyze-604, antal grupperade fel: 11 ( 2.80 betyg )
- `content-type=".*javascript.*"` in: #30: siteanalyze-604, antal fel: 1653 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1196 st)
- Expected X and instead saw X. (totalt 380 st)
- Do not access Object.prototype method X from target object. (totalt 40 st)
- Comparing to itself is potentially pointless. (totalt 10 st)
- Unsafe usage of ThrowStatement. (totalt 10 st)
- X is not modified in this loop. (totalt 7 st)
- Unnecessary escape character: \/. (totalt 3 st)
- The Function constructor is eval. (totalt 3 st)
- Unnecessary X. (totalt 2 st)
- Unnecessary escape character: \-. (totalt 1 st)
- eval can be harmful. (totalt 1 st)
- `content-type=".*javascript.*"` in: #39: gtm.js, antal grupperade fel: 13 ( 2.40 betyg )
- `content-type=".*javascript.*"` in: #39: gtm.js, antal fel: 2932 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 2101 st)
- Expected X and instead saw X. (totalt 626 st)
- Do not access Object.prototype method X from target object. (totalt 145 st)
- X is not modified in this loop. (totalt 14 st)
- Unnecessary escape character: \/. (totalt 12 st)
- Comparing to itself is potentially pointless. (totalt 11 st)
- Unsafe usage of ThrowStatement. (totalt 10 st)
- The Function constructor is eval. (totalt 3 st)
- Unnecessary X. (totalt 3 st)
- X is assigned to itself. (totalt 3 st)
- eval can be harmful. (totalt 2 st)
- Unnecessary escape character: \-. (totalt 1 st)
- Script URL is a form of eval. (totalt 1 st)
- `content-type=".*javascript.*"` in: #40: uc.js, antal grupperade fel: 14 ( 2.20 betyg )
- `content-type=".*javascript.*"` in: #40: uc.js, antal fel: 3284 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 2342 st)
- Expected X and instead saw X. (totalt 728 st)
- Do not access Object.prototype method X from target object. (totalt 145 st)
- X is not modified in this loop. (totalt 14 st)
- Unnecessary escape character: \/. (totalt 14 st)
- Comparing to itself is potentially pointless. (totalt 11 st)
- Unsafe usage of ThrowStatement. (totalt 10 st)
- Unnecessary escape character: \-. (totalt 5 st)
- Unnecessary X. (totalt 4 st)
- The Function constructor is eval. (totalt 3 st)
- X is assigned to itself. (totalt 3 st)
- eval can be harmful. (totalt 2 st)
- Unnecessary escape character: \[. (totalt 2 st)
- Script URL is a form of eval. (totalt 1 st)
- `content-type=".*javascript.*"` in: #42: cc.js, antal grupperade fel: 16 ( 1.80 betyg )
- `content-type=".*javascript.*"` in: #42: cc.js, antal fel: 3632 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 2649 st)
- Expected X and instead saw X. (totalt 764 st)
- Do not access Object.prototype method X from target object. (totalt 145 st)
- X is not modified in this loop. (totalt 14 st)
- Unnecessary escape character: \/. (totalt 14 st)
- Comparing to itself is potentially pointless. (totalt 11 st)
- Unsafe usage of ThrowStatement. (totalt 10 st)
- Unnecessary escape character: \-. (totalt 5 st)
- Unnecessary X. (totalt 4 st)
- The Function constructor is eval. (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)
- eval can be harmful. (totalt 2 st)
- Unnecessary escape character: \< . (totalt 1 st)
- Unnecessary escape character: \>. (totalt 1 st)
- `content-type=".*javascript.*"` in: #43: single-post-ede, antal grupperade fel: 16 ( 1.80 betyg )
- `content-type=".*javascript.*"` in: #43: single-post-ede, antal fel: 3634 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 2651 st)
- Expected X and instead saw X. (totalt 764 st)
- Do not access Object.prototype method X from target object. (totalt 145 st)
- X is not modified in this loop. (totalt 14 st)
- Unnecessary escape character: \/. (totalt 14 st)
- Comparing to itself is potentially pointless. (totalt 11 st)
- Unsafe usage of ThrowStatement. (totalt 10 st)
- Unnecessary escape character: \-. (totalt 5 st)
- Unnecessary X. (totalt 4 st)
- The Function constructor is eval. (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)
- eval can be harmful. (totalt 2 st)
- Unnecessary escape character: \< . (totalt 1 st)
- Unnecessary escape character: \>. (totalt 1 st)
- `content-type=".*javascript.*"` in: #44: template-page-a, antal grupperade fel: 16 ( 1.80 betyg )
- `content-type=".*javascript.*"` in: #44: template-page-a, antal fel: 3649 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 2659 st)
- Expected X and instead saw X. (totalt 769 st)
- Do not access Object.prototype method X from target object. (totalt 147 st)
- X is not modified in this loop. (totalt 14 st)
- Unnecessary escape character: \/. (totalt 14 st)
- Comparing to itself is potentially pointless. (totalt 11 st)
- Unsafe usage of ThrowStatement. (totalt 10 st)
- Unnecessary escape character: \-. (totalt 5 st)
- Unnecessary X. (totalt 4 st)
- The Function constructor is eval. (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)
- eval can be harmful. (totalt 2 st)
- Unnecessary escape character: \< . (totalt 1 st)
- Unnecessary escape character: \>. (totalt 1 st)