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.85 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: 1434 ( 1.00 betyg )
- X is defined but never used. (totalt 651 st)
- X is not defined. (totalt 328 st)
- X is assigned a value but never used. (totalt 317 st)
- Unexpected console statement. (totalt 138 st)
- `< script>` in: #56: xkEmYQvJ-68, antal grupperade fel: 1 ( 4.80 betyg )
- `< script>` in: #56: xkEmYQvJ-68, antal fel: 2 ( 4.60 betyg )
- X is not defined. (totalt 2 st)
- `content-type=".*javascript.*"` in: #32: 38952-7baef5a84, antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #32: 38952-7baef5a84, antal fel: 29 ( 1.00 betyg )
- X is defined but never used. (totalt 14 st)
- X is not defined. (totalt 11 st)
- Unexpected console statement. (totalt 4 st)
- `content-type=".*javascript.*"` in: #33: 47155-3271de5c2, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #33: 47155-3271de5c2, antal fel: 36 ( 1.00 betyg )
- X is not defined. (totalt 14 st)
- X is defined but never used. (totalt 14 st)
- Unexpected console statement. (totalt 4 st)
- X is assigned a value but never used. (totalt 4 st)
- `content-type=".*javascript.*"` in: #34: 3413-3aea88e02a, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #34: 3413-3aea88e02a, antal fel: 41 ( 1.00 betyg )
- X is not defined. (totalt 14 st)
- X is defined but never used. (totalt 14 st)
- X is assigned a value but never used. (totalt 9 st)
- Unexpected console statement. (totalt 4 st)
- `content-type=".*javascript.*"` in: #36: async-gdpr-cook, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #36: async-gdpr-cook, antal fel: 56 ( 1.00 betyg )
- X is not defined. (totalt 17 st)
- X is defined but never used. (totalt 17 st)
- X is assigned a value but never used. (totalt 17 st)
- Unexpected console statement. (totalt 5 st)
- `content-type=".*javascript.*"` in: #45: iframe-api, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #45: iframe-api, antal fel: 58 ( 1.00 betyg )
- X is defined but never used. (totalt 19 st)
- X is not defined. (totalt 17 st)
- X is assigned a value but never used. (totalt 17 st)
- Unexpected console statement. (totalt 5 st)
- `content-type=".*javascript.*"` in: #50: www-widgetapi.j, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #50: www-widgetapi.j, antal fel: 75 ( 1.00 betyg )
- X is defined but never used. (totalt 29 st)
- X is not defined. (totalt 19 st)
- X is assigned a value but never used. (totalt 17 st)
- Unexpected console statement. (totalt 10 st)
- `content-type=".*javascript.*"` in: #60: embed.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #60: embed.js, antal fel: 76 ( 1.00 betyg )
- X is defined but never used. (totalt 29 st)
- X is not defined. (totalt 20 st)
- X is assigned a value but never used. (totalt 17 st)
- Unexpected console statement. (totalt 10 st)
- `content-type=".*javascript.*"` in: #61: www-embed-playe, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #61: www-embed-playe, antal fel: 173 ( 1.00 betyg )
- X is defined but never used. (totalt 115 st)
- X is not defined. (totalt 22 st)
- X is assigned a value but never used. (totalt 21 st)
- Unexpected console statement. (totalt 15 st)
- `content-type=".*javascript.*"` in: #62: base.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #62: base.js, antal fel: 407 ( 1.00 betyg )
- X is defined but never used. (totalt 323 st)
- X is assigned a value but never used. (totalt 33 st)
- X is not defined. (totalt 26 st)
- Unexpected console statement. (totalt 25 st)
- `content-type=".*javascript.*"` in: #63: ad-status.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #63: ad-status.js, antal fel: 407 ( 1.00 betyg )
- X is defined but never used. (totalt 323 st)
- X is assigned a value but never used. (totalt 33 st)
- X is not defined. (totalt 26 st)
- Unexpected console statement. (totalt 25 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: 31 ( 1.00 betyg )
- `< script src="...">` in: #1: Webbsida , antal fel: 7834 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 4909 st)
- Expected X and instead saw X. (totalt 2582 st)
- Do not access Object.prototype method X from target object. (totalt 133 st)
- Comparing to itself is potentially pointless. (totalt 57 st)
- Unnecessary X. (totalt 23 st)
- The Function constructor is eval. (totalt 21 st)
- X is not modified in this loop. (totalt 17 st)
- Unsafe usage of ThrowStatement. (totalt 12 st)
- Unnecessary escape character: \/. (totalt 10 st)
- X is assigned to itself. (totalt 8 st)
- Unnecessary escape character: \[. (totalt 8 st)
- Unnecessary escape character: \). (totalt 6 st)
- Unnecessary escape character: \(. (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 4 st)
- Unnecessary escape character: \ . (totalt 3 st)
- Unnecessary escape character: \%. (totalt 3 st)
- Unnecessary escape character: \{. (totalt 2 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 2 st)
- Unnecessary escape character: \_. (totalt 1 st)
- Unnecessary escape character: \'. (totalt 1 st)
- Unnecessary escape character: \>. (totalt 1 st)
- Unsafe usage of ReturnStatement. (totalt 1 st)
- Unnecessary escape character: \=. (totalt 1 st)
- `< script>` in: #56: xkEmYQvJ-68, antal grupperade fel: 1 ( 4.80 betyg )
- `< script>` in: #56: xkEmYQvJ-68, antal fel: 4 ( 4.20 betyg )
- Expected X and instead saw X. (totalt 4 st)
- `content-type=".*javascript.*"` in: #32: 38952-7baef5a84, antal grupperade fel: 2 ( 4.60 betyg )
- `content-type=".*javascript.*"` in: #32: 38952-7baef5a84, antal fel: 348 ( 1.00 betyg )
- Expected X and instead saw X. (totalt 176 st)
- Expected an assignment or function call and instead saw an expression. (totalt 172 st)
- `content-type=".*javascript.*"` in: #33: 47155-3271de5c2, antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #33: 47155-3271de5c2, antal fel: 385 ( 1.00 betyg )
- Expected X and instead saw X. (totalt 195 st)
- Expected an assignment or function call and instead saw an expression. (totalt 189 st)
- The Function constructor is eval. (totalt 1 st)
- `content-type=".*javascript.*"` in: #34: 3413-3aea88e02a, antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #34: 3413-3aea88e02a, antal fel: 390 ( 1.00 betyg )
- Expected X and instead saw X. (totalt 195 st)
- Expected an assignment or function call and instead saw an expression. (totalt 194 st)
- The Function constructor is eval. (totalt 1 st)
- `content-type=".*javascript.*"` in: #36: async-gdpr-cook, antal grupperade fel: 5 ( 4.00 betyg )
- `content-type=".*javascript.*"` in: #36: async-gdpr-cook, antal fel: 442 ( 1.00 betyg )
- Expected X and instead saw X. (totalt 221 st)
- Expected an assignment or function call and instead saw an expression. (totalt 218 st)
- The Function constructor is eval. (totalt 1 st)
- X is not modified in this loop. (totalt 1 st)
- Unsafe usage of ThrowStatement. (totalt 1 st)
- `content-type=".*javascript.*"` in: #45: iframe-api, antal grupperade fel: 7 ( 3.60 betyg )
- `content-type=".*javascript.*"` in: #45: iframe-api, antal fel: 450 ( 1.00 betyg )
- Expected X and instead saw X. (totalt 221 st)
- Expected an assignment or function call and instead saw an expression. (totalt 218 st)
- Unnecessary escape character: \/. (totalt 7 st)
- The Function constructor is eval. (totalt 1 st)
- X is not modified in this loop. (totalt 1 st)
- Unsafe usage of ThrowStatement. (totalt 1 st)
- Do not access Object.prototype method X from target object. (totalt 1 st)
- `content-type=".*javascript.*"` in: #50: www-widgetapi.j, antal grupperade fel: 9 ( 3.20 betyg )
- `content-type=".*javascript.*"` in: #50: www-widgetapi.j, antal fel: 661 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 318 st)
- Expected X and instead saw X. (totalt 312 st)
- X is assigned to itself. (totalt 9 st)
- Do not access Object.prototype method X from target object. (totalt 8 st)
- Unnecessary escape character: \/. (totalt 7 st)
- Comparing to itself is potentially pointless. (totalt 4 st)
- The Function constructor is eval. (totalt 1 st)
- X is not modified in this loop. (totalt 1 st)
- Unsafe usage of ThrowStatement. (totalt 1 st)
- `content-type=".*javascript.*"` in: #60: embed.js, antal grupperade fel: 9 ( 3.20 betyg )
- `content-type=".*javascript.*"` in: #60: embed.js, antal fel: 746 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 395 st)
- Expected X and instead saw X. (totalt 320 st)
- X is assigned to itself. (totalt 9 st)
- Do not access Object.prototype method X from target object. (totalt 8 st)
- Unnecessary escape character: \/. (totalt 7 st)
- Comparing to itself is potentially pointless. (totalt 4 st)
- The Function constructor is eval. (totalt 1 st)
- X is not modified in this loop. (totalt 1 st)
- Unsafe usage of ThrowStatement. (totalt 1 st)
- `content-type=".*javascript.*"` in: #61: www-embed-playe, antal grupperade fel: 13 ( 2.40 betyg )
- `content-type=".*javascript.*"` in: #61: www-embed-playe, antal fel: 2542 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1566 st)
- Expected X and instead saw X. (totalt 889 st)
- Do not access Object.prototype method X from target object. (totalt 26 st)
- X is assigned to itself. (totalt 23 st)
- Unnecessary X. (totalt 11 st)
- Comparing to itself is potentially pointless. (totalt 9 st)
- Unnecessary escape character: \/. (totalt 8 st)
- Unnecessary escape character: \?. (totalt 4 st)
- Unnecessary escape character: \-. (totalt 2 st)
- The Function constructor is eval. (totalt 1 st)
- X is not modified in this loop. (totalt 1 st)
- Unsafe usage of ThrowStatement. (totalt 1 st)
- Unnecessary escape character: \(. (totalt 1 st)
- `content-type=".*javascript.*"` in: #62: base.js, antal grupperade fel: 18 ( 1.40 betyg )
- `content-type=".*javascript.*"` in: #62: base.js, antal fel: 13455 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 8907 st)
- Expected X and instead saw X. (totalt 4338 st)
- Do not access Object.prototype method X from target object. (totalt 68 st)
- X is assigned to itself. (totalt 52 st)
- Unnecessary X. (totalt 25 st)
- Comparing to itself is potentially pointless. (totalt 14 st)
- Unnecessary escape character: \?. (totalt 14 st)
- Unnecessary escape character: \/. (totalt 12 st)
- Unnecessary escape character: \-. (totalt 6 st)
- Unnecessary escape character: \.. (totalt 6 st)
- Unnecessary escape character: \). (totalt 4 st)
- Unnecessary escape character: \(. (totalt 2 st)
- Script URL is a form of eval. (totalt 2 st)
- The Function constructor is eval. (totalt 1 st)
- X is not modified in this loop. (totalt 1 st)
- Unsafe usage of ThrowStatement. (totalt 1 st)
- Unnecessary escape character: \[. (totalt 1 st)
- Unnecessary escape character: \^. (totalt 1 st)
- `content-type=".*javascript.*"` in: #63: ad-status.js, antal grupperade fel: 18 ( 1.40 betyg )
- `content-type=".*javascript.*"` in: #63: ad-status.js, antal fel: 13455 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 8907 st)
- Expected X and instead saw X. (totalt 4338 st)
- Do not access Object.prototype method X from target object. (totalt 68 st)
- X is assigned to itself. (totalt 52 st)
- Unnecessary X. (totalt 25 st)
- Comparing to itself is potentially pointless. (totalt 14 st)
- Unnecessary escape character: \?. (totalt 14 st)
- Unnecessary escape character: \/. (totalt 12 st)
- Unnecessary escape character: \-. (totalt 6 st)
- Unnecessary escape character: \.. (totalt 6 st)
- Unnecessary escape character: \). (totalt 4 st)
- Unnecessary escape character: \(. (totalt 2 st)
- Script URL is a form of eval. (totalt 2 st)
- The Function constructor is eval. (totalt 1 st)
- X is not modified in this loop. (totalt 1 st)
- Unsafe usage of ThrowStatement. (totalt 1 st)
- Unnecessary escape character: \[. (totalt 1 st)
- Unnecessary escape character: \^. (totalt 1 st)