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.54 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: 216 ( 1.00 betyg )
- X is defined but never used. (totalt 133 st)
- Unexpected console statement. (totalt 34 st)
- X is not defined. (totalt 31 st)
- X is assigned a value but never used. (totalt 18 st)
- `< script>` in: #31: bc-v4.min.html, antal grupperade fel: 1 ( 4.80 betyg )
- `< script>` in: #31: bc-v4.min.html, antal fel: 1 ( 4.80 betyg )
- X is defined but never used. (totalt 1 st)
- `content-type=".*javascript.*"` in: #9: widget.js, antal grupperade fel: 5 ( 4.00 betyg )
- `content-type=".*javascript.*"` in: #9: widget.js, antal fel: 718 ( 1.00 betyg )
- X is assigned a value but never used. (totalt 435 st)
- X is not defined. (totalt 111 st)
- X is defined but never used. (totalt 83 st)
- Unexpected console statement. (totalt 82 st)
- Definition for rule X was not found. (totalt 7 st)
- `content-type=".*javascript.*"` in: #18: configuration.j, antal grupperade fel: 5 ( 4.00 betyg )
- `content-type=".*javascript.*"` in: #18: configuration.j, antal fel: 727 ( 1.00 betyg )
- X is assigned a value but never used. (totalt 435 st)
- X is not defined. (totalt 120 st)
- X is defined but never used. (totalt 83 st)
- Unexpected console statement. (totalt 82 st)
- Definition for rule X was not found. (totalt 7 st)
- `content-type=".*javascript.*"` in: #19: cc.js, antal grupperade fel: 5 ( 4.00 betyg )
- `content-type=".*javascript.*"` in: #19: cc.js, antal fel: 755 ( 1.00 betyg )
- X is assigned a value but never used. (totalt 441 st)
- X is not defined. (totalt 129 st)
- X is defined but never used. (totalt 95 st)
- Unexpected console statement. (totalt 83 st)
- Definition for rule X was not found. (totalt 7 st)
- `content-type=".*javascript.*"` in: #33: gtm.js, antal grupperade fel: 5 ( 4.00 betyg )
- `content-type=".*javascript.*"` in: #33: gtm.js, antal fel: 1373 ( 1.00 betyg )
- X is defined but never used. (totalt 594 st)
- X is assigned a value but never used. (totalt 529 st)
- X is not defined. (totalt 160 st)
- Unexpected console statement. (totalt 83 st)
- Definition for rule X was not found. (totalt 7 st)
- `content-type=".*javascript.*"` in: #36: cobrowse.js, antal grupperade fel: 5 ( 4.00 betyg )
- `content-type=".*javascript.*"` in: #36: cobrowse.js, antal fel: 1375 ( 1.00 betyg )
- X is defined but never used. (totalt 594 st)
- X is assigned a value but never used. (totalt 529 st)
- X is not defined. (totalt 160 st)
- Unexpected console statement. (totalt 85 st)
- Definition for rule X was not found. (totalt 7 st)
- `content-type=".*javascript.*"` in: #39: enduser-loader., antal grupperade fel: 5 ( 4.00 betyg )
- `content-type=".*javascript.*"` in: #39: enduser-loader., antal fel: 1498 ( 1.00 betyg )
- X is defined but never used. (totalt 659 st)
- X is assigned a value but never used. (totalt 533 st)
- X is not defined. (totalt 165 st)
- Unexpected console statement. (totalt 134 st)
- Definition for rule X was not found. (totalt 7 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: 19 ( 1.20 betyg )
- `< script src="...">` in: #1: Webbsida , antal fel: 2459 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1297 st)
- Expected X and instead saw X. (totalt 1065 st)
- Comparing to itself is potentially pointless. (totalt 30 st)
- Do not access Object.prototype method X from target object. (totalt 16 st)
- The Function constructor is eval. (totalt 12 st)
- Unnecessary escape character: \/. (totalt 9 st)
- Unnecessary X. (totalt 7 st)
- Unnecessary escape character: \-. (totalt 5 st)
- Unnecessary escape character: \[. (totalt 4 st)
- Unnecessary escape character: \.. (totalt 3 st)
- Script URL is a form of eval. (totalt 2 st)
- X is not modified in this loop. (totalt 2 st)
- X is assigned to itself. (totalt 1 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)
- Unnecessary escape character: \$. (totalt 1 st)
- Unexpected string concatenation of literals. (totalt 1 st)
- `< script>` in: #31: bc-v4.min.html, antal grupperade fel: 2 ( 4.60 betyg )
- `< script>` in: #31: 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: #9: widget.js, antal grupperade fel: 13 ( 2.40 betyg )
- `content-type=".*javascript.*"` in: #9: widget.js, antal fel: 648 ( 1.00 betyg )
- Expected X and instead saw X. (totalt 374 st)
- Expected an assignment or function call and instead saw an expression. (totalt 239 st)
- Unsafe usage of ThrowStatement. (totalt 17 st)
- Definition for rule X was not found. (totalt 7 st)
- Do not access Object.prototype method X from target object. (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)
- Unnecessary escape character: \/. (totalt 1 st)
- Unnecessary escape character: \[. (totalt 1 st)
- Unnecessary escape character: \^. (totalt 1 st)
- The Function constructor is eval. (totalt 1 st)
- `content-type=".*javascript.*"` in: #18: configuration.j, antal grupperade fel: 13 ( 2.40 betyg )
- `content-type=".*javascript.*"` in: #18: configuration.j, antal fel: 648 ( 1.00 betyg )
- Expected X and instead saw X. (totalt 374 st)
- Expected an assignment or function call and instead saw an expression. (totalt 239 st)
- Unsafe usage of ThrowStatement. (totalt 17 st)
- Definition for rule X was not found. (totalt 7 st)
- Do not access Object.prototype method X from target object. (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)
- Unnecessary escape character: \/. (totalt 1 st)
- Unnecessary escape character: \[. (totalt 1 st)
- Unnecessary escape character: \^. (totalt 1 st)
- The Function constructor is eval. (totalt 1 st)
- `content-type=".*javascript.*"` in: #19: cc.js, antal grupperade fel: 16 ( 1.80 betyg )
- `content-type=".*javascript.*"` in: #19: cc.js, antal fel: 996 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 546 st)
- Expected X and instead saw X. (totalt 410 st)
- Unsafe usage of ThrowStatement. (totalt 17 st)
- Definition for rule X was not found. (totalt 7 st)
- Do not access Object.prototype method X from target object. (totalt 2 st)
- Unnecessary escape character: \[. (totalt 2 st)
- Unexpected string concatenation of literals. (totalt 2 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)
- Unnecessary escape character: \/. (totalt 1 st)
- Unnecessary escape character: \^. (totalt 1 st)
- The Function constructor is eval. (totalt 1 st)
- Unnecessary escape character: \< . (totalt 1 st)
- Unnecessary escape character: \>. (totalt 1 st)
- `content-type=".*javascript.*"` in: #33: gtm.js, antal grupperade fel: 19 ( 1.20 betyg )
- `content-type=".*javascript.*"` in: #33: gtm.js, antal fel: 2090 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1313 st)
- Expected X and instead saw X. (totalt 627 st)
- Do not access Object.prototype method X from target object. (totalt 75 st)
- Unnecessary escape character: \/. (totalt 30 st)
- Unsafe usage of ThrowStatement. (totalt 17 st)
- Definition for rule X was not found. (totalt 7 st)
- Script URL is a form of eval. (totalt 3 st)
- X is not modified in this loop. (totalt 3 st)
- X is assigned to itself. (totalt 3 st)
- Unnecessary escape character: \[. (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)
- Unnecessary escape character: \^. (totalt 1 st)
- The Function constructor is eval. (totalt 1 st)
- Unnecessary escape character: \< . (totalt 1 st)
- Unnecessary escape character: \>. (totalt 1 st)
- Comparing to itself is potentially pointless. (totalt 1 st)
- `content-type=".*javascript.*"` in: #36: cobrowse.js, antal grupperade fel: 19 ( 1.20 betyg )
- `content-type=".*javascript.*"` in: #36: cobrowse.js, antal fel: 2094 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1317 st)
- Expected X and instead saw X. (totalt 627 st)
- Do not access Object.prototype method X from target object. (totalt 75 st)
- Unnecessary escape character: \/. (totalt 30 st)
- Unsafe usage of ThrowStatement. (totalt 17 st)
- Definition for rule X was not found. (totalt 7 st)
- Script URL is a form of eval. (totalt 3 st)
- X is not modified in this loop. (totalt 3 st)
- X is assigned to itself. (totalt 3 st)
- Unnecessary escape character: \[. (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)
- Unnecessary escape character: \^. (totalt 1 st)
- The Function constructor is eval. (totalt 1 st)
- Unnecessary escape character: \< . (totalt 1 st)
- Unnecessary escape character: \>. (totalt 1 st)
- Comparing to itself is potentially pointless. (totalt 1 st)
- `content-type=".*javascript.*"` in: #39: enduser-loader., antal grupperade fel: 21 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #39: enduser-loader., antal fel: 3828 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 2305 st)
- Expected X and instead saw X. (totalt 1345 st)
- Do not access Object.prototype method X from target object. (totalt 82 st)
- Unnecessary escape character: \/. (totalt 39 st)
- Unsafe usage of ThrowStatement. (totalt 17 st)
- Definition for rule X was not found. (totalt 7 st)
- Comparing to itself is potentially pointless. (totalt 7 st)
- The Function constructor is eval. (totalt 5 st)
- Script URL is a form of eval. (totalt 3 st)
- X is not modified in this loop. (totalt 3 st)
- X is assigned to itself. (totalt 3 st)
- Unnecessary escape character: \[. (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)
- 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)