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: 2.75 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: 37 ( 1.00 betyg )
- X is defined but never used. (totalt 29 st)
- X is not defined. (totalt 5 st)
- Unexpected console statement. (totalt 2 st)
- Parsing error: Unexpected token } (totalt 1 st)
- `< script>` in: #64: index.aa941f8.h, antal grupperade fel: 2 ( 4.60 betyg )
- `< script>` in: #64: 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: #43: gtm.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #43: gtm.js, antal fel: 442 ( 1.00 betyg )
- X is defined but never used. (totalt 342 st)
- X is assigned a value but never used. (totalt 89 st)
- X is not defined. (totalt 10 st)
- Unexpected console statement. (totalt 1 st)
- `content-type=".*javascript.*"` in: #55: ext.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #55: ext.js, antal fel: 442 ( 1.00 betyg )
- X is defined but never used. (totalt 342 st)
- X is assigned a value but never used. (totalt 89 st)
- X is not defined. (totalt 10 st)
- Unexpected console statement. (totalt 1 st)
- `content-type=".*javascript.*"` in: #57: initWidget.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #57: initWidget.js, antal fel: 442 ( 1.00 betyg )
- X is defined but never used. (totalt 342 st)
- X is assigned a value but never used. (totalt 89 st)
- X is not defined. (totalt 10 st)
- Unexpected console statement. (totalt 1 st)
- `content-type=".*javascript.*"` in: #58: cookietractor.j, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #58: cookietractor.j, antal fel: 448 ( 1.00 betyg )
- X is defined but never used. (totalt 343 st)
- X is assigned a value but never used. (totalt 89 st)
- X is not defined. (totalt 11 st)
- Unexpected console statement. (totalt 5 st)
- `content-type=".*javascript.*"` in: #60: main.C9eUAjEi.j, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #60: main.C9eUAjEi.j, antal fel: 575 ( 1.00 betyg )
- X is defined but never used. (totalt 457 st)
- X is assigned a value but never used. (totalt 99 st)
- X is not defined. (totalt 11 st)
- Unexpected console statement. (totalt 8 st)
- `content-type=".*javascript.*"` in: #62: widget.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #62: widget.js, antal fel: 776 ( 1.00 betyg )
- X is defined but never used. (totalt 634 st)
- X is assigned a value but never used. (totalt 99 st)
- Unexpected console statement. (totalt 26 st)
- X is not defined. (totalt 17 st)
- `content-type=".*javascript.*"` in: #67: bundle.fefe147d, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #67: bundle.fefe147d, antal fel: 949 ( 1.00 betyg )
- X is defined but never used. (totalt 803 st)
- X is assigned a value but never used. (totalt 99 st)
- Unexpected console statement. (totalt 30 st)
- X is not defined. (totalt 17 st)
- `content-type=".*javascript.*"` in: #69: client.bundle.1, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #69: client.bundle.1, antal fel: 1385 ( 1.00 betyg )
- X is defined but never used. (totalt 1134 st)
- Unexpected console statement. (totalt 128 st)
- X is assigned a value but never used. (totalt 99 st)
- X is not defined. (totalt 24 st)
- `content-type=".*javascript.*"` in: #74: localization-sv, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #74: localization-sv, antal fel: 1385 ( 1.00 betyg )
- X is defined but never used. (totalt 1134 st)
- Unexpected console statement. (totalt 128 st)
- X is assigned a value but never used. (totalt 99 st)
- X is not defined. (totalt 24 st)
- `content-type=".*javascript.*"` in: #77: nr-1216.min.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #77: nr-1216.min.js, antal fel: 1467 ( 1.00 betyg )
- X is defined but never used. (totalt 1200 st)
- Unexpected console statement. (totalt 134 st)
- X is assigned a value but never used. (totalt 99 st)
- X is not defined. (totalt 34 st)
- `content-type=".*javascript.*"` in: #79: ba5984b87d, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #79: ba5984b87d, antal fel: 1468 ( 1.00 betyg )
- X is defined but never used. (totalt 1200 st)
- Unexpected console statement. (totalt 134 st)
- X is assigned a value but never used. (totalt 99 st)
- X is not defined. (totalt 35 st)
- `content-type=".*javascript.*"` in: #83: primus.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #83: primus.js, antal fel: 1512 ( 1.00 betyg )
- X is defined but never used. (totalt 1244 st)
- Unexpected console statement. (totalt 134 st)
- X is assigned a value but never used. (totalt 99 st)
- X is not defined. (totalt 35 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: 12 ( 2.60 betyg )
- `< script src="...">` in: #1: Webbsida , antal fel: 587 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 376 st)
- Expected X and instead saw X. (totalt 197 st)
- Comparing to itself is potentially pointless. (totalt 3 st)
- Unnecessary escape character: \/. (totalt 3 st)
- Unnecessary X. (totalt 1 st)
- Do not access Object.prototype method X from target object. (totalt 1 st)
- Unnecessary escape character: \[. (totalt 1 st)
- Unnecessary escape character: \.. (totalt 1 st)
- The Function constructor is eval. (totalt 1 st)
- Parsing error: Unexpected token } (totalt 1 st)
- X is not modified in this loop. (totalt 1 st)
- Unnecessary escape character: \?. (totalt 1 st)
- `< script>` in: #64: index.aa941f8.h, antal grupperade fel: 2 ( 4.60 betyg )
- `< script>` in: #64: 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: #43: gtm.js, antal grupperade fel: 14 ( 2.20 betyg )
- `content-type=".*javascript.*"` in: #43: gtm.js, antal fel: 1675 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1194 st)
- Expected X and instead saw X. (totalt 230 st)
- Unnecessary escape character: \/. (totalt 125 st)
- Do not access Object.prototype method X from target object. (totalt 109 st)
- Unnecessary escape character: \-. (totalt 4 st)
- X is not modified in this loop. (totalt 3 st)
- X is assigned to itself. (totalt 3 st)
- eval can be harmful. (totalt 1 st)
- Comparing to itself is potentially pointless. (totalt 1 st)
- Unnecessary escape character: \?. (totalt 1 st)
- Unnecessary escape character: \.. (totalt 1 st)
- Unexpected string concatenation of literals. (totalt 1 st)
- Unnecessary X. (totalt 1 st)
- Script URL is a form of eval. (totalt 1 st)
- `content-type=".*javascript.*"` in: #55: ext.js, antal grupperade fel: 14 ( 2.20 betyg )
- `content-type=".*javascript.*"` in: #55: ext.js, antal fel: 1675 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1194 st)
- Expected X and instead saw X. (totalt 230 st)
- Unnecessary escape character: \/. (totalt 125 st)
- Do not access Object.prototype method X from target object. (totalt 109 st)
- Unnecessary escape character: \-. (totalt 4 st)
- X is not modified in this loop. (totalt 3 st)
- X is assigned to itself. (totalt 3 st)
- eval can be harmful. (totalt 1 st)
- Comparing to itself is potentially pointless. (totalt 1 st)
- Unnecessary escape character: \?. (totalt 1 st)
- Unnecessary escape character: \.. (totalt 1 st)
- Unexpected string concatenation of literals. (totalt 1 st)
- Unnecessary X. (totalt 1 st)
- Script URL is a form of eval. (totalt 1 st)
- `content-type=".*javascript.*"` in: #57: initWidget.js, antal grupperade fel: 14 ( 2.20 betyg )
- `content-type=".*javascript.*"` in: #57: initWidget.js, antal fel: 1675 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1194 st)
- Expected X and instead saw X. (totalt 230 st)
- Unnecessary escape character: \/. (totalt 125 st)
- Do not access Object.prototype method X from target object. (totalt 109 st)
- Unnecessary escape character: \-. (totalt 4 st)
- X is not modified in this loop. (totalt 3 st)
- X is assigned to itself. (totalt 3 st)
- eval can be harmful. (totalt 1 st)
- Comparing to itself is potentially pointless. (totalt 1 st)
- Unnecessary escape character: \?. (totalt 1 st)
- Unnecessary escape character: \.. (totalt 1 st)
- Unexpected string concatenation of literals. (totalt 1 st)
- Unnecessary X. (totalt 1 st)
- Script URL is a form of eval. (totalt 1 st)
- `content-type=".*javascript.*"` in: #58: cookietractor.j, antal grupperade fel: 14 ( 2.20 betyg )
- `content-type=".*javascript.*"` in: #58: cookietractor.j, antal fel: 1792 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1272 st)
- Expected X and instead saw X. (totalt 269 st)
- Unnecessary escape character: \/. (totalt 125 st)
- Do not access Object.prototype method X from target object. (totalt 109 st)
- Unnecessary escape character: \-. (totalt 4 st)
- X is not modified in this loop. (totalt 3 st)
- X is assigned to itself. (totalt 3 st)
- eval can be harmful. (totalt 1 st)
- Comparing to itself is potentially pointless. (totalt 1 st)
- Unnecessary escape character: \?. (totalt 1 st)
- Unnecessary escape character: \.. (totalt 1 st)
- Unexpected string concatenation of literals. (totalt 1 st)
- Unnecessary X. (totalt 1 st)
- Script URL is a form of eval. (totalt 1 st)
- `content-type=".*javascript.*"` in: #60: main.C9eUAjEi.j, antal grupperade fel: 16 ( 1.80 betyg )
- `content-type=".*javascript.*"` in: #60: main.C9eUAjEi.j, antal fel: 2439 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1737 st)
- Expected X and instead saw X. (totalt 420 st)
- Unnecessary escape character: \/. (totalt 125 st)
- Do not access Object.prototype method X from target object. (totalt 110 st)
- Script URL is a form of eval. (totalt 26 st)
- Unnecessary escape character: \-. (totalt 4 st)
- X is not modified in this loop. (totalt 4 st)
- X is assigned to itself. (totalt 3 st)
- Comparing to itself is potentially pointless. (totalt 2 st)
- Unnecessary X. (totalt 2 st)
- eval can be harmful. (totalt 1 st)
- Unnecessary escape character: \?. (totalt 1 st)
- Unnecessary escape character: \.. (totalt 1 st)
- Unexpected string concatenation of literals. (totalt 1 st)
- Async method X has no X expression. (totalt 1 st)
- Async arrow function has no X expression. (totalt 1 st)
- `content-type=".*javascript.*"` in: #62: widget.js, antal grupperade fel: 18 ( 1.40 betyg )
- `content-type=".*javascript.*"` in: #62: widget.js, antal fel: 3280 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 2209 st)
- Expected X and instead saw X. (totalt 747 st)
- Unnecessary escape character: \/. (totalt 136 st)
- Do not access Object.prototype method X from target object. (totalt 136 st)
- Script URL is a form of eval. (totalt 26 st)
- Unnecessary escape character: \-. (totalt 4 st)
- X is not modified in this loop. (totalt 4 st)
- Unnecessary X. (totalt 4 st)
- X is assigned to itself. (totalt 3 st)
- Comparing to itself is potentially pointless. (totalt 2 st)
- The Function constructor is eval. (totalt 2 st)
- eval can be harmful. (totalt 1 st)
- Unnecessary escape character: \?. (totalt 1 st)
- Unnecessary escape character: \.. (totalt 1 st)
- Unexpected string concatenation of literals. (totalt 1 st)
- Async method X has no X expression. (totalt 1 st)
- Async arrow function has no X expression. (totalt 1 st)
- Unnecessary escape character: \[. (totalt 1 st)
- `content-type=".*javascript.*"` in: #67: bundle.fefe147d, antal grupperade fel: 19 ( 1.20 betyg )
- `content-type=".*javascript.*"` in: #67: bundle.fefe147d, antal fel: 3967 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 2589 st)
- Expected X and instead saw X. (totalt 1022 st)
- Do not access Object.prototype method X from target object. (totalt 162 st)
- Unnecessary escape character: \/. (totalt 137 st)
- Script URL is a form of eval. (totalt 26 st)
- Unnecessary X. (totalt 6 st)
- X is not modified in this loop. (totalt 5 st)
- Unnecessary escape character: \-. (totalt 4 st)
- X is assigned to itself. (totalt 3 st)
- The Function constructor is eval. (totalt 3 st)
- Comparing to itself is potentially pointless. (totalt 2 st)
- eval can be harmful. (totalt 1 st)
- Unnecessary escape character: \?. (totalt 1 st)
- Unnecessary escape character: \.. (totalt 1 st)
- Unexpected string concatenation of literals. (totalt 1 st)
- Async method X has no X expression. (totalt 1 st)
- Async arrow function has no X expression. (totalt 1 st)
- Unnecessary escape character: \[. (totalt 1 st)
- Unsafe usage of ThrowStatement. (totalt 1 st)
- `content-type=".*javascript.*"` in: #69: client.bundle.1, antal grupperade fel: 22 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #69: client.bundle.1, antal fel: 5901 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 3800 st)
- Expected X and instead saw X. (totalt 1674 st)
- Do not access Object.prototype method X from target object. (totalt 195 st)
- Unnecessary escape character: \/. (totalt 138 st)
- Script URL is a form of eval. (totalt 26 st)
- Comparing to itself is potentially pointless. (totalt 11 st)
- Unnecessary X. (totalt 10 st)
- Unnecessary escape character: \.. (totalt 8 st)
- Unsafe usage of ThrowStatement. (totalt 8 st)
- X is not modified in this loop. (totalt 6 st)
- The Function constructor is eval. (totalt 5 st)
- Unnecessary escape character: \-. (totalt 4 st)
- X is assigned to itself. (totalt 4 st)
- Unnecessary escape character: \_. (totalt 4 st)
- eval can be harmful. (totalt 1 st)
- Unnecessary escape character: \?. (totalt 1 st)
- Unexpected string concatenation of literals. (totalt 1 st)
- Async method X has no X expression. (totalt 1 st)
- Async arrow function has no X expression. (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: #74: localization-sv, antal grupperade fel: 22 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #74: localization-sv, antal fel: 5901 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 3800 st)
- Expected X and instead saw X. (totalt 1674 st)
- Do not access Object.prototype method X from target object. (totalt 195 st)
- Unnecessary escape character: \/. (totalt 138 st)
- Script URL is a form of eval. (totalt 26 st)
- Comparing to itself is potentially pointless. (totalt 11 st)
- Unnecessary X. (totalt 10 st)
- Unnecessary escape character: \.. (totalt 8 st)
- Unsafe usage of ThrowStatement. (totalt 8 st)
- X is not modified in this loop. (totalt 6 st)
- The Function constructor is eval. (totalt 5 st)
- Unnecessary escape character: \-. (totalt 4 st)
- X is assigned to itself. (totalt 4 st)
- Unnecessary escape character: \_. (totalt 4 st)
- eval can be harmful. (totalt 1 st)
- Unnecessary escape character: \?. (totalt 1 st)
- Unexpected string concatenation of literals. (totalt 1 st)
- Async method X has no X expression. (totalt 1 st)
- Async arrow function has no X expression. (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: #77: nr-1216.min.js, antal grupperade fel: 23 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #77: nr-1216.min.js, antal fel: 6092 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 3933 st)
- Expected X and instead saw X. (totalt 1723 st)
- Do not access Object.prototype method X from target object. (totalt 200 st)
- Unnecessary escape character: \/. (totalt 139 st)
- Script URL is a form of eval. (totalt 26 st)
- Comparing to itself is potentially pointless. (totalt 11 st)
- Unnecessary X. (totalt 10 st)
- X is not modified in this loop. (totalt 8 st)
- Unnecessary escape character: \.. (totalt 8 st)
- Unsafe usage of ThrowStatement. (totalt 8 st)
- The Function constructor is eval. (totalt 5 st)
- Unnecessary escape character: \-. (totalt 4 st)
- X is assigned to itself. (totalt 4 st)
- Unnecessary escape character: \_. (totalt 4 st)
- eval can be harmful. (totalt 1 st)
- Unnecessary escape character: \?. (totalt 1 st)
- Unexpected string concatenation of literals. (totalt 1 st)
- Async method X has no X expression. (totalt 1 st)
- Async arrow function has no X expression. (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: #79: ba5984b87d, antal grupperade fel: 23 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #79: ba5984b87d, antal fel: 6092 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 3933 st)
- Expected X and instead saw X. (totalt 1723 st)
- Do not access Object.prototype method X from target object. (totalt 200 st)
- Unnecessary escape character: \/. (totalt 139 st)
- Script URL is a form of eval. (totalt 26 st)
- Comparing to itself is potentially pointless. (totalt 11 st)
- Unnecessary X. (totalt 10 st)
- X is not modified in this loop. (totalt 8 st)
- Unnecessary escape character: \.. (totalt 8 st)
- Unsafe usage of ThrowStatement. (totalt 8 st)
- The Function constructor is eval. (totalt 5 st)
- Unnecessary escape character: \-. (totalt 4 st)
- X is assigned to itself. (totalt 4 st)
- Unnecessary escape character: \_. (totalt 4 st)
- eval can be harmful. (totalt 1 st)
- Unnecessary escape character: \?. (totalt 1 st)
- Unexpected string concatenation of literals. (totalt 1 st)
- Async method X has no X expression. (totalt 1 st)
- Async arrow function has no X expression. (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: #83: primus.js, antal grupperade fel: 24 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #83: primus.js, antal fel: 6101 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 3935 st)
- Expected X and instead saw X. (totalt 1727 st)
- Do not access Object.prototype method X from target object. (totalt 200 st)
- Unnecessary escape character: \/. (totalt 140 st)
- Script URL is a form of eval. (totalt 26 st)
- Comparing to itself is potentially pointless. (totalt 12 st)
- Unnecessary X. (totalt 10 st)
- X is not modified in this loop. (totalt 8 st)
- Unnecessary escape character: \.. (totalt 8 st)
- Unsafe usage of ThrowStatement. (totalt 8 st)
- The Function constructor is eval. (totalt 5 st)
- Unnecessary escape character: \-. (totalt 4 st)
- X is assigned to itself. (totalt 4 st)
- Unnecessary escape character: \_. (totalt 4 st)
- eval can be harmful. (totalt 1 st)
- Unnecessary escape character: \?. (totalt 1 st)
- Unexpected string concatenation of literals. (totalt 1 st)
- Async method X has no X expression. (totalt 1 st)
- Async arrow function has no X expression. (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)