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.60 av 5
- JS är dålig.
Webbstandard
- `< script>` in: #1: Webbsida , antal grupperade fel: 2 ( 4.60 betyg )
- `< script>` in: #1: Webbsida , antal fel: 7 ( 3.60 betyg )
- X is defined but never used. (totalt 5 st)
- X is assigned a value but never used. (totalt 2 st)
- `content-type=".*javascript.*"` in: #3: bundle.js, antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #3: bundle.js, antal fel: 31 ( 1.00 betyg )
- X is defined but never used. (totalt 16 st)
- X is not defined. (totalt 9 st)
- Unexpected console statement. (totalt 6 st)
- `content-type=".*javascript.*"` in: #4: index.js, antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #4: index.js, antal fel: 41 ( 1.00 betyg )
- X is defined but never used. (totalt 25 st)
- X is not defined. (totalt 10 st)
- Unexpected console statement. (totalt 6 st)
- `content-type=".*javascript.*"` in: #9: jquery-1.12.4.m, antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #9: jquery-1.12.4.m, antal fel: 63 ( 1.00 betyg )
- X is defined but never used. (totalt 45 st)
- X is not defined. (totalt 12 st)
- Unexpected console statement. (totalt 6 st)
- `content-type=".*javascript.*"` in: #10: jquery-migrate-, antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #10: jquery-migrate-, antal fel: 69 ( 1.00 betyg )
- X is defined but never used. (totalt 48 st)
- X is not defined. (totalt 15 st)
- Unexpected console statement. (totalt 6 st)
- `content-type=".*javascript.*"` in: #11: basefunksjoner., antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #11: basefunksjoner., antal fel: 100 ( 1.00 betyg )
- X is defined but never used. (totalt 57 st)
- X is not defined. (totalt 37 st)
- Unexpected console statement. (totalt 6 st)
- `content-type=".*javascript.*"` in: #12: jquery.acos.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #12: jquery.acos.js, antal fel: 170 ( 1.00 betyg )
- X is not defined. (totalt 96 st)
- X is defined but never used. (totalt 67 st)
- Unexpected console statement. (totalt 6 st)
- X is assigned a value but never used. (totalt 1 st)
- `content-type=".*javascript.*"` in: #28: WebResource.axd, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #28: WebResource.axd, antal fel: 234 ( 1.00 betyg )
- X is not defined. (totalt 133 st)
- X is defined but never used. (totalt 94 st)
- Unexpected console statement. (totalt 6 st)
- X is assigned a value but never used. (totalt 1 st)
- `content-type=".*javascript.*"` in: #29: jquery.cookie.j, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #29: jquery.cookie.j, antal fel: 236 ( 1.00 betyg )
- X is not defined. (totalt 135 st)
- X is defined but never used. (totalt 94 st)
- Unexpected console statement. (totalt 6 st)
- X is assigned a value but never used. (totalt 1 st)
- `content-type=".*javascript.*"` in: #30: scripts.min.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #30: scripts.min.js, antal fel: 245 ( 1.00 betyg )
- X is not defined. (totalt 140 st)
- X is defined but never used. (totalt 97 st)
- Unexpected console statement. (totalt 6 st)
- X is assigned a value but never used. (totalt 2 st)
- `content-type=".*javascript.*"` in: #31: jsinfo.min.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #31: jsinfo.min.js, antal fel: 246 ( 1.00 betyg )
- X is not defined. (totalt 141 st)
- X is defined but never used. (totalt 97 st)
- Unexpected console statement. (totalt 6 st)
- X is assigned a value but never used. (totalt 2 st)
- `content-type=".*javascript.*"` in: #32: beredskap.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #32: beredskap.js, antal fel: 247 ( 1.00 betyg )
- X is not defined. (totalt 142 st)
- X is defined but never used. (totalt 97 st)
- Unexpected console statement. (totalt 6 st)
- X is assigned a value but never used. (totalt 2 st)
- `content-type=".*javascript.*"` in: #33: eventbus.min.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #33: eventbus.min.js, antal fel: 247 ( 1.00 betyg )
- X is not defined. (totalt 142 st)
- X is defined but never used. (totalt 97 st)
- Unexpected console statement. (totalt 6 st)
- X is assigned a value but never used. (totalt 2 st)
- `content-type=".*javascript.*"` in: #34: common.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #34: common.js, antal fel: 247 ( 1.00 betyg )
- X is not defined. (totalt 142 st)
- X is defined but never used. (totalt 97 st)
- Unexpected console statement. (totalt 6 st)
- X is assigned a value but never used. (totalt 2 st)
- `content-type=".*javascript.*"` in: #35: jquery.tablesor, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #35: jquery.tablesor, antal fel: 250 ( 1.00 betyg )
- X is not defined. (totalt 143 st)
- X is defined but never used. (totalt 97 st)
- Unexpected console statement. (totalt 8 st)
- X is assigned a value but never used. (totalt 2 st)
Integritet & säkerhet
- `< script>` in: #1: Webbsida , antal grupperade fel: 2 ( 4.60 betyg )
- `< script>` in: #1: Webbsida , antal fel: 7 ( 3.60 betyg )
- Expected X and instead saw X. (totalt 6 st)
- Script URL is a form of eval. (totalt 1 st)
- `content-type=".*javascript.*"` in: #3: bundle.js, antal grupperade fel: 2 ( 4.60 betyg )
- `content-type=".*javascript.*"` in: #3: bundle.js, antal fel: 298 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 292 st)
- Expected X and instead saw X. (totalt 6 st)
- `content-type=".*javascript.*"` in: #4: index.js, antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #4: index.js, antal fel: 436 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 371 st)
- Expected X and instead saw X. (totalt 59 st)
- Do not access Object.prototype method X from target object. (totalt 6 st)
- `content-type=".*javascript.*"` in: #9: jquery-1.12.4.m, antal grupperade fel: 9 ( 3.20 betyg )
- `content-type=".*javascript.*"` in: #9: jquery-1.12.4.m, antal fel: 857 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 630 st)
- Expected X and instead saw X. (totalt 210 st)
- Do not access Object.prototype method X from target object. (totalt 7 st)
- Comparing to itself is potentially pointless. (totalt 3 st)
- Unnecessary escape character: \/. (totalt 3 st)
- Unnecessary X. (totalt 1 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: #10: jquery-migrate-, antal grupperade fel: 9 ( 3.20 betyg )
- `content-type=".*javascript.*"` in: #10: jquery-migrate-, antal fel: 893 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 654 st)
- Expected X and instead saw X. (totalt 219 st)
- Do not access Object.prototype method X from target object. (totalt 7 st)
- Unnecessary escape character: \/. (totalt 6 st)
- Comparing to itself is potentially pointless. (totalt 3 st)
- Unnecessary X. (totalt 1 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: #11: basefunksjoner., antal grupperade fel: 10 ( 3.00 betyg )
- `content-type=".*javascript.*"` in: #11: basefunksjoner., antal fel: 933 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 664 st)
- Expected X and instead saw X. (totalt 248 st)
- Do not access Object.prototype method X from target object. (totalt 7 st)
- Unnecessary escape character: \/. (totalt 6 st)
- Comparing to itself is potentially pointless. (totalt 3 st)
- Unnecessary X. (totalt 1 st)
- Unnecessary escape character: \[. (totalt 1 st)
- Unnecessary escape character: \.. (totalt 1 st)
- The Function constructor is eval. (totalt 1 st)
- Unnecessary escape character: \?. (totalt 1 st)
- `content-type=".*javascript.*"` in: #12: jquery.acos.js, antal grupperade fel: 10 ( 3.00 betyg )
- `content-type=".*javascript.*"` in: #12: jquery.acos.js, antal fel: 938 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 664 st)
- Expected X and instead saw X. (totalt 253 st)
- Do not access Object.prototype method X from target object. (totalt 7 st)
- Unnecessary escape character: \/. (totalt 6 st)
- Comparing to itself is potentially pointless. (totalt 3 st)
- Unnecessary X. (totalt 1 st)
- Unnecessary escape character: \[. (totalt 1 st)
- Unnecessary escape character: \.. (totalt 1 st)
- The Function constructor is eval. (totalt 1 st)
- Unnecessary escape character: \?. (totalt 1 st)
- `content-type=".*javascript.*"` in: #28: WebResource.axd, antal grupperade fel: 12 ( 2.60 betyg )
- `content-type=".*javascript.*"` in: #28: WebResource.axd, antal fel: 1000 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 664 st)
- Expected X and instead saw X. (totalt 311 st)
- Unnecessary escape character: \/. (totalt 8 st)
- Do not access Object.prototype method X from target object. (totalt 7 st)
- Comparing to itself is potentially pointless. (totalt 3 st)
- Unnecessary X. (totalt 1 st)
- Unnecessary escape character: \[. (totalt 1 st)
- Unnecessary escape character: \.. (totalt 1 st)
- The Function constructor is eval. (totalt 1 st)
- Unnecessary escape character: \?. (totalt 1 st)
- Unnecessary escape character: \:. (totalt 1 st)
- Implied eval. Consider passing a function instead of a string. (totalt 1 st)
- `content-type=".*javascript.*"` in: #29: jquery.cookie.j, antal grupperade fel: 12 ( 2.60 betyg )
- `content-type=".*javascript.*"` in: #29: jquery.cookie.j, antal fel: 1000 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 664 st)
- Expected X and instead saw X. (totalt 311 st)
- Unnecessary escape character: \/. (totalt 8 st)
- Do not access Object.prototype method X from target object. (totalt 7 st)
- Comparing to itself is potentially pointless. (totalt 3 st)
- Unnecessary X. (totalt 1 st)
- Unnecessary escape character: \[. (totalt 1 st)
- Unnecessary escape character: \.. (totalt 1 st)
- The Function constructor is eval. (totalt 1 st)
- Unnecessary escape character: \?. (totalt 1 st)
- Unnecessary escape character: \:. (totalt 1 st)
- Implied eval. Consider passing a function instead of a string. (totalt 1 st)
- `content-type=".*javascript.*"` in: #30: scripts.min.js, antal grupperade fel: 12 ( 2.60 betyg )
- `content-type=".*javascript.*"` in: #30: scripts.min.js, antal fel: 1067 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 727 st)
- Expected X and instead saw X. (totalt 315 st)
- Unnecessary escape character: \/. (totalt 8 st)
- Do not access Object.prototype method X from target object. (totalt 7 st)
- Comparing to itself is potentially pointless. (totalt 3 st)
- Unnecessary X. (totalt 1 st)
- Unnecessary escape character: \[. (totalt 1 st)
- Unnecessary escape character: \.. (totalt 1 st)
- The Function constructor is eval. (totalt 1 st)
- Unnecessary escape character: \?. (totalt 1 st)
- Unnecessary escape character: \:. (totalt 1 st)
- Implied eval. Consider passing a function instead of a string. (totalt 1 st)
- `content-type=".*javascript.*"` in: #31: jsinfo.min.js, antal grupperade fel: 12 ( 2.60 betyg )
- `content-type=".*javascript.*"` in: #31: jsinfo.min.js, antal fel: 1082 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 736 st)
- Expected X and instead saw X. (totalt 321 st)
- Unnecessary escape character: \/. (totalt 8 st)
- Do not access Object.prototype method X from target object. (totalt 7 st)
- Comparing to itself is potentially pointless. (totalt 3 st)
- Unnecessary X. (totalt 1 st)
- Unnecessary escape character: \[. (totalt 1 st)
- Unnecessary escape character: \.. (totalt 1 st)
- The Function constructor is eval. (totalt 1 st)
- Unnecessary escape character: \?. (totalt 1 st)
- Unnecessary escape character: \:. (totalt 1 st)
- Implied eval. Consider passing a function instead of a string. (totalt 1 st)
- `content-type=".*javascript.*"` in: #32: beredskap.js, antal grupperade fel: 12 ( 2.60 betyg )
- `content-type=".*javascript.*"` in: #32: beredskap.js, antal fel: 1088 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 736 st)
- Expected X and instead saw X. (totalt 327 st)
- Unnecessary escape character: \/. (totalt 8 st)
- Do not access Object.prototype method X from target object. (totalt 7 st)
- Comparing to itself is potentially pointless. (totalt 3 st)
- Unnecessary X. (totalt 1 st)
- Unnecessary escape character: \[. (totalt 1 st)
- Unnecessary escape character: \.. (totalt 1 st)
- The Function constructor is eval. (totalt 1 st)
- Unnecessary escape character: \?. (totalt 1 st)
- Unnecessary escape character: \:. (totalt 1 st)
- Implied eval. Consider passing a function instead of a string. (totalt 1 st)
- `content-type=".*javascript.*"` in: #33: eventbus.min.js, antal grupperade fel: 12 ( 2.60 betyg )
- `content-type=".*javascript.*"` in: #33: eventbus.min.js, antal fel: 1090 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 738 st)
- Expected X and instead saw X. (totalt 327 st)
- Unnecessary escape character: \/. (totalt 8 st)
- Do not access Object.prototype method X from target object. (totalt 7 st)
- Comparing to itself is potentially pointless. (totalt 3 st)
- Unnecessary X. (totalt 1 st)
- Unnecessary escape character: \[. (totalt 1 st)
- Unnecessary escape character: \.. (totalt 1 st)
- The Function constructor is eval. (totalt 1 st)
- Unnecessary escape character: \?. (totalt 1 st)
- Unnecessary escape character: \:. (totalt 1 st)
- Implied eval. Consider passing a function instead of a string. (totalt 1 st)
- `content-type=".*javascript.*"` in: #34: common.js, antal grupperade fel: 12 ( 2.60 betyg )
- `content-type=".*javascript.*"` in: #34: common.js, antal fel: 1090 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 738 st)
- Expected X and instead saw X. (totalt 327 st)
- Unnecessary escape character: \/. (totalt 8 st)
- Do not access Object.prototype method X from target object. (totalt 7 st)
- Comparing to itself is potentially pointless. (totalt 3 st)
- Unnecessary X. (totalt 1 st)
- Unnecessary escape character: \[. (totalt 1 st)
- Unnecessary escape character: \.. (totalt 1 st)
- The Function constructor is eval. (totalt 1 st)
- Unnecessary escape character: \?. (totalt 1 st)
- Unnecessary escape character: \:. (totalt 1 st)
- Implied eval. Consider passing a function instead of a string. (totalt 1 st)
- `content-type=".*javascript.*"` in: #35: jquery.tablesor, antal grupperade fel: 13 ( 2.40 betyg )
- `content-type=".*javascript.*"` in: #35: jquery.tablesor, antal fel: 1217 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 834 st)
- Expected X and instead saw X. (totalt 328 st)
- Unnecessary escape character: \/. (totalt 20 st)
- Do not access Object.prototype method X from target object. (totalt 13 st)
- Unnecessary escape character: \-. (totalt 8 st)
- Unnecessary escape character: \.. (totalt 5 st)
- Comparing to itself is potentially pointless. (totalt 3 st)
- Unnecessary X. (totalt 1 st)
- Unnecessary escape character: \[. (totalt 1 st)
- The Function constructor is eval. (totalt 1 st)
- Unnecessary escape character: \?. (totalt 1 st)
- Unnecessary escape character: \:. (totalt 1 st)
- Implied eval. Consider passing a function instead of a string. (totalt 1 st)