Javascript
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: 3.03 av 5
- JS är ok.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: 53 ( 1.00 betyg )
- Unexpected console statement. (totalt 19 st)
- X is defined but never used. (totalt 15 st)
- X is assigned a value but never used. (totalt 10 st)
- X is not defined. (totalt 9 st)
- `< script>` in: #27: bc-v4.min.html, antal grupperade fel: 1 ( 4.80 betyg )
- `< script>` in: #27: bc-v4.min.html, antal fel: 1 ( 4.80 betyg )
- X is defined but never used. (totalt 1 st)
- `< script>` in: #30: index.aa941f8.h, antal grupperade fel: 2 ( 4.60 betyg )
- `< script>` in: #30: index.aa941f8.h, antal fel: 2 ( 4.60 betyg )
- X is assigned a value but never used. (totalt 1 st)
- X is not defined. (totalt 1 st)
- `content-type=".*javascript.*"` in: #8: gtm.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #8: gtm.js, antal fel: 554 ( 1.00 betyg )
- X is defined but never used. (totalt 451 st)
- X is assigned a value but never used. (totalt 81 st)
- X is not defined. (totalt 21 st)
- Unexpected console statement. (totalt 1 st)
- `content-type=".*javascript.*"` in: #15: uc.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #15: uc.js, antal fel: 601 ( 1.00 betyg )
- X is defined but never used. (totalt 471 st)
- X is assigned a value but never used. (totalt 96 st)
- X is not defined. (totalt 22 st)
- Unexpected console statement. (totalt 12 st)
- `content-type=".*javascript.*"` in: #16: cc.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #16: cc.js, antal fel: 629 ( 1.00 betyg )
- X is defined but never used. (totalt 483 st)
- X is assigned a value but never used. (totalt 102 st)
- X is not defined. (totalt 31 st)
- Unexpected console statement. (totalt 13 st)
- `content-type=".*javascript.*"` in: #26: initWidget.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #26: initWidget.js, antal fel: 629 ( 1.00 betyg )
- X is defined but never used. (totalt 483 st)
- X is assigned a value but never used. (totalt 102 st)
- X is not defined. (totalt 31 st)
- Unexpected console statement. (totalt 13 st)
- `content-type=".*javascript.*"` in: #29: widget.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #29: widget.js, antal fel: 830 ( 1.00 betyg )
- X is defined but never used. (totalt 660 st)
- X is assigned a value but never used. (totalt 102 st)
- X is not defined. (totalt 37 st)
- Unexpected console statement. (totalt 31 st)
- `content-type=".*javascript.*"` in: #33: client.bundle.1, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #33: client.bundle.1, antal fel: 1266 ( 1.00 betyg )
- X is defined but never used. (totalt 991 st)
- Unexpected console statement. (totalt 129 st)
- X is assigned a value but never used. (totalt 102 st)
- X is not defined. (totalt 44 st)
- `content-type=".*javascript.*"` in: #35: bundle.fefe147d, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #35: bundle.fefe147d, antal fel: 1439 ( 1.00 betyg )
- X is defined but never used. (totalt 1160 st)
- Unexpected console statement. (totalt 133 st)
- X is assigned a value but never used. (totalt 102 st)
- X is not defined. (totalt 44 st)
- `content-type=".*javascript.*"` in: #38: localization-sv, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #38: localization-sv, antal fel: 1439 ( 1.00 betyg )
- X is defined but never used. (totalt 1160 st)
- Unexpected console statement. (totalt 133 st)
- X is assigned a value but never used. (totalt 102 st)
- X is not defined. (totalt 44 st)
- `content-type=".*javascript.*"` in: #47: widget-app.508e, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #47: widget-app.508e, antal fel: 1577 ( 1.00 betyg )
- X is defined but never used. (totalt 1280 st)
- Unexpected console statement. (totalt 146 st)
- X is assigned a value but never used. (totalt 102 st)
- X is not defined. (totalt 49 st)
- `content-type=".*javascript.*"` in: #52: widget-answers., antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #52: widget-answers., antal fel: 1613 ( 1.00 betyg )
- X is defined but never used. (totalt 1315 st)
- Unexpected console statement. (totalt 147 st)
- X is assigned a value but never used. (totalt 102 st)
- X is not defined. (totalt 49 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: 7 ( 3.60 betyg )
- `< script src="...">` in: #1: Webbsida , antal fel: 379 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 285 st)
- Expected X and instead saw X. (totalt 87 st)
- Comparing to itself is potentially pointless. (totalt 2 st)
- Unnecessary escape character: \}. (totalt 2 st)
- Do not access Object.prototype method X from target object. (totalt 1 st)
- Unsafe usage of ReturnStatement. (totalt 1 st)
- Unsafe usage of ThrowStatement. (totalt 1 st)
- `< script>` in: #27: bc-v4.min.html, antal grupperade fel: 2 ( 4.60 betyg )
- `< script>` in: #27: 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>` in: #30: index.aa941f8.h, antal grupperade fel: 2 ( 4.60 betyg )
- `< script>` in: #30: index.aa941f8.h, antal fel: 7 ( 3.60 betyg )
- Expected X and instead saw X. (totalt 6 st)
- Unnecessary escape character: \/. (totalt 1 st)
- `content-type=".*javascript.*"` in: #8: gtm.js, antal grupperade fel: 9 ( 3.20 betyg )
- `content-type=".*javascript.*"` in: #8: gtm.js, antal fel: 1208 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 852 st)
- Expected X and instead saw X. (totalt 236 st)
- Do not access Object.prototype method X from target object. (totalt 96 st)
- Unnecessary escape character: \/. (totalt 11 st)
- X is not modified in this loop. (totalt 7 st)
- X is assigned to itself. (totalt 3 st)
- Comparing to itself is potentially pointless. (totalt 1 st)
- Unnecessary X. (totalt 1 st)
- Script URL is a form of eval. (totalt 1 st)
- `content-type=".*javascript.*"` in: #15: uc.js, antal grupperade fel: 11 ( 2.80 betyg )
- `content-type=".*javascript.*"` in: #15: uc.js, antal fel: 1560 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1093 st)
- Expected X and instead saw X. (totalt 338 st)
- Do not access Object.prototype method X from target object. (totalt 96 st)
- Unnecessary escape character: \/. (totalt 13 st)
- X is not modified in this loop. (totalt 7 st)
- Unnecessary escape character: \-. (totalt 4 st)
- X is assigned to itself. (totalt 3 st)
- Unnecessary X. (totalt 2 st)
- Unnecessary escape character: \[. (totalt 2 st)
- Comparing to itself is potentially pointless. (totalt 1 st)
- Script URL is a form of eval. (totalt 1 st)
- `content-type=".*javascript.*"` in: #16: cc.js, antal grupperade fel: 13 ( 2.40 betyg )
- `content-type=".*javascript.*"` in: #16: cc.js, antal fel: 1907 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1399 st)
- Expected X and instead saw X. (totalt 374 st)
- Do not access Object.prototype method X from target object. (totalt 96 st)
- Unnecessary escape character: \/. (totalt 13 st)
- X is not modified in this loop. (totalt 7 st)
- Unnecessary escape character: \-. (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 3 st)
- Unnecessary X. (totalt 2 st)
- Comparing to itself is potentially pointless. (totalt 1 st)
- Unnecessary escape character: \< . (totalt 1 st)
- Unnecessary escape character: \>. (totalt 1 st)
- `content-type=".*javascript.*"` in: #26: initWidget.js, antal grupperade fel: 13 ( 2.40 betyg )
- `content-type=".*javascript.*"` in: #26: initWidget.js, antal fel: 1907 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1399 st)
- Expected X and instead saw X. (totalt 374 st)
- Do not access Object.prototype method X from target object. (totalt 96 st)
- Unnecessary escape character: \/. (totalt 13 st)
- X is not modified in this loop. (totalt 7 st)
- Unnecessary escape character: \-. (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 3 st)
- Unnecessary X. (totalt 2 st)
- Comparing to itself is potentially pointless. (totalt 1 st)
- Unnecessary escape character: \< . (totalt 1 st)
- Unnecessary escape character: \>. (totalt 1 st)
- `content-type=".*javascript.*"` in: #29: widget.js, antal grupperade fel: 14 ( 2.20 betyg )
- `content-type=".*javascript.*"` in: #29: widget.js, antal fel: 2748 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1871 st)
- Expected X and instead saw X. (totalt 701 st)
- Do not access Object.prototype method X from target object. (totalt 122 st)
- Unnecessary escape character: \/. (totalt 24 st)
- X is not modified in this loop. (totalt 7 st)
- Unnecessary X. (totalt 4 st)
- Unnecessary escape character: \[. (totalt 4 st)
- Unnecessary escape character: \-. (totalt 4 st)
- X is assigned to itself. (totalt 3 st)
- Script URL is a form of eval. (totalt 3 st)
- The Function constructor is eval. (totalt 2 st)
- Comparing to itself is potentially pointless. (totalt 1 st)
- Unnecessary escape character: \< . (totalt 1 st)
- Unnecessary escape character: \>. (totalt 1 st)
- `content-type=".*javascript.*"` in: #33: client.bundle.1, antal grupperade fel: 19 ( 1.20 betyg )
- `content-type=".*javascript.*"` in: #33: client.bundle.1, antal fel: 4682 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 3082 st)
- Expected X and instead saw X. (totalt 1353 st)
- Do not access Object.prototype method X from target object. (totalt 155 st)
- Unnecessary escape character: \/. (totalt 25 st)
- Comparing to itself is potentially pointless. (totalt 10 st)
- X is not modified in this loop. (totalt 8 st)
- Unnecessary X. (totalt 8 st)
- Unsafe usage of ThrowStatement. (totalt 7 st)
- Unnecessary escape character: \.. (totalt 7 st)
- X is assigned to itself. (totalt 4 st)
- Unnecessary escape character: \[. (totalt 4 st)
- Unnecessary escape character: \-. (totalt 4 st)
- The Function constructor is eval. (totalt 4 st)
- Unnecessary escape character: \_. (totalt 4 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)
- Unnecessary escape character: \+. (totalt 1 st)
- `content-type=".*javascript.*"` in: #35: bundle.fefe147d, antal grupperade fel: 19 ( 1.20 betyg )
- `content-type=".*javascript.*"` in: #35: bundle.fefe147d, antal fel: 5369 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 3462 st)
- Expected X and instead saw X. (totalt 1628 st)
- Do not access Object.prototype method X from target object. (totalt 181 st)
- Unnecessary escape character: \/. (totalt 26 st)
- Comparing to itself is potentially pointless. (totalt 10 st)
- Unnecessary X. (totalt 10 st)
- X is not modified in this loop. (totalt 9 st)
- Unsafe usage of ThrowStatement. (totalt 8 st)
- Unnecessary escape character: \.. (totalt 7 st)
- The Function constructor is eval. (totalt 5 st)
- X is assigned to itself. (totalt 4 st)
- Unnecessary escape character: \[. (totalt 4 st)
- Unnecessary escape character: \-. (totalt 4 st)
- Unnecessary escape character: \_. (totalt 4 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)
- Unnecessary escape character: \+. (totalt 1 st)
- `content-type=".*javascript.*"` in: #38: localization-sv, antal grupperade fel: 19 ( 1.20 betyg )
- `content-type=".*javascript.*"` in: #38: localization-sv, antal fel: 5369 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 3462 st)
- Expected X and instead saw X. (totalt 1628 st)
- Do not access Object.prototype method X from target object. (totalt 181 st)
- Unnecessary escape character: \/. (totalt 26 st)
- Comparing to itself is potentially pointless. (totalt 10 st)
- Unnecessary X. (totalt 10 st)
- X is not modified in this loop. (totalt 9 st)
- Unsafe usage of ThrowStatement. (totalt 8 st)
- Unnecessary escape character: \.. (totalt 7 st)
- The Function constructor is eval. (totalt 5 st)
- X is assigned to itself. (totalt 4 st)
- Unnecessary escape character: \[. (totalt 4 st)
- Unnecessary escape character: \-. (totalt 4 st)
- Unnecessary escape character: \_. (totalt 4 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)
- Unnecessary escape character: \+. (totalt 1 st)
- `content-type=".*javascript.*"` in: #47: widget-app.508e, antal grupperade fel: 19 ( 1.20 betyg )
- `content-type=".*javascript.*"` in: #47: widget-app.508e, antal fel: 6449 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 4091 st)
- Expected X and instead saw X. (totalt 2042 st)
- Do not access Object.prototype method X from target object. (totalt 207 st)
- Unnecessary escape character: \/. (totalt 27 st)
- X is not modified in this loop. (totalt 14 st)
- Comparing to itself is potentially pointless. (totalt 14 st)
- Unnecessary X. (totalt 10 st)
- Unsafe usage of ThrowStatement. (totalt 8 st)
- Unnecessary escape character: \.. (totalt 7 st)
- Unnecessary escape character: \-. (totalt 5 st)
- The Function constructor is eval. (totalt 5 st)
- X is assigned to itself. (totalt 4 st)
- Unnecessary escape character: \[. (totalt 4 st)
- Unnecessary escape character: \_. (totalt 4 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)
- Unnecessary escape character: \+. (totalt 1 st)
- `content-type=".*javascript.*"` in: #52: widget-answers., antal grupperade fel: 19 ( 1.20 betyg )
- `content-type=".*javascript.*"` in: #52: widget-answers., antal fel: 6554 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 4182 st)
- Expected X and instead saw X. (totalt 2056 st)
- Do not access Object.prototype method X from target object. (totalt 207 st)
- Unnecessary escape character: \/. (totalt 27 st)
- X is not modified in this loop. (totalt 14 st)
- Comparing to itself is potentially pointless. (totalt 14 st)
- Unnecessary X. (totalt 10 st)
- Unsafe usage of ThrowStatement. (totalt 8 st)
- Unnecessary escape character: \.. (totalt 7 st)
- Unnecessary escape character: \-. (totalt 5 st)
- The Function constructor is eval. (totalt 5 st)
- X is assigned to itself. (totalt 4 st)
- Unnecessary escape character: \[. (totalt 4 st)
- Unnecessary escape character: \_. (totalt 4 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)
- Unnecessary escape character: \+. (totalt 1 st)