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: Webbsida , antal grupperade fel: 3 ( 4.40 betyg )
- `< script>` in: #1: Webbsida , antal fel: 48 ( 1.00 betyg )
- X is not defined. (totalt 46 st)
- Unexpected console statement. (totalt 1 st)
- X is assigned a value but never used. (totalt 1 st)
- `< script src="...">` in: #1: Webbsida , antal grupperade fel: 5 ( 4.00 betyg )
- `< script src="...">` in: #1: Webbsida , antal fel: 402 ( 1.00 betyg )
- X is not defined. (totalt 196 st)
- X is defined but never used. (totalt 185 st)
- Unexpected console statement. (totalt 18 st)
- Parsing error: X in strict mode (totalt 2 st)
- X is assigned a value but never used. (totalt 1 st)
- `< script>` in: #55: index.71bde09.h, antal grupperade fel: 2 ( 4.60 betyg )
- `< script>` in: #55: index.71bde09.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: #40: gtm.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #40: gtm.js, antal fel: 591 ( 1.00 betyg )
- X is defined but never used. (totalt 481 st)
- X is assigned a value but never used. (totalt 88 st)
- X is not defined. (totalt 21 st)
- Unexpected console statement. (totalt 1 st)
- `content-type=".*javascript.*"` in: #41: initWidget.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #41: initWidget.js, antal fel: 591 ( 1.00 betyg )
- X is defined but never used. (totalt 481 st)
- X is assigned a value but never used. (totalt 88 st)
- X is not defined. (totalt 21 st)
- Unexpected console statement. (totalt 1 st)
- `content-type=".*javascript.*"` in: #54: widget.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #54: widget.js, antal fel: 792 ( 1.00 betyg )
- X is defined but never used. (totalt 658 st)
- X is assigned a value but never used. (totalt 88 st)
- X is not defined. (totalt 27 st)
- Unexpected console statement. (totalt 19 st)
- `content-type=".*javascript.*"` in: #58: client.bundle.a, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #58: client.bundle.a, antal fel: 1279 ( 1.00 betyg )
- X is defined but never used. (totalt 1030 st)
- Unexpected console statement. (totalt 122 st)
- X is assigned a value but never used. (totalt 88 st)
- X is not defined. (totalt 39 st)
- `content-type=".*javascript.*"` in: #60: bundle.1a92cef0, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #60: bundle.1a92cef0, antal fel: 1452 ( 1.00 betyg )
- X is defined but never used. (totalt 1199 st)
- Unexpected console statement. (totalt 126 st)
- X is assigned a value but never used. (totalt 88 st)
- X is not defined. (totalt 39 st)
- `content-type=".*javascript.*"` in: #63: localization-sv, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #63: localization-sv, antal fel: 1452 ( 1.00 betyg )
- X is defined but never used. (totalt 1199 st)
- Unexpected console statement. (totalt 126 st)
- X is assigned a value but never used. (totalt 88 st)
- X is not defined. (totalt 39 st)
- `content-type=".*javascript.*"` in: #68: primus.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #68: primus.js, antal fel: 1496 ( 1.00 betyg )
- X is defined but never used. (totalt 1243 st)
- Unexpected console statement. (totalt 126 st)
- X is assigned a value but never used. (totalt 88 st)
- X is not defined. (totalt 39 st)
Integritet & säkerhet
- `< script>` in: #1: Webbsida , antal grupperade fel: 2 ( 4.60 betyg )
- `< script>` in: #1: Webbsida , antal fel: 15 ( 2.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 8 st)
- Expected X and instead saw X. (totalt 7 st)
- `< script src="...">` in: #1: Webbsida , antal grupperade fel: 23 ( 1.00 betyg )
- `< script src="...">` in: #1: Webbsida , antal fel: 3784 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 2259 st)
- Expected X and instead saw X. (totalt 1336 st)
- Do not access Object.prototype method X from target object. (totalt 65 st)
- X is not modified in this loop. (totalt 18 st)
- Comparing to itself is potentially pointless. (totalt 16 st)
- Unnecessary X. (totalt 15 st)
- The Function constructor is eval. (totalt 14 st)
- Unnecessary escape character: \/. (totalt 11 st)
- Unnecessary escape character: \-. (totalt 11 st)
- Async arrow function has no X expression. (totalt 9 st)
- X is assigned to itself. (totalt 7 st)
- Unsafe usage of ThrowStatement. (totalt 6 st)
- Script URL is a form of eval. (totalt 3 st)
- Unnecessary escape character: \[. (totalt 2 st)
- Unnecessary escape character: \=. (totalt 2 st)
- Unexpected string concatenation of literals. (totalt 2 st)
- Parsing error: X in strict mode (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)
- `< script>` in: #55: index.71bde09.h, antal grupperade fel: 2 ( 4.60 betyg )
- `< script>` in: #55: index.71bde09.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: #40: gtm.js, antal grupperade fel: 9 ( 3.20 betyg )
- `content-type=".*javascript.*"` in: #40: gtm.js, antal fel: 1076 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 776 st)
- Expected X and instead saw X. (totalt 213 st)
- Do not access Object.prototype method X from target object. (totalt 75 st)
- X is not modified in this loop. (totalt 3 st)
- Unnecessary escape character: \/. (totalt 3 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: #41: initWidget.js, antal grupperade fel: 9 ( 3.20 betyg )
- `content-type=".*javascript.*"` in: #41: initWidget.js, antal fel: 1076 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 776 st)
- Expected X and instead saw X. (totalt 213 st)
- Do not access Object.prototype method X from target object. (totalt 75 st)
- X is not modified in this loop. (totalt 3 st)
- Unnecessary escape character: \/. (totalt 3 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: #54: widget.js, antal grupperade fel: 11 ( 2.80 betyg )
- `content-type=".*javascript.*"` in: #54: widget.js, antal fel: 1917 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1248 st)
- Expected X and instead saw X. (totalt 540 st)
- Do not access Object.prototype method X from target object. (totalt 101 st)
- Unnecessary escape character: \/. (totalt 14 st)
- X is not modified in this loop. (totalt 3 st)
- X is assigned to itself. (totalt 3 st)
- Unnecessary X. (totalt 3 st)
- The Function constructor is eval. (totalt 2 st)
- Comparing to itself is potentially pointless. (totalt 1 st)
- Script URL is a form of eval. (totalt 1 st)
- Unnecessary escape character: \[. (totalt 1 st)
- `content-type=".*javascript.*"` in: #58: client.bundle.a, antal grupperade fel: 17 ( 1.60 betyg )
- `content-type=".*javascript.*"` in: #58: client.bundle.a, antal fel: 4724 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 2928 st)
- Expected X and instead saw X. (totalt 1560 st)
- Do not access Object.prototype method X from target object. (totalt 159 st)
- Unnecessary escape character: \/. (totalt 16 st)
- Comparing to itself is potentially pointless. (totalt 14 st)
- X is not modified in this loop. (totalt 9 st)
- Unnecessary X. (totalt 7 st)
- Unsafe usage of ThrowStatement. (totalt 7 st)
- Unnecessary escape character: \.. (totalt 7 st)
- X is assigned to itself. (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 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)
- `content-type=".*javascript.*"` in: #60: bundle.1a92cef0, antal grupperade fel: 17 ( 1.60 betyg )
- `content-type=".*javascript.*"` in: #60: bundle.1a92cef0, antal fel: 5411 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 3308 st)
- Expected X and instead saw X. (totalt 1835 st)
- Do not access Object.prototype method X from target object. (totalt 185 st)
- Unnecessary escape character: \/. (totalt 17 st)
- Comparing to itself is potentially pointless. (totalt 14 st)
- X is not modified in this loop. (totalt 10 st)
- Unnecessary X. (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)
- Script URL is a form of eval. (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)
- `content-type=".*javascript.*"` in: #63: localization-sv, antal grupperade fel: 17 ( 1.60 betyg )
- `content-type=".*javascript.*"` in: #63: localization-sv, antal fel: 5411 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 3308 st)
- Expected X and instead saw X. (totalt 1835 st)
- Do not access Object.prototype method X from target object. (totalt 185 st)
- Unnecessary escape character: \/. (totalt 17 st)
- Comparing to itself is potentially pointless. (totalt 14 st)
- X is not modified in this loop. (totalt 10 st)
- Unnecessary X. (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)
- Script URL is a form of eval. (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)
- `content-type=".*javascript.*"` in: #68: primus.js, antal grupperade fel: 18 ( 1.40 betyg )
- `content-type=".*javascript.*"` in: #68: primus.js, antal fel: 5420 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 3310 st)
- Expected X and instead saw X. (totalt 1839 st)
- Do not access Object.prototype method X from target object. (totalt 185 st)
- Unnecessary escape character: \/. (totalt 18 st)
- Comparing to itself is potentially pointless. (totalt 15 st)
- X is not modified in this loop. (totalt 10 st)
- Unnecessary X. (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)
- Script URL is a form of eval. (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)