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.56 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: 656 ( 1.00 betyg )
- X is defined but never used. (totalt 478 st)
- X is assigned a value but never used. (totalt 93 st)
- X is not defined. (totalt 81 st)
- Unexpected console statement. (totalt 4 st)
- `< script>` in: #70: ddc26f75-149449, antal grupperade fel: 1 ( 4.80 betyg )
- `< script>` in: #70: ddc26f75-149449, antal fel: 1 ( 4.80 betyg )
- Parsing error: Unexpected token < (totalt 1 st)
- `< script src="...">` in: #70: ddc26f75-149449, antal grupperade fel: 4 ( 4.20 betyg )
- `< script src="...">` in: #70: ddc26f75-149449, antal fel: 1490 ( 1.00 betyg )
- X is not defined. (totalt 1139 st)
- X is defined but never used. (totalt 261 st)
- Unexpected console statement. (totalt 70 st)
- X is assigned a value but never used. (totalt 20 st)
- `content-type=".*javascript.*"` in: #16: jquery.min.js, antal grupperade fel: 2 ( 4.60 betyg )
- `content-type=".*javascript.*"` in: #16: jquery.min.js, antal fel: 13 ( 2.40 betyg )
- X is defined but never used. (totalt 11 st)
- X is not defined. (totalt 2 st)
- `content-type=".*javascript.*"` in: #17: jquery-noconfli, antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #17: jquery-noconfli, antal fel: 15 ( 2.00 betyg )
- X is defined but never used. (totalt 11 st)
- X is not defined. (totalt 3 st)
- X is assigned a value but never used. (totalt 1 st)
- `content-type=".*javascript.*"` in: #18: core.min.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #18: core.min.js, antal fel: 77 ( 1.00 betyg )
- X is not defined. (totalt 64 st)
- X is defined but never used. (totalt 11 st)
- X is assigned a value but never used. (totalt 1 st)
- Unexpected console statement. (totalt 1 st)
- `content-type=".*javascript.*"` in: #19: joomla-hidden-m, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #19: joomla-hidden-m, antal fel: 78 ( 1.00 betyg )
- X is not defined. (totalt 65 st)
- X is defined but never used. (totalt 11 st)
- X is assigned a value but never used. (totalt 1 st)
- Unexpected console statement. (totalt 1 st)
- `content-type=".*javascript.*"` in: #20: messages.min.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #20: messages.min.js, antal fel: 89 ( 1.00 betyg )
- X is not defined. (totalt 76 st)
- X is defined but never used. (totalt 11 st)
- X is assigned a value but never used. (totalt 1 st)
- Unexpected console statement. (totalt 1 st)
- `content-type=".*javascript.*"` in: #21: slider.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #21: slider.js, antal fel: 128 ( 1.00 betyg )
- X is not defined. (totalt 114 st)
- X is defined but never used. (totalt 12 st)
- X is assigned a value but never used. (totalt 1 st)
- Unexpected console statement. (totalt 1 st)
- `content-type=".*javascript.*"` in: #22: jquery.owl.caro, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #22: jquery.owl.caro, antal fel: 147 ( 1.00 betyg )
- X is not defined. (totalt 116 st)
- X is defined but never used. (totalt 27 st)
- X is assigned a value but never used. (totalt 2 st)
- Unexpected console statement. (totalt 2 st)
- `content-type=".*javascript.*"` in: #23: theme.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #23: theme.js, antal fel: 148 ( 1.00 betyg )
- X is not defined. (totalt 117 st)
- X is defined but never used. (totalt 27 st)
- X is assigned a value but never used. (totalt 2 st)
- Unexpected console statement. (totalt 2 st)
- `content-type=".*javascript.*"` in: #57: main.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #57: main.js, antal fel: 266 ( 1.00 betyg )
- X is defined but never used. (totalt 129 st)
- X is not defined. (totalt 122 st)
- X is assigned a value but never used. (totalt 10 st)
- Unexpected console statement. (totalt 5 st)
- `content-type=".*javascript.*"` in: #65: js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #65: js, antal fel: 775 ( 1.00 betyg )
- X is defined but never used. (totalt 532 st)
- X is not defined. (totalt 138 st)
- X is assigned a value but never used. (totalt 100 st)
- Unexpected console statement. (totalt 5 st)
- `content-type=".*javascript.*"` in: #66: analytics.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #66: analytics.js, antal fel: 805 ( 1.00 betyg )
- X is defined but never used. (totalt 559 st)
- X is not defined. (totalt 141 st)
- X is assigned a value but never used. (totalt 100 st)
- Unexpected console statement. (totalt 5 st)
- `content-type=".*javascript.*"` in: #84: iframe-api, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #84: iframe-api, antal fel: 807 ( 1.00 betyg )
- X is defined but never used. (totalt 561 st)
- X is not defined. (totalt 141 st)
- X is assigned a value but never used. (totalt 100 st)
- Unexpected console statement. (totalt 5 st)
- `content-type=".*javascript.*"` in: #86: www-widgetapi.j, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #86: www-widgetapi.j, antal fel: 824 ( 1.00 betyg )
- X is defined but never used. (totalt 571 st)
- X is not defined. (totalt 143 st)
- X is assigned a value but never used. (totalt 100 st)
- Unexpected console statement. (totalt 10 st)
- `content-type=".*javascript.*"` in: #87: nr-1184.min.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #87: nr-1184.min.js, antal fel: 885 ( 1.00 betyg )
- X is defined but never used. (totalt 620 st)
- X is not defined. (totalt 155 st)
- X is assigned a value but never used. (totalt 100 st)
- Unexpected console statement. (totalt 10 st)
- `content-type=".*javascript.*"` in: #88: analytics.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #88: analytics.js, antal fel: 915 ( 1.00 betyg )
- X is defined but never used. (totalt 647 st)
- X is not defined. (totalt 158 st)
- X is assigned a value but never used. (totalt 100 st)
- Unexpected console statement. (totalt 10 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: 9 ( 3.20 betyg )
- `< script src="...">` in: #1: Webbsida , antal fel: 1282 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 880 st)
- Expected X and instead saw X. (totalt 297 st)
- Do not access Object.prototype method X from target object. (totalt 89 st)
- X is not modified in this loop. (totalt 7 st)
- Unnecessary escape character: \/. (totalt 3 st)
- X is assigned to itself. (totalt 3 st)
- Comparing to itself is potentially pointless. (totalt 1 st)
- Script URL is a form of eval. (totalt 1 st)
- Redundant use of `await` on a return value. (totalt 1 st)
- `< script>` in: #70: ddc26f75-149449, antal grupperade fel: 1 ( 4.80 betyg )
- `< script>` in: #70: ddc26f75-149449, antal fel: 1 ( 4.80 betyg )
- Parsing error: Unexpected token < (totalt 1 st)
- `< script src="...">` in: #70: ddc26f75-149449, antal grupperade fel: 28 ( 1.00 betyg )
- `< script src="...">` in: #70: ddc26f75-149449, antal fel: 7059 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 3550 st)
- Expected X and instead saw X. (totalt 3167 st)
- Do not access Object.prototype method X from target object. (totalt 101 st)
- Comparing to itself is potentially pointless. (totalt 66 st)
- Unnecessary escape character: \/. (totalt 26 st)
- Unnecessary escape character: \-. (totalt 26 st)
- Unsafe usage of ThrowStatement. (totalt 17 st)
- The Function constructor is eval. (totalt 15 st)
- X is not modified in this loop. (totalt 11 st)
- Unsafe usage of ReturnStatement. (totalt 10 st)
- Unexpected string concatenation of literals. (totalt 10 st)
- Unnecessary escape character: \+. (totalt 7 st)
- Unnecessary escape character: \(. (totalt 6 st)
- Unnecessary escape character: \). (totalt 6 st)
- Unnecessary escape character: \$. (totalt 5 st)
- Unnecessary escape character: \*. (totalt 5 st)
- Unnecessary X. (totalt 5 st)
- Unnecessary escape character: \". (totalt 4 st)
- Script URL is a form of eval. (totalt 4 st)
- Unnecessary escape character: \[. (totalt 4 st)
- Unnecessary escape character: \&. (totalt 3 st)
- Unnecessary escape character: \^. (totalt 3 st)
- Unnecessary escape character: \_. (totalt 2 st)
- X is assigned to itself. (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)
- `content-type=".*javascript.*"` in: #16: jquery.min.js, antal grupperade fel: 7 ( 3.60 betyg )
- `content-type=".*javascript.*"` in: #16: jquery.min.js, antal fel: 373 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 217 st)
- Expected X and instead saw X. (totalt 150 st)
- Unnecessary escape character: \/. (totalt 2 st)
- Do not access Object.prototype method X from target object. (totalt 1 st)
- Unnecessary X. (totalt 1 st)
- Comparing to itself is potentially pointless. (totalt 1 st)
- X is assigned to itself. (totalt 1 st)
- `content-type=".*javascript.*"` in: #17: jquery-noconfli, antal grupperade fel: 7 ( 3.60 betyg )
- `content-type=".*javascript.*"` in: #17: jquery-noconfli, antal fel: 373 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 217 st)
- Expected X and instead saw X. (totalt 150 st)
- Unnecessary escape character: \/. (totalt 2 st)
- Do not access Object.prototype method X from target object. (totalt 1 st)
- Unnecessary X. (totalt 1 st)
- Comparing to itself is potentially pointless. (totalt 1 st)
- X is assigned to itself. (totalt 1 st)
- `content-type=".*javascript.*"` in: #18: core.min.js, antal grupperade fel: 7 ( 3.60 betyg )
- `content-type=".*javascript.*"` in: #18: core.min.js, antal fel: 403 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 238 st)
- Expected X and instead saw X. (totalt 159 st)
- Unnecessary escape character: \/. (totalt 2 st)
- Do not access Object.prototype method X from target object. (totalt 1 st)
- Unnecessary X. (totalt 1 st)
- Comparing to itself is potentially pointless. (totalt 1 st)
- X is assigned to itself. (totalt 1 st)
- `content-type=".*javascript.*"` in: #19: joomla-hidden-m, antal grupperade fel: 7 ( 3.60 betyg )
- `content-type=".*javascript.*"` in: #19: joomla-hidden-m, antal fel: 406 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 241 st)
- Expected X and instead saw X. (totalt 159 st)
- Unnecessary escape character: \/. (totalt 2 st)
- Do not access Object.prototype method X from target object. (totalt 1 st)
- Unnecessary X. (totalt 1 st)
- Comparing to itself is potentially pointless. (totalt 1 st)
- X is assigned to itself. (totalt 1 st)
- `content-type=".*javascript.*"` in: #20: messages.min.js, antal grupperade fel: 7 ( 3.60 betyg )
- `content-type=".*javascript.*"` in: #20: messages.min.js, antal fel: 426 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 261 st)
- Expected X and instead saw X. (totalt 159 st)
- Unnecessary escape character: \/. (totalt 2 st)
- Do not access Object.prototype method X from target object. (totalt 1 st)
- Unnecessary X. (totalt 1 st)
- Comparing to itself is potentially pointless. (totalt 1 st)
- X is assigned to itself. (totalt 1 st)
- `content-type=".*javascript.*"` in: #21: slider.js, antal grupperade fel: 7 ( 3.60 betyg )
- `content-type=".*javascript.*"` in: #21: slider.js, antal fel: 511 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 304 st)
- Expected X and instead saw X. (totalt 201 st)
- Unnecessary escape character: \/. (totalt 2 st)
- Do not access Object.prototype method X from target object. (totalt 1 st)
- Unnecessary X. (totalt 1 st)
- Comparing to itself is potentially pointless. (totalt 1 st)
- X is assigned to itself. (totalt 1 st)
- `content-type=".*javascript.*"` in: #22: jquery.owl.caro, antal grupperade fel: 9 ( 3.20 betyg )
- `content-type=".*javascript.*"` in: #22: jquery.owl.caro, antal fel: 671 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 441 st)
- Expected X and instead saw X. (totalt 222 st)
- Unnecessary escape character: \/. (totalt 2 st)
- Do not access Object.prototype method X from target object. (totalt 1 st)
- Unnecessary X. (totalt 1 st)
- Comparing to itself is potentially pointless. (totalt 1 st)
- X is assigned to itself. (totalt 1 st)
- Unnecessary escape character: \-. (totalt 1 st)
- Unnecessary escape character: \&. (totalt 1 st)
- `content-type=".*javascript.*"` in: #23: theme.js, antal grupperade fel: 9 ( 3.20 betyg )
- `content-type=".*javascript.*"` in: #23: theme.js, antal fel: 671 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 441 st)
- Expected X and instead saw X. (totalt 222 st)
- Unnecessary escape character: \/. (totalt 2 st)
- Do not access Object.prototype method X from target object. (totalt 1 st)
- Unnecessary X. (totalt 1 st)
- Comparing to itself is potentially pointless. (totalt 1 st)
- X is assigned to itself. (totalt 1 st)
- Unnecessary escape character: \-. (totalt 1 st)
- Unnecessary escape character: \&. (totalt 1 st)
- `content-type=".*javascript.*"` in: #57: main.js, antal grupperade fel: 9 ( 3.20 betyg )
- `content-type=".*javascript.*"` in: #57: main.js, antal fel: 735 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 443 st)
- Expected X and instead saw X. (totalt 278 st)
- Unnecessary X. (totalt 4 st)
- Do not access Object.prototype method X from target object. (totalt 3 st)
- Unnecessary escape character: \/. (totalt 3 st)
- Comparing to itself is potentially pointless. (totalt 1 st)
- X is assigned to itself. (totalt 1 st)
- Unnecessary escape character: \-. (totalt 1 st)
- Unnecessary escape character: \&. (totalt 1 st)
- `content-type=".*javascript.*"` in: #65: js, antal grupperade fel: 13 ( 2.40 betyg )
- `content-type=".*javascript.*"` in: #65: js, antal fel: 2148 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1528 st)
- Expected X and instead saw X. (totalt 511 st)
- Do not access Object.prototype method X from target object. (totalt 85 st)
- Unnecessary escape character: \/. (totalt 6 st)
- Unnecessary X. (totalt 4 st)
- X is assigned to itself. (totalt 4 st)
- X is not modified in this loop. (totalt 3 st)
- Comparing to itself is potentially pointless. (totalt 2 st)
- Unnecessary escape character: \-. (totalt 1 st)
- Unnecessary escape character: \&. (totalt 1 st)
- Unnecessary escape character: \?. (totalt 1 st)
- Script URL is a form of eval. (totalt 1 st)
- Unnecessary escape character: \}. (totalt 1 st)
- `content-type=".*javascript.*"` in: #66: analytics.js, antal grupperade fel: 14 ( 2.20 betyg )
- `content-type=".*javascript.*"` in: #66: analytics.js, antal fel: 2578 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1762 st)
- Expected X and instead saw X. (totalt 689 st)
- Do not access Object.prototype method X from target object. (totalt 97 st)
- Unnecessary escape character: \/. (totalt 8 st)
- Unnecessary X. (totalt 5 st)
- X is assigned to itself. (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)
- Unnecessary escape character: \?. (totalt 1 st)
- Script URL is a form of eval. (totalt 1 st)
- Unnecessary escape character: \}. (totalt 1 st)
- `content-type=".*javascript.*"` in: #84: iframe-api, antal grupperade fel: 14 ( 2.20 betyg )
- `content-type=".*javascript.*"` in: #84: iframe-api, antal fel: 2586 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1762 st)
- Expected X and instead saw X. (totalt 689 st)
- Do not access Object.prototype method X from target object. (totalt 98 st)
- Unnecessary escape character: \/. (totalt 15 st)
- Unnecessary X. (totalt 5 st)
- X is assigned to itself. (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)
- Unnecessary escape character: \?. (totalt 1 st)
- Script URL is a form of eval. (totalt 1 st)
- Unnecessary escape character: \}. (totalt 1 st)
- `content-type=".*javascript.*"` in: #86: www-widgetapi.j, antal grupperade fel: 14 ( 2.20 betyg )
- `content-type=".*javascript.*"` in: #86: www-widgetapi.j, antal fel: 2797 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1862 st)
- Expected X and instead saw X. (totalt 780 st)
- Do not access Object.prototype method X from target object. (totalt 105 st)
- Unnecessary escape character: \/. (totalt 15 st)
- X is assigned to itself. (totalt 13 st)
- Comparing to itself is potentially pointless. (totalt 7 st)
- Unnecessary X. (totalt 5 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)
- Unnecessary escape character: \?. (totalt 1 st)
- Script URL is a form of eval. (totalt 1 st)
- Unnecessary escape character: \}. (totalt 1 st)
- `content-type=".*javascript.*"` in: #87: nr-1184.min.js, antal grupperade fel: 16 ( 1.80 betyg )
- `content-type=".*javascript.*"` in: #87: nr-1184.min.js, antal fel: 2941 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1963 st)
- Expected X and instead saw X. (totalt 817 st)
- Do not access Object.prototype method X from target object. (totalt 106 st)
- Unnecessary escape character: \/. (totalt 16 st)
- X is assigned to itself. (totalt 13 st)
- Comparing to itself is potentially pointless. (totalt 7 st)
- Unnecessary X. (totalt 5 st)
- X is not modified in this loop. (totalt 5 st)
- Unnecessary escape character: \[. (totalt 2 st)
- Unnecessary escape character: \-. (totalt 1 st)
- Unnecessary escape character: \&. (totalt 1 st)
- Unnecessary escape character: \?. (totalt 1 st)
- Script URL is a form of eval. (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: #88: analytics.js, antal grupperade fel: 16 ( 1.80 betyg )
- `content-type=".*javascript.*"` in: #88: analytics.js, antal fel: 3371 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 2197 st)
- Expected X and instead saw X. (totalt 995 st)
- Do not access Object.prototype method X from target object. (totalt 118 st)
- Unnecessary escape character: \/. (totalt 18 st)
- X is assigned to itself. (totalt 13 st)
- Comparing to itself is potentially pointless. (totalt 8 st)
- Unnecessary X. (totalt 6 st)
- X is not modified in this loop. (totalt 5 st)
- Unnecessary escape character: \[. (totalt 4 st)
- Unnecessary escape character: \-. (totalt 1 st)
- Unnecessary escape character: \&. (totalt 1 st)
- Unnecessary escape character: \?. (totalt 1 st)
- Script URL is a form of eval. (totalt 1 st)
- Unnecessary escape character: \}. (totalt 1 st)
- Unnecessary escape character: \". (totalt 1 st)
- Unnecessary escape character: \). (totalt 1 st)