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.92 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: 1609 ( 1.00 betyg )
- X is defined but never used. (totalt 721 st)
- X is assigned a value but never used. (totalt 418 st)
- X is not defined. (totalt 292 st)
- Unexpected console statement. (totalt 178 st)
- `< script>` in: #43: anchor, antal grupperade fel: 1 ( 4.80 betyg )
- `< script>` in: #43: anchor, antal fel: 1 ( 4.80 betyg )
- X is not defined. (totalt 1 st)
- `< script src="...">` in: #43: anchor, antal grupperade fel: 4 ( 4.20 betyg )
- `< script src="...">` in: #43: anchor, antal fel: 100 ( 1.00 betyg )
- X is defined but never used. (totalt 78 st)
- X is not defined. (totalt 17 st)
- Unexpected console statement. (totalt 3 st)
- X is assigned a value but never used. (totalt 2 st)
- `content-type=".*javascript.*"` in: #20: floating-cart.1, antal grupperade fel: 1 ( 4.80 betyg )
- `content-type=".*javascript.*"` in: #20: floating-cart.1, antal fel: 1 ( 4.80 betyg )
- X is defined but never used. (totalt 1 st)
- `content-type=".*javascript.*"` in: #21: 57030-60283a078, antal grupperade fel: 1 ( 4.80 betyg )
- `content-type=".*javascript.*"` in: #21: 57030-60283a078, antal fel: 2 ( 4.60 betyg )
- X is defined but never used. (totalt 2 st)
- `content-type=".*javascript.*"` in: #22: 66368-fa2094d39, antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #22: 66368-fa2094d39, antal fel: 9 ( 3.20 betyg )
- X is assigned a value but never used. (totalt 4 st)
- X is not defined. (totalt 3 st)
- X is defined but never used. (totalt 2 st)
- `content-type=".*javascript.*"` in: #23: 16817-6ba8a0d5e, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #23: 16817-6ba8a0d5e, antal fel: 67 ( 1.00 betyg )
- X is assigned a value but never used. (totalt 46 st)
- X is defined but never used. (totalt 14 st)
- Unexpected console statement. (totalt 4 st)
- X is not defined. (totalt 3 st)
- `content-type=".*javascript.*"` in: #24: 90615-a36b35480, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #24: 90615-a36b35480, antal fel: 70 ( 1.00 betyg )
- X is assigned a value but never used. (totalt 49 st)
- X is defined but never used. (totalt 14 st)
- Unexpected console statement. (totalt 4 st)
- X is not defined. (totalt 3 st)
- `content-type=".*javascript.*"` in: #25: 93037-3095ff034, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #25: 93037-3095ff034, antal fel: 80 ( 1.00 betyg )
- X is assigned a value but never used. (totalt 59 st)
- X is defined but never used. (totalt 14 st)
- Unexpected console statement. (totalt 4 st)
- X is not defined. (totalt 3 st)
- `content-type=".*javascript.*"` in: #26: 99209-b966fa7cb, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #26: 99209-b966fa7cb, antal fel: 86 ( 1.00 betyg )
- X is assigned a value but never used. (totalt 60 st)
- X is defined but never used. (totalt 16 st)
- X is not defined. (totalt 6 st)
- Unexpected console statement. (totalt 4 st)
- `content-type=".*javascript.*"` in: #27: 642-ff97bef534c, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #27: 642-ff97bef534c, antal fel: 93 ( 1.00 betyg )
- X is assigned a value but never used. (totalt 66 st)
- X is defined but never used. (totalt 16 st)
- X is not defined. (totalt 7 st)
- Unexpected console statement. (totalt 4 st)
- `content-type=".*javascript.*"` in: #28: 31828-0cc7896e8, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #28: 31828-0cc7896e8, antal fel: 174 ( 1.00 betyg )
- X is assigned a value but never used. (totalt 126 st)
- X is defined but never used. (totalt 25 st)
- Unexpected console statement. (totalt 16 st)
- X is not defined. (totalt 7 st)
- `content-type=".*javascript.*"` in: #29: 42142-3ec03b1e9, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #29: 42142-3ec03b1e9, antal fel: 187 ( 1.00 betyg )
- X is assigned a value but never used. (totalt 129 st)
- X is defined but never used. (totalt 34 st)
- Unexpected console statement. (totalt 17 st)
- X is not defined. (totalt 7 st)
- `content-type=".*javascript.*"` in: #31: async-visitor-f, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #31: async-visitor-f, antal fel: 192 ( 1.00 betyg )
- X is assigned a value but never used. (totalt 129 st)
- X is defined but never used. (totalt 37 st)
- Unexpected console statement. (totalt 19 st)
- X is not defined. (totalt 7 st)
- `content-type=".*javascript.*"` in: #32: enterprise.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #32: enterprise.js, antal fel: 192 ( 1.00 betyg )
- X is assigned a value but never used. (totalt 129 st)
- X is defined but never used. (totalt 37 st)
- Unexpected console statement. (totalt 19 st)
- X is not defined. (totalt 7 st)
- `content-type=".*javascript.*"` in: #33: 97108-f2283cb70, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #33: 97108-f2283cb70, antal fel: 202 ( 1.00 betyg )
- X is assigned a value but never used. (totalt 139 st)
- X is defined but never used. (totalt 37 st)
- Unexpected console statement. (totalt 19 st)
- X is not defined. (totalt 7 st)
- `content-type=".*javascript.*"` in: #35: async-gdpr-cook, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #35: async-gdpr-cook, antal fel: 203 ( 1.00 betyg )
- X is assigned a value but never used. (totalt 140 st)
- X is defined but never used. (totalt 37 st)
- Unexpected console statement. (totalt 19 st)
- X is not defined. (totalt 7 st)
- `content-type=".*javascript.*"` in: #46: recaptcha--sv.j, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #46: recaptcha--sv.j, antal fel: 303 ( 1.00 betyg )
- X is assigned a value but never used. (totalt 142 st)
- X is defined but never used. (totalt 115 st)
- X is not defined. (totalt 24 st)
- Unexpected console statement. (totalt 22 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: 29 ( 1.00 betyg )
- `< script src="...">` in: #1: Webbsida , antal fel: 9311 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 6095 st)
- Expected X and instead saw X. (totalt 2868 st)
- Do not access Object.prototype method X from target object. (totalt 129 st)
- Comparing to itself is potentially pointless. (totalt 50 st)
- Unnecessary X. (totalt 25 st)
- Unsafe usage of ThrowStatement. (totalt 22 st)
- X is not modified in this loop. (totalt 20 st)
- The Function constructor is eval. (totalt 19 st)
- Unnecessary escape character: \/. (totalt 13 st)
- Unnecessary escape character: \[. (totalt 9 st)
- Unnecessary escape character: \%. (totalt 8 st)
- X is assigned to itself. (totalt 7 st)
- Unnecessary escape character: \). (totalt 7 st)
- Unnecessary escape character: \-. (totalt 5 st)
- Unnecessary escape character: \(. (totalt 5 st)
- Script URL is a form of eval. (totalt 4 st)
- Unnecessary escape character: \+. (totalt 4 st)
- Unnecessary escape character: \ . (totalt 3 st)
- Unnecessary escape character: \.. (totalt 3 st)
- Unsafe usage of ReturnStatement. (totalt 3 st)
- Unnecessary escape character: \^. (totalt 2 st)
- eval can be harmful. (totalt 2 st)
- Unnecessary escape character: \:. (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)
- `< script src="...">` in: #43: anchor, antal grupperade fel: 18 ( 1.40 betyg )
- `< script src="...">` in: #43: anchor, antal fel: 2265 ( 1.00 betyg )
- Expected X and instead saw X. (totalt 1641 st)
- Expected an assignment or function call and instead saw an expression. (totalt 574 st)
- Unnecessary escape character: \/. (totalt 9 st)
- X is assigned to itself. (totalt 6 st)
- Unnecessary escape character: \). (totalt 5 st)
- Do not access Object.prototype method X from target object. (totalt 4 st)
- Unnecessary escape character: \?. (totalt 4 st)
- Comparing to itself is potentially pointless. (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)
- eval can be harmful. (totalt 2 st)
- Unnecessary escape character: \+. (totalt 1 st)
- X is not modified in this loop. (totalt 1 st)
- Unnecessary escape character: \[. (totalt 1 st)
- Unnecessary X. (totalt 1 st)
- Unnecessary escape character: \{. (totalt 1 st)
- `content-type=".*javascript.*"` in: #20: floating-cart.1, antal grupperade fel: 1 ( 4.80 betyg )
- `content-type=".*javascript.*"` in: #20: floating-cart.1, antal fel: 2 ( 4.60 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 2 st)
- `content-type=".*javascript.*"` in: #21: 57030-60283a078, antal grupperade fel: 2 ( 4.60 betyg )
- `content-type=".*javascript.*"` in: #21: 57030-60283a078, antal fel: 39 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 28 st)
- Expected X and instead saw X. (totalt 11 st)
- `content-type=".*javascript.*"` in: #22: 66368-fa2094d39, antal grupperade fel: 2 ( 4.60 betyg )
- `content-type=".*javascript.*"` in: #22: 66368-fa2094d39, antal fel: 56 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 37 st)
- Expected X and instead saw X. (totalt 19 st)
- `content-type=".*javascript.*"` in: #23: 16817-6ba8a0d5e, antal grupperade fel: 2 ( 4.60 betyg )
- `content-type=".*javascript.*"` in: #23: 16817-6ba8a0d5e, antal fel: 230 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 135 st)
- Expected X and instead saw X. (totalt 95 st)
- `content-type=".*javascript.*"` in: #24: 90615-a36b35480, antal grupperade fel: 2 ( 4.60 betyg )
- `content-type=".*javascript.*"` in: #24: 90615-a36b35480, antal fel: 257 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 149 st)
- Expected X and instead saw X. (totalt 108 st)
- `content-type=".*javascript.*"` in: #25: 93037-3095ff034, antal grupperade fel: 2 ( 4.60 betyg )
- `content-type=".*javascript.*"` in: #25: 93037-3095ff034, antal fel: 488 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 304 st)
- Expected X and instead saw X. (totalt 184 st)
- `content-type=".*javascript.*"` in: #26: 99209-b966fa7cb, antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #26: 99209-b966fa7cb, antal fel: 578 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 318 st)
- Expected X and instead saw X. (totalt 259 st)
- Unnecessary escape character: \/. (totalt 1 st)
- `content-type=".*javascript.*"` in: #27: 642-ff97bef534c, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #27: 642-ff97bef534c, antal fel: 682 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 406 st)
- Expected X and instead saw X. (totalt 274 st)
- Unnecessary escape character: \/. (totalt 1 st)
- X is assigned to itself. (totalt 1 st)
- `content-type=".*javascript.*"` in: #28: 31828-0cc7896e8, antal grupperade fel: 5 ( 4.00 betyg )
- `content-type=".*javascript.*"` in: #28: 31828-0cc7896e8, antal fel: 992 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 631 st)
- Expected X and instead saw X. (totalt 357 st)
- Unsafe usage of ThrowStatement. (totalt 2 st)
- Unnecessary escape character: \/. (totalt 1 st)
- X is assigned to itself. (totalt 1 st)
- `content-type=".*javascript.*"` in: #29: 42142-3ec03b1e9, antal grupperade fel: 5 ( 4.00 betyg )
- `content-type=".*javascript.*"` in: #29: 42142-3ec03b1e9, antal fel: 1072 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 695 st)
- Expected X and instead saw X. (totalt 373 st)
- Unsafe usage of ThrowStatement. (totalt 2 st)
- Unnecessary escape character: \/. (totalt 1 st)
- X is assigned to itself. (totalt 1 st)
- `content-type=".*javascript.*"` in: #31: async-visitor-f, antal grupperade fel: 5 ( 4.00 betyg )
- `content-type=".*javascript.*"` in: #31: async-visitor-f, antal fel: 1096 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 714 st)
- Expected X and instead saw X. (totalt 378 st)
- Unsafe usage of ThrowStatement. (totalt 2 st)
- Unnecessary escape character: \/. (totalt 1 st)
- X is assigned to itself. (totalt 1 st)
- `content-type=".*javascript.*"` in: #32: enterprise.js, antal grupperade fel: 5 ( 4.00 betyg )
- `content-type=".*javascript.*"` in: #32: enterprise.js, antal fel: 1096 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 714 st)
- Expected X and instead saw X. (totalt 378 st)
- Unsafe usage of ThrowStatement. (totalt 2 st)
- Unnecessary escape character: \/. (totalt 1 st)
- X is assigned to itself. (totalt 1 st)
- `content-type=".*javascript.*"` in: #33: 97108-f2283cb70, antal grupperade fel: 5 ( 4.00 betyg )
- `content-type=".*javascript.*"` in: #33: 97108-f2283cb70, antal fel: 1116 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 731 st)
- Expected X and instead saw X. (totalt 381 st)
- Unsafe usage of ThrowStatement. (totalt 2 st)
- Unnecessary escape character: \/. (totalt 1 st)
- X is assigned to itself. (totalt 1 st)
- `content-type=".*javascript.*"` in: #35: async-gdpr-cook, antal grupperade fel: 7 ( 3.60 betyg )
- `content-type=".*javascript.*"` in: #35: async-gdpr-cook, antal fel: 1180 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 768 st)
- Expected X and instead saw X. (totalt 405 st)
- Unsafe usage of ThrowStatement. (totalt 3 st)
- Unnecessary escape character: \/. (totalt 1 st)
- X is assigned to itself. (totalt 1 st)
- The Function constructor is eval. (totalt 1 st)
- X is not modified in this loop. (totalt 1 st)
- `content-type=".*javascript.*"` in: #46: recaptcha--sv.j, antal grupperade fel: 20 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #46: recaptcha--sv.j, antal fel: 3445 ( 1.00 betyg )
- Expected X and instead saw X. (totalt 2046 st)
- Expected an assignment or function call and instead saw an expression. (totalt 1342 st)
- Unnecessary escape character: \/. (totalt 10 st)
- X is assigned to itself. (totalt 7 st)
- Unnecessary escape character: \). (totalt 5 st)
- Do not access Object.prototype method X from target object. (totalt 4 st)
- Unnecessary escape character: \?. (totalt 4 st)
- Comparing to itself is potentially pointless. (totalt 4 st)
- Unsafe usage of ThrowStatement. (totalt 3 st)
- Unnecessary escape character: \^. (totalt 3 st)
- Unnecessary escape character: \-. (totalt 3 st)
- Unnecessary escape character: \.. (totalt 3 st)
- X is not modified in this loop. (totalt 2 st)
- Unnecessary escape character: \(. (totalt 2 st)
- eval can be harmful. (totalt 2 st)
- The Function constructor is eval. (totalt 1 st)
- Unnecessary escape character: \+. (totalt 1 st)
- Unnecessary escape character: \[. (totalt 1 st)
- Unnecessary X. (totalt 1 st)
- Unnecessary escape character: \{. (totalt 1 st)