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.59 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: 235 ( 1.00 betyg )
- X is defined but never used. (totalt 117 st)
- X is not defined. (totalt 80 st)
- Unexpected console statement. (totalt 29 st)
- X is assigned a value but never used. (totalt 9 st)
- `< script>` in: #67: bc-v4.min.html, antal grupperade fel: 1 ( 4.80 betyg )
- `< script>` in: #67: bc-v4.min.html, antal fel: 1 ( 4.80 betyg )
- X is defined but never used. (totalt 1 st)
- `< script>` in: #71: rautalampi, antal grupperade fel: 3 ( 4.40 betyg )
- `< script>` in: #71: rautalampi, antal fel: 5 ( 4.00 betyg )
- X is assigned a value but never used. (totalt 3 st)
- Unexpected console statement. (totalt 1 st)
- X is not defined. (totalt 1 st)
- `< script src="...">` in: #71: rautalampi, antal grupperade fel: 2 ( 4.60 betyg )
- `< script src="...">` in: #71: rautalampi, antal fel: 29 ( 1.00 betyg )
- X is defined but never used. (totalt 24 st)
- X is not defined. (totalt 5 st)
- `content-type=".*javascript.*"` in: #2: gtm.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #2: gtm.js, antal fel: 564 ( 1.00 betyg )
- X is defined but never used. (totalt 456 st)
- X is assigned a value but never used. (totalt 85 st)
- X is not defined. (totalt 22 st)
- Unexpected console statement. (totalt 1 st)
- `content-type=".*javascript.*"` in: #48: widget-module.j, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #48: widget-module.j, antal fel: 670 ( 1.00 betyg )
- X is defined but never used. (totalt 519 st)
- X is assigned a value but never used. (totalt 96 st)
- Unexpected console statement. (totalt 31 st)
- X is not defined. (totalt 24 st)
- `content-type=".*javascript.*"` in: #49: mtiFontTracking, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #49: mtiFontTracking, antal fel: 670 ( 1.00 betyg )
- X is defined but never used. (totalt 519 st)
- X is assigned a value but never used. (totalt 96 st)
- Unexpected console statement. (totalt 31 st)
- X is not defined. (totalt 24 st)
- `content-type=".*javascript.*"` in: #65: uc.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #65: uc.js, antal fel: 717 ( 1.00 betyg )
- X is defined but never used. (totalt 539 st)
- X is assigned a value but never used. (totalt 111 st)
- Unexpected console statement. (totalt 42 st)
- X is not defined. (totalt 25 st)
- `content-type=".*javascript.*"` in: #68: cc.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #68: cc.js, antal fel: 720 ( 1.00 betyg )
- X is defined but never used. (totalt 539 st)
- X is assigned a value but never used. (totalt 111 st)
- Unexpected console statement. (totalt 45 st)
- X is not defined. (totalt 25 st)
- `content-type=".*javascript.*"` in: #76: chatbot.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #76: chatbot.js, antal fel: 742 ( 1.00 betyg )
- X is defined but never used. (totalt 540 st)
- X is assigned a value but never used. (totalt 112 st)
- Unexpected console statement. (totalt 57 st)
- X is not defined. (totalt 33 st)
- `content-type=".*javascript.*"` in: #86: common.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #86: common.js, antal fel: 754 ( 1.00 betyg )
- X is defined but never used. (totalt 551 st)
- X is assigned a value but never used. (totalt 112 st)
- Unexpected console statement. (totalt 57 st)
- X is not defined. (totalt 34 st)
- `content-type=".*javascript.*"` in: #87: util.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #87: util.js, antal fel: 773 ( 1.00 betyg )
- X is defined but never used. (totalt 566 st)
- X is assigned a value but never used. (totalt 114 st)
- Unexpected console statement. (totalt 58 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: 16 ( 1.80 betyg )
- `< script src="...">` in: #1: Webbsida , antal fel: 2397 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1353 st)
- Expected X and instead saw X. (totalt 754 st)
- X is assigned to itself. (totalt 219 st)
- Do not access Object.prototype method X from target object. (totalt 27 st)
- Unnecessary X. (totalt 9 st)
- Comparing to itself is potentially pointless. (totalt 8 st)
- Unexpected string concatenation of literals. (totalt 7 st)
- Unnecessary escape character: \/. (totalt 6 st)
- The Function constructor is eval. (totalt 4 st)
- Unnecessary escape character: \.. (totalt 2 st)
- Unnecessary escape character: \). (totalt 2 st)
- Unexpected negating the left operand of X operator. (totalt 2 st)
- Async arrow function has no X expression. (totalt 1 st)
- Unnecessary escape character: \[. (totalt 1 st)
- Unnecessary escape character: \^. (totalt 1 st)
- eval can be harmful. (totalt 1 st)
- `< script>` in: #67: bc-v4.min.html, antal grupperade fel: 2 ( 4.60 betyg )
- `< script>` in: #67: bc-v4.min.html, antal fel: 2 ( 4.60 betyg )
- Expected X and instead saw X. (totalt 1 st)
- Expected an assignment or function call and instead saw an expression. (totalt 1 st)
- `< script src="...">` in: #71: rautalampi, antal grupperade fel: 7 ( 3.60 betyg )
- `< script src="...">` in: #71: rautalampi, antal fel: 305 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 175 st)
- Expected X and instead saw X. (totalt 111 st)
- Do not access Object.prototype method X from target object. (totalt 9 st)
- Unnecessary escape character: \/. (totalt 5 st)
- Unexpected string concatenation of literals. (totalt 3 st)
- Unsafe usage of ThrowStatement. (totalt 1 st)
- The Function constructor is eval. (totalt 1 st)
- `content-type=".*javascript.*"` in: #2: gtm.js, antal grupperade fel: 9 ( 3.20 betyg )
- `content-type=".*javascript.*"` in: #2: gtm.js, antal fel: 1081 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 782 st)
- Expected X and instead saw X. (totalt 201 st)
- Do not access Object.prototype method X from target object. (totalt 78 st)
- Unnecessary escape character: \/. (totalt 11 st)
- X is not modified in this loop. (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: #48: widget-module.j, antal grupperade fel: 19 ( 1.20 betyg )
- `content-type=".*javascript.*"` in: #48: widget-module.j, antal fel: 2272 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1630 st)
- Expected X and instead saw X. (totalt 503 st)
- Do not access Object.prototype method X from target object. (totalt 92 st)
- Unnecessary escape character: \/. (totalt 11 st)
- X is not modified in this loop. (totalt 8 st)
- Async method X has no X expression. (totalt 6 st)
- X is assigned to itself. (totalt 3 st)
- Redundant use of `await` on a return value. (totalt 3 st)
- Async arrow function has no X expression. (totalt 3 st)
- Comparing to itself is potentially pointless. (totalt 2 st)
- Unnecessary X. (totalt 2 st)
- Unnecessary escape character: \-. (totalt 2 st)
- Script URL is a form of eval. (totalt 1 st)
- Unsafe usage of ThrowStatement. (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: #49: mtiFontTracking, antal grupperade fel: 20 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #49: mtiFontTracking, antal fel: 2273 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1630 st)
- Expected X and instead saw X. (totalt 503 st)
- Do not access Object.prototype method X from target object. (totalt 92 st)
- Unnecessary escape character: \/. (totalt 11 st)
- X is not modified in this loop. (totalt 8 st)
- Async method X has no X expression. (totalt 6 st)
- X is assigned to itself. (totalt 3 st)
- Redundant use of `await` on a return value. (totalt 3 st)
- Async arrow function has no X expression. (totalt 3 st)
- Comparing to itself is potentially pointless. (totalt 2 st)
- Unnecessary X. (totalt 2 st)
- Unnecessary escape character: \-. (totalt 2 st)
- Script URL is a form of eval. (totalt 1 st)
- Unsafe usage of ThrowStatement. (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)
- eval can be harmful. (totalt 1 st)
- `content-type=".*javascript.*"` in: #65: uc.js, antal grupperade fel: 20 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #65: uc.js, antal fel: 2625 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1871 st)
- Expected X and instead saw X. (totalt 605 st)
- Do not access Object.prototype method X from target object. (totalt 92 st)
- Unnecessary escape character: \/. (totalt 13 st)
- X is not modified in this loop. (totalt 8 st)
- Unnecessary escape character: \-. (totalt 6 st)
- Async method X has no X expression. (totalt 6 st)
- X is assigned to itself. (totalt 3 st)
- Unnecessary X. (totalt 3 st)
- Redundant use of `await` on a return value. (totalt 3 st)
- Unnecessary escape character: \[. (totalt 3 st)
- Async arrow function has no X expression. (totalt 3 st)
- Comparing to itself is potentially pointless. (totalt 2 st)
- Script URL is a form of eval. (totalt 1 st)
- Unsafe usage of ThrowStatement. (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)
- eval can be harmful. (totalt 1 st)
- `content-type=".*javascript.*"` in: #68: cc.js, antal grupperade fel: 20 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #68: cc.js, antal fel: 2625 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1871 st)
- Expected X and instead saw X. (totalt 605 st)
- Do not access Object.prototype method X from target object. (totalt 92 st)
- Unnecessary escape character: \/. (totalt 13 st)
- X is not modified in this loop. (totalt 8 st)
- Unnecessary escape character: \-. (totalt 6 st)
- Async method X has no X expression. (totalt 6 st)
- X is assigned to itself. (totalt 3 st)
- Unnecessary X. (totalt 3 st)
- Redundant use of `await` on a return value. (totalt 3 st)
- Unnecessary escape character: \[. (totalt 3 st)
- Async arrow function has no X expression. (totalt 3 st)
- Comparing to itself is potentially pointless. (totalt 2 st)
- Script URL is a form of eval. (totalt 1 st)
- Unsafe usage of ThrowStatement. (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)
- eval can be harmful. (totalt 1 st)
- `content-type=".*javascript.*"` in: #76: chatbot.js, antal grupperade fel: 21 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #76: chatbot.js, antal fel: 2626 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1871 st)
- Expected X and instead saw X. (totalt 605 st)
- Do not access Object.prototype method X from target object. (totalt 92 st)
- Unnecessary escape character: \/. (totalt 13 st)
- X is not modified in this loop. (totalt 8 st)
- Unnecessary escape character: \-. (totalt 6 st)
- Async method X has no X expression. (totalt 6 st)
- X is assigned to itself. (totalt 3 st)
- Unnecessary X. (totalt 3 st)
- Redundant use of `await` on a return value. (totalt 3 st)
- Unnecessary escape character: \[. (totalt 3 st)
- Async arrow function has no X expression. (totalt 3 st)
- Comparing to itself is potentially pointless. (totalt 2 st)
- Script URL is a form of eval. (totalt 1 st)
- Unsafe usage of ThrowStatement. (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)
- eval can be harmful. (totalt 1 st)
- Async function has no X expression. (totalt 1 st)
- `content-type=".*javascript.*"` in: #86: common.js, antal grupperade fel: 23 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #86: common.js, antal fel: 3091 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 2214 st)
- Expected X and instead saw X. (totalt 716 st)
- Do not access Object.prototype method X from target object. (totalt 94 st)
- Unnecessary escape character: \/. (totalt 14 st)
- X is not modified in this loop. (totalt 8 st)
- Async method X has no X expression. (totalt 7 st)
- Unnecessary escape character: \-. (totalt 6 st)
- Unnecessary X. (totalt 4 st)
- Unnecessary escape character: \?. (totalt 4 st)
- X is assigned to itself. (totalt 3 st)
- Redundant use of `await` on a return value. (totalt 3 st)
- Unnecessary escape character: \[. (totalt 3 st)
- Async arrow function has no X expression. (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 1 st)
- Unsafe usage of ThrowStatement. (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)
- eval can be harmful. (totalt 1 st)
- Async function has no X expression. (totalt 1 st)
- `content-type=".*javascript.*"` in: #87: util.js, antal grupperade fel: 25 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #87: util.js, antal fel: 4354 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 2774 st)
- Expected X and instead saw X. (totalt 1395 st)
- Do not access Object.prototype method X from target object. (totalt 104 st)
- Unnecessary escape character: \/. (totalt 14 st)
- X is not modified in this loop. (totalt 10 st)
- X is assigned to itself. (totalt 9 st)
- Async method X has no X expression. (totalt 7 st)
- Unnecessary X. (totalt 6 st)
- Unnecessary escape character: \-. (totalt 6 st)
- Unnecessary escape character: \?. (totalt 4 st)
- Redundant use of `await` on a return value. (totalt 3 st)
- Unnecessary escape character: \[. (totalt 3 st)
- Async arrow function has no X expression. (totalt 3 st)
- Comparing to itself is potentially pointless. (totalt 2 st)
- Unnecessary escape character: \(. (totalt 2 st)
- Unexpected string concatenation of literals. (totalt 2 st)
- Unnecessary escape character: \$. (totalt 2 st)
- Script URL is a form of eval. (totalt 1 st)
- Unsafe usage of ThrowStatement. (totalt 1 st)
- Unnecessary escape character: \ . (totalt 1 st)
- Unnecessary escape character: \{. (totalt 1 st)
- Unnecessary escape character: \). (totalt 1 st)
- eval can be harmful. (totalt 1 st)
- Async function has no X expression. (totalt 1 st)
- The Function constructor is eval. (totalt 1 st)