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.69 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: 2363 ( 1.00 betyg )
- X is not defined. (totalt 1596 st)
- X is defined but never used. (totalt 635 st)
- Unexpected console statement. (totalt 69 st)
- X is assigned a value but never used. (totalt 63 st)
- `< script>` in: #145: anchor, antal grupperade fel: 1 ( 4.80 betyg )
- `< script>` in: #145: anchor, antal fel: 1 ( 4.80 betyg )
- X is not defined. (totalt 1 st)
- `< script src="...">` in: #145: anchor, antal grupperade fel: 4 ( 4.20 betyg )
- `< script src="...">` in: #145: anchor, antal fel: 100 ( 1.00 betyg )
- X is defined but never used. (totalt 78 st)
- X is not defined. (totalt 17 st)
- Unexpected console statement. (totalt 3 st)
- X is assigned a value but never used. (totalt 2 st)
- `< script>` in: #146: bc-v4.min.html, antal grupperade fel: 1 ( 4.80 betyg )
- `< script>` in: #146: bc-v4.min.html, antal fel: 1 ( 4.80 betyg )
- X is defined but never used. (totalt 1 st)
- `< script>` in: #174: bframe, antal grupperade fel: 1 ( 4.80 betyg )
- `< script>` in: #174: bframe, antal fel: 1 ( 4.80 betyg )
- X is not defined. (totalt 1 st)
- `< script src="...">` in: #174: bframe, antal grupperade fel: 4 ( 4.20 betyg )
- `< script src="...">` in: #174: bframe, antal fel: 100 ( 1.00 betyg )
- X is defined but never used. (totalt 78 st)
- X is not defined. (totalt 17 st)
- Unexpected console statement. (totalt 3 st)
- X is assigned a value but never used. (totalt 2 st)
- `content-type=".*javascript.*"` in: #109: gtm.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #109: gtm.js, antal fel: 534 ( 1.00 betyg )
- X is defined but never used. (totalt 431 st)
- X is assigned a value but never used. (totalt 85 st)
- X is not defined. (totalt 17 st)
- Unexpected console statement. (totalt 1 st)
- `content-type=".*javascript.*"` in: #118: uc.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #118: uc.js, antal fel: 581 ( 1.00 betyg )
- X is defined but never used. (totalt 451 st)
- X is assigned a value but never used. (totalt 100 st)
- X is not defined. (totalt 18 st)
- Unexpected console statement. (totalt 12 st)
- `content-type=".*javascript.*"` in: #134: lightbox.01a419, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #134: lightbox.01a419, antal fel: 620 ( 1.00 betyg )
- X is defined but never used. (totalt 451 st)
- X is assigned a value but never used. (totalt 100 st)
- X is not defined. (totalt 57 st)
- Unexpected console statement. (totalt 12 st)
- `content-type=".*javascript.*"` in: #135: dialog.min.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #135: dialog.min.js, antal fel: 627 ( 1.00 betyg )
- X is defined but never used. (totalt 451 st)
- X is assigned a value but never used. (totalt 100 st)
- X is not defined. (totalt 63 st)
- Unexpected console statement. (totalt 13 st)
- `content-type=".*javascript.*"` in: #137: share-link.min., antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #137: share-link.min., antal fel: 636 ( 1.00 betyg )
- X is defined but never used. (totalt 451 st)
- X is assigned a value but never used. (totalt 100 st)
- X is not defined. (totalt 72 st)
- Unexpected console statement. (totalt 13 st)
- `content-type=".*javascript.*"` in: #140: nav-menu.7e665d, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #140: nav-menu.7e665d, antal fel: 646 ( 1.00 betyg )
- X is defined but never used. (totalt 452 st)
- X is assigned a value but never used. (totalt 100 st)
- X is not defined. (totalt 81 st)
- Unexpected console statement. (totalt 13 st)
- `content-type=".*javascript.*"` in: #141: text-editor.2c3, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #141: text-editor.2c3, antal fel: 649 ( 1.00 betyg )
- X is defined but never used. (totalt 452 st)
- X is assigned a value but never used. (totalt 100 st)
- X is not defined. (totalt 84 st)
- Unexpected console statement. (totalt 13 st)
- `content-type=".*javascript.*"` in: #142: video.78c625e89, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #142: video.78c625e89, antal fel: 656 ( 1.00 betyg )
- X is defined but never used. (totalt 452 st)
- X is assigned a value but never used. (totalt 100 st)
- X is not defined. (totalt 91 st)
- Unexpected console statement. (totalt 13 st)
- `content-type=".*javascript.*"` in: #143: load-more.8b46f, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #143: load-more.8b46f, antal fel: 661 ( 1.00 betyg )
- X is defined but never used. (totalt 452 st)
- X is assigned a value but never used. (totalt 100 st)
- X is not defined. (totalt 96 st)
- Unexpected console statement. (totalt 13 st)
- `content-type=".*javascript.*"` in: #144: posts.aec592653, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #144: posts.aec592653, antal fel: 671 ( 1.00 betyg )
- X is defined but never used. (totalt 452 st)
- X is not defined. (totalt 106 st)
- X is assigned a value but never used. (totalt 100 st)
- Unexpected console statement. (totalt 13 st)
- `content-type=".*javascript.*"` in: #147: consent-sdk-2.2, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #147: consent-sdk-2.2, antal fel: 1359 ( 1.00 betyg )
- X is defined but never used. (totalt 1003 st)
- X is not defined. (totalt 211 st)
- X is assigned a value but never used. (totalt 132 st)
- Unexpected console statement. (totalt 13 st)
- `content-type=".*javascript.*"` in: #148: cc.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #148: cc.js, antal fel: 1388 ( 1.00 betyg )
- X is defined but never used. (totalt 1015 st)
- X is not defined. (totalt 221 st)
- X is assigned a value but never used. (totalt 138 st)
- Unexpected console statement. (totalt 14 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: 32 ( 1.00 betyg )
- `< script src="...">` in: #1: Webbsida , antal fel: 7127 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 4377 st)
- Expected X and instead saw X. (totalt 2463 st)
- Do not access Object.prototype method X from target object. (totalt 133 st)
- Unnecessary escape character: \/. (totalt 26 st)
- Unnecessary escape character: \-. (totalt 26 st)
- X is assigned to itself. (totalt 13 st)
- X is not modified in this loop. (totalt 10 st)
- Unexpected string concatenation of literals. (totalt 9 st)
- Unnecessary escape character: \+. (totalt 8 st)
- The Function constructor is eval. (totalt 8 st)
- Unnecessary escape character: \%. (totalt 7 st)
- Comparing to itself is potentially pointless. (totalt 6 st)
- Unnecessary X. (totalt 5 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)
- Unsafe usage of ThrowStatement. (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 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)
- `< script src="...">` in: #145: anchor, antal grupperade fel: 18 ( 1.40 betyg )
- `< script src="...">` in: #145: anchor, antal fel: 2265 ( 1.00 betyg )
- Expected X and instead saw X. (totalt 1641 st)
- Expected an assignment or function call and instead saw an expression. (totalt 574 st)
- Unnecessary escape character: \/. (totalt 9 st)
- X is assigned to itself. (totalt 6 st)
- Unnecessary escape character: \). (totalt 5 st)
- Do not access Object.prototype method X from target object. (totalt 4 st)
- Unnecessary escape character: \?. (totalt 4 st)
- Comparing to itself is potentially pointless. (totalt 4 st)
- Unnecessary escape character: \^. (totalt 3 st)
- Unnecessary escape character: \-. (totalt 3 st)
- Unnecessary escape character: \.. (totalt 3 st)
- Unnecessary escape character: \(. (totalt 2 st)
- eval can be harmful. (totalt 2 st)
- Unnecessary escape character: \+. (totalt 1 st)
- X is not modified in this loop. (totalt 1 st)
- Unnecessary escape character: \[. (totalt 1 st)
- Unnecessary X. (totalt 1 st)
- Unnecessary escape character: \{. (totalt 1 st)
- `< script>` in: #146: bc-v4.min.html, antal grupperade fel: 2 ( 4.60 betyg )
- `< script>` in: #146: 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: #174: bframe, antal grupperade fel: 18 ( 1.40 betyg )
- `< script src="...">` in: #174: bframe, antal fel: 2265 ( 1.00 betyg )
- Expected X and instead saw X. (totalt 1641 st)
- Expected an assignment or function call and instead saw an expression. (totalt 574 st)
- Unnecessary escape character: \/. (totalt 9 st)
- X is assigned to itself. (totalt 6 st)
- Unnecessary escape character: \). (totalt 5 st)
- Do not access Object.prototype method X from target object. (totalt 4 st)
- Unnecessary escape character: \?. (totalt 4 st)
- Comparing to itself is potentially pointless. (totalt 4 st)
- Unnecessary escape character: \^. (totalt 3 st)
- Unnecessary escape character: \-. (totalt 3 st)
- Unnecessary escape character: \.. (totalt 3 st)
- Unnecessary escape character: \(. (totalt 2 st)
- eval can be harmful. (totalt 2 st)
- Unnecessary escape character: \+. (totalt 1 st)
- X is not modified in this loop. (totalt 1 st)
- Unnecessary escape character: \[. (totalt 1 st)
- Unnecessary X. (totalt 1 st)
- Unnecessary escape character: \{. (totalt 1 st)
- `content-type=".*javascript.*"` in: #109: gtm.js, antal grupperade fel: 10 ( 3.00 betyg )
- `content-type=".*javascript.*"` in: #109: gtm.js, antal fel: 1135 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 801 st)
- Expected X and instead saw X. (totalt 200 st)
- Do not access Object.prototype method X from target object. (totalt 86 st)
- Unnecessary escape character: \/. (totalt 37 st)
- X is not modified in this loop. (totalt 3 st)
- X is assigned to itself. (totalt 3 st)
- Script URL is a form of eval. (totalt 2 st)
- eval can be harmful. (totalt 1 st)
- Comparing to itself is potentially pointless. (totalt 1 st)
- Unnecessary X. (totalt 1 st)
- `content-type=".*javascript.*"` in: #118: uc.js, antal grupperade fel: 12 ( 2.60 betyg )
- `content-type=".*javascript.*"` in: #118: uc.js, antal fel: 1487 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1042 st)
- Expected X and instead saw X. (totalt 302 st)
- Do not access Object.prototype method X from target object. (totalt 86 st)
- Unnecessary escape character: \/. (totalt 39 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)
- Script URL is a form of eval. (totalt 2 st)
- Unnecessary X. (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)
- `content-type=".*javascript.*"` in: #134: lightbox.01a419, antal grupperade fel: 12 ( 2.60 betyg )
- `content-type=".*javascript.*"` in: #134: lightbox.01a419, antal fel: 1561 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1109 st)
- Expected X and instead saw X. (totalt 309 st)
- Do not access Object.prototype method X from target object. (totalt 86 st)
- Unnecessary escape character: \/. (totalt 39 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)
- Script URL is a form of eval. (totalt 2 st)
- Unnecessary X. (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)
- `content-type=".*javascript.*"` in: #135: dialog.min.js, antal grupperade fel: 12 ( 2.60 betyg )
- `content-type=".*javascript.*"` in: #135: dialog.min.js, antal fel: 1598 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1140 st)
- Expected X and instead saw X. (totalt 315 st)
- Do not access Object.prototype method X from target object. (totalt 86 st)
- Unnecessary escape character: \/. (totalt 39 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)
- Script URL is a form of eval. (totalt 2 st)
- Unnecessary X. (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)
- `content-type=".*javascript.*"` in: #137: share-link.min., antal grupperade fel: 12 ( 2.60 betyg )
- `content-type=".*javascript.*"` in: #137: share-link.min., antal fel: 1604 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1145 st)
- Expected X and instead saw X. (totalt 315 st)
- Do not access Object.prototype method X from target object. (totalt 86 st)
- Unnecessary escape character: \/. (totalt 39 st)
- Unnecessary escape character: \-. (totalt 4 st)
- Script URL is a form of eval. (totalt 3 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)
- eval can be harmful. (totalt 1 st)
- Comparing to itself is potentially pointless. (totalt 1 st)
- `content-type=".*javascript.*"` in: #140: nav-menu.7e665d, antal grupperade fel: 12 ( 2.60 betyg )
- `content-type=".*javascript.*"` in: #140: nav-menu.7e665d, antal fel: 1620 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1160 st)
- Expected X and instead saw X. (totalt 316 st)
- Do not access Object.prototype method X from target object. (totalt 86 st)
- Unnecessary escape character: \/. (totalt 39 st)
- Unnecessary escape character: \-. (totalt 4 st)
- Script URL is a form of eval. (totalt 3 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)
- eval can be harmful. (totalt 1 st)
- Comparing to itself is potentially pointless. (totalt 1 st)
- `content-type=".*javascript.*"` in: #141: text-editor.2c3, antal grupperade fel: 12 ( 2.60 betyg )
- `content-type=".*javascript.*"` in: #141: text-editor.2c3, antal fel: 1624 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1164 st)
- Expected X and instead saw X. (totalt 316 st)
- Do not access Object.prototype method X from target object. (totalt 86 st)
- Unnecessary escape character: \/. (totalt 39 st)
- Unnecessary escape character: \-. (totalt 4 st)
- Script URL is a form of eval. (totalt 3 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)
- eval can be harmful. (totalt 1 st)
- Comparing to itself is potentially pointless. (totalt 1 st)
- `content-type=".*javascript.*"` in: #142: video.78c625e89, antal grupperade fel: 12 ( 2.60 betyg )
- `content-type=".*javascript.*"` in: #142: video.78c625e89, antal fel: 1635 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1175 st)
- Expected X and instead saw X. (totalt 316 st)
- Do not access Object.prototype method X from target object. (totalt 86 st)
- Unnecessary escape character: \/. (totalt 39 st)
- Unnecessary escape character: \-. (totalt 4 st)
- Script URL is a form of eval. (totalt 3 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)
- eval can be harmful. (totalt 1 st)
- Comparing to itself is potentially pointless. (totalt 1 st)
- `content-type=".*javascript.*"` in: #143: load-more.8b46f, antal grupperade fel: 12 ( 2.60 betyg )
- `content-type=".*javascript.*"` in: #143: load-more.8b46f, antal fel: 1649 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1189 st)
- Expected X and instead saw X. (totalt 316 st)
- Do not access Object.prototype method X from target object. (totalt 86 st)
- Unnecessary escape character: \/. (totalt 39 st)
- Unnecessary escape character: \-. (totalt 4 st)
- Script URL is a form of eval. (totalt 3 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)
- eval can be harmful. (totalt 1 st)
- Comparing to itself is potentially pointless. (totalt 1 st)
- `content-type=".*javascript.*"` in: #144: posts.aec592653, antal grupperade fel: 12 ( 2.60 betyg )
- `content-type=".*javascript.*"` in: #144: posts.aec592653, antal fel: 1658 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1198 st)
- Expected X and instead saw X. (totalt 316 st)
- Do not access Object.prototype method X from target object. (totalt 86 st)
- Unnecessary escape character: \/. (totalt 39 st)
- Unnecessary escape character: \-. (totalt 4 st)
- Script URL is a form of eval. (totalt 3 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)
- eval can be harmful. (totalt 1 st)
- Comparing to itself is potentially pointless. (totalt 1 st)
- `content-type=".*javascript.*"` in: #147: consent-sdk-2.2, antal grupperade fel: 14 ( 2.20 betyg )
- `content-type=".*javascript.*"` in: #147: consent-sdk-2.2, antal fel: 2434 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1639 st)
- Expected X and instead saw X. (totalt 611 st)
- Do not access Object.prototype method X from target object. (totalt 91 st)
- Unnecessary escape character: \/. (totalt 40 st)
- Comparing to itself is potentially pointless. (totalt 17 st)
- Unsafe usage of ThrowStatement. (totalt 9 st)
- Unnecessary X. (totalt 5 st)
- Script URL is a form of eval. (totalt 4 st)
- X is not modified in this loop. (totalt 4 st)
- Unnecessary escape character: \-. (totalt 4 st)
- The Function constructor is eval. (totalt 4 st)
- X is assigned to itself. (totalt 3 st)
- Unnecessary escape character: \[. (totalt 2 st)
- eval can be harmful. (totalt 1 st)
- `content-type=".*javascript.*"` in: #148: cc.js, antal grupperade fel: 16 ( 1.80 betyg )
- `content-type=".*javascript.*"` in: #148: cc.js, antal fel: 2781 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1945 st)
- Expected X and instead saw X. (totalt 647 st)
- Do not access Object.prototype method X from target object. (totalt 91 st)
- Unnecessary escape character: \/. (totalt 40 st)
- Comparing to itself is potentially pointless. (totalt 17 st)
- Unsafe usage of ThrowStatement. (totalt 9 st)
- Script URL is a form of eval. (totalt 6 st)
- Unnecessary X. (totalt 5 st)
- X is not modified in this loop. (totalt 4 st)
- Unnecessary escape character: \-. (totalt 4 st)
- The Function constructor is eval. (totalt 4 st)
- X is assigned to itself. (totalt 3 st)
- Unnecessary escape character: \[. (totalt 3 st)
- eval can be harmful. (totalt 1 st)
- Unnecessary escape character: \< . (totalt 1 st)
- Unnecessary escape character: \>. (totalt 1 st)