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.61 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: 726 ( 1.00 betyg )
- X is not defined. (totalt 634 st)
- X is defined but never used. (totalt 56 st)
- Unexpected console statement. (totalt 21 st)
- X is assigned a value but never used. (totalt 15 st)
- `< script>` in: #30: bc-v4.min.html, antal grupperade fel: 1 ( 4.80 betyg )
- `< script>` in: #30: bc-v4.min.html, antal fel: 1 ( 4.80 betyg )
- X is defined but never used. (totalt 1 st)
- `content-type=".*javascript.*"` in: #4: gtm.js, antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #4: gtm.js, antal fel: 615 ( 1.00 betyg )
- X is defined but never used. (totalt 498 st)
- X is assigned a value but never used. (totalt 86 st)
- X is not defined. (totalt 31 st)
- `content-type=".*javascript.*"` in: #23: configuration.j, antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #23: configuration.j, antal fel: 618 ( 1.00 betyg )
- X is defined but never used. (totalt 498 st)
- X is assigned a value but never used. (totalt 86 st)
- X is not defined. (totalt 34 st)
- `content-type=".*javascript.*"` in: #24: cc.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #24: cc.js, antal fel: 646 ( 1.00 betyg )
- X is defined but never used. (totalt 510 st)
- X is assigned a value but never used. (totalt 92 st)
- X is not defined. (totalt 43 st)
- Unexpected console statement. (totalt 1 st)
- `content-type=".*javascript.*"` in: #36: cobrowse.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #36: cobrowse.js, antal fel: 648 ( 1.00 betyg )
- X is defined but never used. (totalt 510 st)
- X is assigned a value but never used. (totalt 92 st)
- X is not defined. (totalt 43 st)
- Unexpected console statement. (totalt 3 st)
- `content-type=".*javascript.*"` in: #37: 65796fdbb0dbd34, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #37: 65796fdbb0dbd34, antal fel: 648 ( 1.00 betyg )
- X is defined but never used. (totalt 510 st)
- X is assigned a value but never used. (totalt 92 st)
- X is not defined. (totalt 43 st)
- Unexpected console statement. (totalt 3 st)
- `content-type=".*javascript.*"` in: #39: widget.min.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #39: widget.min.js, antal fel: 664 ( 1.00 betyg )
- X is defined but never used. (totalt 510 st)
- X is assigned a value but never used. (totalt 92 st)
- X is not defined. (totalt 43 st)
- Unexpected console statement. (totalt 19 st)
- `content-type=".*javascript.*"` in: #49: enduser-loader., antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #49: enduser-loader., antal fel: 787 ( 1.00 betyg )
- X is defined but never used. (totalt 575 st)
- X is assigned a value but never used. (totalt 96 st)
- Unexpected console statement. (totalt 68 st)
- X is not defined. (totalt 48 st)
- `content-type=".*javascript.*"` in: #54: 824.a6c266a0ece, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #54: 824.a6c266a0ece, antal fel: 801 ( 1.00 betyg )
- X is defined but never used. (totalt 575 st)
- X is assigned a value but never used. (totalt 96 st)
- Unexpected console statement. (totalt 68 st)
- X is not defined. (totalt 62 st)
- `content-type=".*javascript.*"` in: #55: 131.ac20397d8b4, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #55: 131.ac20397d8b4, antal fel: 804 ( 1.00 betyg )
- X is defined but never used. (totalt 576 st)
- X is assigned a value but never used. (totalt 96 st)
- Unexpected console statement. (totalt 70 st)
- X is not defined. (totalt 62 st)
- `content-type=".*javascript.*"` in: #56: 290.5a202beece0, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #56: 290.5a202beece0, antal fel: 804 ( 1.00 betyg )
- X is defined but never used. (totalt 576 st)
- X is assigned a value but never used. (totalt 96 st)
- Unexpected console statement. (totalt 70 st)
- X is not defined. (totalt 62 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: 10 ( 3.00 betyg )
- `< script src="...">` in: #1: Webbsida , antal fel: 1088 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 706 st)
- Expected X and instead saw X. (totalt 340 st)
- Do not access Object.prototype method X from target object. (totalt 20 st)
- Unnecessary escape character: \/. (totalt 6 st)
- Unnecessary X. (totalt 6 st)
- Unnecessary escape character: \-. (totalt 4 st)
- Unnecessary escape character: \[. (totalt 2 st)
- X is assigned to itself. (totalt 2 st)
- Comparing to itself is potentially pointless. (totalt 1 st)
- Unnecessary escape character: \.. (totalt 1 st)
- `< script>` in: #30: bc-v4.min.html, antal grupperade fel: 2 ( 4.60 betyg )
- `< script>` in: #30: 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: #4: gtm.js, antal grupperade fel: 8 ( 3.40 betyg )
- `content-type=".*javascript.*"` in: #4: gtm.js, antal fel: 1078 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 768 st)
- Expected X and instead saw X. (totalt 217 st)
- Do not access Object.prototype method X from target object. (totalt 73 st)
- Unnecessary escape character: \/. (totalt 12 st)
- X is not modified in this loop. (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)
- `content-type=".*javascript.*"` in: #23: configuration.j, antal grupperade fel: 8 ( 3.40 betyg )
- `content-type=".*javascript.*"` in: #23: configuration.j, antal fel: 1078 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 768 st)
- Expected X and instead saw X. (totalt 217 st)
- Do not access Object.prototype method X from target object. (totalt 73 st)
- Unnecessary escape character: \/. (totalt 12 st)
- X is not modified in this loop. (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)
- `content-type=".*javascript.*"` in: #24: cc.js, antal grupperade fel: 11 ( 2.80 betyg )
- `content-type=".*javascript.*"` in: #24: cc.js, antal fel: 1426 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1075 st)
- Expected X and instead saw X. (totalt 253 st)
- Do not access Object.prototype method X from target object. (totalt 73 st)
- Unnecessary escape character: \/. (totalt 12 st)
- X is not modified in this loop. (totalt 3 st)
- X is assigned to itself. (totalt 3 st)
- Script URL is a form of eval. (totalt 3 st)
- Comparing to itself is potentially pointless. (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: #36: cobrowse.js, antal grupperade fel: 11 ( 2.80 betyg )
- `content-type=".*javascript.*"` in: #36: cobrowse.js, antal fel: 1430 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1079 st)
- Expected X and instead saw X. (totalt 253 st)
- Do not access Object.prototype method X from target object. (totalt 73 st)
- Unnecessary escape character: \/. (totalt 12 st)
- X is not modified in this loop. (totalt 3 st)
- X is assigned to itself. (totalt 3 st)
- Script URL is a form of eval. (totalt 3 st)
- Comparing to itself is potentially pointless. (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: #37: 65796fdbb0dbd34, antal grupperade fel: 11 ( 2.80 betyg )
- `content-type=".*javascript.*"` in: #37: 65796fdbb0dbd34, antal fel: 1433 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1082 st)
- Expected X and instead saw X. (totalt 253 st)
- Do not access Object.prototype method X from target object. (totalt 73 st)
- Unnecessary escape character: \/. (totalt 12 st)
- X is not modified in this loop. (totalt 3 st)
- X is assigned to itself. (totalt 3 st)
- Script URL is a form of eval. (totalt 3 st)
- Comparing to itself is potentially pointless. (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: #39: widget.min.js, antal grupperade fel: 11 ( 2.80 betyg )
- `content-type=".*javascript.*"` in: #39: widget.min.js, antal fel: 1503 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1150 st)
- Expected X and instead saw X. (totalt 255 st)
- Do not access Object.prototype method X from target object. (totalt 73 st)
- Unnecessary escape character: \/. (totalt 12 st)
- X is not modified in this loop. (totalt 3 st)
- X is assigned to itself. (totalt 3 st)
- Script URL is a form of eval. (totalt 3 st)
- Comparing to itself is potentially pointless. (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: #49: enduser-loader., antal grupperade fel: 14 ( 2.20 betyg )
- `content-type=".*javascript.*"` in: #49: enduser-loader., antal fel: 3237 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 2138 st)
- Expected X and instead saw X. (totalt 973 st)
- Do not access Object.prototype method X from target object. (totalt 80 st)
- Unnecessary escape character: \/. (totalt 21 st)
- Comparing to itself is potentially pointless. (totalt 7 st)
- The Function constructor is eval. (totalt 4 st)
- X is not modified in this loop. (totalt 3 st)
- X is assigned to itself. (totalt 3 st)
- Script URL is a form of eval. (totalt 3 st)
- Unnecessary escape character: \< . (totalt 1 st)
- Unnecessary escape character: \>. (totalt 1 st)
- Unnecessary escape character: \[. (totalt 1 st)
- Redundant use of `await` on a return value. (totalt 1 st)
- Unnecessary X. (totalt 1 st)
- `content-type=".*javascript.*"` in: #54: 824.a6c266a0ece, antal grupperade fel: 15 ( 2.00 betyg )
- `content-type=".*javascript.*"` in: #54: 824.a6c266a0ece, antal fel: 3314 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 2195 st)
- Expected X and instead saw X. (totalt 991 st)
- Do not access Object.prototype method X from target object. (totalt 80 st)
- Unnecessary escape character: \/. (totalt 21 st)
- Comparing to itself is potentially pointless. (totalt 7 st)
- X is not modified in this loop. (totalt 4 st)
- The Function constructor is eval. (totalt 4 st)
- X is assigned to itself. (totalt 3 st)
- Script URL is a form of eval. (totalt 3 st)
- Unnecessary escape character: \< . (totalt 1 st)
- Unnecessary escape character: \>. (totalt 1 st)
- Unnecessary escape character: \[. (totalt 1 st)
- Redundant use of `await` on a return value. (totalt 1 st)
- Unnecessary X. (totalt 1 st)
- Unsafe usage of ThrowStatement. (totalt 1 st)
- `content-type=".*javascript.*"` in: #55: 131.ac20397d8b4, antal grupperade fel: 15 ( 2.00 betyg )
- `content-type=".*javascript.*"` in: #55: 131.ac20397d8b4, antal fel: 3371 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 2220 st)
- Expected X and instead saw X. (totalt 1023 st)
- Do not access Object.prototype method X from target object. (totalt 80 st)
- Unnecessary escape character: \/. (totalt 21 st)
- Comparing to itself is potentially pointless. (totalt 7 st)
- X is not modified in this loop. (totalt 4 st)
- The Function constructor is eval. (totalt 4 st)
- X is assigned to itself. (totalt 3 st)
- Script URL is a form of eval. (totalt 3 st)
- Unnecessary escape character: \< . (totalt 1 st)
- Unnecessary escape character: \>. (totalt 1 st)
- Unnecessary escape character: \[. (totalt 1 st)
- Redundant use of `await` on a return value. (totalt 1 st)
- Unnecessary X. (totalt 1 st)
- Unsafe usage of ThrowStatement. (totalt 1 st)
- `content-type=".*javascript.*"` in: #56: 290.5a202beece0, antal grupperade fel: 15 ( 2.00 betyg )
- `content-type=".*javascript.*"` in: #56: 290.5a202beece0, antal fel: 3385 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 2229 st)
- Expected X and instead saw X. (totalt 1028 st)
- Do not access Object.prototype method X from target object. (totalt 80 st)
- Unnecessary escape character: \/. (totalt 21 st)
- Comparing to itself is potentially pointless. (totalt 7 st)
- X is not modified in this loop. (totalt 4 st)
- The Function constructor is eval. (totalt 4 st)
- X is assigned to itself. (totalt 3 st)
- Script URL is a form of eval. (totalt 3 st)
- Unnecessary escape character: \< . (totalt 1 st)
- Unnecessary escape character: \>. (totalt 1 st)
- Unnecessary escape character: \[. (totalt 1 st)
- Redundant use of `await` on a return value. (totalt 1 st)
- Unnecessary X. (totalt 1 st)
- Unsafe usage of ThrowStatement. (totalt 1 st)