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.84 av 5
- JS är dålig.Webbstandard
- `< script>` in: #1: Webbsida , antal grupperade fel: 2 ( 4.60 betyg )
- `< script>` in: #1: Webbsida , antal fel: 20 ( 1.00 betyg )
- X is not defined. (totalt 17 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: 1964 ( 1.00 betyg )
- X is not defined. (totalt 1285 st)
- X is defined but never used. (totalt 489 st)
- X is assigned a value but never used. (totalt 149 st)
- Unexpected console statement. (totalt 40 st)
- Parsing error: Unexpected token (totalt 1 st)
- `< script>` in: #76: CookieInformati, antal grupperade fel: 2 ( 4.60 betyg )
- `< script>` in: #76: 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: #87: index.aa941f8.h, antal grupperade fel: 2 ( 4.60 betyg )
- `< script>` in: #87: 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: #70: app.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #70: app.js, antal fel: 95 ( 1.00 betyg )
- X is defined but never used. (totalt 46 st)
- X is not defined. (totalt 27 st)
- Unexpected console statement. (totalt 17 st)
- X is assigned a value but never used. (totalt 5 st)
- `content-type=".*javascript.*"` in: #71: initWidget.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #71: initWidget.js, antal fel: 95 ( 1.00 betyg )
- X is defined but never used. (totalt 46 st)
- X is not defined. (totalt 27 st)
- Unexpected console statement. (totalt 17 st)
- X is assigned a value but never used. (totalt 5 st)
- `content-type=".*javascript.*"` in: #72: element.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #72: element.js, antal fel: 235 ( 1.00 betyg )
- X is not defined. (totalt 132 st)
- X is defined but never used. (totalt 79 st)
- Unexpected console statement. (totalt 17 st)
- X is assigned a value but never used. (totalt 7 st)
- `content-type=".*javascript.*"` in: #80: m-el-main, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #80: m-el-main, antal fel: 278 ( 1.00 betyg )
- X is not defined. (totalt 134 st)
- X is defined but never used. (totalt 118 st)
- Unexpected console statement. (totalt 17 st)
- X is assigned a value but never used. (totalt 9 st)
- `content-type=".*javascript.*"` in: #82: widget.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #82: widget.js, antal fel: 479 ( 1.00 betyg )
- X is defined but never used. (totalt 295 st)
- X is not defined. (totalt 140 st)
- Unexpected console statement. (totalt 35 st)
- X is assigned a value but never used. (totalt 9 st)
- `content-type=".*javascript.*"` in: #90: supportedLangua, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #90: supportedLangua, antal fel: 480 ( 1.00 betyg )
- X is defined but never used. (totalt 295 st)
- X is not defined. (totalt 141 st)
- Unexpected console statement. (totalt 35 st)
- X is assigned a value but never used. (totalt 9 st)
- `content-type=".*javascript.*"` in: #92: bundle.fefe147d, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #92: bundle.fefe147d, antal fel: 653 ( 1.00 betyg )
- X is defined but never used. (totalt 464 st)
- X is not defined. (totalt 141 st)
- Unexpected console statement. (totalt 39 st)
- X is assigned a value but never used. (totalt 9 st)
- `content-type=".*javascript.*"` in: #94: client.bundle.1, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #94: client.bundle.1, antal fel: 1089 ( 1.00 betyg )
- X is defined but never used. (totalt 795 st)
- X is not defined. (totalt 148 st)
- Unexpected console statement. (totalt 137 st)
- X is assigned a value but never used. (totalt 9 st)
- `content-type=".*javascript.*"` in: #97: localization-sv, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #97: localization-sv, antal fel: 1089 ( 1.00 betyg )
- X is defined but never used. (totalt 795 st)
- X is not defined. (totalt 148 st)
- Unexpected console statement. (totalt 137 st)
- X is assigned a value but never used. (totalt 9 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: 26 ( 1.00 betyg )
- `< script src="...">` in: #1: Webbsida , antal fel: 4996 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 3348 st)
- Expected X and instead saw X. (totalt 1352 st)
- Unnecessary escape character: \/. (totalt 115 st)
- Do not access Object.prototype method X from target object. (totalt 111 st)
- X is assigned to itself. (totalt 11 st)
- Unnecessary escape character: \-. (totalt 9 st)
- X is not modified in this loop. (totalt 7 st)
- Comparing to itself is potentially pointless. (totalt 6 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)
- Unnecessary escape character: \}. (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)
- 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)
- Unnecessary escape character: \?. (totalt 1 st)
- Script URL is a form of eval. (totalt 1 st)
- `< script>` in: #87: index.aa941f8.h, antal grupperade fel: 2 ( 4.60 betyg )
- `< script>` in: #87: 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: #70: app.js, antal grupperade fel: 20 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #70: app.js, antal fel: 1281 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 930 st)
- Expected X and instead saw X. (totalt 233 st)
- Async method X has no X expression. (totalt 75 st)
- Unsafe usage of ThrowStatement. (totalt 12 st)
- Static async method X has no X expression. (totalt 4 st)
- Unnecessary escape character: \.. (totalt 3 st)
- Async function has no X expression. (totalt 2 st)
- Do not access Object.prototype method X from target object. (totalt 2 st)
- Redundant use of `await` on a return value. (totalt 2 st)
- Unnecessary escape character: \+. (totalt 2 st)
- Unnecessary escape character: \-. (totalt 2 st)
- X is not modified in this loop. (totalt 2 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)
- Script URL is a form of eval. (totalt 1 st)
- Unnecessary X. (totalt 1 st)
- The Function constructor is eval. (totalt 1 st)
- Unnecessary escape character: \/. (totalt 1 st)
- `content-type=".*javascript.*"` in: #71: initWidget.js, antal grupperade fel: 20 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #71: initWidget.js, antal fel: 1281 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 930 st)
- Expected X and instead saw X. (totalt 233 st)
- Async method X has no X expression. (totalt 75 st)
- Unsafe usage of ThrowStatement. (totalt 12 st)
- Static async method X has no X expression. (totalt 4 st)
- Unnecessary escape character: \.. (totalt 3 st)
- Async function has no X expression. (totalt 2 st)
- Do not access Object.prototype method X from target object. (totalt 2 st)
- Redundant use of `await` on a return value. (totalt 2 st)
- Unnecessary escape character: \+. (totalt 2 st)
- Unnecessary escape character: \-. (totalt 2 st)
- X is not modified in this loop. (totalt 2 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)
- Script URL is a form of eval. (totalt 1 st)
- Unnecessary X. (totalt 1 st)
- The Function constructor is eval. (totalt 1 st)
- Unnecessary escape character: \/. (totalt 1 st)
- `content-type=".*javascript.*"` in: #72: element.js, antal grupperade fel: 24 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #72: element.js, antal fel: 1729 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1156 st)
- Expected X and instead saw X. (totalt 404 st)
- Async method X has no X expression. (totalt 75 st)
- Unnecessary escape character: \/. (totalt 28 st)
- Unsafe usage of ThrowStatement. (totalt 12 st)
- Unnecessary X. (totalt 8 st)
- Do not access Object.prototype method X from target object. (totalt 6 st)
- Static async method X has no X expression. (totalt 4 st)
- Unnecessary escape character: \.. (totalt 4 st)
- Unnecessary escape character: \). (totalt 4 st)
- Comparing to itself is potentially pointless. (totalt 4 st)
- X is not modified in this loop. (totalt 3 st)
- Unnecessary escape character: \[. (totalt 3 st)
- Async function has no X expression. (totalt 2 st)
- Redundant use of `await` on a return value. (totalt 2 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)
- X is assigned to itself. (totalt 2 st)
- Script URL is a form of eval. (totalt 1 st)
- The Function constructor is eval. (totalt 1 st)
- Unnecessary escape character: \^. (totalt 1 st)
- Unexpected string concatenation of literals. (totalt 1 st)
- `content-type=".*javascript.*"` in: #80: m-el-main, antal grupperade fel: 25 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #80: m-el-main, antal fel: 3108 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1928 st)
- Expected X and instead saw X. (totalt 978 st)
- Async method X has no X expression. (totalt 75 st)
- Unnecessary escape character: \/. (totalt 39 st)
- Unnecessary X. (totalt 14 st)
- Unsafe usage of ThrowStatement. (totalt 12 st)
- Do not access Object.prototype method X from target object. (totalt 8 st)
- Unnecessary escape character: \.. (totalt 5 st)
- Unnecessary escape character: \). (totalt 5 st)
- Comparing to itself is potentially pointless. (totalt 5 st)
- Static async method X has no X expression. (totalt 4 st)
- Unnecessary escape character: \-. (totalt 4 st)
- X is not modified in this loop. (totalt 4 st)
- X is assigned to itself. (totalt 4 st)
- Unnecessary escape character: \?. (totalt 4 st)
- Script URL is a form of eval. (totalt 3 st)
- Unnecessary escape character: \[. (totalt 3 st)
- Async function has no X expression. (totalt 2 st)
- Redundant use of `await` on a return value. (totalt 2 st)
- Unnecessary escape character: \+. (totalt 2 st)
- Unnecessary escape character: \$. (totalt 2 st)
- Unnecessary escape character: \(. (totalt 2 st)
- The Function constructor is eval. (totalt 1 st)
- Unnecessary escape character: \^. (totalt 1 st)
- Unexpected string concatenation of literals. (totalt 1 st)
- `content-type=".*javascript.*"` in: #82: widget.js, antal grupperade fel: 25 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #82: widget.js, antal fel: 3949 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 2400 st)
- Expected X and instead saw X. (totalt 1305 st)
- Async method X has no X expression. (totalt 75 st)
- Unnecessary escape character: \/. (totalt 50 st)
- Do not access Object.prototype method X from target object. (totalt 34 st)
- Unnecessary X. (totalt 16 st)
- Unsafe usage of ThrowStatement. (totalt 12 st)
- Unnecessary escape character: \.. (totalt 5 st)
- Unnecessary escape character: \). (totalt 5 st)
- Comparing to itself is potentially pointless. (totalt 5 st)
- Static async method X has no X expression. (totalt 4 st)
- Unnecessary escape character: \-. (totalt 4 st)
- X is not modified in this loop. (totalt 4 st)
- Unnecessary escape character: \[. (totalt 4 st)
- X is assigned to itself. (totalt 4 st)
- Unnecessary escape character: \?. (totalt 4 st)
- Script URL is a form of eval. (totalt 3 st)
- The Function constructor is eval. (totalt 3 st)
- Async function has no X expression. (totalt 2 st)
- Redundant use of `await` on a return value. (totalt 2 st)
- Unnecessary escape character: \+. (totalt 2 st)
- Unnecessary escape character: \$. (totalt 2 st)
- Unnecessary escape character: \(. (totalt 2 st)
- Unnecessary escape character: \^. (totalt 1 st)
- Unexpected string concatenation of literals. (totalt 1 st)
- `content-type=".*javascript.*"` in: #90: supportedLangua, antal grupperade fel: 25 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #90: supportedLangua, antal fel: 3949 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 2400 st)
- Expected X and instead saw X. (totalt 1305 st)
- Async method X has no X expression. (totalt 75 st)
- Unnecessary escape character: \/. (totalt 50 st)
- Do not access Object.prototype method X from target object. (totalt 34 st)
- Unnecessary X. (totalt 16 st)
- Unsafe usage of ThrowStatement. (totalt 12 st)
- Unnecessary escape character: \.. (totalt 5 st)
- Unnecessary escape character: \). (totalt 5 st)
- Comparing to itself is potentially pointless. (totalt 5 st)
- Static async method X has no X expression. (totalt 4 st)
- Unnecessary escape character: \-. (totalt 4 st)
- X is not modified in this loop. (totalt 4 st)
- Unnecessary escape character: \[. (totalt 4 st)
- X is assigned to itself. (totalt 4 st)
- Unnecessary escape character: \?. (totalt 4 st)
- Script URL is a form of eval. (totalt 3 st)
- The Function constructor is eval. (totalt 3 st)
- Async function has no X expression. (totalt 2 st)
- Redundant use of `await` on a return value. (totalt 2 st)
- Unnecessary escape character: \+. (totalt 2 st)
- Unnecessary escape character: \$. (totalt 2 st)
- Unnecessary escape character: \(. (totalt 2 st)
- Unnecessary escape character: \^. (totalt 1 st)
- Unexpected string concatenation of literals. (totalt 1 st)
- `content-type=".*javascript.*"` in: #92: bundle.fefe147d, antal grupperade fel: 25 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #92: bundle.fefe147d, antal fel: 4636 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 2780 st)
- Expected X and instead saw X. (totalt 1580 st)
- Async method X has no X expression. (totalt 75 st)
- Do not access Object.prototype method X from target object. (totalt 60 st)
- Unnecessary escape character: \/. (totalt 51 st)
- Unnecessary X. (totalt 18 st)
- Unsafe usage of ThrowStatement. (totalt 13 st)
- X is not modified in this loop. (totalt 5 st)
- Unnecessary escape character: \.. (totalt 5 st)
- Unnecessary escape character: \). (totalt 5 st)
- Comparing to itself is potentially pointless. (totalt 5 st)
- Static async method X has no X expression. (totalt 4 st)
- Unnecessary escape character: \-. (totalt 4 st)
- Unnecessary escape character: \[. (totalt 4 st)
- The Function constructor is eval. (totalt 4 st)
- X is assigned to itself. (totalt 4 st)
- Unnecessary escape character: \?. (totalt 4 st)
- Script URL is a form of eval. (totalt 3 st)
- Async function has no X expression. (totalt 2 st)
- Redundant use of `await` on a return value. (totalt 2 st)
- Unnecessary escape character: \+. (totalt 2 st)
- Unnecessary escape character: \$. (totalt 2 st)
- Unnecessary escape character: \(. (totalt 2 st)
- Unnecessary escape character: \^. (totalt 1 st)
- Unexpected string concatenation of literals. (totalt 1 st)
- `content-type=".*javascript.*"` in: #94: client.bundle.1, antal grupperade fel: 26 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #94: client.bundle.1, antal fel: 6570 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 3991 st)
- Expected X and instead saw X. (totalt 2232 st)
- Do not access Object.prototype method X from target object. (totalt 93 st)
- Async method X has no X expression. (totalt 75 st)
- Unnecessary escape character: \/. (totalt 52 st)
- Unnecessary X. (totalt 22 st)
- Unsafe usage of ThrowStatement. (totalt 20 st)
- Comparing to itself is potentially pointless. (totalt 14 st)
- Unnecessary escape character: \.. (totalt 12 st)
- X is not modified in this loop. (totalt 6 st)
- Unnecessary escape character: \). (totalt 6 st)
- The Function constructor is eval. (totalt 6 st)
- X is assigned to itself. (totalt 5 st)
- Static async method X has no X expression. (totalt 4 st)
- Unnecessary escape character: \-. (totalt 4 st)
- Unnecessary escape character: \[. (totalt 4 st)
- Unnecessary escape character: \?. (totalt 4 st)
- Unnecessary escape character: \_. (totalt 4 st)
- Script URL is a form of eval. (totalt 3 st)
- Unnecessary escape character: \+. (totalt 3 st)
- Async function has no X expression. (totalt 2 st)
- Redundant use of `await` on a return value. (totalt 2 st)
- Unnecessary escape character: \$. (totalt 2 st)
- Unnecessary escape character: \(. (totalt 2 st)
- Unnecessary escape character: \^. (totalt 1 st)
- Unexpected string concatenation of literals. (totalt 1 st)
- `content-type=".*javascript.*"` in: #97: localization-sv, antal grupperade fel: 26 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #97: localization-sv, antal fel: 6570 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 3991 st)
- Expected X and instead saw X. (totalt 2232 st)
- Do not access Object.prototype method X from target object. (totalt 93 st)
- Async method X has no X expression. (totalt 75 st)
- Unnecessary escape character: \/. (totalt 52 st)
- Unnecessary X. (totalt 22 st)
- Unsafe usage of ThrowStatement. (totalt 20 st)
- Comparing to itself is potentially pointless. (totalt 14 st)
- Unnecessary escape character: \.. (totalt 12 st)
- X is not modified in this loop. (totalt 6 st)
- Unnecessary escape character: \). (totalt 6 st)
- The Function constructor is eval. (totalt 6 st)
- X is assigned to itself. (totalt 5 st)
- Static async method X has no X expression. (totalt 4 st)
- Unnecessary escape character: \-. (totalt 4 st)
- Unnecessary escape character: \[. (totalt 4 st)
- Unnecessary escape character: \?. (totalt 4 st)
- Unnecessary escape character: \_. (totalt 4 st)
- Script URL is a form of eval. (totalt 3 st)
- Unnecessary escape character: \+. (totalt 3 st)
- Async function has no X expression. (totalt 2 st)
- Redundant use of `await` on a return value. (totalt 2 st)
- Unnecessary escape character: \$. (totalt 2 st)
- Unnecessary escape character: \(. (totalt 2 st)
- Unnecessary escape character: \^. (totalt 1 st)
- Unexpected string concatenation of literals. (totalt 1 st)