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.66 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: 205 ( 1.00 betyg )
- X is defined but never used. (totalt 163 st)
- Unexpected console statement. (totalt 29 st)
- X is not defined. (totalt 11 st)
- X is assigned a value but never used. (totalt 2 st)
- `content-type=".*javascript.*"` in: #15: 3624-c9afc5ac66, antal grupperade fel: 1 ( 4.80 betyg )
- `content-type=".*javascript.*"` in: #15: 3624-c9afc5ac66, antal fel: 7 ( 3.60 betyg )
- X is defined but never used. (totalt 7 st)
- `content-type=".*javascript.*"` in: #16: 9394.7300b1cb06, antal grupperade fel: 2 ( 4.60 betyg )
- `content-type=".*javascript.*"` in: #16: 9394.7300b1cb06, antal fel: 57 ( 1.00 betyg )
- X is defined but never used. (totalt 56 st)
- Unexpected console statement. (totalt 1 st)
- `content-type=".*javascript.*"` in: #17: 4981.d641a01e76, antal grupperade fel: 2 ( 4.60 betyg )
- `content-type=".*javascript.*"` in: #17: 4981.d641a01e76, antal fel: 57 ( 1.00 betyg )
- X is defined but never used. (totalt 56 st)
- Unexpected console statement. (totalt 1 st)
- `content-type=".*javascript.*"` in: #18: 9141.de1a208b72, antal grupperade fel: 2 ( 4.60 betyg )
- `content-type=".*javascript.*"` in: #18: 9141.de1a208b72, antal fel: 61 ( 1.00 betyg )
- X is defined but never used. (totalt 58 st)
- Unexpected console statement. (totalt 3 st)
- `content-type=".*javascript.*"` in: #19: 3018.23fec06f94, antal grupperade fel: 2 ( 4.60 betyg )
- `content-type=".*javascript.*"` in: #19: 3018.23fec06f94, antal fel: 69 ( 1.00 betyg )
- X is defined but never used. (totalt 63 st)
- Unexpected console statement. (totalt 6 st)
- `content-type=".*javascript.*"` in: #45: 1945-67b5619898, antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #45: 1945-67b5619898, antal fel: 128 ( 1.00 betyg )
- X is defined but never used. (totalt 64 st)
- X is not defined. (totalt 55 st)
- Unexpected console statement. (totalt 9 st)
- `content-type=".*javascript.*"` in: #46: 7344-9f5f8084fb, antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #46: 7344-9f5f8084fb, antal fel: 129 ( 1.00 betyg )
- X is defined but never used. (totalt 65 st)
- X is not defined. (totalt 55 st)
- Unexpected console statement. (totalt 9 st)
- `content-type=".*javascript.*"` in: #47: 5145-cf65416b65, antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #47: 5145-cf65416b65, antal fel: 131 ( 1.00 betyg )
- X is defined but never used. (totalt 67 st)
- X is not defined. (totalt 55 st)
- Unexpected console statement. (totalt 9 st)
- `content-type=".*javascript.*"` in: #48: -5B...container, antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #48: -5B...container, antal fel: 132 ( 1.00 betyg )
- X is defined but never used. (totalt 67 st)
- X is not defined. (totalt 56 st)
- Unexpected console statement. (totalt 9 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: 14 ( 2.20 betyg )
- `< script src="...">` in: #1: Webbsida , antal fel: 2847 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1709 st)
- Expected X and instead saw X. (totalt 1068 st)
- Do not access Object.prototype method X from target object. (totalt 36 st)
- Unsafe usage of ThrowStatement. (totalt 9 st)
- X is not modified in this loop. (totalt 7 st)
- Comparing to itself is potentially pointless. (totalt 4 st)
- Unnecessary X. (totalt 4 st)
- The Function constructor is eval. (totalt 2 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)
- Unsafe usage of ReturnStatement. (totalt 1 st)
- Unnecessary escape character: \:. (totalt 1 st)
- `content-type=".*javascript.*"` in: #15: 3624-c9afc5ac66, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #15: 3624-c9afc5ac66, antal fel: 71 ( 1.00 betyg )
- Expected X and instead saw X. (totalt 58 st)
- Expected an assignment or function call and instead saw an expression. (totalt 11 st)
- The Function constructor is eval. (totalt 1 st)
- eval can be harmful. (totalt 1 st)
- `content-type=".*javascript.*"` in: #16: 9394.7300b1cb06, antal grupperade fel: 9 ( 3.20 betyg )
- `content-type=".*javascript.*"` in: #16: 9394.7300b1cb06, antal fel: 1667 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 946 st)
- Expected X and instead saw X. (totalt 696 st)
- Comparing to itself is potentially pointless. (totalt 11 st)
- X is not modified in this loop. (totalt 4 st)
- Do not access Object.prototype method X from target object. (totalt 3 st)
- Unnecessary X. (totalt 3 st)
- Unsafe usage of ThrowStatement. (totalt 2 st)
- The Function constructor is eval. (totalt 1 st)
- eval can be harmful. (totalt 1 st)
- `content-type=".*javascript.*"` in: #17: 4981.d641a01e76, antal grupperade fel: 9 ( 3.20 betyg )
- `content-type=".*javascript.*"` in: #17: 4981.d641a01e76, antal fel: 1674 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 951 st)
- Expected X and instead saw X. (totalt 698 st)
- Comparing to itself is potentially pointless. (totalt 11 st)
- X is not modified in this loop. (totalt 4 st)
- Do not access Object.prototype method X from target object. (totalt 3 st)
- Unnecessary X. (totalt 3 st)
- Unsafe usage of ThrowStatement. (totalt 2 st)
- The Function constructor is eval. (totalt 1 st)
- eval can be harmful. (totalt 1 st)
- `content-type=".*javascript.*"` in: #18: 9141.de1a208b72, antal grupperade fel: 9 ( 3.20 betyg )
- `content-type=".*javascript.*"` in: #18: 9141.de1a208b72, antal fel: 1682 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 956 st)
- Expected X and instead saw X. (totalt 701 st)
- Comparing to itself is potentially pointless. (totalt 11 st)
- X is not modified in this loop. (totalt 4 st)
- Do not access Object.prototype method X from target object. (totalt 3 st)
- Unnecessary X. (totalt 3 st)
- Unsafe usage of ThrowStatement. (totalt 2 st)
- The Function constructor is eval. (totalt 1 st)
- eval can be harmful. (totalt 1 st)
- `content-type=".*javascript.*"` in: #19: 3018.23fec06f94, antal grupperade fel: 9 ( 3.20 betyg )
- `content-type=".*javascript.*"` in: #19: 3018.23fec06f94, antal fel: 1698 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 965 st)
- Expected X and instead saw X. (totalt 708 st)
- Comparing to itself is potentially pointless. (totalt 11 st)
- X is not modified in this loop. (totalt 4 st)
- Do not access Object.prototype method X from target object. (totalt 3 st)
- Unnecessary X. (totalt 3 st)
- Unsafe usage of ThrowStatement. (totalt 2 st)
- The Function constructor is eval. (totalt 1 st)
- eval can be harmful. (totalt 1 st)
- `content-type=".*javascript.*"` in: #45: 1945-67b5619898, antal grupperade fel: 11 ( 2.80 betyg )
- `content-type=".*javascript.*"` in: #45: 1945-67b5619898, antal fel: 1836 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1049 st)
- Expected X and instead saw X. (totalt 736 st)
- Unnecessary escape character: \[. (totalt 12 st)
- Comparing to itself is potentially pointless. (totalt 11 st)
- Do not access Object.prototype method X from target object. (totalt 9 st)
- Unnecessary escape character: \/. (totalt 7 st)
- X is not modified in this loop. (totalt 5 st)
- Unnecessary X. (totalt 3 st)
- Unsafe usage of ThrowStatement. (totalt 2 st)
- The Function constructor is eval. (totalt 1 st)
- eval can be harmful. (totalt 1 st)
- `content-type=".*javascript.*"` in: #46: 7344-9f5f8084fb, antal grupperade fel: 11 ( 2.80 betyg )
- `content-type=".*javascript.*"` in: #46: 7344-9f5f8084fb, antal fel: 1871 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1076 st)
- Expected X and instead saw X. (totalt 743 st)
- Unnecessary escape character: \[. (totalt 12 st)
- Comparing to itself is potentially pointless. (totalt 11 st)
- Do not access Object.prototype method X from target object. (totalt 9 st)
- Unnecessary escape character: \/. (totalt 7 st)
- X is not modified in this loop. (totalt 5 st)
- Unsafe usage of ThrowStatement. (totalt 3 st)
- Unnecessary X. (totalt 3 st)
- The Function constructor is eval. (totalt 1 st)
- eval can be harmful. (totalt 1 st)
- `content-type=".*javascript.*"` in: #47: 5145-cf65416b65, antal grupperade fel: 11 ( 2.80 betyg )
- `content-type=".*javascript.*"` in: #47: 5145-cf65416b65, antal fel: 1921 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1105 st)
- Expected X and instead saw X. (totalt 763 st)
- Unnecessary escape character: \[. (totalt 12 st)
- Comparing to itself is potentially pointless. (totalt 11 st)
- Do not access Object.prototype method X from target object. (totalt 9 st)
- Unnecessary escape character: \/. (totalt 7 st)
- X is not modified in this loop. (totalt 5 st)
- Unsafe usage of ThrowStatement. (totalt 4 st)
- Unnecessary X. (totalt 3 st)
- The Function constructor is eval. (totalt 1 st)
- eval can be harmful. (totalt 1 st)
- `content-type=".*javascript.*"` in: #48: -5B...container, antal grupperade fel: 11 ( 2.80 betyg )
- `content-type=".*javascript.*"` in: #48: -5B...container, antal fel: 1922 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1106 st)
- Expected X and instead saw X. (totalt 763 st)
- Unnecessary escape character: \[. (totalt 12 st)
- Comparing to itself is potentially pointless. (totalt 11 st)
- Do not access Object.prototype method X from target object. (totalt 9 st)
- Unnecessary escape character: \/. (totalt 7 st)
- X is not modified in this loop. (totalt 5 st)
- Unsafe usage of ThrowStatement. (totalt 4 st)
- Unnecessary X. (totalt 3 st)
- The Function constructor is eval. (totalt 1 st)
- eval can be harmful. (totalt 1 st)