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.70 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: 2205 ( 1.00 betyg )
- X is defined but never used. (totalt 1142 st)
- X is assigned a value but never used. (totalt 532 st)
- X is not defined. (totalt 329 st)
- Unexpected console statement. (totalt 202 st)
- `content-type=".*javascript.*"` in: #35: 1480.957910e1e3, antal grupperade fel: 1 ( 4.80 betyg )
- `content-type=".*javascript.*"` in: #35: 1480.957910e1e3, antal fel: 2 ( 4.60 betyg )
- X is defined but never used. (totalt 2 st)
- `content-type=".*javascript.*"` in: #36: user-items-list, antal grupperade fel: 1 ( 4.80 betyg )
- `content-type=".*javascript.*"` in: #36: user-items-list, antal fel: 4 ( 4.20 betyg )
- X is defined but never used. (totalt 4 st)
- `content-type=".*javascript.*"` in: #37: 3270.865be4ad43, antal grupperade fel: 1 ( 4.80 betyg )
- `content-type=".*javascript.*"` in: #37: 3270.865be4ad43, antal fel: 7 ( 3.60 betyg )
- X is defined but never used. (totalt 7 st)
- `content-type=".*javascript.*"` in: #38: 9807.5196524f5d, antal grupperade fel: 1 ( 4.80 betyg )
- `content-type=".*javascript.*"` in: #38: 9807.5196524f5d, antal fel: 9 ( 3.20 betyg )
- X is defined but never used. (totalt 9 st)
- `content-type=".*javascript.*"` in: #39: 5443.9df33375b4, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #39: 5443.9df33375b4, antal fel: 22 ( 1.00 betyg )
- X is defined but never used. (totalt 18 st)
- Unexpected console statement. (totalt 2 st)
- X is not defined. (totalt 1 st)
- X is assigned a value but never used. (totalt 1 st)
- `content-type=".*javascript.*"` in: #40: section-divider, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #40: section-divider, antal fel: 25 ( 1.00 betyg )
- X is defined but never used. (totalt 19 st)
- Unexpected console statement. (totalt 4 st)
- X is not defined. (totalt 1 st)
- X is assigned a value but never used. (totalt 1 st)
- `content-type=".*javascript.*"` in: #41: user-items-list, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #41: user-items-list, antal fel: 26 ( 1.00 betyg )
- X is defined but never used. (totalt 20 st)
- Unexpected console statement. (totalt 4 st)
- X is not defined. (totalt 1 st)
- X is assigned a value but never used. (totalt 1 st)
- `content-type=".*javascript.*"` in: #43: 10093-c22f381e0, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #43: 10093-c22f381e0, antal fel: 29 ( 1.00 betyg )
- X is defined but never used. (totalt 21 st)
- Unexpected console statement. (totalt 6 st)
- X is not defined. (totalt 1 st)
- X is assigned a value but never used. (totalt 1 st)
- `content-type=".*javascript.*"` in: #44: 342-0bf3db17acc, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #44: 342-0bf3db17acc, antal fel: 149 ( 1.00 betyg )
- X is defined but never used. (totalt 76 st)
- X is not defined. (totalt 34 st)
- Unexpected console statement. (totalt 29 st)
- X is assigned a value but never used. (totalt 10 st)
- `content-type=".*javascript.*"` in: #45: search-preview-, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #45: search-preview-, antal fel: 149 ( 1.00 betyg )
- X is defined but never used. (totalt 76 st)
- X is not defined. (totalt 34 st)
- Unexpected console statement. (totalt 29 st)
- X is assigned a value but never used. (totalt 10 st)
- `content-type=".*javascript.*"` in: #46: 66368-895fe5696, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #46: 66368-895fe5696, antal fel: 156 ( 1.00 betyg )
- X is defined but never used. (totalt 76 st)
- X is not defined. (totalt 37 st)
- Unexpected console statement. (totalt 29 st)
- X is assigned a value but never used. (totalt 14 st)
- `content-type=".*javascript.*"` in: #47: 90615-1afff015c, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #47: 90615-1afff015c, antal fel: 159 ( 1.00 betyg )
- X is defined but never used. (totalt 76 st)
- X is not defined. (totalt 37 st)
- Unexpected console statement. (totalt 29 st)
- X is assigned a value but never used. (totalt 17 st)
- `content-type=".*javascript.*"` in: #48: 97108-5be2afb65, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #48: 97108-5be2afb65, antal fel: 169 ( 1.00 betyg )
- X is defined but never used. (totalt 76 st)
- X is not defined. (totalt 37 st)
- Unexpected console statement. (totalt 29 st)
- X is assigned a value but never used. (totalt 27 st)
- `content-type=".*javascript.*"` in: #50: async-gdpr-cook, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #50: async-gdpr-cook, antal fel: 170 ( 1.00 betyg )
- X is defined but never used. (totalt 76 st)
- X is not defined. (totalt 37 st)
- Unexpected console statement. (totalt 29 st)
- X is assigned a value but never used. (totalt 28 st)
- `content-type=".*javascript.*"` in: #58: floating-cart.1, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #58: floating-cart.1, antal fel: 171 ( 1.00 betyg )
- X is defined but never used. (totalt 77 st)
- X is not defined. (totalt 37 st)
- Unexpected console statement. (totalt 29 st)
- X is assigned a value but never used. (totalt 28 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: 30 ( 1.00 betyg )
- `< script src="...">` in: #1: Webbsida , antal fel: 11570 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 7685 st)
- Expected X and instead saw X. (totalt 3414 st)
- Do not access Object.prototype method X from target object. (totalt 230 st)
- Comparing to itself is potentially pointless. (totalt 51 st)
- Unnecessary X. (totalt 25 st)
- X is not modified in this loop. (totalt 24 st)
- Unsafe usage of ThrowStatement. (totalt 22 st)
- The Function constructor is eval. (totalt 20 st)
- Unnecessary escape character: \/. (totalt 16 st)
- X is assigned to itself. (totalt 10 st)
- Unnecessary escape character: \[. (totalt 9 st)
- Unnecessary escape character: \%. (totalt 8 st)
- Unnecessary escape character: \). (totalt 7 st)
- Unnecessary escape character: \-. (totalt 6 st)
- Script URL is a form of eval. (totalt 5 st)
- Unnecessary escape character: \(. (totalt 5 st)
- Unnecessary escape character: \.. (totalt 4 st)
- Unnecessary escape character: \:. (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)
- Unnecessary escape character: \^. (totalt 2 st)
- Unnecessary escape character: \?. (totalt 2 st)
- eval can be harmful. (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)
- `content-type=".*javascript.*"` in: #35: 1480.957910e1e3, antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #35: 1480.957910e1e3, antal fel: 98 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 55 st)
- Expected X and instead saw X. (totalt 42 st)
- X is not modified in this loop. (totalt 1 st)
- `content-type=".*javascript.*"` in: #36: user-items-list, antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #36: user-items-list, antal fel: 132 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 80 st)
- Expected X and instead saw X. (totalt 51 st)
- X is not modified in this loop. (totalt 1 st)
- `content-type=".*javascript.*"` in: #37: 3270.865be4ad43, antal grupperade fel: 5 ( 4.00 betyg )
- `content-type=".*javascript.*"` in: #37: 3270.865be4ad43, antal fel: 191 ( 1.00 betyg )
- Expected X and instead saw X. (totalt 98 st)
- Expected an assignment or function call and instead saw an expression. (totalt 89 st)
- Comparing to itself is potentially pointless. (totalt 2 st)
- X is not modified in this loop. (totalt 1 st)
- The Function constructor is eval. (totalt 1 st)
- `content-type=".*javascript.*"` in: #38: 9807.5196524f5d, antal grupperade fel: 5 ( 4.00 betyg )
- `content-type=".*javascript.*"` in: #38: 9807.5196524f5d, antal fel: 281 ( 1.00 betyg )
- Expected X and instead saw X. (totalt 169 st)
- Expected an assignment or function call and instead saw an expression. (totalt 105 st)
- Comparing to itself is potentially pointless. (totalt 5 st)
- X is not modified in this loop. (totalt 1 st)
- The Function constructor is eval. (totalt 1 st)
- `content-type=".*javascript.*"` in: #39: 5443.9df33375b4, antal grupperade fel: 8 ( 3.40 betyg )
- `content-type=".*javascript.*"` in: #39: 5443.9df33375b4, antal fel: 437 ( 1.00 betyg )
- Expected X and instead saw X. (totalt 238 st)
- Expected an assignment or function call and instead saw an expression. (totalt 179 st)
- Do not access Object.prototype method X from target object. (totalt 8 st)
- Comparing to itself is potentially pointless. (totalt 5 st)
- Unnecessary escape character: \%. (totalt 3 st)
- X is not modified in this loop. (totalt 2 st)
- The Function constructor is eval. (totalt 1 st)
- Unsafe usage of ThrowStatement. (totalt 1 st)
- `content-type=".*javascript.*"` in: #40: section-divider, antal grupperade fel: 8 ( 3.40 betyg )
- `content-type=".*javascript.*"` in: #40: section-divider, antal fel: 485 ( 1.00 betyg )
- Expected X and instead saw X. (totalt 260 st)
- Expected an assignment or function call and instead saw an expression. (totalt 205 st)
- Do not access Object.prototype method X from target object. (totalt 8 st)
- Comparing to itself is potentially pointless. (totalt 5 st)
- Unnecessary escape character: \%. (totalt 3 st)
- X is not modified in this loop. (totalt 2 st)
- The Function constructor is eval. (totalt 1 st)
- Unsafe usage of ThrowStatement. (totalt 1 st)
- `content-type=".*javascript.*"` in: #41: user-items-list, antal grupperade fel: 8 ( 3.40 betyg )
- `content-type=".*javascript.*"` in: #41: user-items-list, antal fel: 523 ( 1.00 betyg )
- Expected X and instead saw X. (totalt 269 st)
- Expected an assignment or function call and instead saw an expression. (totalt 234 st)
- Do not access Object.prototype method X from target object. (totalt 8 st)
- Comparing to itself is potentially pointless. (totalt 5 st)
- Unnecessary escape character: \%. (totalt 3 st)
- X is not modified in this loop. (totalt 2 st)
- The Function constructor is eval. (totalt 1 st)
- Unsafe usage of ThrowStatement. (totalt 1 st)
- `content-type=".*javascript.*"` in: #43: 10093-c22f381e0, antal grupperade fel: 8 ( 3.40 betyg )
- `content-type=".*javascript.*"` in: #43: 10093-c22f381e0, antal fel: 608 ( 1.00 betyg )
- Expected X and instead saw X. (totalt 298 st)
- Expected an assignment or function call and instead saw an expression. (totalt 290 st)
- Do not access Object.prototype method X from target object. (totalt 8 st)
- Comparing to itself is potentially pointless. (totalt 5 st)
- Unnecessary escape character: \%. (totalt 3 st)
- X is not modified in this loop. (totalt 2 st)
- The Function constructor is eval. (totalt 1 st)
- Unsafe usage of ThrowStatement. (totalt 1 st)
- `content-type=".*javascript.*"` in: #44: 342-0bf3db17acc, antal grupperade fel: 11 ( 2.80 betyg )
- `content-type=".*javascript.*"` in: #44: 342-0bf3db17acc, antal fel: 814 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 440 st)
- Expected X and instead saw X. (totalt 342 st)
- Do not access Object.prototype method X from target object. (totalt 10 st)
- Unnecessary escape character: \/. (totalt 6 st)
- Comparing to itself is potentially pointless. (totalt 5 st)
- X is not modified in this loop. (totalt 3 st)
- Unnecessary escape character: \%. (totalt 3 st)
- Unnecessary escape character: \[. (totalt 2 st)
- The Function constructor is eval. (totalt 1 st)
- Unsafe usage of ThrowStatement. (totalt 1 st)
- Unnecessary escape character: \-. (totalt 1 st)
- `content-type=".*javascript.*"` in: #45: search-preview-, antal grupperade fel: 11 ( 2.80 betyg )
- `content-type=".*javascript.*"` in: #45: search-preview-, antal fel: 822 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 447 st)
- Expected X and instead saw X. (totalt 343 st)
- Do not access Object.prototype method X from target object. (totalt 10 st)
- Unnecessary escape character: \/. (totalt 6 st)
- Comparing to itself is potentially pointless. (totalt 5 st)
- X is not modified in this loop. (totalt 3 st)
- Unnecessary escape character: \%. (totalt 3 st)
- Unnecessary escape character: \[. (totalt 2 st)
- The Function constructor is eval. (totalt 1 st)
- Unsafe usage of ThrowStatement. (totalt 1 st)
- Unnecessary escape character: \-. (totalt 1 st)
- `content-type=".*javascript.*"` in: #46: 66368-895fe5696, antal grupperade fel: 11 ( 2.80 betyg )
- `content-type=".*javascript.*"` in: #46: 66368-895fe5696, antal fel: 839 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 456 st)
- Expected X and instead saw X. (totalt 351 st)
- Do not access Object.prototype method X from target object. (totalt 10 st)
- Unnecessary escape character: \/. (totalt 6 st)
- Comparing to itself is potentially pointless. (totalt 5 st)
- X is not modified in this loop. (totalt 3 st)
- Unnecessary escape character: \%. (totalt 3 st)
- Unnecessary escape character: \[. (totalt 2 st)
- The Function constructor is eval. (totalt 1 st)
- Unsafe usage of ThrowStatement. (totalt 1 st)
- Unnecessary escape character: \-. (totalt 1 st)
- `content-type=".*javascript.*"` in: #47: 90615-1afff015c, antal grupperade fel: 11 ( 2.80 betyg )
- `content-type=".*javascript.*"` in: #47: 90615-1afff015c, antal fel: 866 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 470 st)
- Expected X and instead saw X. (totalt 364 st)
- Do not access Object.prototype method X from target object. (totalt 10 st)
- Unnecessary escape character: \/. (totalt 6 st)
- Comparing to itself is potentially pointless. (totalt 5 st)
- X is not modified in this loop. (totalt 3 st)
- Unnecessary escape character: \%. (totalt 3 st)
- Unnecessary escape character: \[. (totalt 2 st)
- The Function constructor is eval. (totalt 1 st)
- Unsafe usage of ThrowStatement. (totalt 1 st)
- Unnecessary escape character: \-. (totalt 1 st)
- `content-type=".*javascript.*"` in: #48: 97108-5be2afb65, antal grupperade fel: 11 ( 2.80 betyg )
- `content-type=".*javascript.*"` in: #48: 97108-5be2afb65, antal fel: 886 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 487 st)
- Expected X and instead saw X. (totalt 367 st)
- Do not access Object.prototype method X from target object. (totalt 10 st)
- Unnecessary escape character: \/. (totalt 6 st)
- Comparing to itself is potentially pointless. (totalt 5 st)
- X is not modified in this loop. (totalt 3 st)
- Unnecessary escape character: \%. (totalt 3 st)
- Unnecessary escape character: \[. (totalt 2 st)
- The Function constructor is eval. (totalt 1 st)
- Unsafe usage of ThrowStatement. (totalt 1 st)
- Unnecessary escape character: \-. (totalt 1 st)
- `content-type=".*javascript.*"` in: #50: async-gdpr-cook, antal grupperade fel: 11 ( 2.80 betyg )
- `content-type=".*javascript.*"` in: #50: async-gdpr-cook, antal fel: 950 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 524 st)
- Expected X and instead saw X. (totalt 391 st)
- Do not access Object.prototype method X from target object. (totalt 10 st)
- Unnecessary escape character: \/. (totalt 6 st)
- Comparing to itself is potentially pointless. (totalt 5 st)
- X is not modified in this loop. (totalt 4 st)
- Unnecessary escape character: \%. (totalt 3 st)
- The Function constructor is eval. (totalt 2 st)
- Unsafe usage of ThrowStatement. (totalt 2 st)
- Unnecessary escape character: \[. (totalt 2 st)
- Unnecessary escape character: \-. (totalt 1 st)
- `content-type=".*javascript.*"` in: #58: floating-cart.1, antal grupperade fel: 11 ( 2.80 betyg )
- `content-type=".*javascript.*"` in: #58: floating-cart.1, antal fel: 952 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 526 st)
- Expected X and instead saw X. (totalt 391 st)
- Do not access Object.prototype method X from target object. (totalt 10 st)
- Unnecessary escape character: \/. (totalt 6 st)
- Comparing to itself is potentially pointless. (totalt 5 st)
- X is not modified in this loop. (totalt 4 st)
- Unnecessary escape character: \%. (totalt 3 st)
- The Function constructor is eval. (totalt 2 st)
- Unsafe usage of ThrowStatement. (totalt 2 st)
- Unnecessary escape character: \[. (totalt 2 st)
- Unnecessary escape character: \-. (totalt 1 st)