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.98 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: 236 ( 1.00 betyg )
- X is defined but never used. (totalt 130 st)
- X is not defined. (totalt 53 st)
- X is assigned a value but never used. (totalt 41 st)
- Unexpected console statement. (totalt 12 st)
- `< script>` in: #55: index.aa941f8.h, antal grupperade fel: 2 ( 4.60 betyg )
- `< script>` in: #55: 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: #23: hotjar-4996572., antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #23: hotjar-4996572., antal fel: 24 ( 1.00 betyg )
- X is not defined. (totalt 11 st)
- X is defined but never used. (totalt 8 st)
- Unexpected console statement. (totalt 5 st)
- `content-type=".*javascript.*"` in: #24: initWidget.js, antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #24: initWidget.js, antal fel: 24 ( 1.00 betyg )
- X is not defined. (totalt 11 st)
- X is defined but never used. (totalt 8 st)
- Unexpected console statement. (totalt 5 st)
- `content-type=".*javascript.*"` in: #25: container-RkFW7, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #25: container-RkFW7, antal fel: 142 ( 1.00 betyg )
- X is defined but never used. (totalt 58 st)
- X is not defined. (totalt 53 st)
- Unexpected console statement. (totalt 19 st)
- X is assigned a value but never used. (totalt 12 st)
- `content-type=".*javascript.*"` in: #32: element.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #32: element.js, antal fel: 282 ( 1.00 betyg )
- X is not defined. (totalt 158 st)
- X is defined but never used. (totalt 91 st)
- Unexpected console statement. (totalt 19 st)
- X is assigned a value but never used. (totalt 14 st)
- `content-type=".*javascript.*"` in: #52: widget.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #52: widget.js, antal fel: 483 ( 1.00 betyg )
- X is defined but never used. (totalt 268 st)
- X is not defined. (totalt 164 st)
- Unexpected console statement. (totalt 37 st)
- X is assigned a value but never used. (totalt 14 st)
- `content-type=".*javascript.*"` in: #54: m-el-main, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #54: m-el-main, antal fel: 526 ( 1.00 betyg )
- X is defined but never used. (totalt 307 st)
- X is not defined. (totalt 166 st)
- Unexpected console statement. (totalt 37 st)
- X is assigned a value but never used. (totalt 16 st)
- `content-type=".*javascript.*"` in: #60: supportedLangua, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #60: supportedLangua, antal fel: 527 ( 1.00 betyg )
- X is defined but never used. (totalt 307 st)
- X is not defined. (totalt 167 st)
- Unexpected console statement. (totalt 37 st)
- X is assigned a value but never used. (totalt 16 st)
- `content-type=".*javascript.*"` in: #62: client.bundle.1, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #62: client.bundle.1, antal fel: 963 ( 1.00 betyg )
- X is defined but never used. (totalt 638 st)
- X is not defined. (totalt 174 st)
- Unexpected console statement. (totalt 135 st)
- X is assigned a value but never used. (totalt 16 st)
- `content-type=".*javascript.*"` in: #64: bundle.fefe147d, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #64: bundle.fefe147d, antal fel: 1136 ( 1.00 betyg )
- X is defined but never used. (totalt 807 st)
- X is not defined. (totalt 174 st)
- Unexpected console statement. (totalt 139 st)
- X is assigned a value but never used. (totalt 16 st)
- `content-type=".*javascript.*"` in: #69: localization-sv, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #69: localization-sv, antal fel: 1136 ( 1.00 betyg )
- X is defined but never used. (totalt 807 st)
- X is not defined. (totalt 174 st)
- Unexpected console statement. (totalt 139 st)
- X is assigned a value but never used. (totalt 16 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: 15 ( 2.00 betyg )
- `< script src="...">` in: #1: Webbsida , antal fel: 2668 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1595 st)
- Expected X and instead saw X. (totalt 696 st)
- Unnecessary escape character: \/. (totalt 341 st)
- Do not access Object.prototype method X from target object. (totalt 9 st)
- Unnecessary X. (totalt 9 st)
- X is not modified in this loop. (totalt 4 st)
- Comparing to itself is potentially pointless. (totalt 3 st)
- X is assigned to itself. (totalt 3 st)
- Unnecessary escape character: \}. (totalt 2 st)
- Unnecessary escape character: \[. (totalt 1 st)
- eval can be harmful. (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)
- `< script>` in: #55: index.aa941f8.h, antal grupperade fel: 2 ( 4.60 betyg )
- `< script>` in: #55: 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: #23: hotjar-4996572., antal grupperade fel: 2 ( 4.60 betyg )
- `content-type=".*javascript.*"` in: #23: hotjar-4996572., antal fel: 43 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 22 st)
- Expected X and instead saw X. (totalt 21 st)
- `content-type=".*javascript.*"` in: #24: initWidget.js, antal grupperade fel: 2 ( 4.60 betyg )
- `content-type=".*javascript.*"` in: #24: initWidget.js, antal fel: 43 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 22 st)
- Expected X and instead saw X. (totalt 21 st)
- `content-type=".*javascript.*"` in: #25: container-RkFW7, antal grupperade fel: 7 ( 3.60 betyg )
- `content-type=".*javascript.*"` in: #25: container-RkFW7, antal fel: 234 ( 1.00 betyg )
- Unnecessary escape character: \/. (totalt 134 st)
- Expected X and instead saw X. (totalt 64 st)
- Expected an assignment or function call and instead saw an expression. (totalt 22 st)
- Do not access Object.prototype method X from target object. (totalt 9 st)
- Unnecessary escape character: \-. (totalt 3 st)
- Unnecessary escape character: \.. (totalt 1 st)
- Unnecessary escape character: \). (totalt 1 st)
- `content-type=".*javascript.*"` in: #32: element.js, antal grupperade fel: 14 ( 2.20 betyg )
- `content-type=".*javascript.*"` in: #32: element.js, antal fel: 682 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 248 st)
- Expected X and instead saw X. (totalt 235 st)
- Unnecessary escape character: \/. (totalt 161 st)
- Do not access Object.prototype method X from target object. (totalt 13 st)
- Unnecessary X. (totalt 7 st)
- Comparing to itself is potentially pointless. (totalt 4 st)
- Unnecessary escape character: \-. (totalt 3 st)
- Unnecessary escape character: \). (totalt 3 st)
- Unnecessary escape character: \.. (totalt 2 st)
- X is assigned to itself. (totalt 2 st)
- Unnecessary escape character: \[. (totalt 1 st)
- Unnecessary escape character: \^. (totalt 1 st)
- X is not modified in this loop. (totalt 1 st)
- Unexpected string concatenation of literals. (totalt 1 st)
- `content-type=".*javascript.*"` in: #52: widget.js, antal grupperade fel: 15 ( 2.00 betyg )
- `content-type=".*javascript.*"` in: #52: widget.js, antal fel: 1523 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 720 st)
- Expected X and instead saw X. (totalt 562 st)
- Unnecessary escape character: \/. (totalt 172 st)
- Do not access Object.prototype method X from target object. (totalt 39 st)
- Unnecessary X. (totalt 9 st)
- Comparing to itself is potentially pointless. (totalt 4 st)
- Unnecessary escape character: \-. (totalt 3 st)
- Unnecessary escape character: \). (totalt 3 st)
- Unnecessary escape character: \.. (totalt 2 st)
- Unnecessary escape character: \[. (totalt 2 st)
- X is assigned to itself. (totalt 2 st)
- The Function constructor is eval. (totalt 2 st)
- Unnecessary escape character: \^. (totalt 1 st)
- X is not modified in this loop. (totalt 1 st)
- Unexpected string concatenation of literals. (totalt 1 st)
- `content-type=".*javascript.*"` in: #54: m-el-main, antal grupperade fel: 17 ( 1.60 betyg )
- `content-type=".*javascript.*"` in: #54: m-el-main, antal fel: 2902 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1492 st)
- Expected X and instead saw X. (totalt 1136 st)
- Unnecessary escape character: \/. (totalt 183 st)
- Do not access Object.prototype method X from target object. (totalt 41 st)
- Unnecessary X. (totalt 15 st)
- Unnecessary escape character: \-. (totalt 5 st)
- Comparing to itself is potentially pointless. (totalt 5 st)
- Unnecessary escape character: \). (totalt 4 st)
- X is assigned to itself. (totalt 4 st)
- Unnecessary escape character: \?. (totalt 4 st)
- Unnecessary escape character: \.. (totalt 3 st)
- Unnecessary escape character: \[. (totalt 2 st)
- X is not modified in this loop. (totalt 2 st)
- The Function constructor is eval. (totalt 2 st)
- Script URL is a form of eval. (totalt 2 st)
- Unnecessary escape character: \^. (totalt 1 st)
- Unexpected string concatenation of literals. (totalt 1 st)
- `content-type=".*javascript.*"` in: #60: supportedLangua, antal grupperade fel: 17 ( 1.60 betyg )
- `content-type=".*javascript.*"` in: #60: supportedLangua, antal fel: 2902 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1492 st)
- Expected X and instead saw X. (totalt 1136 st)
- Unnecessary escape character: \/. (totalt 183 st)
- Do not access Object.prototype method X from target object. (totalt 41 st)
- Unnecessary X. (totalt 15 st)
- Unnecessary escape character: \-. (totalt 5 st)
- Comparing to itself is potentially pointless. (totalt 5 st)
- Unnecessary escape character: \). (totalt 4 st)
- X is assigned to itself. (totalt 4 st)
- Unnecessary escape character: \?. (totalt 4 st)
- Unnecessary escape character: \.. (totalt 3 st)
- Unnecessary escape character: \[. (totalt 2 st)
- X is not modified in this loop. (totalt 2 st)
- The Function constructor is eval. (totalt 2 st)
- Script URL is a form of eval. (totalt 2 st)
- Unnecessary escape character: \^. (totalt 1 st)
- Unexpected string concatenation of literals. (totalt 1 st)
- `content-type=".*javascript.*"` in: #62: client.bundle.1, antal grupperade fel: 20 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #62: client.bundle.1, antal fel: 4836 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 2703 st)
- Expected X and instead saw X. (totalt 1788 st)
- Unnecessary escape character: \/. (totalt 184 st)
- Do not access Object.prototype method X from target object. (totalt 74 st)
- Unnecessary X. (totalt 19 st)
- Comparing to itself is potentially pointless. (totalt 14 st)
- Unnecessary escape character: \.. (totalt 10 st)
- Unsafe usage of ThrowStatement. (totalt 7 st)
- Unnecessary escape character: \-. (totalt 5 st)
- Unnecessary escape character: \). (totalt 5 st)
- X is assigned to itself. (totalt 5 st)
- The Function constructor is eval. (totalt 4 st)
- Unnecessary escape character: \?. (totalt 4 st)
- Unnecessary escape character: \_. (totalt 4 st)
- X is not modified in this loop. (totalt 3 st)
- Unnecessary escape character: \[. (totalt 2 st)
- Script URL is a form of eval. (totalt 2 st)
- Unnecessary escape character: \^. (totalt 1 st)
- Unexpected string concatenation of literals. (totalt 1 st)
- Unnecessary escape character: \+. (totalt 1 st)
- `content-type=".*javascript.*"` in: #64: bundle.fefe147d, antal grupperade fel: 20 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #64: bundle.fefe147d, antal fel: 5523 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 3083 st)
- Expected X and instead saw X. (totalt 2063 st)
- Unnecessary escape character: \/. (totalt 185 st)
- Do not access Object.prototype method X from target object. (totalt 100 st)
- Unnecessary X. (totalt 21 st)
- Comparing to itself is potentially pointless. (totalt 14 st)
- Unnecessary escape character: \.. (totalt 10 st)
- Unsafe usage of ThrowStatement. (totalt 8 st)
- Unnecessary escape character: \-. (totalt 5 st)
- Unnecessary escape character: \). (totalt 5 st)
- X is assigned to itself. (totalt 5 st)
- The Function constructor is eval. (totalt 5 st)
- X is not modified in this loop. (totalt 4 st)
- Unnecessary escape character: \?. (totalt 4 st)
- Unnecessary escape character: \_. (totalt 4 st)
- Unnecessary escape character: \[. (totalt 2 st)
- Script URL is a form of eval. (totalt 2 st)
- Unnecessary escape character: \^. (totalt 1 st)
- Unexpected string concatenation of literals. (totalt 1 st)
- Unnecessary escape character: \+. (totalt 1 st)
- `content-type=".*javascript.*"` in: #69: localization-sv, antal grupperade fel: 20 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #69: localization-sv, antal fel: 5523 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 3083 st)
- Expected X and instead saw X. (totalt 2063 st)
- Unnecessary escape character: \/. (totalt 185 st)
- Do not access Object.prototype method X from target object. (totalt 100 st)
- Unnecessary X. (totalt 21 st)
- Comparing to itself is potentially pointless. (totalt 14 st)
- Unnecessary escape character: \.. (totalt 10 st)
- Unsafe usage of ThrowStatement. (totalt 8 st)
- Unnecessary escape character: \-. (totalt 5 st)
- Unnecessary escape character: \). (totalt 5 st)
- X is assigned to itself. (totalt 5 st)
- The Function constructor is eval. (totalt 5 st)
- X is not modified in this loop. (totalt 4 st)
- Unnecessary escape character: \?. (totalt 4 st)
- Unnecessary escape character: \_. (totalt 4 st)
- Unnecessary escape character: \[. (totalt 2 st)
- Script URL is a form of eval. (totalt 2 st)
- Unnecessary escape character: \^. (totalt 1 st)
- Unexpected string concatenation of literals. (totalt 1 st)
- Unnecessary escape character: \+. (totalt 1 st)