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.98 av 5
- JS är dålig.
Webbstandard
- `< script>` in: #1: fi, antal grupperade fel: 1 ( 4.80 betyg )
- `< script>` in: #1: fi, antal fel: 1 ( 4.80 betyg )
- Parsing error: Unexpected token < (totalt 1 st)
- `< script src="...">` in: #1: fi, antal grupperade fel: 4 ( 4.20 betyg )
- `< script src="...">` in: #1: fi, antal fel: 189 ( 1.00 betyg )
- X is defined but never used. (totalt 125 st)
- Unexpected console statement. (totalt 37 st)
- X is assigned a value but never used. (totalt 16 st)
- X is not defined. (totalt 11 st)
- `< script>` in: #20: bc-v4.min.html, antal grupperade fel: 1 ( 4.80 betyg )
- `< script>` in: #20: bc-v4.min.html, antal fel: 1 ( 4.80 betyg )
- X is defined but never used. (totalt 1 st)
- `< script src="...">` in: #21: 19193bafa950b56, antal grupperade fel: 2 ( 4.60 betyg )
- `< script src="...">` in: #21: 19193bafa950b56, antal fel: 3 ( 4.40 betyg )
- Unexpected console statement. (totalt 2 st)
- X is defined but never used. (totalt 1 st)
- `content-type=".*javascript.*"` in: #10: configuration.j, antal grupperade fel: 1 ( 4.80 betyg )
- `content-type=".*javascript.*"` in: #10: configuration.j, antal fel: 7 ( 3.60 betyg )
- X is not defined. (totalt 7 st)
- `content-type=".*javascript.*"` in: #11: cc.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #11: cc.js, antal fel: 35 ( 1.00 betyg )
- X is not defined. (totalt 16 st)
- X is defined but never used. (totalt 12 st)
- X is assigned a value but never used. (totalt 6 st)
- Unexpected console statement. (totalt 1 st)
- `content-type=".*javascript.*"` in: #22: ss360-translati, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #22: ss360-translati, antal fel: 35 ( 1.00 betyg )
- X is not defined. (totalt 16 st)
- X is defined but never used. (totalt 12 st)
- X is assigned a value but never used. (totalt 6 st)
- Unexpected console statement. (totalt 1 st)
- `content-type=".*javascript.*"` in: #23: embed-carousel-, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #23: embed-carousel-, antal fel: 56 ( 1.00 betyg )
- X is defined but never used. (totalt 27 st)
- X is not defined. (totalt 16 st)
- Unexpected console statement. (totalt 7 st)
- X is assigned a value but never used. (totalt 6 st)
- `content-type=".*javascript.*"` in: #25: ss360-unibox-v1, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #25: ss360-unibox-v1, antal fel: 60 ( 1.00 betyg )
- X is defined but never used. (totalt 28 st)
- X is not defined. (totalt 16 st)
- Unexpected console statement. (totalt 10 st)
- X is assigned a value but never used. (totalt 6 st)
- `content-type=".*javascript.*"` in: #26: ss360-styles-v1, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #26: ss360-styles-v1, antal fel: 61 ( 1.00 betyg )
- X is defined but never used. (totalt 28 st)
- X is not defined. (totalt 16 st)
- Unexpected console statement. (totalt 11 st)
- X is assigned a value but never used. (totalt 6 st)
- `content-type=".*javascript.*"` in: #27: matomo.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #27: matomo.js, antal fel: 254 ( 1.00 betyg )
- X is not defined. (totalt 141 st)
- X is defined but never used. (totalt 67 st)
- Unexpected console statement. (totalt 27 st)
- X is assigned a value but never used. (totalt 19 st)
- `content-type=".*javascript.*"` in: #28: 65ccc2367a4ea90, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #28: 65ccc2367a4ea90, antal fel: 254 ( 1.00 betyg )
- X is not defined. (totalt 141 st)
- X is defined but never used. (totalt 67 st)
- Unexpected console statement. (totalt 27 st)
- X is assigned a value but never used. (totalt 19 st)
- `content-type=".*javascript.*"` in: #32: widget.min.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #32: widget.min.js, antal fel: 269 ( 1.00 betyg )
- X is not defined. (totalt 141 st)
- X is defined but never used. (totalt 67 st)
- Unexpected console statement. (totalt 42 st)
- X is assigned a value but never used. (totalt 19 st)
- `content-type=".*javascript.*"` in: #35: configs.php, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #35: configs.php, antal fel: 270 ( 1.00 betyg )
- X is not defined. (totalt 142 st)
- X is defined but never used. (totalt 67 st)
- Unexpected console statement. (totalt 42 st)
- X is assigned a value but never used. (totalt 19 st)
Integritet & säkerhet
- `< script>` in: #1: fi, antal grupperade fel: 1 ( 4.80 betyg )
- `< script>` in: #1: fi, antal fel: 1 ( 4.80 betyg )
- Parsing error: Unexpected token < (totalt 1 st)
- `< script src="...">` in: #1: fi, antal grupperade fel: 14 ( 2.20 betyg )
- `< script src="...">` in: #1: fi, antal fel: 2206 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1725 st)
- Expected X and instead saw X. (totalt 442 st)
- Do not access Object.prototype method X from target object. (totalt 10 st)
- X is assigned to itself. (totalt 6 st)
- Unnecessary escape character: \-. (totalt 4 st)
- Async method X has no X expression. (totalt 4 st)
- Unnecessary escape character: \/. (totalt 3 st)
- The Function constructor is eval. (totalt 3 st)
- Unnecessary escape character: \[. (totalt 2 st)
- Redundant use of `await` on a return value. (totalt 2 st)
- Comparing to itself is potentially pointless. (totalt 2 st)
- Unnecessary X. (totalt 1 st)
- Unexpected string concatenation of literals. (totalt 1 st)
- Unnecessary escape character: \:. (totalt 1 st)
- `< script>` in: #20: bc-v4.min.html, antal grupperade fel: 2 ( 4.60 betyg )
- `< script>` in: #20: 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)
- `< script src="...">` in: #21: 19193bafa950b56, antal grupperade fel: 1 ( 4.80 betyg )
- `< script src="...">` in: #21: 19193bafa950b56, antal fel: 3 ( 4.40 betyg )
- Expected X and instead saw X. (totalt 3 st)
- `content-type=".*javascript.*"` in: #11: cc.js, antal grupperade fel: 6 ( 3.80 betyg )
- `content-type=".*javascript.*"` in: #11: cc.js, antal fel: 348 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 307 st)
- Expected X and instead saw X. (totalt 36 st)
- Script URL is a form of eval. (totalt 2 st)
- Unnecessary escape character: \< . (totalt 1 st)
- Unnecessary escape character: \>. (totalt 1 st)
- Unnecessary escape character: \[. (totalt 1 st)
- `content-type=".*javascript.*"` in: #22: ss360-translati, antal grupperade fel: 6 ( 3.80 betyg )
- `content-type=".*javascript.*"` in: #22: ss360-translati, antal fel: 348 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 307 st)
- Expected X and instead saw X. (totalt 36 st)
- Script URL is a form of eval. (totalt 2 st)
- Unnecessary escape character: \< . (totalt 1 st)
- Unnecessary escape character: \>. (totalt 1 st)
- Unnecessary escape character: \[. (totalt 1 st)
- `content-type=".*javascript.*"` in: #23: embed-carousel-, antal grupperade fel: 13 ( 2.40 betyg )
- `content-type=".*javascript.*"` in: #23: embed-carousel-, antal fel: 1351 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 747 st)
- Expected X and instead saw X. (totalt 572 st)
- Comparing to itself is potentially pointless. (totalt 13 st)
- The Function constructor is eval. (totalt 5 st)
- Redundant use of `await` on a return value. (totalt 4 st)
- Script URL is a form of eval. (totalt 2 st)
- Unexpected string concatenation of literals. (totalt 2 st)
- Unnecessary escape character: \< . (totalt 1 st)
- Unnecessary escape character: \>. (totalt 1 st)
- Unnecessary escape character: \[. (totalt 1 st)
- Unsafe usage of ReturnStatement. (totalt 1 st)
- Do not access Object.prototype method X from target object. (totalt 1 st)
- X is not modified in this loop. (totalt 1 st)
- `content-type=".*javascript.*"` in: #25: ss360-unibox-v1, antal grupperade fel: 14 ( 2.20 betyg )
- `content-type=".*javascript.*"` in: #25: ss360-unibox-v1, antal fel: 1453 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 837 st)
- Expected X and instead saw X. (totalt 583 st)
- Comparing to itself is potentially pointless. (totalt 13 st)
- The Function constructor is eval. (totalt 5 st)
- Redundant use of `await` on a return value. (totalt 4 st)
- Script URL is a form of eval. (totalt 2 st)
- Unexpected string concatenation of literals. (totalt 2 st)
- Unnecessary escape character: \< . (totalt 1 st)
- Unnecessary escape character: \>. (totalt 1 st)
- Unnecessary escape character: \[. (totalt 1 st)
- Unsafe usage of ReturnStatement. (totalt 1 st)
- Do not access Object.prototype method X from target object. (totalt 1 st)
- X is not modified in this loop. (totalt 1 st)
- X is assigned to itself. (totalt 1 st)
- `content-type=".*javascript.*"` in: #26: ss360-styles-v1, antal grupperade fel: 14 ( 2.20 betyg )
- `content-type=".*javascript.*"` in: #26: ss360-styles-v1, antal fel: 1460 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 843 st)
- Expected X and instead saw X. (totalt 584 st)
- Comparing to itself is potentially pointless. (totalt 13 st)
- The Function constructor is eval. (totalt 5 st)
- Redundant use of `await` on a return value. (totalt 4 st)
- Script URL is a form of eval. (totalt 2 st)
- Unexpected string concatenation of literals. (totalt 2 st)
- Unnecessary escape character: \< . (totalt 1 st)
- Unnecessary escape character: \>. (totalt 1 st)
- Unnecessary escape character: \[. (totalt 1 st)
- Unsafe usage of ReturnStatement. (totalt 1 st)
- Do not access Object.prototype method X from target object. (totalt 1 st)
- X is not modified in this loop. (totalt 1 st)
- X is assigned to itself. (totalt 1 st)
- `content-type=".*javascript.*"` in: #27: matomo.js, antal grupperade fel: 18 ( 1.40 betyg )
- `content-type=".*javascript.*"` in: #27: matomo.js, antal fel: 1522 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 843 st)
- Expected X and instead saw X. (totalt 633 st)
- Comparing to itself is potentially pointless. (totalt 13 st)
- Do not access Object.prototype method X from target object. (totalt 8 st)
- The Function constructor is eval. (totalt 5 st)
- Redundant use of `await` on a return value. (totalt 4 st)
- Unnecessary escape character: \-. (totalt 3 st)
- Script URL is a form of eval. (totalt 2 st)
- Unexpected string concatenation of literals. (totalt 2 st)
- Unnecessary escape character: \< . (totalt 1 st)
- Unnecessary escape character: \>. (totalt 1 st)
- Unnecessary escape character: \[. (totalt 1 st)
- Unsafe usage of ReturnStatement. (totalt 1 st)
- X is not modified in this loop. (totalt 1 st)
- X is assigned to itself. (totalt 1 st)
- Unnecessary escape character: \.. (totalt 1 st)
- Unnecessary escape character: \). (totalt 1 st)
- Unnecessary X. (totalt 1 st)
- `content-type=".*javascript.*"` in: #28: 65ccc2367a4ea90, antal grupperade fel: 18 ( 1.40 betyg )
- `content-type=".*javascript.*"` in: #28: 65ccc2367a4ea90, antal fel: 1525 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 846 st)
- Expected X and instead saw X. (totalt 633 st)
- Comparing to itself is potentially pointless. (totalt 13 st)
- Do not access Object.prototype method X from target object. (totalt 8 st)
- The Function constructor is eval. (totalt 5 st)
- Redundant use of `await` on a return value. (totalt 4 st)
- Unnecessary escape character: \-. (totalt 3 st)
- Script URL is a form of eval. (totalt 2 st)
- Unexpected string concatenation of literals. (totalt 2 st)
- Unnecessary escape character: \< . (totalt 1 st)
- Unnecessary escape character: \>. (totalt 1 st)
- Unnecessary escape character: \[. (totalt 1 st)
- Unsafe usage of ReturnStatement. (totalt 1 st)
- X is not modified in this loop. (totalt 1 st)
- X is assigned to itself. (totalt 1 st)
- Unnecessary escape character: \.. (totalt 1 st)
- Unnecessary escape character: \). (totalt 1 st)
- Unnecessary X. (totalt 1 st)
- `content-type=".*javascript.*"` in: #32: widget.min.js, antal grupperade fel: 18 ( 1.40 betyg )
- `content-type=".*javascript.*"` in: #32: widget.min.js, antal fel: 1581 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 900 st)
- Expected X and instead saw X. (totalt 635 st)
- Comparing to itself is potentially pointless. (totalt 13 st)
- Do not access Object.prototype method X from target object. (totalt 8 st)
- The Function constructor is eval. (totalt 5 st)
- Redundant use of `await` on a return value. (totalt 4 st)
- Unnecessary escape character: \-. (totalt 3 st)
- Script URL is a form of eval. (totalt 2 st)
- Unexpected string concatenation of literals. (totalt 2 st)
- Unnecessary escape character: \< . (totalt 1 st)
- Unnecessary escape character: \>. (totalt 1 st)
- Unnecessary escape character: \[. (totalt 1 st)
- Unsafe usage of ReturnStatement. (totalt 1 st)
- X is not modified in this loop. (totalt 1 st)
- X is assigned to itself. (totalt 1 st)
- Unnecessary escape character: \.. (totalt 1 st)
- Unnecessary escape character: \). (totalt 1 st)
- Unnecessary X. (totalt 1 st)
- `content-type=".*javascript.*"` in: #35: configs.php, antal grupperade fel: 18 ( 1.40 betyg )
- `content-type=".*javascript.*"` in: #35: configs.php, antal fel: 1581 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 900 st)
- Expected X and instead saw X. (totalt 635 st)
- Comparing to itself is potentially pointless. (totalt 13 st)
- Do not access Object.prototype method X from target object. (totalt 8 st)
- The Function constructor is eval. (totalt 5 st)
- Redundant use of `await` on a return value. (totalt 4 st)
- Unnecessary escape character: \-. (totalt 3 st)
- Script URL is a form of eval. (totalt 2 st)
- Unexpected string concatenation of literals. (totalt 2 st)
- Unnecessary escape character: \< . (totalt 1 st)
- Unnecessary escape character: \>. (totalt 1 st)
- Unnecessary escape character: \[. (totalt 1 st)
- Unsafe usage of ReturnStatement. (totalt 1 st)
- X is not modified in this loop. (totalt 1 st)
- X is assigned to itself. (totalt 1 st)
- Unnecessary escape character: \.. (totalt 1 st)
- Unnecessary escape character: \). (totalt 1 st)
- Unnecessary X. (totalt 1 st)