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.86 av 5
- JS är dålig.Webbstandard
- `< script>` in: #1: Webbsida , antal grupperade fel: 2 ( 4.60 betyg )
- `< script>` in: #1: Webbsida , antal fel: 19 ( 1.20 betyg )
- X is not defined. (totalt 16 st)
- X is defined but never used. (totalt 3 st)
- `< script src="...">` in: #1: Webbsida , antal grupperade fel: 5 ( 4.00 betyg )
- `< script src="...">` in: #1: Webbsida , antal fel: 1512 ( 1.00 betyg )
- X is not defined. (totalt 1267 st)
- X is defined but never used. (totalt 125 st)
- X is assigned a value but never used. (totalt 79 st)
- Unexpected console statement. (totalt 40 st)
- Parsing error: Unexpected token (totalt 1 st)
- `< script>` in: #73: CookieInformati, antal grupperade fel: 2 ( 4.60 betyg )
- `< script>` in: #73: CookieInformati, antal fel: 10 ( 3.00 betyg )
- X is not defined. (totalt 8 st)
- X is defined but never used. (totalt 2 st)
- `< script>` in: #81: index.aa941f8.h, antal grupperade fel: 2 ( 4.60 betyg )
- `< script>` in: #81: 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: #56: gtm.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #56: gtm.js, antal fel: 585 ( 1.00 betyg )
- X is defined but never used. (totalt 475 st)
- X is assigned a value but never used. (totalt 87 st)
- X is not defined. (totalt 22 st)
- Unexpected console statement. (totalt 1 st)
- `content-type=".*javascript.*"` in: #66: platform.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #66: platform.js, antal fel: 601 ( 1.00 betyg )
- X is defined but never used. (totalt 490 st)
- X is assigned a value but never used. (totalt 87 st)
- X is not defined. (totalt 22 st)
- Unexpected console statement. (totalt 2 st)
- `content-type=".*javascript.*"` in: #67: js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #67: js, antal fel: 987 ( 1.00 betyg )
- X is defined but never used. (totalt 809 st)
- X is assigned a value but never used. (totalt 144 st)
- X is not defined. (totalt 32 st)
- Unexpected console statement. (totalt 2 st)
- `content-type=".*javascript.*"` in: #68: initWidget.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #68: initWidget.js, antal fel: 987 ( 1.00 betyg )
- X is defined but never used. (totalt 809 st)
- X is assigned a value but never used. (totalt 144 st)
- X is not defined. (totalt 32 st)
- Unexpected console statement. (totalt 2 st)
- `content-type=".*javascript.*"` in: #75: instashow.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #75: instashow.js, antal fel: 1140 ( 1.00 betyg )
- X is defined but never used. (totalt 907 st)
- X is assigned a value but never used. (totalt 151 st)
- X is not defined. (totalt 41 st)
- Unexpected console statement. (totalt 41 st)
- `content-type=".*javascript.*"` in: #78: widget.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #78: widget.js, antal fel: 1341 ( 1.00 betyg )
- X is defined but never used. (totalt 1084 st)
- X is assigned a value but never used. (totalt 151 st)
- Unexpected console statement. (totalt 59 st)
- X is not defined. (totalt 47 st)
- `content-type=".*javascript.*"` in: #84: bundle.fefe147d, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #84: bundle.fefe147d, antal fel: 1514 ( 1.00 betyg )
- X is defined but never used. (totalt 1253 st)
- X is assigned a value but never used. (totalt 151 st)
- Unexpected console statement. (totalt 63 st)
- X is not defined. (totalt 47 st)
- `content-type=".*javascript.*"` in: #87: client.bundle.1, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #87: client.bundle.1, antal fel: 1950 ( 1.00 betyg )
- X is defined but never used. (totalt 1584 st)
- Unexpected console statement. (totalt 161 st)
- X is assigned a value but never used. (totalt 151 st)
- X is not defined. (totalt 54 st)
- `content-type=".*javascript.*"` in: #90: localization-sv, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #90: localization-sv, antal fel: 1950 ( 1.00 betyg )
- X is defined but never used. (totalt 1584 st)
- Unexpected console statement. (totalt 161 st)
- X is assigned a value but never used. (totalt 151 st)
- X is not defined. (totalt 54 st)
- `content-type=".*javascript.*"` in: #103: primus.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #103: primus.js, antal fel: 1994 ( 1.00 betyg )
- X is defined but never used. (totalt 1628 st)
- Unexpected console statement. (totalt 161 st)
- X is assigned a value but never used. (totalt 151 st)
- X is not defined. (totalt 54 st)
Integritet & säkerhet
- `< script>` in: #1: Webbsida , antal grupperade fel: 1 ( 4.80 betyg )
- `< script>` in: #1: Webbsida , antal fel: 2 ( 4.60 betyg )
- Expected X and instead saw X. (totalt 2 st)
- `< script src="...">` in: #1: Webbsida , antal grupperade fel: 24 ( 1.00 betyg )
- `< script src="...">` in: #1: Webbsida , antal fel: 3518 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 2207 st)
- Expected X and instead saw X. (totalt 1130 st)
- Unnecessary escape character: \/. (totalt 108 st)
- Do not access Object.prototype method X from target object. (totalt 14 st)
- Unnecessary escape character: \-. (totalt 9 st)
- X is assigned to itself. (totalt 8 st)
- Comparing to itself is potentially pointless. (totalt 5 st)
- Unnecessary escape character: \.. (totalt 4 st)
- Unnecessary escape character: \[. (totalt 4 st)
- Unnecessary escape character: \+. (totalt 3 st)
- The Function constructor is eval. (totalt 3 st)
- X is not modified in this loop. (totalt 3 st)
- Async method X has no X expression. (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)
- Unnecessary X. (totalt 2 st)
- Unnecessary escape character: \}. (totalt 2 st)
- Parsing error: Unexpected token (totalt 1 st)
- Unnecessary escape character: \@. (totalt 1 st)
- Unsafe usage of ThrowStatement. (totalt 1 st)
- Redundant use of `await` on a return value. (totalt 1 st)
- Async function has no X expression. (totalt 1 st)
- `< script>` in: #81: index.aa941f8.h, antal grupperade fel: 2 ( 4.60 betyg )
- `< script>` in: #81: 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: #56: gtm.js, antal grupperade fel: 9 ( 3.20 betyg )
- `content-type=".*javascript.*"` in: #56: gtm.js, antal fel: 1021 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 738 st)
- Expected X and instead saw X. (totalt 198 st)
- Do not access Object.prototype method X from target object. (totalt 73 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: #66: platform.js, antal grupperade fel: 12 ( 2.60 betyg )
- `content-type=".*javascript.*"` in: #66: platform.js, antal fel: 1120 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 807 st)
- Expected X and instead saw X. (totalt 224 st)
- Do not access Object.prototype method X from target object. (totalt 73 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)
- Unnecessary escape character: \+. (totalt 2 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)
- Unsafe usage of ReturnStatement. (totalt 1 st)
- Unsafe usage of ThrowStatement. (totalt 1 st)
- `content-type=".*javascript.*"` in: #67: js, antal grupperade fel: 16 ( 1.80 betyg )
- `content-type=".*javascript.*"` in: #67: js, antal fel: 2798 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 2119 st)
- Expected X and instead saw X. (totalt 465 st)
- Do not access Object.prototype method X from target object. (totalt 178 st)
- Unnecessary escape character: \/. (totalt 10 st)
- X is not modified in this loop. (totalt 7 st)
- X is assigned to itself. (totalt 6 st)
- Comparing to itself is potentially pointless. (totalt 2 st)
- Script URL is a form of eval. (totalt 2 st)
- Unnecessary escape character: \+. (totalt 2 st)
- Unnecessary X. (totalt 1 st)
- Unsafe usage of ReturnStatement. (totalt 1 st)
- Unsafe usage of ThrowStatement. (totalt 1 st)
- Unnecessary escape character: \?. (totalt 1 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: #68: initWidget.js, antal grupperade fel: 16 ( 1.80 betyg )
- `content-type=".*javascript.*"` in: #68: initWidget.js, antal fel: 2798 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 2119 st)
- Expected X and instead saw X. (totalt 465 st)
- Do not access Object.prototype method X from target object. (totalt 178 st)
- Unnecessary escape character: \/. (totalt 10 st)
- X is not modified in this loop. (totalt 7 st)
- X is assigned to itself. (totalt 6 st)
- Comparing to itself is potentially pointless. (totalt 2 st)
- Script URL is a form of eval. (totalt 2 st)
- Unnecessary escape character: \+. (totalt 2 st)
- Unnecessary X. (totalt 1 st)
- Unsafe usage of ReturnStatement. (totalt 1 st)
- Unsafe usage of ThrowStatement. (totalt 1 st)
- Unnecessary escape character: \?. (totalt 1 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: #75: instashow.js, antal grupperade fel: 23 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #75: instashow.js, antal fel: 4722 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 3621 st)
- Expected X and instead saw X. (totalt 704 st)
- Do not access Object.prototype method X from target object. (totalt 246 st)
- Unnecessary escape character: \-. (totalt 49 st)
- Unnecessary escape character: \/. (totalt 23 st)
- X is not modified in this loop. (totalt 12 st)
- Unexpected string concatenation of literals. (totalt 12 st)
- Comparing to itself is potentially pointless. (totalt 10 st)
- X is assigned to itself. (totalt 8 st)
- Unnecessary escape character: \.. (totalt 6 st)
- Unnecessary escape character: \:. (totalt 6 st)
- Unnecessary escape character: \$. (totalt 5 st)
- The Function constructor is eval. (totalt 4 st)
- Unnecessary X. (totalt 3 st)
- Script URL is a form of eval. (totalt 2 st)
- Unnecessary escape character: \+. (totalt 2 st)
- Unsafe usage of ThrowStatement. (totalt 2 st)
- Redundant use of `await` on a return value. (totalt 2 st)
- Unsafe usage of ReturnStatement. (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: #78: widget.js, antal grupperade fel: 23 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #78: widget.js, antal fel: 5563 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 4093 st)
- Expected X and instead saw X. (totalt 1031 st)
- Do not access Object.prototype method X from target object. (totalt 272 st)
- Unnecessary escape character: \-. (totalt 49 st)
- Unnecessary escape character: \/. (totalt 34 st)
- X is not modified in this loop. (totalt 12 st)
- Unexpected string concatenation of literals. (totalt 12 st)
- Comparing to itself is potentially pointless. (totalt 10 st)
- X is assigned to itself. (totalt 8 st)
- Unnecessary escape character: \.. (totalt 6 st)
- The Function constructor is eval. (totalt 6 st)
- Unnecessary escape character: \:. (totalt 6 st)
- Unnecessary X. (totalt 5 st)
- Unnecessary escape character: \$. (totalt 5 st)
- Script URL is a form of eval. (totalt 2 st)
- Unnecessary escape character: \+. (totalt 2 st)
- Unsafe usage of ThrowStatement. (totalt 2 st)
- Redundant use of `await` on a return value. (totalt 2 st)
- Unnecessary escape character: \[. (totalt 2 st)
- Unsafe usage of ReturnStatement. (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: #84: bundle.fefe147d, antal grupperade fel: 23 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #84: bundle.fefe147d, antal fel: 6250 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 4473 st)
- Expected X and instead saw X. (totalt 1306 st)
- Do not access Object.prototype method X from target object. (totalt 298 st)
- Unnecessary escape character: \-. (totalt 49 st)
- Unnecessary escape character: \/. (totalt 35 st)
- X is not modified in this loop. (totalt 13 st)
- Unexpected string concatenation of literals. (totalt 12 st)
- Comparing to itself is potentially pointless. (totalt 10 st)
- X is assigned to itself. (totalt 8 st)
- Unnecessary X. (totalt 7 st)
- The Function constructor is eval. (totalt 7 st)
- Unnecessary escape character: \.. (totalt 6 st)
- Unnecessary escape character: \:. (totalt 6 st)
- Unnecessary escape character: \$. (totalt 5 st)
- Unsafe usage of ThrowStatement. (totalt 3 st)
- Script URL is a form of eval. (totalt 2 st)
- Unnecessary escape character: \+. (totalt 2 st)
- Redundant use of `await` on a return value. (totalt 2 st)
- Unnecessary escape character: \[. (totalt 2 st)
- Unsafe usage of ReturnStatement. (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: #87: client.bundle.1, antal grupperade fel: 25 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #87: client.bundle.1, antal fel: 8184 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 5684 st)
- Expected X and instead saw X. (totalt 1958 st)
- Do not access Object.prototype method X from target object. (totalt 331 st)
- Unnecessary escape character: \-. (totalt 49 st)
- Unnecessary escape character: \/. (totalt 36 st)
- Comparing to itself is potentially pointless. (totalt 19 st)
- X is not modified in this loop. (totalt 14 st)
- Unnecessary escape character: \.. (totalt 13 st)
- Unexpected string concatenation of literals. (totalt 12 st)
- Unnecessary X. (totalt 11 st)
- Unsafe usage of ThrowStatement. (totalt 10 st)
- X is assigned to itself. (totalt 9 st)
- The Function constructor is eval. (totalt 9 st)
- Unnecessary escape character: \:. (totalt 6 st)
- Unnecessary escape character: \$. (totalt 5 st)
- Unnecessary escape character: \_. (totalt 4 st)
- Unnecessary escape character: \+. (totalt 3 st)
- Script URL is a form of eval. (totalt 2 st)
- Redundant use of `await` on a return value. (totalt 2 st)
- Unnecessary escape character: \[. (totalt 2 st)
- Unsafe usage of ReturnStatement. (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: #90: localization-sv, antal grupperade fel: 25 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #90: localization-sv, antal fel: 8184 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 5684 st)
- Expected X and instead saw X. (totalt 1958 st)
- Do not access Object.prototype method X from target object. (totalt 331 st)
- Unnecessary escape character: \-. (totalt 49 st)
- Unnecessary escape character: \/. (totalt 36 st)
- Comparing to itself is potentially pointless. (totalt 19 st)
- X is not modified in this loop. (totalt 14 st)
- Unnecessary escape character: \.. (totalt 13 st)
- Unexpected string concatenation of literals. (totalt 12 st)
- Unnecessary X. (totalt 11 st)
- Unsafe usage of ThrowStatement. (totalt 10 st)
- X is assigned to itself. (totalt 9 st)
- The Function constructor is eval. (totalt 9 st)
- Unnecessary escape character: \:. (totalt 6 st)
- Unnecessary escape character: \$. (totalt 5 st)
- Unnecessary escape character: \_. (totalt 4 st)
- Unnecessary escape character: \+. (totalt 3 st)
- Script URL is a form of eval. (totalt 2 st)
- Redundant use of `await` on a return value. (totalt 2 st)
- Unnecessary escape character: \[. (totalt 2 st)
- Unsafe usage of ReturnStatement. (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: #103: primus.js, antal grupperade fel: 26 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #103: primus.js, antal fel: 8193 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 5686 st)
- Expected X and instead saw X. (totalt 1962 st)
- Do not access Object.prototype method X from target object. (totalt 331 st)
- Unnecessary escape character: \-. (totalt 49 st)
- Unnecessary escape character: \/. (totalt 37 st)
- Comparing to itself is potentially pointless. (totalt 20 st)
- X is not modified in this loop. (totalt 14 st)
- Unnecessary escape character: \.. (totalt 13 st)
- Unexpected string concatenation of literals. (totalt 12 st)
- Unnecessary X. (totalt 11 st)
- Unsafe usage of ThrowStatement. (totalt 10 st)
- X is assigned to itself. (totalt 9 st)
- The Function constructor is eval. (totalt 9 st)
- Unnecessary escape character: \:. (totalt 6 st)
- Unnecessary escape character: \$. (totalt 5 st)
- Unnecessary escape character: \_. (totalt 4 st)
- Unnecessary escape character: \+. (totalt 3 st)
- Script URL is a form of eval. (totalt 2 st)
- Redundant use of `await` on a return value. (totalt 2 st)
- Unnecessary escape character: \[. (totalt 2 st)
- Unsafe usage of ReturnStatement. (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)