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.44 av 5
- JS är dålig.
Webbstandard
- `< script>` in: #1: Forside.aspx, antal grupperade fel: 4 ( 4.20 betyg )
- `< script>` in: #1: Forside.aspx, antal fel: 187 ( 1.00 betyg )
- X is not defined. (totalt 151 st)
- X is assigned a value but never used. (totalt 30 st)
- X is defined but never used. (totalt 4 st)
- Unexpected console statement. (totalt 2 st)
- `< script src="...">` in: #1: Forside.aspx, antal grupperade fel: 5 ( 4.00 betyg )
- `< script src="...">` in: #1: Forside.aspx, antal fel: 6515 ( 1.00 betyg )
- X is not defined. (totalt 5783 st)
- X is defined but never used. (totalt 548 st)
- X is assigned a value but never used. (totalt 160 st)
- Unexpected console statement. (totalt 23 st)
- Parsing error: Deleting local variable in strict mode (totalt 1 st)
- `< script>` in: #39: cookiesharingif, antal grupperade fel: 3 ( 4.40 betyg )
- `< script>` in: #39: 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)
- `content-type=".*javascript.*"` in: #40: siteanalyze-531, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #40: siteanalyze-531, antal fel: 42 ( 1.00 betyg )
- X is not defined. (totalt 35 st)
- X is defined but never used. (totalt 3 st)
- Unexpected console statement. (totalt 3 st)
- X is assigned a value but never used. (totalt 1 st)
- `content-type=".*javascript.*"` in: #42: core.js, antal grupperade fel: 5 ( 4.00 betyg )
- `content-type=".*javascript.*"` in: #42: core.js, antal fel: 43 ( 1.00 betyg )
- X is not defined. (totalt 35 st)
- X is defined but never used. (totalt 3 st)
- Unexpected console statement. (totalt 3 st)
- X is assigned a value but never used. (totalt 1 st)
- Parsing error: Deleting local variable in strict mode (totalt 1 st)
- `content-type=".*javascript.*"` in: #46: control-searchb, antal grupperade fel: 5 ( 4.00 betyg )
- `content-type=".*javascript.*"` in: #46: control-searchb, antal fel: 86 ( 1.00 betyg )
- X is not defined. (totalt 77 st)
- X is defined but never used. (totalt 4 st)
- Unexpected console statement. (totalt 3 st)
- X is assigned a value but never used. (totalt 1 st)
- Parsing error: Deleting local variable in strict mode (totalt 1 st)
- `content-type=".*javascript.*"` in: #47: brk-item-slider, antal grupperade fel: 5 ( 4.00 betyg )
- `content-type=".*javascript.*"` in: #47: brk-item-slider, antal fel: 113 ( 1.00 betyg )
- X is not defined. (totalt 101 st)
- X is assigned a value but never used. (totalt 4 st)
- X is defined but never used. (totalt 4 st)
- Unexpected console statement. (totalt 3 st)
- Parsing error: Deleting local variable in strict mode (totalt 1 st)
- `content-type=".*javascript.*"` in: #48: group-content.j, antal grupperade fel: 5 ( 4.00 betyg )
- `content-type=".*javascript.*"` in: #48: group-content.j, antal fel: 124 ( 1.00 betyg )
- X is not defined. (totalt 111 st)
- X is defined but never used. (totalt 5 st)
- X is assigned a value but never used. (totalt 4 st)
- Unexpected console statement. (totalt 3 st)
- Parsing error: Deleting local variable in strict mode (totalt 1 st)
- `content-type=".*javascript.*"` in: #49: brk-control-sli, antal grupperade fel: 5 ( 4.00 betyg )
- `content-type=".*javascript.*"` in: #49: brk-control-sli, antal fel: 150 ( 1.00 betyg )
- X is not defined. (totalt 135 st)
- X is defined but never used. (totalt 7 st)
- X is assigned a value but never used. (totalt 4 st)
- Unexpected console statement. (totalt 3 st)
- Parsing error: Deleting local variable in strict mode (totalt 1 st)
- `content-type=".*javascript.*"` in: #50: item-brk-hoerin, antal grupperade fel: 5 ( 4.00 betyg )
- `content-type=".*javascript.*"` in: #50: item-brk-hoerin, antal fel: 184 ( 1.00 betyg )
- X is not defined. (totalt 163 st)
- X is assigned a value but never used. (totalt 10 st)
- X is defined but never used. (totalt 7 st)
- Unexpected console statement. (totalt 3 st)
- Parsing error: Deleting local variable in strict mode (totalt 1 st)
- `content-type=".*javascript.*"` in: #51: control-list.js, antal grupperade fel: 5 ( 4.00 betyg )
- `content-type=".*javascript.*"` in: #51: control-list.js, antal fel: 200 ( 1.00 betyg )
- X is not defined. (totalt 176 st)
- X is assigned a value but never used. (totalt 10 st)
- X is defined but never used. (totalt 10 st)
- Unexpected console statement. (totalt 3 st)
- Parsing error: Deleting local variable in strict mode (totalt 1 st)
- `content-type=".*javascript.*"` in: #52: item-brk-nyhede, antal grupperade fel: 5 ( 4.00 betyg )
- `content-type=".*javascript.*"` in: #52: item-brk-nyhede, antal fel: 233 ( 1.00 betyg )
- X is not defined. (totalt 204 st)
- X is assigned a value but never used. (totalt 15 st)
- X is defined but never used. (totalt 10 st)
- Unexpected console statement. (totalt 3 st)
- Parsing error: Deleting local variable in strict mode (totalt 1 st)
- `content-type=".*javascript.*"` in: #55: da.js, antal grupperade fel: 5 ( 4.00 betyg )
- `content-type=".*javascript.*"` in: #55: da.js, antal fel: 234 ( 1.00 betyg )
- X is not defined. (totalt 205 st)
- X is assigned a value but never used. (totalt 15 st)
- X is defined but never used. (totalt 10 st)
- Unexpected console statement. (totalt 3 st)
- Parsing error: Deleting local variable in strict mode (totalt 1 st)
- `content-type=".*javascript.*"` in: #59: customstrings.j, antal grupperade fel: 5 ( 4.00 betyg )
- `content-type=".*javascript.*"` in: #59: customstrings.j, antal fel: 235 ( 1.00 betyg )
- X is not defined. (totalt 206 st)
- X is assigned a value but never used. (totalt 15 st)
- X is defined but never used. (totalt 10 st)
- Unexpected console statement. (totalt 3 st)
- Parsing error: Deleting local variable in strict mode (totalt 1 st)
- `content-type=".*javascript.*"` in: #66: mquery.js, antal grupperade fel: 5 ( 4.00 betyg )
- `content-type=".*javascript.*"` in: #66: mquery.js, antal fel: 244 ( 1.00 betyg )
- X is not defined. (totalt 214 st)
- X is assigned a value but never used. (totalt 16 st)
- X is defined but never used. (totalt 10 st)
- Unexpected console statement. (totalt 3 st)
- Parsing error: Deleting local variable in strict mode (totalt 1 st)
- `content-type=".*javascript.*"` in: #67: sp.core.js, antal grupperade fel: 5 ( 4.00 betyg )
- `content-type=".*javascript.*"` in: #67: sp.core.js, antal fel: 956 ( 1.00 betyg )
- X is not defined. (totalt 897 st)
- X is defined but never used. (totalt 29 st)
- X is assigned a value but never used. (totalt 26 st)
- Unexpected console statement. (totalt 3 st)
- Parsing error: Deleting local variable in strict mode (totalt 1 st)
Integritet & säkerhet
- `< script>` in: #1: Forside.aspx, antal grupperade fel: 2 ( 4.60 betyg )
- `< script>` in: #1: Forside.aspx, antal fel: 28 ( 1.00 betyg )
- Expected X and instead saw X. (totalt 24 st)
- Unnecessary escape character: \/. (totalt 4 st)
- `< script src="...">` in: #1: Forside.aspx, antal grupperade fel: 27 ( 1.00 betyg )
- `< script src="...">` in: #1: Forside.aspx, antal fel: 4330 ( 1.00 betyg )
- Expected X and instead saw X. (totalt 2677 st)
- Expected an assignment or function call and instead saw an expression. (totalt 1482 st)
- eval can be harmful. (totalt 30 st)
- Do not access Object.prototype method X from target object. (totalt 23 st)
- The Function constructor is eval. (totalt 13 st)
- Unnecessary X. (totalt 13 st)
- Unnecessary escape character: \-. (totalt 12 st)
- Unexpected string concatenation of literals. (totalt 12 st)
- Unnecessary escape character: \&. (totalt 9 st)
- Unnecessary escape character: \/. (totalt 8 st)
- Implied eval. Consider passing a function instead of a string. (totalt 6 st)
- Script URL is a form of eval. (totalt 6 st)
- Unnecessary escape character: \?. (totalt 6 st)
- Unnecessary escape character: \%. (totalt 5 st)
- Unnecessary escape character: \[. (totalt 4 st)
- X is not modified in this loop. (totalt 3 st)
- Unnecessary escape character: \". (totalt 3 st)
- Unnecessary escape character: \#. (totalt 3 st)
- Comparing to itself is potentially pointless. (totalt 3 st)
- Unnecessary escape character: \^. (totalt 3 st)
- X is assigned to itself. (totalt 2 st)
- Unnecessary escape character: \:. (totalt 2 st)
- Unnecessary escape character: \]. (totalt 1 st)
- Parsing error: Deleting local variable in strict mode (totalt 1 st)
- Unsafe usage of ThrowStatement. (totalt 1 st)
- Unnecessary escape character: \.. (totalt 1 st)
- Unnecessary escape character: \+. (totalt 1 st)
- `< script>` in: #39: cookiesharingif, antal grupperade fel: 2 ( 4.60 betyg )
- `< script>` in: #39: 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)
- `content-type=".*javascript.*"` in: #40: siteanalyze-531, antal grupperade fel: 6 ( 3.80 betyg )
- `content-type=".*javascript.*"` in: #40: siteanalyze-531, antal fel: 155 ( 1.00 betyg )
- Expected X and instead saw X. (totalt 78 st)
- Expected an assignment or function call and instead saw an expression. (totalt 62 st)
- Do not access Object.prototype method X from target object. (totalt 9 st)
- Unnecessary escape character: \/. (totalt 4 st)
- Script URL is a form of eval. (totalt 1 st)
- Unnecessary escape character: \[. (totalt 1 st)
- `content-type=".*javascript.*"` in: #42: core.js, antal grupperade fel: 7 ( 3.60 betyg )
- `content-type=".*javascript.*"` in: #42: core.js, antal fel: 156 ( 1.00 betyg )
- Expected X and instead saw X. (totalt 78 st)
- Expected an assignment or function call and instead saw an expression. (totalt 62 st)
- Do not access Object.prototype method X from target object. (totalt 9 st)
- Unnecessary escape character: \/. (totalt 4 st)
- Script URL is a form of eval. (totalt 1 st)
- Unnecessary escape character: \[. (totalt 1 st)
- Parsing error: Deleting local variable in strict mode (totalt 1 st)
- `content-type=".*javascript.*"` in: #46: control-searchb, antal grupperade fel: 7 ( 3.60 betyg )
- `content-type=".*javascript.*"` in: #46: control-searchb, antal fel: 164 ( 1.00 betyg )
- Expected X and instead saw X. (totalt 86 st)
- Expected an assignment or function call and instead saw an expression. (totalt 62 st)
- Do not access Object.prototype method X from target object. (totalt 9 st)
- Unnecessary escape character: \/. (totalt 4 st)
- Script URL is a form of eval. (totalt 1 st)
- Unnecessary escape character: \[. (totalt 1 st)
- Parsing error: Deleting local variable in strict mode (totalt 1 st)
- `content-type=".*javascript.*"` in: #47: brk-item-slider, antal grupperade fel: 7 ( 3.60 betyg )
- `content-type=".*javascript.*"` in: #47: brk-item-slider, antal fel: 173 ( 1.00 betyg )
- Expected X and instead saw X. (totalt 95 st)
- Expected an assignment or function call and instead saw an expression. (totalt 62 st)
- Do not access Object.prototype method X from target object. (totalt 9 st)
- Unnecessary escape character: \/. (totalt 4 st)
- Script URL is a form of eval. (totalt 1 st)
- Unnecessary escape character: \[. (totalt 1 st)
- Parsing error: Deleting local variable in strict mode (totalt 1 st)
- `content-type=".*javascript.*"` in: #48: group-content.j, antal grupperade fel: 7 ( 3.60 betyg )
- `content-type=".*javascript.*"` in: #48: group-content.j, antal fel: 181 ( 1.00 betyg )
- Expected X and instead saw X. (totalt 103 st)
- Expected an assignment or function call and instead saw an expression. (totalt 62 st)
- Do not access Object.prototype method X from target object. (totalt 9 st)
- Unnecessary escape character: \/. (totalt 4 st)
- Script URL is a form of eval. (totalt 1 st)
- Unnecessary escape character: \[. (totalt 1 st)
- Parsing error: Deleting local variable in strict mode (totalt 1 st)
- `content-type=".*javascript.*"` in: #49: brk-control-sli, antal grupperade fel: 7 ( 3.60 betyg )
- `content-type=".*javascript.*"` in: #49: brk-control-sli, antal fel: 189 ( 1.00 betyg )
- Expected X and instead saw X. (totalt 111 st)
- Expected an assignment or function call and instead saw an expression. (totalt 62 st)
- Do not access Object.prototype method X from target object. (totalt 9 st)
- Unnecessary escape character: \/. (totalt 4 st)
- Script URL is a form of eval. (totalt 1 st)
- Unnecessary escape character: \[. (totalt 1 st)
- Parsing error: Deleting local variable in strict mode (totalt 1 st)
- `content-type=".*javascript.*"` in: #50: item-brk-hoerin, antal grupperade fel: 7 ( 3.60 betyg )
- `content-type=".*javascript.*"` in: #50: item-brk-hoerin, antal fel: 197 ( 1.00 betyg )
- Expected X and instead saw X. (totalt 119 st)
- Expected an assignment or function call and instead saw an expression. (totalt 62 st)
- Do not access Object.prototype method X from target object. (totalt 9 st)
- Unnecessary escape character: \/. (totalt 4 st)
- Script URL is a form of eval. (totalt 1 st)
- Unnecessary escape character: \[. (totalt 1 st)
- Parsing error: Deleting local variable in strict mode (totalt 1 st)
- `content-type=".*javascript.*"` in: #51: control-list.js, antal grupperade fel: 7 ( 3.60 betyg )
- `content-type=".*javascript.*"` in: #51: control-list.js, antal fel: 205 ( 1.00 betyg )
- Expected X and instead saw X. (totalt 127 st)
- Expected an assignment or function call and instead saw an expression. (totalt 62 st)
- Do not access Object.prototype method X from target object. (totalt 9 st)
- Unnecessary escape character: \/. (totalt 4 st)
- Script URL is a form of eval. (totalt 1 st)
- Unnecessary escape character: \[. (totalt 1 st)
- Parsing error: Deleting local variable in strict mode (totalt 1 st)
- `content-type=".*javascript.*"` in: #52: item-brk-nyhede, antal grupperade fel: 7 ( 3.60 betyg )
- `content-type=".*javascript.*"` in: #52: item-brk-nyhede, antal fel: 213 ( 1.00 betyg )
- Expected X and instead saw X. (totalt 135 st)
- Expected an assignment or function call and instead saw an expression. (totalt 62 st)
- Do not access Object.prototype method X from target object. (totalt 9 st)
- Unnecessary escape character: \/. (totalt 4 st)
- Script URL is a form of eval. (totalt 1 st)
- Unnecessary escape character: \[. (totalt 1 st)
- Parsing error: Deleting local variable in strict mode (totalt 1 st)
- `content-type=".*javascript.*"` in: #55: da.js, antal grupperade fel: 7 ( 3.60 betyg )
- `content-type=".*javascript.*"` in: #55: da.js, antal fel: 213 ( 1.00 betyg )
- Expected X and instead saw X. (totalt 135 st)
- Expected an assignment or function call and instead saw an expression. (totalt 62 st)
- Do not access Object.prototype method X from target object. (totalt 9 st)
- Unnecessary escape character: \/. (totalt 4 st)
- Script URL is a form of eval. (totalt 1 st)
- Unnecessary escape character: \[. (totalt 1 st)
- Parsing error: Deleting local variable in strict mode (totalt 1 st)
- `content-type=".*javascript.*"` in: #59: customstrings.j, antal grupperade fel: 7 ( 3.60 betyg )
- `content-type=".*javascript.*"` in: #59: customstrings.j, antal fel: 213 ( 1.00 betyg )
- Expected X and instead saw X. (totalt 135 st)
- Expected an assignment or function call and instead saw an expression. (totalt 62 st)
- Do not access Object.prototype method X from target object. (totalt 9 st)
- Unnecessary escape character: \/. (totalt 4 st)
- Script URL is a form of eval. (totalt 1 st)
- Unnecessary escape character: \[. (totalt 1 st)
- Parsing error: Deleting local variable in strict mode (totalt 1 st)
- `content-type=".*javascript.*"` in: #66: mquery.js, antal grupperade fel: 7 ( 3.60 betyg )
- `content-type=".*javascript.*"` in: #66: mquery.js, antal fel: 236 ( 1.00 betyg )
- Expected X and instead saw X. (totalt 143 st)
- Expected an assignment or function call and instead saw an expression. (totalt 75 st)
- Do not access Object.prototype method X from target object. (totalt 11 st)
- Unnecessary escape character: \/. (totalt 4 st)
- Script URL is a form of eval. (totalt 1 st)
- Unnecessary escape character: \[. (totalt 1 st)
- Parsing error: Deleting local variable in strict mode (totalt 1 st)
- `content-type=".*javascript.*"` in: #67: sp.core.js, antal grupperade fel: 9 ( 3.20 betyg )
- `content-type=".*javascript.*"` in: #67: sp.core.js, antal fel: 319 ( 1.00 betyg )
- Expected X and instead saw X. (totalt 188 st)
- Expected an assignment or function call and instead saw an expression. (totalt 111 st)
- Do not access Object.prototype method X from target object. (totalt 11 st)
- Unnecessary escape character: \/. (totalt 4 st)
- Script URL is a form of eval. (totalt 1 st)
- Unnecessary escape character: \[. (totalt 1 st)
- Parsing error: Deleting local variable in strict mode (totalt 1 st)
- X is assigned to itself. (totalt 1 st)
- eval can be harmful. (totalt 1 st)