Javascript
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.66 av 5
- JS är dålig.Webbstandard
- `< script>` in: #1: Webbsida , antal grupperade fel: 3 ( 4.40 betyg )
- `< script>` in: #1: Webbsida , antal fel: 20 ( 1.00 betyg )
- X is not defined. (totalt 13 st)
- X is assigned a value but never used. (totalt 4 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: 738 ( 1.00 betyg )
- X is defined but never used. (totalt 475 st)
- X is not defined. (totalt 115 st)
- X is assigned a value but never used. (totalt 112 st)
- Unexpected console statement. (totalt 36 st)
- `< script>` in: #33: embed, antal grupperade fel: 2 ( 4.60 betyg )
- `< script>` in: #33: embed, antal fel: 3 ( 4.40 betyg )
- X is defined but never used. (totalt 2 st)
- X is not defined. (totalt 1 st)
- `< script src="...">` in: #33: embed, antal grupperade fel: 2 ( 4.60 betyg )
- `< script src="...">` in: #33: embed, antal fel: 7 ( 3.60 betyg )
- X is not defined. (totalt 6 st)
- X is defined but never used. (totalt 1 st)
- `< script>` in: #45: bc-v4.min.html, antal grupperade fel: 1 ( 4.80 betyg )
- `< script>` in: #45: bc-v4.min.html, antal fel: 1 ( 4.80 betyg )
- X is defined but never used. (totalt 1 st)
- `content-type=".*javascript.*"` in: #31: cc.js, antal grupperade fel: 1 ( 4.80 betyg )
- `content-type=".*javascript.*"` in: #31: cc.js, antal fel: 3 ( 4.40 betyg )
- Unexpected console statement. (totalt 3 st)
- `content-type=".*javascript.*"` in: #46: init-embed.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #46: init-embed.js, antal fel: 116 ( 1.00 betyg )
- X is not defined. (totalt 78 st)
- X is defined but never used. (totalt 27 st)
- Unexpected console statement. (totalt 8 st)
- X is assigned a value but never used. (totalt 3 st)
- `content-type=".*javascript.*"` in: #48: geometry.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #48: geometry.js, antal fel: 117 ( 1.00 betyg )
- X is not defined. (totalt 79 st)
- X is defined but never used. (totalt 27 st)
- Unexpected console statement. (totalt 8 st)
- X is assigned a value but never used. (totalt 3 st)
- `content-type=".*javascript.*"` in: #49: search.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #49: search.js, antal fel: 120 ( 1.00 betyg )
- X is not defined. (totalt 81 st)
- X is defined but never used. (totalt 28 st)
- Unexpected console statement. (totalt 8 st)
- X is assigned a value but never used. (totalt 3 st)
- `content-type=".*javascript.*"` in: #50: main.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #50: main.js, antal fel: 186 ( 1.00 betyg )
- X is not defined. (totalt 83 st)
- X is defined but never used. (totalt 66 st)
- Unexpected console statement. (totalt 32 st)
- X is assigned a value but never used. (totalt 5 st)
- `content-type=".*javascript.*"` in: #52: common.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #52: common.js, antal fel: 198 ( 1.00 betyg )
- X is not defined. (totalt 84 st)
- X is defined but never used. (totalt 77 st)
- Unexpected console statement. (totalt 32 st)
- X is assigned a value but never used. (totalt 5 st)
- `content-type=".*javascript.*"` in: #53: util.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #53: util.js, antal fel: 217 ( 1.00 betyg )
- X is defined but never used. (totalt 92 st)
- X is not defined. (totalt 85 st)
- Unexpected console statement. (totalt 33 st)
- X is assigned a value but never used. (totalt 7 st)
- `content-type=".*javascript.*"` in: #54: map.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #54: map.js, antal fel: 230 ( 1.00 betyg )
- X is defined but never used. (totalt 99 st)
- X is not defined. (totalt 86 st)
- Unexpected console statement. (totalt 37 st)
- X is assigned a value but never used. (totalt 8 st)
- `content-type=".*javascript.*"` in: #55: overlay.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #55: overlay.js, antal fel: 231 ( 1.00 betyg )
- X is defined but never used. (totalt 99 st)
- X is not defined. (totalt 87 st)
- Unexpected console statement. (totalt 37 st)
- X is assigned a value but never used. (totalt 8 st)
- `content-type=".*javascript.*"` in: #56: onion.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #56: onion.js, antal fel: 232 ( 1.00 betyg )
- X is defined but never used. (totalt 99 st)
- X is not defined. (totalt 88 st)
- Unexpected console statement. (totalt 37 st)
- X is assigned a value but never used. (totalt 8 st)
- `content-type=".*javascript.*"` in: #57: search-impl.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #57: search-impl.js, antal fel: 233 ( 1.00 betyg )
- X is defined but never used. (totalt 99 st)
- X is not defined. (totalt 89 st)
- Unexpected console statement. (totalt 37 st)
- X is assigned a value but never used. (totalt 8 st)
Integritet & säkerhet
- `< script>` in: #1: Webbsida , antal grupperade fel: 3 ( 4.40 betyg )
- `< script>` in: #1: Webbsida , antal fel: 67 ( 1.00 betyg )
- Unnecessary escape character: \/. (totalt 50 st)
- Expected X and instead saw X. (totalt 9 st)
- Expected an assignment or function call and instead saw an expression. (totalt 8 st)
- `< script src="...">` in: #1: Webbsida , antal grupperade fel: 34 ( 1.00 betyg )
- `< script src="...">` in: #1: Webbsida , antal fel: 3654 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 2337 st)
- Expected X and instead saw X. (totalt 1085 st)
- Do not access Object.prototype method X from target object. (totalt 96 st)
- Unnecessary escape character: \-. (totalt 38 st)
- Unnecessary escape character: \/. (totalt 12 st)
- Unnecessary escape character: \[. (totalt 11 st)
- X is not modified in this loop. (totalt 7 st)
- Comparing to itself is potentially pointless. (totalt 6 st)
- Unnecessary escape character: \.. (totalt 6 st)
- X is assigned to itself. (totalt 4 st)
- Unnecessary escape character: \). (totalt 4 st)
- Unnecessary escape character: \(. (totalt 4 st)
- The Function constructor is eval. (totalt 3 st)
- Unnecessary X. (totalt 3 st)
- Unnecessary escape character: \+. (totalt 3 st)
- Unnecessary escape character: \< . (totalt 3 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)
- Unexpected string concatenation of literals. (totalt 2 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)
- Unnecessary escape character: \". (totalt 2 st)
- Unnecessary escape character: \`. (totalt 2 st)
- Unnecessary escape character: \:. (totalt 2 st)
- Script URL is a form of eval. (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)
- Unnecessary escape character: \|. (totalt 1 st)
- `< script src="...">` in: #33: embed, antal grupperade fel: 1 ( 4.80 betyg )
- `< script src="...">` in: #33: embed, antal fel: 1 ( 4.80 betyg )
- Expected X and instead saw X. (totalt 1 st)
- `< script>` in: #45: bc-v4.min.html, antal grupperade fel: 2 ( 4.60 betyg )
- `< script>` in: #45: 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: #46: init-embed.js, antal grupperade fel: 12 ( 2.60 betyg )
- `content-type=".*javascript.*"` in: #46: init-embed.js, antal fel: 1646 ( 1.00 betyg )
- Expected X and instead saw X. (totalt 863 st)
- Expected an assignment or function call and instead saw an expression. (totalt 733 st)
- X is assigned to itself. (totalt 22 st)
- Do not access Object.prototype method X from target object. (totalt 9 st)
- Unnecessary X. (totalt 4 st)
- Unnecessary escape character: \?. (totalt 4 st)
- Comparing to itself is potentially pointless. (totalt 3 st)
- X is not modified in this loop. (totalt 3 st)
- Unnecessary escape character: \$. (totalt 2 st)
- Unnecessary escape character: \(. (totalt 1 st)
- Unnecessary escape character: \/. (totalt 1 st)
- The Function constructor is eval. (totalt 1 st)
- `content-type=".*javascript.*"` in: #48: geometry.js, antal grupperade fel: 12 ( 2.60 betyg )
- `content-type=".*javascript.*"` in: #48: geometry.js, antal fel: 1652 ( 1.00 betyg )
- Expected X and instead saw X. (totalt 863 st)
- Expected an assignment or function call and instead saw an expression. (totalt 739 st)
- X is assigned to itself. (totalt 22 st)
- Do not access Object.prototype method X from target object. (totalt 9 st)
- Unnecessary X. (totalt 4 st)
- Unnecessary escape character: \?. (totalt 4 st)
- Comparing to itself is potentially pointless. (totalt 3 st)
- X is not modified in this loop. (totalt 3 st)
- Unnecessary escape character: \$. (totalt 2 st)
- Unnecessary escape character: \(. (totalt 1 st)
- Unnecessary escape character: \/. (totalt 1 st)
- The Function constructor is eval. (totalt 1 st)
- `content-type=".*javascript.*"` in: #49: search.js, antal grupperade fel: 12 ( 2.60 betyg )
- `content-type=".*javascript.*"` in: #49: search.js, antal fel: 1661 ( 1.00 betyg )
- Expected X and instead saw X. (totalt 863 st)
- Expected an assignment or function call and instead saw an expression. (totalt 747 st)
- X is assigned to itself. (totalt 23 st)
- Do not access Object.prototype method X from target object. (totalt 9 st)
- Unnecessary X. (totalt 4 st)
- Unnecessary escape character: \?. (totalt 4 st)
- Comparing to itself is potentially pointless. (totalt 3 st)
- X is not modified in this loop. (totalt 3 st)
- Unnecessary escape character: \$. (totalt 2 st)
- Unnecessary escape character: \(. (totalt 1 st)
- Unnecessary escape character: \/. (totalt 1 st)
- The Function constructor is eval. (totalt 1 st)
- `content-type=".*javascript.*"` in: #50: main.js, antal grupperade fel: 18 ( 1.40 betyg )
- `content-type=".*javascript.*"` in: #50: main.js, antal fel: 2772 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1388 st)
- Expected X and instead saw X. (totalt 1078 st)
- X is assigned to itself. (totalt 241 st)
- Do not access Object.prototype method X from target object. (totalt 24 st)
- Unnecessary X. (totalt 9 st)
- Unexpected string concatenation of literals. (totalt 7 st)
- Comparing to itself is potentially pointless. (totalt 4 st)
- Unnecessary escape character: \/. (totalt 4 st)
- Unnecessary escape character: \?. (totalt 4 st)
- X is not modified in this loop. (totalt 3 st)
- Unnecessary escape character: \$. (totalt 2 st)
- Unnecessary escape character: \). (totalt 2 st)
- Unnecessary escape character: \(. (totalt 1 st)
- The Function constructor is eval. (totalt 1 st)
- Async arrow function has no X expression. (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: #52: common.js, antal grupperade fel: 19 ( 1.20 betyg )
- `content-type=".*javascript.*"` in: #52: common.js, antal fel: 3209 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1730 st)
- Expected X and instead saw X. (totalt 1162 st)
- X is assigned to itself. (totalt 241 st)
- Do not access Object.prototype method X from target object. (totalt 26 st)
- Unnecessary X. (totalt 10 st)
- Unexpected string concatenation of literals. (totalt 9 st)
- Unnecessary escape character: \?. (totalt 8 st)
- Unnecessary escape character: \/. (totalt 5 st)
- Comparing to itself is potentially pointless. (totalt 4 st)
- X is not modified in this loop. (totalt 3 st)
- Unnecessary escape character: \$. (totalt 2 st)
- Unnecessary escape character: \). (totalt 2 st)
- Unnecessary escape character: \(. (totalt 1 st)
- The Function constructor is eval. (totalt 1 st)
- Async arrow function has no X expression. (totalt 1 st)
- Unnecessary escape character: \[. (totalt 1 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: #53: util.js, antal grupperade fel: 19 ( 1.20 betyg )
- `content-type=".*javascript.*"` in: #53: util.js, antal fel: 4575 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 2359 st)
- Expected X and instead saw X. (totalt 1875 st)
- X is assigned to itself. (totalt 247 st)
- Do not access Object.prototype method X from target object. (totalt 36 st)
- Unnecessary X. (totalt 12 st)
- Unexpected string concatenation of literals. (totalt 9 st)
- Unnecessary escape character: \?. (totalt 8 st)
- X is not modified in this loop. (totalt 5 st)
- Unnecessary escape character: \/. (totalt 5 st)
- Comparing to itself is potentially pointless. (totalt 4 st)
- Unnecessary escape character: \$. (totalt 4 st)
- Unnecessary escape character: \(. (totalt 2 st)
- The Function constructor is eval. (totalt 2 st)
- Unnecessary escape character: \). (totalt 2 st)
- Async arrow function has no X expression. (totalt 1 st)
- Unnecessary escape character: \[. (totalt 1 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: #54: map.js, antal grupperade fel: 22 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #54: map.js, antal fel: 4887 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 2617 st)
- Expected X and instead saw X. (totalt 1917 st)
- X is assigned to itself. (totalt 248 st)
- Do not access Object.prototype method X from target object. (totalt 39 st)
- Unnecessary X. (totalt 15 st)
- Unexpected string concatenation of literals. (totalt 9 st)
- Unnecessary escape character: \?. (totalt 8 st)
- Unnecessary escape character: \/. (totalt 6 st)
- X is not modified in this loop. (totalt 5 st)
- Comparing to itself is potentially pointless. (totalt 4 st)
- Unnecessary escape character: \$. (totalt 4 st)
- Unnecessary escape character: \(. (totalt 2 st)
- The Function constructor is eval. (totalt 2 st)
- Unnecessary escape character: \). (totalt 2 st)
- Async function has no X expression. (totalt 2 st)
- Async arrow function has no X expression. (totalt 1 st)
- Unnecessary escape character: \[. (totalt 1 st)
- Unnecessary escape character: \^. (totalt 1 st)
- Unnecessary escape character: \.. (totalt 1 st)
- Async method X has no X expression. (totalt 1 st)
- Unnecessary escape character: \-. (totalt 1 st)
- eval can be harmful. (totalt 1 st)
- `content-type=".*javascript.*"` in: #55: overlay.js, antal grupperade fel: 22 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #55: overlay.js, antal fel: 4902 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 2632 st)
- Expected X and instead saw X. (totalt 1917 st)
- X is assigned to itself. (totalt 248 st)
- Do not access Object.prototype method X from target object. (totalt 39 st)
- Unnecessary X. (totalt 15 st)
- Unexpected string concatenation of literals. (totalt 9 st)
- Unnecessary escape character: \?. (totalt 8 st)
- Unnecessary escape character: \/. (totalt 6 st)
- X is not modified in this loop. (totalt 5 st)
- Comparing to itself is potentially pointless. (totalt 4 st)
- Unnecessary escape character: \$. (totalt 4 st)
- Unnecessary escape character: \(. (totalt 2 st)
- The Function constructor is eval. (totalt 2 st)
- Unnecessary escape character: \). (totalt 2 st)
- Async function has no X expression. (totalt 2 st)
- Async arrow function has no X expression. (totalt 1 st)
- Unnecessary escape character: \[. (totalt 1 st)
- Unnecessary escape character: \^. (totalt 1 st)
- Unnecessary escape character: \.. (totalt 1 st)
- Async method X has no X expression. (totalt 1 st)
- Unnecessary escape character: \-. (totalt 1 st)
- eval can be harmful. (totalt 1 st)
- `content-type=".*javascript.*"` in: #56: onion.js, antal grupperade fel: 22 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #56: onion.js, antal fel: 5016 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 2716 st)
- Expected X and instead saw X. (totalt 1946 st)
- X is assigned to itself. (totalt 248 st)
- Do not access Object.prototype method X from target object. (totalt 39 st)
- Unnecessary X. (totalt 16 st)
- Unexpected string concatenation of literals. (totalt 9 st)
- Unnecessary escape character: \?. (totalt 8 st)
- Unnecessary escape character: \/. (totalt 6 st)
- X is not modified in this loop. (totalt 5 st)
- Comparing to itself is potentially pointless. (totalt 4 st)
- Unnecessary escape character: \$. (totalt 4 st)
- Unnecessary escape character: \(. (totalt 2 st)
- The Function constructor is eval. (totalt 2 st)
- Unnecessary escape character: \). (totalt 2 st)
- Async function has no X expression. (totalt 2 st)
- Async arrow function has no X expression. (totalt 1 st)
- Unnecessary escape character: \[. (totalt 1 st)
- Unnecessary escape character: \^. (totalt 1 st)
- Unnecessary escape character: \.. (totalt 1 st)
- Async method X has no X expression. (totalt 1 st)
- Unnecessary escape character: \-. (totalt 1 st)
- eval can be harmful. (totalt 1 st)
- `content-type=".*javascript.*"` in: #57: search-impl.js, antal grupperade fel: 22 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #57: search-impl.js, antal fel: 5035 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 2735 st)
- Expected X and instead saw X. (totalt 1946 st)
- X is assigned to itself. (totalt 248 st)
- Do not access Object.prototype method X from target object. (totalt 39 st)
- Unnecessary X. (totalt 16 st)
- Unexpected string concatenation of literals. (totalt 9 st)
- Unnecessary escape character: \?. (totalt 8 st)
- Unnecessary escape character: \/. (totalt 6 st)
- X is not modified in this loop. (totalt 5 st)
- Comparing to itself is potentially pointless. (totalt 4 st)
- Unnecessary escape character: \$. (totalt 4 st)
- Unnecessary escape character: \(. (totalt 2 st)
- The Function constructor is eval. (totalt 2 st)
- Unnecessary escape character: \). (totalt 2 st)
- Async function has no X expression. (totalt 2 st)
- Async arrow function has no X expression. (totalt 1 st)
- Unnecessary escape character: \[. (totalt 1 st)
- Unnecessary escape character: \^. (totalt 1 st)
- Unnecessary escape character: \.. (totalt 1 st)
- Async method X has no X expression. (totalt 1 st)
- Unnecessary escape character: \-. (totalt 1 st)
- eval can be harmful. (totalt 1 st)