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: 3.12 av 5
- JS är ok.
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: 1006 ( 1.00 betyg )
- X is not defined. (totalt 621 st)
- X is defined but never used. (totalt 331 st)
- Unexpected console statement. (totalt 47 st)
- X is assigned a value but never used. (totalt 7 st)
- `< script>` in: #88: 1054064955, antal grupperade fel: 1 ( 4.80 betyg )
- `< script>` in: #88: 1054064955, antal fel: 1 ( 4.80 betyg )
- X is not defined. (totalt 1 st)
- `< script>` in: #97: bc-v4.min.html, antal grupperade fel: 1 ( 4.80 betyg )
- `< script>` in: #97: bc-v4.min.html, antal fel: 1 ( 4.80 betyg )
- X is defined but never used. (totalt 1 st)
- `content-type=".*javascript.*"` in: #58: gtm.js, antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #58: gtm.js, antal fel: 575 ( 1.00 betyg )
- X is defined but never used. (totalt 471 st)
- X is assigned a value but never used. (totalt 83 st)
- X is not defined. (totalt 21 st)
- `content-type=".*javascript.*"` in: #84: uc.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #84: uc.js, antal fel: 622 ( 1.00 betyg )
- X is defined but never used. (totalt 491 st)
- X is assigned a value but never used. (totalt 98 st)
- X is not defined. (totalt 22 st)
- Unexpected console statement. (totalt 11 st)
- `content-type=".*javascript.*"` in: #85: analytics.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #85: analytics.js, antal fel: 652 ( 1.00 betyg )
- X is defined but never used. (totalt 518 st)
- X is assigned a value but never used. (totalt 98 st)
- X is not defined. (totalt 25 st)
- Unexpected console statement. (totalt 11 st)
- `content-type=".*javascript.*"` in: #98: cc.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #98: cc.js, antal fel: 680 ( 1.00 betyg )
- X is defined but never used. (totalt 530 st)
- X is assigned a value but never used. (totalt 104 st)
- X is not defined. (totalt 34 st)
- Unexpected console statement. (totalt 12 st)
- `content-type=".*javascript.*"` in: #99: api.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #99: api.js, antal fel: 700 ( 1.00 betyg )
- X is defined but never used. (totalt 547 st)
- X is assigned a value but never used. (totalt 105 st)
- X is not defined. (totalt 34 st)
- Unexpected console statement. (totalt 14 st)
- `content-type=".*javascript.*"` in: #102: v1, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #102: v1, antal fel: 1002 ( 1.00 betyg )
- X is defined but never used. (totalt 555 st)
- X is not defined. (totalt 327 st)
- X is assigned a value but never used. (totalt 105 st)
- Unexpected console statement. (totalt 15 st)
- `content-type=".*javascript.*"` in: #104: v1, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #104: v1, antal fel: 1083 ( 1.00 betyg )
- X is defined but never used. (totalt 563 st)
- X is not defined. (totalt 398 st)
- X is assigned a value but never used. (totalt 106 st)
- Unexpected console statement. (totalt 16 st)
- `content-type=".*javascript.*"` in: #105: common.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #105: common.js, antal fel: 1093 ( 1.00 betyg )
- X is defined but never used. (totalt 572 st)
- X is not defined. (totalt 399 st)
- X is assigned a value but never used. (totalt 106 st)
- Unexpected console statement. (totalt 16 st)
- `content-type=".*javascript.*"` in: #106: util.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #106: util.js, antal fel: 1112 ( 1.00 betyg )
- X is defined but never used. (totalt 587 st)
- X is not defined. (totalt 400 st)
- X is assigned a value but never used. (totalt 108 st)
- Unexpected console statement. (totalt 17 st)
- `content-type=".*javascript.*"` in: #107: map.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #107: map.js, antal fel: 1127 ( 1.00 betyg )
- X is defined but never used. (totalt 596 st)
- X is not defined. (totalt 401 st)
- X is assigned a value but never used. (totalt 109 st)
- Unexpected console statement. (totalt 21 st)
- `content-type=".*javascript.*"` in: #108: marker.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #108: marker.js, antal fel: 1132 ( 1.00 betyg )
- X is defined but never used. (totalt 596 st)
- X is not defined. (totalt 402 st)
- X is assigned a value but never used. (totalt 109 st)
- Unexpected console statement. (totalt 25 st)
- `content-type=".*javascript.*"` in: #112: infowindow.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #112: infowindow.js, antal fel: 1134 ( 1.00 betyg )
- X is defined but never used. (totalt 596 st)
- X is not defined. (totalt 403 st)
- X is assigned a value but never used. (totalt 109 st)
- Unexpected console statement. (totalt 26 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: 27 ( 1.00 betyg )
- `< script src="...">` in: #1: Webbsida , antal fel: 3933 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 2373 st)
- Expected X and instead saw X. (totalt 1179 st)
- X is assigned to itself. (totalt 209 st)
- Do not access Object.prototype method X from target object. (totalt 56 st)
- Comparing to itself is potentially pointless. (totalt 28 st)
- Unnecessary escape character: \/. (totalt 23 st)
- Unnecessary escape character: \-. (totalt 9 st)
- The Function constructor is eval. (totalt 8 st)
- Unexpected string concatenation of literals. (totalt 7 st)
- Unnecessary X. (totalt 6 st)
- Unnecessary escape character: \+. (totalt 4 st)
- Unnecessary escape character: \). (totalt 4 st)
- Unnecessary escape character: \[. (totalt 3 st)
- Unsafe usage of ThrowStatement. (totalt 3 st)
- eval can be harmful. (totalt 3 st)
- Unnecessary escape character: \:. (totalt 2 st)
- Unnecessary escape character: \&. (totalt 2 st)
- Unnecessary escape character: \(. (totalt 2 st)
- Unsafe usage of ReturnStatement. (totalt 2 st)
- Unnecessary escape character: \.. (totalt 2 st)
- Async arrow function has no X expression. (totalt 2 st)
- Unnecessary escape character: \>. (totalt 1 st)
- Unnecessary escape character: \?. (totalt 1 st)
- X is not modified in this loop. (totalt 1 st)
- Unnecessary escape character: \{. (totalt 1 st)
- Unnecessary escape character: \'. (totalt 1 st)
- Unnecessary escape character: \^. (totalt 1 st)
- `< script>` in: #97: bc-v4.min.html, antal grupperade fel: 2 ( 4.60 betyg )
- `< script>` in: #97: bc-v4.min.html, antal fel: 2 ( 4.60 betyg )
- Expected X and instead saw X. (totalt 1 st)
- Expected an assignment or function call and instead saw an expression. (totalt 1 st)
- `content-type=".*javascript.*"` in: #58: gtm.js, antal grupperade fel: 8 ( 3.40 betyg )
- `content-type=".*javascript.*"` in: #58: gtm.js, antal fel: 1169 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 823 st)
- Expected X and instead saw X. (totalt 236 st)
- Do not access Object.prototype method X from target object. (totalt 92 st)
- X is not modified in this loop. (totalt 7 st)
- Unnecessary escape character: \/. (totalt 6 st)
- X is assigned to itself. (totalt 3 st)
- Comparing to itself is potentially pointless. (totalt 1 st)
- Script URL is a form of eval. (totalt 1 st)
- `content-type=".*javascript.*"` in: #84: uc.js, antal grupperade fel: 11 ( 2.80 betyg )
- `content-type=".*javascript.*"` in: #84: uc.js, antal fel: 1521 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1064 st)
- Expected X and instead saw X. (totalt 338 st)
- Do not access Object.prototype method X from target object. (totalt 92 st)
- Unnecessary escape character: \/. (totalt 8 st)
- X is not modified in this loop. (totalt 7 st)
- Unnecessary escape character: \-. (totalt 4 st)
- X is assigned to itself. (totalt 3 st)
- Unnecessary escape character: \[. (totalt 2 st)
- Comparing to itself is potentially pointless. (totalt 1 st)
- Script URL is a form of eval. (totalt 1 st)
- Unnecessary X. (totalt 1 st)
- `content-type=".*javascript.*"` in: #85: analytics.js, antal grupperade fel: 11 ( 2.80 betyg )
- `content-type=".*javascript.*"` in: #85: analytics.js, antal fel: 1951 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1298 st)
- Expected X and instead saw X. (totalt 516 st)
- Do not access Object.prototype method X from target object. (totalt 104 st)
- Unnecessary escape character: \/. (totalt 10 st)
- X is not modified in this loop. (totalt 7 st)
- Unnecessary escape character: \[. (totalt 4 st)
- Unnecessary escape character: \-. (totalt 4 st)
- X is assigned to itself. (totalt 3 st)
- Comparing to itself is potentially pointless. (totalt 2 st)
- Unnecessary X. (totalt 2 st)
- Script URL is a form of eval. (totalt 1 st)
- `content-type=".*javascript.*"` in: #98: cc.js, antal grupperade fel: 13 ( 2.40 betyg )
- `content-type=".*javascript.*"` in: #98: cc.js, antal fel: 2298 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1604 st)
- Expected X and instead saw X. (totalt 552 st)
- Do not access Object.prototype method X from target object. (totalt 104 st)
- Unnecessary escape character: \/. (totalt 10 st)
- X is not modified in this loop. (totalt 7 st)
- Unnecessary escape character: \[. (totalt 5 st)
- Unnecessary escape character: \-. (totalt 4 st)
- X is assigned to itself. (totalt 3 st)
- Script URL is a form of eval. (totalt 3 st)
- Comparing to itself is potentially pointless. (totalt 2 st)
- Unnecessary X. (totalt 2 st)
- Unnecessary escape character: \< . (totalt 1 st)
- Unnecessary escape character: \>. (totalt 1 st)
- `content-type=".*javascript.*"` in: #99: api.js, antal grupperade fel: 14 ( 2.20 betyg )
- `content-type=".*javascript.*"` in: #99: api.js, antal fel: 2520 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1756 st)
- Expected X and instead saw X. (totalt 614 st)
- Do not access Object.prototype method X from target object. (totalt 104 st)
- Unnecessary escape character: \/. (totalt 10 st)
- X is not modified in this loop. (totalt 8 st)
- Unsafe usage of ThrowStatement. (totalt 7 st)
- Unnecessary escape character: \[. (totalt 5 st)
- Unnecessary escape character: \-. (totalt 4 st)
- X is assigned to itself. (totalt 3 st)
- Script URL is a form of eval. (totalt 3 st)
- Comparing to itself is potentially pointless. (totalt 2 st)
- Unnecessary X. (totalt 2 st)
- Unnecessary escape character: \< . (totalt 1 st)
- Unnecessary escape character: \>. (totalt 1 st)
- `content-type=".*javascript.*"` in: #102: v1, antal grupperade fel: 15 ( 2.00 betyg )
- `content-type=".*javascript.*"` in: #102: v1, antal fel: 2698 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1883 st)
- Expected X and instead saw X. (totalt 656 st)
- Do not access Object.prototype method X from target object. (totalt 104 st)
- Unnecessary escape character: \/. (totalt 10 st)
- Comparing to itself is potentially pointless. (totalt 10 st)
- X is not modified in this loop. (totalt 8 st)
- Unsafe usage of ThrowStatement. (totalt 7 st)
- Unnecessary escape character: \[. (totalt 5 st)
- Unnecessary escape character: \-. (totalt 4 st)
- X is assigned to itself. (totalt 3 st)
- Script URL is a form of eval. (totalt 3 st)
- Unnecessary X. (totalt 2 st)
- Unnecessary escape character: \< . (totalt 1 st)
- Unnecessary escape character: \>. (totalt 1 st)
- eval can be harmful. (totalt 1 st)
- `content-type=".*javascript.*"` in: #104: v1, antal grupperade fel: 15 ( 2.00 betyg )
- `content-type=".*javascript.*"` in: #104: v1, antal fel: 2868 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 2003 st)
- Expected X and instead saw X. (totalt 698 st)
- Do not access Object.prototype method X from target object. (totalt 104 st)
- Comparing to itself is potentially pointless. (totalt 17 st)
- Unnecessary escape character: \/. (totalt 10 st)
- X is not modified in this loop. (totalt 8 st)
- Unsafe usage of ThrowStatement. (totalt 7 st)
- Unnecessary escape character: \[. (totalt 5 st)
- Unnecessary escape character: \-. (totalt 4 st)
- X is assigned to itself. (totalt 3 st)
- Script URL is a form of eval. (totalt 3 st)
- Unnecessary X. (totalt 2 st)
- eval can be harmful. (totalt 2 st)
- Unnecessary escape character: \< . (totalt 1 st)
- Unnecessary escape character: \>. (totalt 1 st)
- `content-type=".*javascript.*"` in: #105: common.js, antal grupperade fel: 18 ( 1.40 betyg )
- `content-type=".*javascript.*"` in: #105: common.js, antal fel: 3300 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 2341 st)
- Expected X and instead saw X. (totalt 781 st)
- Do not access Object.prototype method X from target object. (totalt 106 st)
- Comparing to itself is potentially pointless. (totalt 17 st)
- Unnecessary escape character: \/. (totalt 11 st)
- X is not modified in this loop. (totalt 8 st)
- Unsafe usage of ThrowStatement. (totalt 7 st)
- Unnecessary escape character: \[. (totalt 5 st)
- Unnecessary escape character: \-. (totalt 4 st)
- Unnecessary escape character: \?. (totalt 4 st)
- X is assigned to itself. (totalt 3 st)
- Script URL is a form of eval. (totalt 3 st)
- Unnecessary X. (totalt 3 st)
- eval can be harmful. (totalt 2 st)
- Unexpected string concatenation of literals. (totalt 2 st)
- Unnecessary escape character: \< . (totalt 1 st)
- Unnecessary escape character: \>. (totalt 1 st)
- Async method X has no X expression. (totalt 1 st)
- `content-type=".*javascript.*"` in: #106: util.js, antal grupperade fel: 21 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #106: util.js, antal fel: 4721 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 3026 st)
- Expected X and instead saw X. (totalt 1494 st)
- Do not access Object.prototype method X from target object. (totalt 115 st)
- Comparing to itself is potentially pointless. (totalt 17 st)
- Unnecessary escape character: \/. (totalt 11 st)
- X is not modified in this loop. (totalt 10 st)
- X is assigned to itself. (totalt 9 st)
- Unsafe usage of ThrowStatement. (totalt 7 st)
- Unnecessary X. (totalt 5 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 3 st)
- eval can be harmful. (totalt 2 st)
- Unexpected string concatenation of literals. (totalt 2 st)
- Unnecessary escape character: \$. (totalt 2 st)
- Unnecessary escape character: \< . (totalt 1 st)
- Unnecessary escape character: \>. (totalt 1 st)
- Async method X has no X expression. (totalt 1 st)
- The Function constructor is eval. (totalt 1 st)
- Unnecessary escape character: \(. (totalt 1 st)
- `content-type=".*javascript.*"` in: #107: map.js, antal grupperade fel: 22 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #107: map.js, antal fel: 5043 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 3284 st)
- Expected X and instead saw X. (totalt 1546 st)
- Do not access Object.prototype method X from target object. (totalt 118 st)
- Comparing to itself is potentially pointless. (totalt 17 st)
- Unnecessary escape character: \/. (totalt 12 st)
- X is not modified in this loop. (totalt 10 st)
- X is assigned to itself. (totalt 10 st)
- Unnecessary X. (totalt 8 st)
- Unsafe usage of ThrowStatement. (totalt 7 st)
- Unnecessary escape character: \[. (totalt 5 st)
- Unnecessary escape character: \-. (totalt 5 st)
- Unnecessary escape character: \?. (totalt 4 st)
- Script URL is a form of eval. (totalt 3 st)
- eval can be harmful. (totalt 3 st)
- Unexpected string concatenation of literals. (totalt 2 st)
- Unnecessary escape character: \$. (totalt 2 st)
- Async function has no X expression. (totalt 2 st)
- Unnecessary escape character: \< . (totalt 1 st)
- Unnecessary escape character: \>. (totalt 1 st)
- Async method X has no X expression. (totalt 1 st)
- The Function constructor is eval. (totalt 1 st)
- Unnecessary escape character: \(. (totalt 1 st)
- `content-type=".*javascript.*"` in: #108: marker.js, antal grupperade fel: 22 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #108: marker.js, antal fel: 5361 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 3556 st)
- Expected X and instead saw X. (totalt 1587 st)
- Do not access Object.prototype method X from target object. (totalt 118 st)
- Comparing to itself is potentially pointless. (totalt 17 st)
- X is assigned to itself. (totalt 15 st)
- Unnecessary escape character: \/. (totalt 12 st)
- X is not modified in this loop. (totalt 10 st)
- Unnecessary X. (totalt 8 st)
- Unsafe usage of ThrowStatement. (totalt 7 st)
- Unnecessary escape character: \[. (totalt 5 st)
- Unnecessary escape character: \-. (totalt 5 st)
- Unnecessary escape character: \?. (totalt 4 st)
- Script URL is a form of eval. (totalt 3 st)
- eval can be harmful. (totalt 3 st)
- Unexpected string concatenation of literals. (totalt 2 st)
- Unnecessary escape character: \$. (totalt 2 st)
- Async function has no X expression. (totalt 2 st)
- Unnecessary escape character: \< . (totalt 1 st)
- Unnecessary escape character: \>. (totalt 1 st)
- Async method X has no X expression. (totalt 1 st)
- The Function constructor is eval. (totalt 1 st)
- Unnecessary escape character: \(. (totalt 1 st)
- `content-type=".*javascript.*"` in: #112: infowindow.js, antal grupperade fel: 22 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #112: infowindow.js, antal fel: 5400 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 3591 st)
- Expected X and instead saw X. (totalt 1591 st)
- Do not access Object.prototype method X from target object. (totalt 118 st)
- Comparing to itself is potentially pointless. (totalt 17 st)
- X is assigned to itself. (totalt 15 st)
- Unnecessary escape character: \/. (totalt 12 st)
- X is not modified in this loop. (totalt 10 st)
- Unnecessary X. (totalt 8 st)
- Unsafe usage of ThrowStatement. (totalt 7 st)
- Unnecessary escape character: \[. (totalt 5 st)
- Unnecessary escape character: \-. (totalt 5 st)
- Unnecessary escape character: \?. (totalt 4 st)
- Script URL is a form of eval. (totalt 3 st)
- eval can be harmful. (totalt 3 st)
- Unexpected string concatenation of literals. (totalt 2 st)
- Unnecessary escape character: \$. (totalt 2 st)
- Async function has no X expression. (totalt 2 st)
- Unnecessary escape character: \< . (totalt 1 st)
- Unnecessary escape character: \>. (totalt 1 st)
- Async method X has no X expression. (totalt 1 st)
- The Function constructor is eval. (totalt 1 st)
- Unnecessary escape character: \(. (totalt 1 st)