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.55 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: 471 ( 1.00 betyg )
- X is not defined. (totalt 276 st)
- X is defined but never used. (totalt 182 st)
- X is assigned a value but never used. (totalt 8 st)
- Unexpected console statement. (totalt 5 st)
- `< script>` in: #45: embed, antal grupperade fel: 2 ( 4.60 betyg )
- `< script>` in: #45: 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: #45: embed, antal grupperade fel: 2 ( 4.60 betyg )
- `< script src="...">` in: #45: embed, antal fel: 7 ( 3.60 betyg )
- X is not defined. (totalt 6 st)
- X is defined but never used. (totalt 1 st)
- `content-type=".*javascript.*"` in: #48: init-embed.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #48: init-embed.js, antal fel: 113 ( 1.00 betyg )
- X is not defined. (totalt 78 st)
- X is defined but never used. (totalt 27 st)
- Unexpected console statement. (totalt 5 st)
- X is assigned a value but never used. (totalt 3 st)
- `content-type=".*javascript.*"` in: #50: geometry.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #50: geometry.js, antal fel: 114 ( 1.00 betyg )
- X is not defined. (totalt 79 st)
- X is defined but never used. (totalt 27 st)
- Unexpected console statement. (totalt 5 st)
- X is assigned a value but never used. (totalt 3 st)
- `content-type=".*javascript.*"` in: #51: search.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #51: search.js, antal fel: 117 ( 1.00 betyg )
- X is not defined. (totalt 81 st)
- X is defined but never used. (totalt 28 st)
- Unexpected console statement. (totalt 5 st)
- X is assigned a value but never used. (totalt 3 st)
- `content-type=".*javascript.*"` in: #52: main.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #52: main.js, antal fel: 183 ( 1.00 betyg )
- X is not defined. (totalt 83 st)
- X is defined but never used. (totalt 66 st)
- Unexpected console statement. (totalt 29 st)
- X is assigned a value but never used. (totalt 5 st)
- `content-type=".*javascript.*"` in: #54: common.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #54: common.js, antal fel: 195 ( 1.00 betyg )
- X is not defined. (totalt 84 st)
- X is defined but never used. (totalt 77 st)
- Unexpected console statement. (totalt 29 st)
- X is assigned a value but never used. (totalt 5 st)
- `content-type=".*javascript.*"` in: #55: util.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #55: util.js, antal fel: 214 ( 1.00 betyg )
- X is defined but never used. (totalt 92 st)
- X is not defined. (totalt 85 st)
- Unexpected console statement. (totalt 30 st)
- X is assigned a value but never used. (totalt 7 st)
- `content-type=".*javascript.*"` in: #56: map.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #56: map.js, antal fel: 227 ( 1.00 betyg )
- X is defined but never used. (totalt 99 st)
- X is not defined. (totalt 86 st)
- Unexpected console statement. (totalt 34 st)
- X is assigned a value but never used. (totalt 8 st)
- `content-type=".*javascript.*"` in: #57: overlay.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #57: overlay.js, antal fel: 228 ( 1.00 betyg )
- X is defined but never used. (totalt 99 st)
- X is not defined. (totalt 87 st)
- Unexpected console statement. (totalt 34 st)
- X is assigned a value but never used. (totalt 8 st)
- `content-type=".*javascript.*"` in: #59: onion.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #59: onion.js, antal fel: 229 ( 1.00 betyg )
- X is defined but never used. (totalt 99 st)
- X is not defined. (totalt 88 st)
- Unexpected console statement. (totalt 34 st)
- X is assigned a value but never used. (totalt 8 st)
- `content-type=".*javascript.*"` in: #60: search-impl.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #60: search-impl.js, antal fel: 230 ( 1.00 betyg )
- X is defined but never used. (totalt 99 st)
- X is not defined. (totalt 89 st)
- Unexpected console statement. (totalt 34 st)
- X is assigned a value but never used. (totalt 8 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: 11 ( 2.80 betyg )
- `< script src="...">` in: #1: Webbsida , antal fel: 1684 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 949 st)
- Expected X and instead saw X. (totalt 667 st)
- Do not access Object.prototype method X from target object. (totalt 27 st)
- Comparing to itself is potentially pointless. (totalt 25 st)
- The Function constructor is eval. (totalt 6 st)
- Unnecessary escape character: \/. (totalt 5 st)
- Unnecessary X. (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 src="...">` in: #45: embed, antal grupperade fel: 1 ( 4.80 betyg )
- `< script src="...">` in: #45: embed, antal fel: 1 ( 4.80 betyg )
- Expected X and instead saw X. (totalt 1 st)
- `content-type=".*javascript.*"` in: #48: init-embed.js, antal grupperade fel: 12 ( 2.60 betyg )
- `content-type=".*javascript.*"` in: #48: 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: #50: geometry.js, antal grupperade fel: 12 ( 2.60 betyg )
- `content-type=".*javascript.*"` in: #50: 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: #51: search.js, antal grupperade fel: 12 ( 2.60 betyg )
- `content-type=".*javascript.*"` in: #51: 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: #52: main.js, antal grupperade fel: 18 ( 1.40 betyg )
- `content-type=".*javascript.*"` in: #52: 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: #54: common.js, antal grupperade fel: 19 ( 1.20 betyg )
- `content-type=".*javascript.*"` in: #54: 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: #55: util.js, antal grupperade fel: 19 ( 1.20 betyg )
- `content-type=".*javascript.*"` in: #55: 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: #56: map.js, antal grupperade fel: 22 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #56: 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: #57: overlay.js, antal grupperade fel: 22 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #57: 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: #59: onion.js, antal grupperade fel: 22 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #59: 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: #60: search-impl.js, antal grupperade fel: 22 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #60: 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)