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.94 av 5
- JS är dålig.
Webbstandard
- `< script>` in: #30: , antal grupperade fel: 1 ( 4.80 betyg )
- `< script>` in: #30: , antal fel: 1 ( 4.80 betyg )
- Parsing error: Unexpected token : (totalt 1 st)
- `< script src="...">` in: #30: , antal grupperade fel: 4 ( 4.20 betyg )
- `< script src="...">` in: #30: , antal fel: 1435 ( 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 318 st)
- Unexpected console statement. (totalt 138 st)
- `< script>` in: #85: xkEmYQvJ-68, antal grupperade fel: 1 ( 4.80 betyg )
- `< script>` in: #85: xkEmYQvJ-68, antal fel: 2 ( 4.60 betyg )
- X is not defined. (totalt 2 st)
- `content-type=".*javascript.*"` in: #61: 95645-db77dab3a, antal grupperade fel: 2 ( 4.60 betyg )
- `content-type=".*javascript.*"` in: #61: 95645-db77dab3a, antal fel: 5 ( 4.00 betyg )
- X is assigned a value but never used. (totalt 4 st)
- Unexpected console statement. (totalt 1 st)
- `content-type=".*javascript.*"` in: #62: 38952-7baef5a84, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #62: 38952-7baef5a84, antal fel: 34 ( 1.00 betyg )
- X is defined but never used. (totalt 14 st)
- X is not defined. (totalt 11 st)
- Unexpected console statement. (totalt 5 st)
- X is assigned a value but never used. (totalt 4 st)
- `content-type=".*javascript.*"` in: #63: 3413-ffd4cd8c73, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #63: 3413-ffd4cd8c73, antal fel: 39 ( 1.00 betyg )
- X is defined but never used. (totalt 14 st)
- X is not defined. (totalt 11 st)
- X is assigned a value but never used. (totalt 9 st)
- Unexpected console statement. (totalt 5 st)
- `content-type=".*javascript.*"` in: #65: async-gdpr-cook, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #65: async-gdpr-cook, antal fel: 57 ( 1.00 betyg )
- X is assigned a value but never used. (totalt 17 st)
- X is not defined. (totalt 17 st)
- X is defined but never used. (totalt 17 st)
- Unexpected console statement. (totalt 6 st)
- `content-type=".*javascript.*"` in: #74: iframe-api, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #74: iframe-api, antal fel: 59 ( 1.00 betyg )
- X is defined but never used. (totalt 19 st)
- X is assigned a value but never used. (totalt 17 st)
- X is not defined. (totalt 17 st)
- Unexpected console statement. (totalt 6 st)
- `content-type=".*javascript.*"` in: #79: www-widgetapi.j, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #79: www-widgetapi.j, antal fel: 76 ( 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 11 st)
- `content-type=".*javascript.*"` in: #89: embed.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #89: embed.js, antal fel: 77 ( 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 11 st)
- `content-type=".*javascript.*"` in: #90: www-embed-playe, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #90: www-embed-playe, antal fel: 174 ( 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 16 st)
- `content-type=".*javascript.*"` in: #91: base.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #91: base.js, antal fel: 408 ( 1.00 betyg )
- X is defined but never used. (totalt 323 st)
- X is assigned a value but never used. (totalt 33 st)
- Unexpected console statement. (totalt 26 st)
- X is not defined. (totalt 26 st)
- `content-type=".*javascript.*"` in: #92: ad-status.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #92: ad-status.js, antal fel: 408 ( 1.00 betyg )
- X is defined but never used. (totalt 323 st)
- X is assigned a value but never used. (totalt 33 st)
- Unexpected console statement. (totalt 26 st)
- X is not defined. (totalt 26 st)
Integritet & säkerhet
- `< script>` in: #30: , antal grupperade fel: 1 ( 4.80 betyg )
- `< script>` in: #30: , antal fel: 1 ( 4.80 betyg )
- Parsing error: Unexpected token : (totalt 1 st)
- `< script src="...">` in: #30: , antal grupperade fel: 31 ( 1.00 betyg )
- `< script src="...">` in: #30: , antal fel: 7836 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 4911 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: #85: xkEmYQvJ-68, antal grupperade fel: 1 ( 4.80 betyg )
- `< script>` in: #85: xkEmYQvJ-68, antal fel: 4 ( 4.20 betyg )
- Expected X and instead saw X. (totalt 4 st)
- `content-type=".*javascript.*"` in: #61: 95645-db77dab3a, antal grupperade fel: 2 ( 4.60 betyg )
- `content-type=".*javascript.*"` in: #61: 95645-db77dab3a, antal fel: 14 ( 2.20 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 7 st)
- Expected X and instead saw X. (totalt 7 st)
- `content-type=".*javascript.*"` in: #62: 38952-7baef5a84, antal grupperade fel: 2 ( 4.60 betyg )
- `content-type=".*javascript.*"` in: #62: 38952-7baef5a84, antal fel: 362 ( 1.00 betyg )
- Expected X and instead saw X. (totalt 183 st)
- Expected an assignment or function call and instead saw an expression. (totalt 179 st)
- `content-type=".*javascript.*"` in: #63: 3413-ffd4cd8c73, antal grupperade fel: 2 ( 4.60 betyg )
- `content-type=".*javascript.*"` in: #63: 3413-ffd4cd8c73, antal fel: 367 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 184 st)
- Expected X and instead saw X. (totalt 183 st)
- `content-type=".*javascript.*"` in: #65: async-gdpr-cook, antal grupperade fel: 5 ( 4.00 betyg )
- `content-type=".*javascript.*"` in: #65: async-gdpr-cook, antal fel: 444 ( 1.00 betyg )
- Expected X and instead saw X. (totalt 222 st)
- Expected an assignment or function call and instead saw an expression. (totalt 219 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: #74: iframe-api, antal grupperade fel: 7 ( 3.60 betyg )
- `content-type=".*javascript.*"` in: #74: iframe-api, antal fel: 452 ( 1.00 betyg )
- Expected X and instead saw X. (totalt 222 st)
- Expected an assignment or function call and instead saw an expression. (totalt 219 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: #79: www-widgetapi.j, antal grupperade fel: 9 ( 3.20 betyg )
- `content-type=".*javascript.*"` in: #79: www-widgetapi.j, antal fel: 663 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 319 st)
- Expected X and instead saw X. (totalt 313 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: #89: embed.js, antal grupperade fel: 9 ( 3.20 betyg )
- `content-type=".*javascript.*"` in: #89: embed.js, antal fel: 748 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 396 st)
- Expected X and instead saw X. (totalt 321 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: #90: www-embed-playe, antal grupperade fel: 13 ( 2.40 betyg )
- `content-type=".*javascript.*"` in: #90: www-embed-playe, antal fel: 2544 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1567 st)
- Expected X and instead saw X. (totalt 890 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: #91: base.js, antal grupperade fel: 18 ( 1.40 betyg )
- `content-type=".*javascript.*"` in: #91: base.js, antal fel: 13457 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 8908 st)
- Expected X and instead saw X. (totalt 4339 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: #92: ad-status.js, antal grupperade fel: 18 ( 1.40 betyg )
- `content-type=".*javascript.*"` in: #92: ad-status.js, antal fel: 13457 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 8908 st)
- Expected X and instead saw X. (totalt 4339 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)