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.17 av 5
- JS är ok.
Webbstandard
- `< script>` in: #1: Webbsida , antal grupperade fel: 2 ( 4.60 betyg )
- `< script>` in: #1: Webbsida , antal fel: 10 ( 3.00 betyg )
- X is not defined. (totalt 7 st)
- X is defined but never used. (totalt 3 st)
- `< script src="...">` in: #1: Webbsida , antal grupperade fel: 4 ( 4.20 betyg )
- `< script src="...">` in: #1: Webbsida , antal fel: 584 ( 1.00 betyg )
- X is not defined. (totalt 377 st)
- X is defined but never used. (totalt 120 st)
- X is assigned a value but never used. (totalt 47 st)
- Unexpected console statement. (totalt 40 st)
- `< script>` in: #47: cookiesharingif, antal grupperade fel: 3 ( 4.40 betyg )
- `< script>` in: #47: cookiesharingif, antal fel: 8 ( 3.40 betyg )
- X is defined but never used. (totalt 3 st)
- Unexpected console statement. (totalt 3 st)
- X is not defined. (totalt 2 st)
- `< script>` in: #49: donation, antal grupperade fel: 3 ( 4.40 betyg )
- `< script>` in: #49: donation, antal fel: 3 ( 4.40 betyg )
- X is assigned a value but never used. (totalt 1 st)
- X is not defined. (totalt 1 st)
- X is defined but never used. (totalt 1 st)
- `< script src="...">` in: #49: donation, antal grupperade fel: 3 ( 4.40 betyg )
- `< script src="...">` in: #49: donation, antal fel: 30 ( 1.00 betyg )
- X is defined but never used. (totalt 24 st)
- X is not defined. (totalt 4 st)
- Unexpected console statement. (totalt 2 st)
- `< script>` in: #50: 14, antal grupperade fel: 3 ( 4.40 betyg )
- `< script>` in: #50: 14, antal fel: 3 ( 4.40 betyg )
- X is assigned a value but never used. (totalt 1 st)
- X is not defined. (totalt 1 st)
- X is defined but never used. (totalt 1 st)
- `< script src="...">` in: #50: 14, antal grupperade fel: 3 ( 4.40 betyg )
- `< script src="...">` in: #50: 14, antal fel: 30 ( 1.00 betyg )
- X is defined but never used. (totalt 24 st)
- X is not defined. (totalt 4 st)
- Unexpected console statement. (totalt 2 st)
- `< script>` in: #110: inner.html, antal grupperade fel: 1 ( 4.80 betyg )
- `< script>` in: #110: inner.html, antal fel: 1 ( 4.80 betyg )
- X is defined but never used. (totalt 1 st)
- `< script>` in: #111: inner.html, antal grupperade fel: 1 ( 4.80 betyg )
- `< script>` in: #111: inner.html, antal fel: 1 ( 4.80 betyg )
- X is defined but never used. (totalt 1 st)
- `content-type=".*javascript.*"` in: #48: gtm.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #48: gtm.js, antal fel: 491 ( 1.00 betyg )
- X is defined but never used. (totalt 394 st)
- X is assigned a value but never used. (totalt 81 st)
- X is not defined. (totalt 15 st)
- Unexpected console statement. (totalt 1 st)
- `content-type=".*javascript.*"` in: #80: bootstrap.min.j, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #80: bootstrap.min.j, antal fel: 494 ( 1.00 betyg )
- X is defined but never used. (totalt 395 st)
- X is assigned a value but never used. (totalt 81 st)
- X is not defined. (totalt 17 st)
- Unexpected console statement. (totalt 1 st)
- `content-type=".*javascript.*"` in: #81: manager.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #81: manager.js, antal fel: 914 ( 1.00 betyg )
- X is defined but never used. (totalt 789 st)
- X is assigned a value but never used. (totalt 81 st)
- X is not defined. (totalt 29 st)
- Unexpected console statement. (totalt 15 st)
- `content-type=".*javascript.*"` in: #82: iframe.min.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #82: iframe.min.js, antal fel: 917 ( 1.00 betyg )
- X is defined but never used. (totalt 790 st)
- X is assigned a value but never used. (totalt 81 st)
- X is not defined. (totalt 29 st)
- Unexpected console statement. (totalt 17 st)
- `content-type=".*javascript.*"` in: #83: v3, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #83: v3, antal fel: 993 ( 1.00 betyg )
- X is defined but never used. (totalt 843 st)
- X is assigned a value but never used. (totalt 91 st)
- X is not defined. (totalt 32 st)
- Unexpected console statement. (totalt 27 st)
- `content-type=".*javascript.*"` in: #85: v3, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #85: v3, antal fel: 1069 ( 1.00 betyg )
- X is defined but never used. (totalt 896 st)
- X is assigned a value but never used. (totalt 101 st)
- Unexpected console statement. (totalt 37 st)
- X is not defined. (totalt 35 st)
- `content-type=".*javascript.*"` in: #103: sv.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #103: sv.js, antal fel: 1070 ( 1.00 betyg )
- X is defined but never used. (totalt 896 st)
- X is assigned a value but never used. (totalt 101 st)
- Unexpected console statement. (totalt 37 st)
- X is not defined. (totalt 36 st)
- `content-type=".*javascript.*"` in: #112: out-4.5.44.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #112: out-4.5.44.js, antal fel: 1204 ( 1.00 betyg )
- X is defined but never used. (totalt 1005 st)
- X is assigned a value but never used. (totalt 102 st)
- X is not defined. (totalt 60 st)
- Unexpected console statement. (totalt 37 st)
- `content-type=".*javascript.*"` in: #113: out-4.5.44.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #113: out-4.5.44.js, antal fel: 1338 ( 1.00 betyg )
- X is defined but never used. (totalt 1114 st)
- X is assigned a value but never used. (totalt 103 st)
- X is not defined. (totalt 84 st)
- Unexpected console statement. (totalt 37 st)
Integritet & säkerhet
- `< script>` in: #1: Webbsida , antal grupperade fel: 1 ( 4.80 betyg )
- `< script>` in: #1: Webbsida , antal fel: 9 ( 3.20 betyg )
- Expected X and instead saw X. (totalt 9 st)
- `< script src="...">` in: #1: Webbsida , antal grupperade fel: 28 ( 1.00 betyg )
- `< script src="...">` in: #1: Webbsida , antal fel: 2456 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1582 st)
- Expected X and instead saw X. (totalt 530 st)
- Unnecessary escape character: \/. (totalt 114 st)
- Do not access Object.prototype method X from target object. (totalt 39 st)
- Unnecessary escape character: \$. (totalt 28 st)
- Unnecessary escape character: \-. (totalt 24 st)
- Unnecessary escape character: \*. (totalt 21 st)
- Unnecessary escape character: \+. (totalt 20 st)
- Comparing to itself is potentially pointless. (totalt 17 st)
- Unnecessary escape character: \(. (totalt 17 st)
- Unnecessary escape character: \). (totalt 16 st)
- Unnecessary escape character: \:. (totalt 8 st)
- Unnecessary escape character: \?. (totalt 6 st)
- Unnecessary escape character: \^. (totalt 5 st)
- Unnecessary X. (totalt 4 st)
- Unnecessary escape character: \|. (totalt 4 st)
- Unnecessary escape character: \[. (totalt 3 st)
- The Function constructor is eval. (totalt 3 st)
- X is not modified in this loop. (totalt 2 st)
- Unsafe usage of ThrowStatement. (totalt 2 st)
- Unnecessary escape character: \.. (totalt 2 st)
- Unnecessary escape character: \#. (totalt 2 st)
- Unsafe usage of ReturnStatement. (totalt 2 st)
- Script URL is a form of eval. (totalt 1 st)
- X is assigned to itself. (totalt 1 st)
- Unnecessary escape character: \_. (totalt 1 st)
- Unnecessary escape character: \,. (totalt 1 st)
- Unnecessary escape character: \&. (totalt 1 st)
- `< script>` in: #47: cookiesharingif, antal grupperade fel: 2 ( 4.60 betyg )
- `< script>` in: #47: cookiesharingif, antal fel: 80 ( 1.00 betyg )
- Expected X and instead saw X. (totalt 47 st)
- Expected an assignment or function call and instead saw an expression. (totalt 33 st)
- `< script>` in: #49: donation, antal grupperade fel: 3 ( 4.40 betyg )
- `< script>` in: #49: donation, antal fel: 3 ( 4.40 betyg )
- Expected X and instead saw X. (totalt 1 st)
- Expected an assignment or function call and instead saw an expression. (totalt 1 st)
- Unnecessary escape character: \/. (totalt 1 st)
- `< script src="...">` in: #49: donation, antal grupperade fel: 15 ( 2.00 betyg )
- `< script src="...">` in: #49: donation, antal fel: 578 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 344 st)
- Expected X and instead saw X. (totalt 208 st)
- Do not access Object.prototype method X from target object. (totalt 5 st)
- Unnecessary escape character: \/. (totalt 3 st)
- X is not modified in this loop. (totalt 3 st)
- Unsafe usage of ThrowStatement. (totalt 3 st)
- Unnecessary escape character: \.. (totalt 2 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)
- Unnecessary escape character: \{. (totalt 1 st)
- Unnecessary escape character: \}. (totalt 1 st)
- Unnecessary escape character: \[. (totalt 1 st)
- X is assigned to itself. (totalt 1 st)
- `< script>` in: #50: 14, antal grupperade fel: 3 ( 4.40 betyg )
- `< script>` in: #50: 14, antal fel: 3 ( 4.40 betyg )
- Expected X and instead saw X. (totalt 1 st)
- Expected an assignment or function call and instead saw an expression. (totalt 1 st)
- Unnecessary escape character: \/. (totalt 1 st)
- `< script src="...">` in: #50: 14, antal grupperade fel: 15 ( 2.00 betyg )
- `< script src="...">` in: #50: 14, antal fel: 578 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 344 st)
- Expected X and instead saw X. (totalt 208 st)
- Do not access Object.prototype method X from target object. (totalt 5 st)
- Unnecessary escape character: \/. (totalt 3 st)
- X is not modified in this loop. (totalt 3 st)
- Unsafe usage of ThrowStatement. (totalt 3 st)
- Unnecessary escape character: \.. (totalt 2 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)
- Unnecessary escape character: \{. (totalt 1 st)
- Unnecessary escape character: \}. (totalt 1 st)
- Unnecessary escape character: \[. (totalt 1 st)
- X is assigned to itself. (totalt 1 st)
- `< script src="...">` in: #106: m-outer-3437aad, antal grupperade fel: 1 ( 4.80 betyg )
- `< script src="...">` in: #106: m-outer-3437aad, antal fel: 2 ( 4.60 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 2 st)
- `< script src="...">` in: #107: m-outer-3437aad, antal grupperade fel: 1 ( 4.80 betyg )
- `< script src="...">` in: #107: m-outer-3437aad, antal fel: 2 ( 4.60 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 2 st)
- `< script>` in: #110: inner.html, antal grupperade fel: 1 ( 4.80 betyg )
- `< script>` in: #110: inner.html, antal fel: 3 ( 4.40 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 3 st)
- `< script>` in: #111: inner.html, antal grupperade fel: 1 ( 4.80 betyg )
- `< script>` in: #111: inner.html, antal fel: 3 ( 4.40 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 3 st)
- `content-type=".*javascript.*"` in: #48: gtm.js, antal grupperade fel: 10 ( 3.00 betyg )
- `content-type=".*javascript.*"` in: #48: gtm.js, antal fel: 1358 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 948 st)
- Expected X and instead saw X. (totalt 240 st)
- Do not access Object.prototype method X from target object. (totalt 113 st)
- Unnecessary escape character: \/. (totalt 42 st)
- X is not modified in this loop. (totalt 8 st)
- X is assigned to itself. (totalt 3 st)
- eval can be harmful. (totalt 1 st)
- Comparing to itself is potentially pointless. (totalt 1 st)
- Unnecessary X. (totalt 1 st)
- Script URL is a form of eval. (totalt 1 st)
- `content-type=".*javascript.*"` in: #80: bootstrap.min.j, antal grupperade fel: 10 ( 3.00 betyg )
- `content-type=".*javascript.*"` in: #80: bootstrap.min.j, antal fel: 1583 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1114 st)
- Expected X and instead saw X. (totalt 297 st)
- Do not access Object.prototype method X from target object. (totalt 115 st)
- Unnecessary escape character: \/. (totalt 42 st)
- X is not modified in this loop. (totalt 8 st)
- X is assigned to itself. (totalt 3 st)
- eval can be harmful. (totalt 1 st)
- Comparing to itself is potentially pointless. (totalt 1 st)
- Unnecessary X. (totalt 1 st)
- Script URL is a form of eval. (totalt 1 st)
- `content-type=".*javascript.*"` in: #81: manager.js, antal grupperade fel: 16 ( 1.80 betyg )
- `content-type=".*javascript.*"` in: #81: manager.js, antal fel: 2883 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 2143 st)
- Expected X and instead saw X. (totalt 537 st)
- Do not access Object.prototype method X from target object. (totalt 118 st)
- Unnecessary escape character: \/. (totalt 46 st)
- X is not modified in this loop. (totalt 8 st)
- Unnecessary X. (totalt 7 st)
- The Function constructor is eval. (totalt 6 st)
- Comparing to itself is potentially pointless. (totalt 4 st)
- X is assigned to itself. (totalt 3 st)
- eval can be harmful. (totalt 2 st)
- Script URL is a form of eval. (totalt 2 st)
- Unnecessary escape character: \-. (totalt 2 st)
- Unnecessary escape character: \}. (totalt 2 st)
- Unsafe usage of ThrowStatement. (totalt 1 st)
- Unnecessary escape character: \+. (totalt 1 st)
- Unnecessary escape character: \.. (totalt 1 st)
- `content-type=".*javascript.*"` in: #82: iframe.min.js, antal grupperade fel: 16 ( 1.80 betyg )
- `content-type=".*javascript.*"` in: #82: iframe.min.js, antal fel: 2943 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 2197 st)
- Expected X and instead saw X. (totalt 543 st)
- Do not access Object.prototype method X from target object. (totalt 118 st)
- Unnecessary escape character: \/. (totalt 46 st)
- X is not modified in this loop. (totalt 8 st)
- Unnecessary X. (totalt 7 st)
- The Function constructor is eval. (totalt 6 st)
- Comparing to itself is potentially pointless. (totalt 4 st)
- X is assigned to itself. (totalt 3 st)
- eval can be harmful. (totalt 2 st)
- Script URL is a form of eval. (totalt 2 st)
- Unnecessary escape character: \-. (totalt 2 st)
- Unnecessary escape character: \}. (totalt 2 st)
- Unsafe usage of ThrowStatement. (totalt 1 st)
- Unnecessary escape character: \+. (totalt 1 st)
- Unnecessary escape character: \.. (totalt 1 st)
- `content-type=".*javascript.*"` in: #83: v3, antal grupperade fel: 16 ( 1.80 betyg )
- `content-type=".*javascript.*"` in: #83: v3, antal fel: 4468 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 3070 st)
- Expected X and instead saw X. (totalt 1145 st)
- Do not access Object.prototype method X from target object. (totalt 160 st)
- Unnecessary escape character: \/. (totalt 46 st)
- X is not modified in this loop. (totalt 9 st)
- Unnecessary X. (totalt 8 st)
- The Function constructor is eval. (totalt 8 st)
- Comparing to itself is potentially pointless. (totalt 6 st)
- X is assigned to itself. (totalt 3 st)
- Unsafe usage of ThrowStatement. (totalt 3 st)
- eval can be harmful. (totalt 2 st)
- Script URL is a form of eval. (totalt 2 st)
- Unnecessary escape character: \-. (totalt 2 st)
- Unnecessary escape character: \}. (totalt 2 st)
- Unnecessary escape character: \+. (totalt 1 st)
- Unnecessary escape character: \.. (totalt 1 st)
- `content-type=".*javascript.*"` in: #85: v3, antal grupperade fel: 16 ( 1.80 betyg )
- `content-type=".*javascript.*"` in: #85: v3, antal fel: 5993 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 3943 st)
- Expected X and instead saw X. (totalt 1747 st)
- Do not access Object.prototype method X from target object. (totalt 202 st)
- Unnecessary escape character: \/. (totalt 46 st)
- X is not modified in this loop. (totalt 10 st)
- The Function constructor is eval. (totalt 10 st)
- Unnecessary X. (totalt 9 st)
- Comparing to itself is potentially pointless. (totalt 8 st)
- Unsafe usage of ThrowStatement. (totalt 5 st)
- X is assigned to itself. (totalt 3 st)
- eval can be harmful. (totalt 2 st)
- Script URL is a form of eval. (totalt 2 st)
- Unnecessary escape character: \-. (totalt 2 st)
- Unnecessary escape character: \}. (totalt 2 st)
- Unnecessary escape character: \+. (totalt 1 st)
- Unnecessary escape character: \.. (totalt 1 st)
- `content-type=".*javascript.*"` in: #103: sv.js, antal grupperade fel: 16 ( 1.80 betyg )
- `content-type=".*javascript.*"` in: #103: sv.js, antal fel: 5993 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 3943 st)
- Expected X and instead saw X. (totalt 1747 st)
- Do not access Object.prototype method X from target object. (totalt 202 st)
- Unnecessary escape character: \/. (totalt 46 st)
- X is not modified in this loop. (totalt 10 st)
- The Function constructor is eval. (totalt 10 st)
- Unnecessary X. (totalt 9 st)
- Comparing to itself is potentially pointless. (totalt 8 st)
- Unsafe usage of ThrowStatement. (totalt 5 st)
- X is assigned to itself. (totalt 3 st)
- eval can be harmful. (totalt 2 st)
- Script URL is a form of eval. (totalt 2 st)
- Unnecessary escape character: \-. (totalt 2 st)
- Unnecessary escape character: \}. (totalt 2 st)
- Unnecessary escape character: \+. (totalt 1 st)
- Unnecessary escape character: \.. (totalt 1 st)
- `content-type=".*javascript.*"` in: #112: out-4.5.44.js, antal grupperade fel: 16 ( 1.80 betyg )
- `content-type=".*javascript.*"` in: #112: out-4.5.44.js, antal fel: 6417 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 4196 st)
- Expected X and instead saw X. (totalt 1912 st)
- Do not access Object.prototype method X from target object. (totalt 202 st)
- Unnecessary escape character: \/. (totalt 46 st)
- The Function constructor is eval. (totalt 12 st)
- X is not modified in this loop. (totalt 11 st)
- Unnecessary X. (totalt 11 st)
- Comparing to itself is potentially pointless. (totalt 8 st)
- Unsafe usage of ThrowStatement. (totalt 6 st)
- X is assigned to itself. (totalt 3 st)
- eval can be harmful. (totalt 2 st)
- Script URL is a form of eval. (totalt 2 st)
- Unnecessary escape character: \-. (totalt 2 st)
- Unnecessary escape character: \}. (totalt 2 st)
- Unnecessary escape character: \+. (totalt 1 st)
- Unnecessary escape character: \.. (totalt 1 st)
- `content-type=".*javascript.*"` in: #113: out-4.5.44.js, antal grupperade fel: 16 ( 1.80 betyg )
- `content-type=".*javascript.*"` in: #113: out-4.5.44.js, antal fel: 6841 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 4449 st)
- Expected X and instead saw X. (totalt 2077 st)
- Do not access Object.prototype method X from target object. (totalt 202 st)
- Unnecessary escape character: \/. (totalt 46 st)
- The Function constructor is eval. (totalt 14 st)
- Unnecessary X. (totalt 13 st)
- X is not modified in this loop. (totalt 12 st)
- Comparing to itself is potentially pointless. (totalt 8 st)
- Unsafe usage of ThrowStatement. (totalt 7 st)
- X is assigned to itself. (totalt 3 st)
- eval can be harmful. (totalt 2 st)
- Script URL is a form of eval. (totalt 2 st)
- Unnecessary escape character: \-. (totalt 2 st)
- Unnecessary escape character: \}. (totalt 2 st)
- Unnecessary escape character: \+. (totalt 1 st)
- Unnecessary escape character: \.. (totalt 1 st)