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.99 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: 546 ( 1.00 betyg )
- X is not defined. (totalt 273 st)
- X is defined but never used. (totalt 211 st)
- Unexpected console statement. (totalt 51 st)
- X is assigned a value but never used. (totalt 11 st)
- `< script>` in: #17: a28845590122.ht, antal grupperade fel: 1 ( 4.80 betyg )
- `< script>` in: #17: a28845590122.ht, antal fel: 1 ( 4.80 betyg )
- X is defined but never used. (totalt 1 st)
- `< script>` in: #18: sw-iframe.html, antal grupperade fel: 1 ( 4.80 betyg )
- `< script>` in: #18: sw-iframe.html, antal fel: 2 ( 4.60 betyg )
- X is defined but never used. (totalt 2 st)
- `< script>` in: #24: index.aa941f8.h, antal grupperade fel: 2 ( 4.60 betyg )
- `< script>` in: #24: 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: #5: gtm.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #5: gtm.js, antal fel: 465 ( 1.00 betyg )
- X is defined but never used. (totalt 358 st)
- X is assigned a value but never used. (totalt 90 st)
- X is not defined. (totalt 16 st)
- Unexpected console statement. (totalt 1 st)
- `content-type=".*javascript.*"` in: #15: f267916d.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #15: f267916d.js, antal fel: 492 ( 1.00 betyg )
- X is defined but never used. (totalt 383 st)
- X is assigned a value but never used. (totalt 90 st)
- X is not defined. (totalt 18 st)
- Unexpected console statement. (totalt 1 st)
- `content-type=".*javascript.*"` in: #16: js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #16: js, antal fel: 937 ( 1.00 betyg )
- X is defined but never used. (totalt 739 st)
- X is assigned a value but never used. (totalt 164 st)
- X is not defined. (totalt 33 st)
- Unexpected console statement. (totalt 1 st)
- `content-type=".*javascript.*"` in: #19: initWidget.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #19: initWidget.js, antal fel: 937 ( 1.00 betyg )
- X is defined but never used. (totalt 739 st)
- X is assigned a value but never used. (totalt 164 st)
- X is not defined. (totalt 33 st)
- Unexpected console statement. (totalt 1 st)
- `content-type=".*javascript.*"` in: #20: destination, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #20: destination, antal fel: 1353 ( 1.00 betyg )
- X is defined but never used. (totalt 1075 st)
- X is assigned a value but never used. (totalt 232 st)
- X is not defined. (totalt 45 st)
- Unexpected console statement. (totalt 1 st)
- `content-type=".*javascript.*"` in: #23: widget.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #23: widget.js, antal fel: 1554 ( 1.00 betyg )
- X is defined but never used. (totalt 1252 st)
- X is assigned a value but never used. (totalt 232 st)
- X is not defined. (totalt 51 st)
- Unexpected console statement. (totalt 19 st)
- `content-type=".*javascript.*"` in: #27: bundle.fefe147d, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #27: bundle.fefe147d, antal fel: 1727 ( 1.00 betyg )
- X is defined but never used. (totalt 1421 st)
- X is assigned a value but never used. (totalt 232 st)
- X is not defined. (totalt 51 st)
- Unexpected console statement. (totalt 23 st)
- `content-type=".*javascript.*"` in: #29: client.bundle.1, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #29: client.bundle.1, antal fel: 2163 ( 1.00 betyg )
- X is defined but never used. (totalt 1752 st)
- X is assigned a value but never used. (totalt 232 st)
- Unexpected console statement. (totalt 121 st)
- X is not defined. (totalt 58 st)
- `content-type=".*javascript.*"` in: #32: localization-sv, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #32: localization-sv, antal fel: 2163 ( 1.00 betyg )
- X is defined but never used. (totalt 1752 st)
- X is assigned a value but never used. (totalt 232 st)
- Unexpected console statement. (totalt 121 st)
- X is not defined. (totalt 58 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: 27 ( 1.00 betyg )
- `< script src="...">` in: #1: Webbsida , antal fel: 3930 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 2577 st)
- Expected X and instead saw X. (totalt 1000 st)
- Unnecessary escape character: \.. (totalt 106 st)
- Do not access Object.prototype method X from target object. (totalt 74 st)
- Unnecessary escape character: \-. (totalt 52 st)
- Unnecessary escape character: \/. (totalt 33 st)
- Unnecessary X. (totalt 26 st)
- Unnecessary escape character: \). (totalt 13 st)
- Comparing to itself is potentially pointless. (totalt 13 st)
- Unexpected string concatenation of literals. (totalt 7 st)
- The Function constructor is eval. (totalt 4 st)
- Unnecessary escape character: \,. (totalt 3 st)
- Unnecessary escape character: \+. (totalt 3 st)
- Unnecessary escape character: \(. (totalt 3 st)
- eval can be harmful. (totalt 3 st)
- Unnecessary escape character: \:. (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)
- X is assigned to itself. (totalt 1 st)
- Script URL is a form of eval. (totalt 1 st)
- Unnecessary escape character: \?. (totalt 1 st)
- X is not modified in this loop. (totalt 1 st)
- Unsafe usage of ThrowStatement. (totalt 1 st)
- Unnecessary escape character: \=. (totalt 1 st)
- `< script>` in: #17: a28845590122.ht, antal grupperade fel: 2 ( 4.60 betyg )
- `< script>` in: #17: a28845590122.ht, antal fel: 10 ( 3.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 8 st)
- Do not access Object.prototype method X from target object. (totalt 2 st)
- `< script>` in: #18: sw-iframe.html, antal grupperade fel: 2 ( 4.60 betyg )
- `< script>` in: #18: sw-iframe.html, antal fel: 14 ( 2.20 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 11 st)
- Expected X and instead saw X. (totalt 3 st)
- `< script>` in: #24: index.aa941f8.h, antal grupperade fel: 2 ( 4.60 betyg )
- `< script>` in: #24: 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: #5: gtm.js, antal grupperade fel: 14 ( 2.20 betyg )
- `content-type=".*javascript.*"` in: #5: gtm.js, antal fel: 1645 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1103 st)
- Expected X and instead saw X. (totalt 225 st)
- Unnecessary escape character: \/. (totalt 201 st)
- Do not access Object.prototype method X from target object. (totalt 99 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: #15: f267916d.js, antal grupperade fel: 25 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #15: f267916d.js, antal fel: 2600 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1366 st)
- Expected X and instead saw X. (totalt 844 st)
- Unnecessary escape character: \/. (totalt 253 st)
- Do not access Object.prototype method X from target object. (totalt 100 st)
- Unnecessary escape character: \-. (totalt 5 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)
- Unnecessary X. (totalt 3 st)
- Unnecessary escape character: \?. (totalt 2 st)
- Unnecessary escape character: \.. (totalt 2 st)
- Unnecessary escape character: \|. (totalt 2 st)
- eval can be harmful. (totalt 1 st)
- Comparing to itself is potentially pointless. (totalt 1 st)
- Unexpected string concatenation of literals. (totalt 1 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)
- 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: #16: js, antal grupperade fel: 25 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #16: js, antal fel: 4143 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 2577 st)
- Expected X and instead saw X. (totalt 1073 st)
- Unnecessary escape character: \/. (totalt 256 st)
- Do not access Object.prototype method X from target object. (totalt 188 st)
- X is not modified in this loop. (totalt 6 st)
- X is assigned to itself. (totalt 6 st)
- Unnecessary escape character: \-. (totalt 5 st)
- Unnecessary escape character: \". (totalt 4 st)
- Unnecessary escape character: \?. (totalt 3 st)
- Unnecessary escape character: \.. (totalt 3 st)
- Unnecessary X. (totalt 3 st)
- Comparing to itself is potentially pointless. (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 2 st)
- Unnecessary escape character: \|. (totalt 2 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)
- 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)
- `content-type=".*javascript.*"` in: #19: initWidget.js, antal grupperade fel: 25 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #19: initWidget.js, antal fel: 4143 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 2577 st)
- Expected X and instead saw X. (totalt 1073 st)
- Unnecessary escape character: \/. (totalt 256 st)
- Do not access Object.prototype method X from target object. (totalt 188 st)
- X is not modified in this loop. (totalt 6 st)
- X is assigned to itself. (totalt 6 st)
- Unnecessary escape character: \-. (totalt 5 st)
- Unnecessary escape character: \". (totalt 4 st)
- Unnecessary escape character: \?. (totalt 3 st)
- Unnecessary escape character: \.. (totalt 3 st)
- Unnecessary X. (totalt 3 st)
- Comparing to itself is potentially pointless. (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 2 st)
- Unnecessary escape character: \|. (totalt 2 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)
- 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)
- `content-type=".*javascript.*"` in: #20: destination, antal grupperade fel: 25 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #20: destination, antal fel: 5728 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 3823 st)
- Expected X and instead saw X. (totalt 1304 st)
- Do not access Object.prototype method X from target object. (totalt 281 st)
- Unnecessary escape character: \/. (totalt 259 st)
- X is not modified in this loop. (totalt 9 st)
- X is assigned to itself. (totalt 9 st)
- Unnecessary escape character: \-. (totalt 5 st)
- Unnecessary escape character: \?. (totalt 4 st)
- Unnecessary escape character: \.. (totalt 4 st)
- Unnecessary escape character: \". (totalt 4 st)
- Comparing to itself is potentially pointless. (totalt 3 st)
- Unexpected string concatenation of literals. (totalt 3 st)
- Unnecessary X. (totalt 3 st)
- Script URL is a form of eval. (totalt 3 st)
- Unnecessary escape character: \}. (totalt 3 st)
- Unnecessary escape character: \|. (totalt 2 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)
- 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)
- `content-type=".*javascript.*"` in: #23: widget.js, antal grupperade fel: 26 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #23: widget.js, antal fel: 6569 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 4295 st)
- Expected X and instead saw X. (totalt 1631 st)
- Do not access Object.prototype method X from target object. (totalt 307 st)
- Unnecessary escape character: \/. (totalt 270 st)
- X is not modified in this loop. (totalt 9 st)
- X is assigned to itself. (totalt 9 st)
- Unnecessary escape character: \-. (totalt 5 st)
- Unnecessary X. (totalt 5 st)
- Unnecessary escape character: \?. (totalt 4 st)
- Unnecessary escape character: \.. (totalt 4 st)
- Unnecessary escape character: \". (totalt 4 st)
- Comparing to itself is potentially pointless. (totalt 3 st)
- Unexpected string concatenation of literals. (totalt 3 st)
- Script URL is a form of eval. (totalt 3 st)
- Unnecessary escape character: \}. (totalt 3 st)
- Unnecessary escape character: \[. (totalt 2 st)
- Unnecessary escape character: \|. (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)
- 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)
- `content-type=".*javascript.*"` in: #27: bundle.fefe147d, antal grupperade fel: 27 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #27: bundle.fefe147d, antal fel: 7256 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 4675 st)
- Expected X and instead saw X. (totalt 1906 st)
- Do not access Object.prototype method X from target object. (totalt 333 st)
- Unnecessary escape character: \/. (totalt 271 st)
- X is not modified in this loop. (totalt 10 st)
- X is assigned to itself. (totalt 9 st)
- Unnecessary X. (totalt 7 st)
- Unnecessary escape character: \-. (totalt 5 st)
- Unnecessary escape character: \?. (totalt 4 st)
- Unnecessary escape character: \.. (totalt 4 st)
- Unnecessary escape character: \". (totalt 4 st)
- Comparing to itself is potentially pointless. (totalt 3 st)
- Unexpected string concatenation of literals. (totalt 3 st)
- Script URL is a form of eval. (totalt 3 st)
- Unnecessary escape character: \}. (totalt 3 st)
- The Function constructor is eval. (totalt 3 st)
- Unnecessary escape character: \[. (totalt 2 st)
- Unnecessary escape character: \|. (totalt 2 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)
- Unnecessary escape character: \*. (totalt 1 st)
- Unnecessary escape character: \+. (totalt 1 st)
- Unnecessary escape character: \^. (totalt 1 st)
- Unnecessary escape character: \$. (totalt 1 st)
- Unsafe usage of ThrowStatement. (totalt 1 st)
- `content-type=".*javascript.*"` in: #29: client.bundle.1, antal grupperade fel: 28 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #29: client.bundle.1, antal fel: 9190 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 5886 st)
- Expected X and instead saw X. (totalt 2558 st)
- Do not access Object.prototype method X from target object. (totalt 366 st)
- Unnecessary escape character: \/. (totalt 272 st)
- Comparing to itself is potentially pointless. (totalt 12 st)
- X is not modified in this loop. (totalt 11 st)
- Unnecessary escape character: \.. (totalt 11 st)
- Unnecessary X. (totalt 11 st)
- X is assigned to itself. (totalt 10 st)
- Unsafe usage of ThrowStatement. (totalt 8 st)
- Unnecessary escape character: \-. (totalt 5 st)
- The Function constructor is eval. (totalt 5 st)
- Unnecessary escape character: \?. (totalt 4 st)
- Unnecessary escape character: \". (totalt 4 st)
- Unnecessary escape character: \_. (totalt 4 st)
- Unexpected string concatenation of literals. (totalt 3 st)
- Script URL is a form of eval. (totalt 3 st)
- Unnecessary escape character: \}. (totalt 3 st)
- Unnecessary escape character: \[. (totalt 2 st)
- Unnecessary escape character: \). (totalt 2 st)
- Unnecessary escape character: \+. (totalt 2 st)
- Unnecessary escape character: \|. (totalt 2 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)
- Unnecessary escape character: \^. (totalt 1 st)
- Unnecessary escape character: \$. (totalt 1 st)
- `content-type=".*javascript.*"` in: #32: localization-sv, antal grupperade fel: 28 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #32: localization-sv, antal fel: 9190 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 5886 st)
- Expected X and instead saw X. (totalt 2558 st)
- Do not access Object.prototype method X from target object. (totalt 366 st)
- Unnecessary escape character: \/. (totalt 272 st)
- Comparing to itself is potentially pointless. (totalt 12 st)
- X is not modified in this loop. (totalt 11 st)
- Unnecessary escape character: \.. (totalt 11 st)
- Unnecessary X. (totalt 11 st)
- X is assigned to itself. (totalt 10 st)
- Unsafe usage of ThrowStatement. (totalt 8 st)
- Unnecessary escape character: \-. (totalt 5 st)
- The Function constructor is eval. (totalt 5 st)
- Unnecessary escape character: \?. (totalt 4 st)
- Unnecessary escape character: \". (totalt 4 st)
- Unnecessary escape character: \_. (totalt 4 st)
- Unexpected string concatenation of literals. (totalt 3 st)
- Script URL is a form of eval. (totalt 3 st)
- Unnecessary escape character: \}. (totalt 3 st)
- Unnecessary escape character: \[. (totalt 2 st)
- Unnecessary escape character: \). (totalt 2 st)
- Unnecessary escape character: \+. (totalt 2 st)
- Unnecessary escape character: \|. (totalt 2 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)
- Unnecessary escape character: \^. (totalt 1 st)
- Unnecessary escape character: \$. (totalt 1 st)