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.80 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 self (totalt 1 st)
- `< script src="...">` in: #1: Webbsida , antal grupperade fel: 4 ( 4.20 betyg )
- `< script src="...">` in: #1: Webbsida , antal fel: 424 ( 1.00 betyg )
- X is defined but never used. (totalt 339 st)
- X is assigned a value but never used. (totalt 37 st)
- Unexpected console statement. (totalt 35 st)
- X is not defined. (totalt 13 st)
- `< script>` in: #44: sw-iframe.html, antal grupperade fel: 1 ( 4.80 betyg )
- `< script>` in: #44: sw-iframe.html, antal fel: 2 ( 4.60 betyg )
- X is defined but never used. (totalt 2 st)
- `< script>` in: #47: bc-v4.min.html, antal grupperade fel: 1 ( 4.80 betyg )
- `< script>` in: #47: bc-v4.min.html, antal fel: 1 ( 4.80 betyg )
- X is defined but never used. (totalt 1 st)
- `content-type=".*javascript.*"` in: #31: 244.4d165110e9e, antal grupperade fel: 2 ( 4.60 betyg )
- `content-type=".*javascript.*"` in: #31: 244.4d165110e9e, antal fel: 5 ( 4.00 betyg )
- X is defined but never used. (totalt 3 st)
- Unexpected console statement. (totalt 2 st)
- `content-type=".*javascript.*"` in: #32: gtm.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #32: gtm.js, antal fel: 503 ( 1.00 betyg )
- X is defined but never used. (totalt 390 st)
- X is assigned a value but never used. (totalt 91 st)
- X is not defined. (totalt 19 st)
- Unexpected console statement. (totalt 3 st)
- `content-type=".*javascript.*"` in: #39: uc.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #39: uc.js, antal fel: 550 ( 1.00 betyg )
- X is defined but never used. (totalt 410 st)
- X is assigned a value but never used. (totalt 106 st)
- X is not defined. (totalt 20 st)
- Unexpected console statement. (totalt 14 st)
- `content-type=".*javascript.*"` in: #40: 18788, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #40: 18788, antal fel: 569 ( 1.00 betyg )
- X is defined but never used. (totalt 410 st)
- X is assigned a value but never used. (totalt 106 st)
- X is not defined. (totalt 39 st)
- Unexpected console statement. (totalt 14 st)
- `content-type=".*javascript.*"` in: #41: js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #41: js, antal fel: 938 ( 1.00 betyg )
- X is defined but never used. (totalt 717 st)
- X is assigned a value but never used. (totalt 155 st)
- X is not defined. (totalt 52 st)
- Unexpected console statement. (totalt 14 st)
- `content-type=".*javascript.*"` in: #42: insight.min.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #42: insight.min.js, antal fel: 963 ( 1.00 betyg )
- X is defined but never used. (totalt 738 st)
- X is assigned a value but never used. (totalt 155 st)
- X is not defined. (totalt 53 st)
- Unexpected console statement. (totalt 17 st)
- `content-type=".*javascript.*"` in: #43: fbevents.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #43: fbevents.js, antal fel: 1614 ( 1.00 betyg )
- X is defined but never used. (totalt 1371 st)
- X is assigned a value but never used. (totalt 156 st)
- X is not defined. (totalt 59 st)
- Unexpected console statement. (totalt 28 st)
- `content-type=".*javascript.*"` in: #46: 354474406575450, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #46: 354474406575450, antal fel: 1764 ( 1.00 betyg )
- X is defined but never used. (totalt 1499 st)
- X is assigned a value but never used. (totalt 160 st)
- X is not defined. (totalt 60 st)
- Unexpected console statement. (totalt 45 st)
- `content-type=".*javascript.*"` in: #48: cc.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #48: cc.js, antal fel: 1792 ( 1.00 betyg )
- X is defined but never used. (totalt 1511 st)
- X is assigned a value but never used. (totalt 166 st)
- X is not defined. (totalt 69 st)
- Unexpected console statement. (totalt 46 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 self (totalt 1 st)
- `< script src="...">` in: #1: Webbsida , antal grupperade fel: 25 ( 1.00 betyg )
- `< script src="...">` in: #1: Webbsida , antal fel: 6151 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 3562 st)
- Expected X and instead saw X. (totalt 2436 st)
- Do not access Object.prototype method X from target object. (totalt 62 st)
- Async function X has no X expression. (totalt 16 st)
- Comparing to itself is potentially pointless. (totalt 12 st)
- Async arrow function has no X expression. (totalt 9 st)
- Async method X has no X expression. (totalt 7 st)
- X is not modified in this loop. (totalt 6 st)
- The Function constructor is eval. (totalt 5 st)
- eval can be harmful. (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)
- Unnecessary escape character: \.. (totalt 2 st)
- Unnecessary escape character: \=. (totalt 2 st)
- Async function has no X expression. (totalt 2 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)
- X is assigned to itself. (totalt 1 st)
- Unsafe usage of ThrowStatement. (totalt 1 st)
- Static async method X has no X expression. (totalt 1 st)
- Unnecessary escape character: \:. (totalt 1 st)
- `< script>` in: #44: sw-iframe.html, antal grupperade fel: 2 ( 4.60 betyg )
- `< script>` in: #44: 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: #47: bc-v4.min.html, antal grupperade fel: 2 ( 4.60 betyg )
- `< script>` in: #47: 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)
- `content-type=".*javascript.*"` in: #31: 244.4d165110e9e, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #31: 244.4d165110e9e, antal fel: 46 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 40 st)
- Expected X and instead saw X. (totalt 3 st)
- Unnecessary escape character: \-. (totalt 2 st)
- Unnecessary escape character: \#. (totalt 1 st)
- `content-type=".*javascript.*"` in: #32: gtm.js, antal grupperade fel: 14 ( 2.20 betyg )
- `content-type=".*javascript.*"` in: #32: gtm.js, antal fel: 1400 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1049 st)
- Expected X and instead saw X. (totalt 223 st)
- Do not access Object.prototype method X from target object. (totalt 83 st)
- Unnecessary escape character: \/. (totalt 30 st)
- X is not modified in this loop. (totalt 3 st)
- X is assigned to itself. (totalt 3 st)
- Unnecessary escape character: \-. (totalt 2 st)
- Unnecessary escape character: \#. (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: #39: uc.js, antal grupperade fel: 15 ( 2.00 betyg )
- `content-type=".*javascript.*"` in: #39: uc.js, antal fel: 1752 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1290 st)
- Expected X and instead saw X. (totalt 325 st)
- Do not access Object.prototype method X from target object. (totalt 83 st)
- Unnecessary escape character: \/. (totalt 32 st)
- Unnecessary escape character: \-. (totalt 6 st)
- X is not modified in this loop. (totalt 3 st)
- X is assigned to itself. (totalt 3 st)
- Unnecessary X. (totalt 2 st)
- Unnecessary escape character: \[. (totalt 2 st)
- Unnecessary escape character: \#. (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)
- Script URL is a form of eval. (totalt 1 st)
- `content-type=".*javascript.*"` in: #40: 18788, antal grupperade fel: 15 ( 2.00 betyg )
- `content-type=".*javascript.*"` in: #40: 18788, antal fel: 1756 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1290 st)
- Expected X and instead saw X. (totalt 329 st)
- Do not access Object.prototype method X from target object. (totalt 83 st)
- Unnecessary escape character: \/. (totalt 32 st)
- Unnecessary escape character: \-. (totalt 6 st)
- X is not modified in this loop. (totalt 3 st)
- X is assigned to itself. (totalt 3 st)
- Unnecessary X. (totalt 2 st)
- Unnecessary escape character: \[. (totalt 2 st)
- Unnecessary escape character: \#. (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)
- Script URL is a form of eval. (totalt 1 st)
- `content-type=".*javascript.*"` in: #41: js, antal grupperade fel: 16 ( 1.80 betyg )
- `content-type=".*javascript.*"` in: #41: js, antal fel: 3452 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 2604 st)
- Expected X and instead saw X. (totalt 566 st)
- Do not access Object.prototype method X from target object. (totalt 187 st)
- Unnecessary escape character: \/. (totalt 60 st)
- X is not modified in this loop. (totalt 7 st)
- Unnecessary escape character: \-. (totalt 6 st)
- X is assigned to itself. (totalt 6 st)
- Comparing to itself is potentially pointless. (totalt 2 st)
- Unnecessary escape character: \?. (totalt 2 st)
- Unnecessary escape character: \.. (totalt 2 st)
- Unexpected string concatenation of literals. (totalt 2 st)
- Unnecessary X. (totalt 2 st)
- Script URL is a form of eval. (totalt 2 st)
- Unnecessary escape character: \[. (totalt 2 st)
- Unnecessary escape character: \#. (totalt 1 st)
- Unnecessary escape character: \}. (totalt 1 st)
- `content-type=".*javascript.*"` in: #42: insight.min.js, antal grupperade fel: 20 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #42: insight.min.js, antal fel: 3610 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 2692 st)
- Expected X and instead saw X. (totalt 625 st)
- Do not access Object.prototype method X from target object. (totalt 188 st)
- Unnecessary escape character: \/. (totalt 61 st)
- X is not modified in this loop. (totalt 7 st)
- Unnecessary escape character: \-. (totalt 6 st)
- X is assigned to itself. (totalt 6 st)
- Unnecessary escape character: \[. (totalt 5 st)
- Unnecessary escape character: \.. (totalt 3 st)
- Unnecessary X. (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)
- Script URL is a form of eval. (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)
- Unsafe usage of ThrowStatement. (totalt 1 st)
- `content-type=".*javascript.*"` in: #43: fbevents.js, antal grupperade fel: 33 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #43: fbevents.js, antal fel: 4998 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 3307 st)
- Expected X and instead saw X. (totalt 1228 st)
- Do not access Object.prototype method X from target object. (totalt 191 st)
- Unnecessary escape character: \/. (totalt 70 st)
- Unnecessary escape character: \-. (totalt 22 st)
- Unsafe usage of ThrowStatement. (totalt 17 st)
- X is assigned to itself. (totalt 14 st)
- Unnecessary escape character: \?. (totalt 11 st)
- Unnecessary escape character: \}. (totalt 10 st)
- Unnecessary escape character: \+. (totalt 10 st)
- Unnecessary escape character: \[. (totalt 9 st)
- Unnecessary escape character: \^. (totalt 9 st)
- Unnecessary escape character: \{. (totalt 9 st)
- Unnecessary escape character: \.. (totalt 8 st)
- Unnecessary escape character: \'. (totalt 8 st)
- X is not modified in this loop. (totalt 7 st)
- Unnecessary escape character: \$. (totalt 7 st)
- Unnecessary escape character: \*. (totalt 7 st)
- Unnecessary escape character: \|. (totalt 7 st)
- Unnecessary escape character: \=. (totalt 6 st)
- Unexpected string concatenation of literals. (totalt 5 st)
- Comparing to itself is potentially pointless. (totalt 4 st)
- Unnecessary X. (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)
- The Function constructor is eval. (totalt 2 st)
- Unsafe usage of ReturnStatement. (totalt 2 st)
- Unnecessary escape character: \@. (totalt 2 st)
- Unnecessary escape character: \`. (totalt 2 st)
- Unnecessary escape character: \#. (totalt 1 st)
- `content-type=".*javascript.*"` in: #46: 354474406575450, antal grupperade fel: 33 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #46: 354474406575450, antal fel: 5396 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 3534 st)
- Expected X and instead saw X. (totalt 1394 st)
- Do not access Object.prototype method X from target object. (totalt 191 st)
- Unnecessary escape character: \/. (totalt 70 st)
- Unnecessary escape character: \-. (totalt 22 st)
- Unsafe usage of ThrowStatement. (totalt 19 st)
- X is assigned to itself. (totalt 15 st)
- Unnecessary escape character: \?. (totalt 11 st)
- Unnecessary escape character: \}. (totalt 10 st)
- Unnecessary escape character: \+. (totalt 10 st)
- Unnecessary escape character: \[. (totalt 9 st)
- Unnecessary escape character: \^. (totalt 9 st)
- Unnecessary escape character: \{. (totalt 9 st)
- Unnecessary escape character: \.. (totalt 8 st)
- Unnecessary escape character: \'. (totalt 8 st)
- X is not modified in this loop. (totalt 7 st)
- Unnecessary escape character: \$. (totalt 7 st)
- Unnecessary escape character: \*. (totalt 7 st)
- Unnecessary escape character: \|. (totalt 7 st)
- Unnecessary escape character: \=. (totalt 6 st)
- Unnecessary escape character: \". (totalt 6 st)
- Unexpected string concatenation of literals. (totalt 5 st)
- Comparing to itself is potentially pointless. (totalt 4 st)
- Unnecessary X. (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)
- The Function constructor is eval. (totalt 2 st)
- Unsafe usage of ReturnStatement. (totalt 2 st)
- Unnecessary escape character: \@. (totalt 2 st)
- Unnecessary escape character: \`. (totalt 2 st)
- Unnecessary escape character: \#. (totalt 1 st)
- `content-type=".*javascript.*"` in: #48: cc.js, antal grupperade fel: 35 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #48: cc.js, antal fel: 5743 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 3840 st)
- Expected X and instead saw X. (totalt 1430 st)
- Do not access Object.prototype method X from target object. (totalt 191 st)
- Unnecessary escape character: \/. (totalt 70 st)
- Unnecessary escape character: \-. (totalt 22 st)
- Unsafe usage of ThrowStatement. (totalt 19 st)
- X is assigned to itself. (totalt 15 st)
- Unnecessary escape character: \?. (totalt 11 st)
- Unnecessary escape character: \[. (totalt 10 st)
- Unnecessary escape character: \}. (totalt 10 st)
- Unnecessary escape character: \+. (totalt 10 st)
- Unnecessary escape character: \^. (totalt 9 st)
- Unnecessary escape character: \{. (totalt 9 st)
- Unnecessary escape character: \.. (totalt 8 st)
- Unnecessary escape character: \'. (totalt 8 st)
- X is not modified in this loop. (totalt 7 st)
- Unnecessary escape character: \$. (totalt 7 st)
- Unnecessary escape character: \*. (totalt 7 st)
- Unnecessary escape character: \|. (totalt 7 st)
- Unnecessary escape character: \=. (totalt 6 st)
- Unnecessary escape character: \". (totalt 6 st)
- Unexpected string concatenation of literals. (totalt 5 st)
- Script URL is a form of eval. (totalt 5 st)
- Comparing to itself is potentially pointless. (totalt 4 st)
- Unnecessary X. (totalt 4 st)
- Unnecessary escape character: \(. (totalt 4 st)
- Unnecessary escape character: \). (totalt 4 st)
- Unnecessary escape character: \,. (totalt 4 st)
- The Function constructor is eval. (totalt 2 st)
- Unsafe usage of ReturnStatement. (totalt 2 st)
- Unnecessary escape character: \@. (totalt 2 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)