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.34 av 5
- JS är dålig.
Webbstandard
- `< script>` in: #1: Webbsida , antal grupperade fel: 3 ( 4.40 betyg )
- `< script>` in: #1: Webbsida , antal fel: 26 ( 1.00 betyg )
- X is not defined. (totalt 23 st)
- X is defined but never used. (totalt 2 st)
- Unexpected console statement. (totalt 1 st)
- `< script src="...">` in: #1: Webbsida , antal grupperade fel: 4 ( 4.20 betyg )
- `< script src="...">` in: #1: Webbsida , antal fel: 826 ( 1.00 betyg )
- X is not defined. (totalt 503 st)
- X is defined but never used. (totalt 234 st)
- Unexpected console statement. (totalt 63 st)
- X is assigned a value but never used. (totalt 26 st)
- `< script>` in: #22: bc-v4.min.html, antal grupperade fel: 1 ( 4.80 betyg )
- `< script>` in: #22: bc-v4.min.html, antal fel: 1 ( 4.80 betyg )
- X is defined but never used. (totalt 1 st)
- `content-type=".*javascript.*"` in: #5: hkr-prio-bundle, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #5: hkr-prio-bundle, antal fel: 289 ( 1.00 betyg )
- X is not defined. (totalt 188 st)
- X is defined but never used. (totalt 89 st)
- Unexpected console statement. (totalt 10 st)
- X is assigned a value but never used. (totalt 2 st)
- `content-type=".*javascript.*"` in: #7: hkr-app-bundled, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #7: hkr-app-bundled, antal fel: 423 ( 1.00 betyg )
- X is not defined. (totalt 302 st)
- X is defined but never used. (totalt 109 st)
- Unexpected console statement. (totalt 10 st)
- X is assigned a value but never used. (totalt 2 st)
- `content-type=".*javascript.*"` in: #9: hkr-page-specif, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #9: hkr-page-specif, antal fel: 634 ( 1.00 betyg )
- X is not defined. (totalt 491 st)
- X is defined but never used. (totalt 130 st)
- Unexpected console statement. (totalt 11 st)
- X is assigned a value but never used. (totalt 2 st)
- `content-type=".*javascript.*"` in: #20: configuration.j, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #20: configuration.j, antal fel: 640 ( 1.00 betyg )
- X is not defined. (totalt 497 st)
- X is defined but never used. (totalt 130 st)
- Unexpected console statement. (totalt 11 st)
- X is assigned a value but never used. (totalt 2 st)
- `content-type=".*javascript.*"` in: #21: cc.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #21: cc.js, antal fel: 668 ( 1.00 betyg )
- X is not defined. (totalt 506 st)
- X is defined but never used. (totalt 142 st)
- Unexpected console statement. (totalt 12 st)
- X is assigned a value but never used. (totalt 8 st)
Integritet & säkerhet
- `< script>` in: #1: Webbsida , antal grupperade fel: 2 ( 4.60 betyg )
- `< script>` in: #1: Webbsida , antal fel: 10 ( 3.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 8 st)
- Expected X and instead saw X. (totalt 2 st)
- `< script src="...">` in: #1: Webbsida , antal grupperade fel: 28 ( 1.00 betyg )
- `< script src="...">` in: #1: Webbsida , antal fel: 3253 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 2080 st)
- Expected X and instead saw X. (totalt 867 st)
- Unnecessary escape character: \-. (totalt 65 st)
- Do not access Object.prototype method X from target object. (totalt 60 st)
- Unnecessary escape character: \/. (totalt 24 st)
- Unnecessary escape character: \$. (totalt 21 st)
- Comparing to itself is potentially pointless. (totalt 19 st)
- Unnecessary escape character: \*. (totalt 14 st)
- X is assigned to itself. (totalt 14 st)
- Unnecessary escape character: \+. (totalt 13 st)
- Unnecessary escape character: \(. (totalt 12 st)
- Unnecessary escape character: \). (totalt 11 st)
- Unnecessary escape character: \:. (totalt 8 st)
- Unexpected string concatenation of literals. (totalt 7 st)
- Unnecessary X. (totalt 5 st)
- Unnecessary escape character: \[. (totalt 5 st)
- X is not modified in this loop. (totalt 5 st)
- Unnecessary escape character: \?. (totalt 4 st)
- The Function constructor is eval. (totalt 3 st)
- Unnecessary escape character: \^. (totalt 3 st)
- Unnecessary escape character: \.. (totalt 2 st)
- Unnecessary escape character: \|. (totalt 2 st)
- Unnecessary escape character: \#. (totalt 2 st)
- Unsafe usage of ReturnStatement. (totalt 2 st)
- Unnecessary escape character: \,. (totalt 2 st)
- Unnecessary escape character: \_. (totalt 1 st)
- Unsafe usage of ThrowStatement. (totalt 1 st)
- eval can be harmful. (totalt 1 st)
- `< script>` in: #22: bc-v4.min.html, antal grupperade fel: 2 ( 4.60 betyg )
- `< script>` in: #22: 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: #5: hkr-prio-bundle, antal grupperade fel: 26 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #5: hkr-prio-bundle, antal fel: 1959 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1345 st)
- Expected X and instead saw X. (totalt 406 st)
- Do not access Object.prototype method X from target object. (totalt 31 st)
- Unnecessary escape character: \$. (totalt 21 st)
- Comparing to itself is potentially pointless. (totalt 19 st)
- Unnecessary escape character: \/. (totalt 19 st)
- Unnecessary escape character: \*. (totalt 14 st)
- Unnecessary escape character: \-. (totalt 14 st)
- X is assigned to itself. (totalt 14 st)
- Unnecessary escape character: \+. (totalt 13 st)
- Unnecessary escape character: \(. (totalt 12 st)
- Unnecessary escape character: \). (totalt 11 st)
- Unnecessary escape character: \:. (totalt 8 st)
- Unnecessary X. (totalt 4 st)
- X is not modified in this loop. (totalt 4 st)
- Unnecessary escape character: \?. (totalt 4 st)
- Unnecessary escape character: \[. (totalt 3 st)
- The Function constructor is eval. (totalt 3 st)
- Unnecessary escape character: \^. (totalt 3 st)
- Unnecessary escape character: \.. (totalt 2 st)
- Unnecessary escape character: \|. (totalt 2 st)
- Unnecessary escape character: \#. (totalt 2 st)
- Unsafe usage of ReturnStatement. (totalt 2 st)
- Unnecessary escape character: \_. (totalt 1 st)
- Unsafe usage of ThrowStatement. (totalt 1 st)
- Unnecessary escape character: \,. (totalt 1 st)
- `content-type=".*javascript.*"` in: #7: hkr-app-bundled, antal grupperade fel: 26 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #7: hkr-app-bundled, antal fel: 2058 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1427 st)
- Expected X and instead saw X. (totalt 423 st)
- Do not access Object.prototype method X from target object. (totalt 31 st)
- Unnecessary escape character: \$. (totalt 21 st)
- Comparing to itself is potentially pointless. (totalt 19 st)
- Unnecessary escape character: \/. (totalt 19 st)
- Unnecessary escape character: \*. (totalt 14 st)
- Unnecessary escape character: \-. (totalt 14 st)
- X is assigned to itself. (totalt 14 st)
- Unnecessary escape character: \+. (totalt 13 st)
- Unnecessary escape character: \(. (totalt 12 st)
- Unnecessary escape character: \). (totalt 11 st)
- Unnecessary escape character: \:. (totalt 8 st)
- Unnecessary X. (totalt 4 st)
- X is not modified in this loop. (totalt 4 st)
- Unnecessary escape character: \?. (totalt 4 st)
- Unnecessary escape character: \[. (totalt 3 st)
- The Function constructor is eval. (totalt 3 st)
- Unnecessary escape character: \^. (totalt 3 st)
- Unnecessary escape character: \.. (totalt 2 st)
- Unnecessary escape character: \|. (totalt 2 st)
- Unnecessary escape character: \#. (totalt 2 st)
- Unsafe usage of ReturnStatement. (totalt 2 st)
- Unnecessary escape character: \_. (totalt 1 st)
- Unsafe usage of ThrowStatement. (totalt 1 st)
- Unnecessary escape character: \,. (totalt 1 st)
- `content-type=".*javascript.*"` in: #9: hkr-page-specif, antal grupperade fel: 26 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #9: hkr-page-specif, antal fel: 2373 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1662 st)
- Expected X and instead saw X. (totalt 503 st)
- Do not access Object.prototype method X from target object. (totalt 31 st)
- Unnecessary escape character: \$. (totalt 21 st)
- Comparing to itself is potentially pointless. (totalt 19 st)
- Unnecessary escape character: \/. (totalt 19 st)
- Unnecessary escape character: \*. (totalt 14 st)
- Unnecessary escape character: \-. (totalt 14 st)
- X is assigned to itself. (totalt 14 st)
- Unnecessary escape character: \+. (totalt 13 st)
- Unnecessary escape character: \(. (totalt 12 st)
- Unnecessary escape character: \). (totalt 11 st)
- Unnecessary escape character: \:. (totalt 8 st)
- Unnecessary X. (totalt 4 st)
- X is not modified in this loop. (totalt 4 st)
- Unnecessary escape character: \?. (totalt 4 st)
- Unnecessary escape character: \[. (totalt 3 st)
- The Function constructor is eval. (totalt 3 st)
- Unnecessary escape character: \^. (totalt 3 st)
- Unnecessary escape character: \.. (totalt 2 st)
- Unnecessary escape character: \|. (totalt 2 st)
- Unnecessary escape character: \#. (totalt 2 st)
- Unsafe usage of ReturnStatement. (totalt 2 st)
- Unnecessary escape character: \_. (totalt 1 st)
- Unsafe usage of ThrowStatement. (totalt 1 st)
- Unnecessary escape character: \,. (totalt 1 st)
- `content-type=".*javascript.*"` in: #20: configuration.j, antal grupperade fel: 26 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #20: configuration.j, antal fel: 2373 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1662 st)
- Expected X and instead saw X. (totalt 503 st)
- Do not access Object.prototype method X from target object. (totalt 31 st)
- Unnecessary escape character: \$. (totalt 21 st)
- Comparing to itself is potentially pointless. (totalt 19 st)
- Unnecessary escape character: \/. (totalt 19 st)
- Unnecessary escape character: \*. (totalt 14 st)
- Unnecessary escape character: \-. (totalt 14 st)
- X is assigned to itself. (totalt 14 st)
- Unnecessary escape character: \+. (totalt 13 st)
- Unnecessary escape character: \(. (totalt 12 st)
- Unnecessary escape character: \). (totalt 11 st)
- Unnecessary escape character: \:. (totalt 8 st)
- Unnecessary X. (totalt 4 st)
- X is not modified in this loop. (totalt 4 st)
- Unnecessary escape character: \?. (totalt 4 st)
- Unnecessary escape character: \[. (totalt 3 st)
- The Function constructor is eval. (totalt 3 st)
- Unnecessary escape character: \^. (totalt 3 st)
- Unnecessary escape character: \.. (totalt 2 st)
- Unnecessary escape character: \|. (totalt 2 st)
- Unnecessary escape character: \#. (totalt 2 st)
- Unsafe usage of ReturnStatement. (totalt 2 st)
- Unnecessary escape character: \_. (totalt 1 st)
- Unsafe usage of ThrowStatement. (totalt 1 st)
- Unnecessary escape character: \,. (totalt 1 st)
- `content-type=".*javascript.*"` in: #21: cc.js, antal grupperade fel: 29 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #21: cc.js, antal fel: 2720 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1968 st)
- Expected X and instead saw X. (totalt 539 st)
- Do not access Object.prototype method X from target object. (totalt 31 st)
- Unnecessary escape character: \$. (totalt 21 st)
- Comparing to itself is potentially pointless. (totalt 19 st)
- Unnecessary escape character: \/. (totalt 19 st)
- Unnecessary escape character: \*. (totalt 14 st)
- Unnecessary escape character: \-. (totalt 14 st)
- X is assigned to itself. (totalt 14 st)
- Unnecessary escape character: \+. (totalt 13 st)
- Unnecessary escape character: \(. (totalt 12 st)
- Unnecessary escape character: \). (totalt 11 st)
- Unnecessary escape character: \:. (totalt 8 st)
- Unnecessary X. (totalt 4 st)
- X is not modified in this loop. (totalt 4 st)
- Unnecessary escape character: \[. (totalt 4 st)
- Unnecessary escape character: \?. (totalt 4 st)
- The Function constructor is eval. (totalt 3 st)
- Unnecessary escape character: \^. (totalt 3 st)
- Unnecessary escape character: \.. (totalt 2 st)
- Unnecessary escape character: \|. (totalt 2 st)
- Unnecessary escape character: \#. (totalt 2 st)
- Unsafe usage of ReturnStatement. (totalt 2 st)
- Script URL is a form of eval. (totalt 2 st)
- Unnecessary escape character: \_. (totalt 1 st)
- Unsafe usage of ThrowStatement. (totalt 1 st)
- Unnecessary escape character: \,. (totalt 1 st)
- Unnecessary escape character: \< . (totalt 1 st)
- Unnecessary escape character: \>. (totalt 1 st)