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.64 av 5
- JS är dålig.Webbstandard
- `< script>` in: #1: Webbsida , antal grupperade fel: 3 ( 4.40 betyg )
- `< script>` in: #1: Webbsida , antal fel: 9 ( 3.20 betyg )
- X is assigned a value but never used. (totalt 4 st)
- X is defined but never used. (totalt 3 st)
- X is not defined. (totalt 2 st)
- `< script src="...">` in: #1: Webbsida , antal grupperade fel: 4 ( 4.20 betyg )
- `< script src="...">` in: #1: Webbsida , antal fel: 616 ( 1.00 betyg )
- X is not defined. (totalt 520 st)
- X is defined but never used. (totalt 82 st)
- Unexpected console statement. (totalt 13 st)
- X is assigned a value but never used. (totalt 1 st)
- `< script>` in: #63: embed, antal grupperade fel: 2 ( 4.60 betyg )
- `< script>` in: #63: 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: #63: embed, antal grupperade fel: 2 ( 4.60 betyg )
- `< script src="...">` in: #63: 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: #64: search-form.b70, antal grupperade fel: 1 ( 4.80 betyg )
- `content-type=".*javascript.*"` in: #64: search-form.b70, antal fel: 2 ( 4.60 betyg )
- X is not defined. (totalt 2 st)
- `content-type=".*javascript.*"` in: #65: nav-menu.a23fbd, antal grupperade fel: 2 ( 4.60 betyg )
- `content-type=".*javascript.*"` in: #65: nav-menu.a23fbd, antal fel: 12 ( 2.60 betyg )
- X is not defined. (totalt 11 st)
- X is defined but never used. (totalt 1 st)
- `content-type=".*javascript.*"` in: #66: load-more.8b46f, antal grupperade fel: 2 ( 4.60 betyg )
- `content-type=".*javascript.*"` in: #66: load-more.8b46f, antal fel: 17 ( 1.60 betyg )
- X is not defined. (totalt 16 st)
- X is defined but never used. (totalt 1 st)
- `content-type=".*javascript.*"` in: #67: posts.aec592653, antal grupperade fel: 2 ( 4.60 betyg )
- `content-type=".*javascript.*"` in: #67: posts.aec592653, antal fel: 27 ( 1.00 betyg )
- X is not defined. (totalt 26 st)
- X is defined but never used. (totalt 1 st)
- `content-type=".*javascript.*"` in: #68: text-editor.c08, antal grupperade fel: 2 ( 4.60 betyg )
- `content-type=".*javascript.*"` in: #68: text-editor.c08, antal fel: 30 ( 1.00 betyg )
- X is not defined. (totalt 29 st)
- X is defined but never used. (totalt 1 st)
- `content-type=".*javascript.*"` in: #69: init-embed.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #69: init-embed.js, antal fel: 143 ( 1.00 betyg )
- X is not defined. (totalt 107 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: #71: search.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #71: search.js, antal fel: 146 ( 1.00 betyg )
- X is not defined. (totalt 109 st)
- X is defined but never used. (totalt 29 st)
- Unexpected console statement. (totalt 5 st)
- X is assigned a value but never used. (totalt 3 st)
- `content-type=".*javascript.*"` in: #72: geometry.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #72: geometry.js, antal fel: 147 ( 1.00 betyg )
- X is not defined. (totalt 110 st)
- X is defined but never used. (totalt 29 st)
- Unexpected console statement. (totalt 5 st)
- X is assigned a value but never used. (totalt 3 st)
- `content-type=".*javascript.*"` in: #73: main.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #73: main.js, antal fel: 213 ( 1.00 betyg )
- X is not defined. (totalt 112 st)
- X is defined but never used. (totalt 67 st)
- Unexpected console statement. (totalt 29 st)
- X is assigned a value but never used. (totalt 5 st)
- `content-type=".*javascript.*"` in: #75: common.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #75: common.js, antal fel: 225 ( 1.00 betyg )
- X is not defined. (totalt 113 st)
- X is defined but never used. (totalt 78 st)
- Unexpected console statement. (totalt 29 st)
- X is assigned a value but never used. (totalt 5 st)
- `content-type=".*javascript.*"` in: #76: util.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #76: util.js, antal fel: 244 ( 1.00 betyg )
- X is not defined. (totalt 114 st)
- X is defined but never used. (totalt 93 st)
- Unexpected console statement. (totalt 30 st)
- X is assigned a value but never used. (totalt 7 st)
- `content-type=".*javascript.*"` in: #77: map.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #77: map.js, antal fel: 257 ( 1.00 betyg )
- X is not defined. (totalt 115 st)
- X is defined but never used. (totalt 100 st)
- Unexpected console statement. (totalt 34 st)
- X is assigned a value but never used. (totalt 8 st)
- `content-type=".*javascript.*"` in: #78: overlay.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #78: overlay.js, antal fel: 258 ( 1.00 betyg )
- X is not defined. (totalt 116 st)
- X is defined but never used. (totalt 100 st)
- Unexpected console statement. (totalt 34 st)
- X is assigned a value but never used. (totalt 8 st)
- `content-type=".*javascript.*"` in: #80: onion.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #80: onion.js, antal fel: 259 ( 1.00 betyg )
- X is not defined. (totalt 117 st)
- X is defined but never used. (totalt 100 st)
- Unexpected console statement. (totalt 34 st)
- X is assigned a value but never used. (totalt 8 st)
- `content-type=".*javascript.*"` in: #81: search-impl.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #81: search-impl.js, antal fel: 260 ( 1.00 betyg )
- X is not defined. (totalt 118 st)
- X is defined but never used. (totalt 100 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: 3 ( 4.40 betyg )
- `< script>` in: #1: Webbsida , antal fel: 82 ( 1.00 betyg )
- Unnecessary escape character: \/. (totalt 65 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: 14 ( 2.20 betyg )
- `< script src="...">` in: #1: Webbsida , antal fel: 2037 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1490 st)
- Expected X and instead saw X. (totalt 503 st)
- Do not access Object.prototype method X from target object. (totalt 10 st)
- Unnecessary escape character: \/. (totalt 8 st)
- Unnecessary X. (totalt 6 st)
- X is assigned to itself. (totalt 4 st)
- Unnecessary escape character: \-. (totalt 4 st)
- Comparing to itself is potentially pointless. (totalt 3 st)
- The Function constructor is eval. (totalt 3 st)
- X is not modified in this loop. (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)
- `< script src="...">` in: #63: embed, antal grupperade fel: 1 ( 4.80 betyg )
- `< script src="...">` in: #63: embed, antal fel: 1 ( 4.80 betyg )
- Expected X and instead saw X. (totalt 1 st)
- `content-type=".*javascript.*"` in: #64: search-form.b70, antal grupperade fel: 1 ( 4.80 betyg )
- `content-type=".*javascript.*"` in: #64: search-form.b70, antal fel: 6 ( 3.80 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 6 st)
- `content-type=".*javascript.*"` in: #65: nav-menu.a23fbd, antal grupperade fel: 2 ( 4.60 betyg )
- `content-type=".*javascript.*"` in: #65: nav-menu.a23fbd, antal fel: 22 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 21 st)
- Expected X and instead saw X. (totalt 1 st)
- `content-type=".*javascript.*"` in: #66: load-more.8b46f, antal grupperade fel: 2 ( 4.60 betyg )
- `content-type=".*javascript.*"` in: #66: load-more.8b46f, antal fel: 36 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 35 st)
- Expected X and instead saw X. (totalt 1 st)
- `content-type=".*javascript.*"` in: #67: posts.aec592653, antal grupperade fel: 2 ( 4.60 betyg )
- `content-type=".*javascript.*"` in: #67: posts.aec592653, antal fel: 45 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 44 st)
- Expected X and instead saw X. (totalt 1 st)
- `content-type=".*javascript.*"` in: #68: text-editor.c08, antal grupperade fel: 2 ( 4.60 betyg )
- `content-type=".*javascript.*"` in: #68: text-editor.c08, antal fel: 49 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 48 st)
- Expected X and instead saw X. (totalt 1 st)
- `content-type=".*javascript.*"` in: #69: init-embed.js, antal grupperade fel: 12 ( 2.60 betyg )
- `content-type=".*javascript.*"` in: #69: init-embed.js, antal fel: 1695 ( 1.00 betyg )
- Expected X and instead saw X. (totalt 864 st)
- Expected an assignment or function call and instead saw an expression. (totalt 781 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: #71: search.js, antal grupperade fel: 12 ( 2.60 betyg )
- `content-type=".*javascript.*"` in: #71: search.js, antal fel: 1704 ( 1.00 betyg )
- Expected X and instead saw X. (totalt 864 st)
- Expected an assignment or function call and instead saw an expression. (totalt 789 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: #72: geometry.js, antal grupperade fel: 12 ( 2.60 betyg )
- `content-type=".*javascript.*"` in: #72: geometry.js, antal fel: 1710 ( 1.00 betyg )
- Expected X and instead saw X. (totalt 864 st)
- Expected an assignment or function call and instead saw an expression. (totalt 795 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: #73: main.js, antal grupperade fel: 18 ( 1.40 betyg )
- `content-type=".*javascript.*"` in: #73: main.js, antal fel: 2821 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1436 st)
- Expected X and instead saw X. (totalt 1079 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: #75: common.js, antal grupperade fel: 19 ( 1.20 betyg )
- `content-type=".*javascript.*"` in: #75: common.js, antal fel: 3258 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1778 st)
- Expected X and instead saw X. (totalt 1163 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: #76: util.js, antal grupperade fel: 19 ( 1.20 betyg )
- `content-type=".*javascript.*"` in: #76: util.js, antal fel: 4624 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 2407 st)
- Expected X and instead saw X. (totalt 1876 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: #77: map.js, antal grupperade fel: 22 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #77: map.js, antal fel: 4936 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 2665 st)
- Expected X and instead saw X. (totalt 1918 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: #78: overlay.js, antal grupperade fel: 22 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #78: overlay.js, antal fel: 4951 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 2680 st)
- Expected X and instead saw X. (totalt 1918 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: #80: onion.js, antal grupperade fel: 22 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #80: onion.js, antal fel: 5065 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 2764 st)
- Expected X and instead saw X. (totalt 1947 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: #81: search-impl.js, antal grupperade fel: 22 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #81: search-impl.js, antal fel: 5084 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 2783 st)
- Expected X and instead saw X. (totalt 1947 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)