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.54 av 5
- JS är dålig.
Webbstandard
- `< script src="...">` in: #1: Webbsida , antal grupperade fel: 4 ( 4.20 betyg )
- `< script src="...">` in: #1: Webbsida , antal fel: 691 ( 1.00 betyg )
- X is defined but never used. (totalt 619 st)
- X is not defined. (totalt 37 st)
- Unexpected console statement. (totalt 26 st)
- X is assigned a value but never used. (totalt 9 st)
- `< script>` in: #30: cookiesharingif, antal grupperade fel: 3 ( 4.40 betyg )
- `< script>` in: #30: cookiesharingif, antal fel: 8 ( 3.40 betyg )
- X is defined but never used. (totalt 3 st)
- Unexpected console statement. (totalt 3 st)
- X is not defined. (totalt 2 st)
- `content-type=".*javascript.*"` in: #31: gtm.js, antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #31: gtm.js, antal fel: 576 ( 1.00 betyg )
- X is defined but never used. (totalt 466 st)
- X is assigned a value but never used. (totalt 92 st)
- X is not defined. (totalt 18 st)
- `content-type=".*javascript.*"` in: #32: container-n1eXj, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #32: container-n1eXj, antal fel: 792 ( 1.00 betyg )
- X is defined but never used. (totalt 520 st)
- X is not defined. (totalt 145 st)
- X is assigned a value but never used. (totalt 107 st)
- Unexpected console statement. (totalt 20 st)
- `content-type=".*javascript.*"` in: #35: analytics.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #35: analytics.js, antal fel: 822 ( 1.00 betyg )
- X is defined but never used. (totalt 547 st)
- X is not defined. (totalt 148 st)
- X is assigned a value but never used. (totalt 107 st)
- Unexpected console statement. (totalt 20 st)
- `content-type=".*javascript.*"` in: #36: configs.php, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #36: configs.php, antal fel: 823 ( 1.00 betyg )
- X is defined but never used. (totalt 547 st)
- X is not defined. (totalt 149 st)
- X is assigned a value but never used. (totalt 107 st)
- Unexpected console statement. (totalt 20 st)
- `content-type=".*javascript.*"` in: #37: sv.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #37: sv.js, antal fel: 824 ( 1.00 betyg )
- X is defined but never used. (totalt 547 st)
- X is not defined. (totalt 150 st)
- X is assigned a value but never used. (totalt 107 st)
- Unexpected console statement. (totalt 20 st)
- `content-type=".*javascript.*"` in: #40: js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #40: js, antal fel: 1320 ( 1.00 betyg )
- X is defined but never used. (totalt 937 st)
- X is assigned a value but never used. (totalt 197 st)
- X is not defined. (totalt 166 st)
- Unexpected console statement. (totalt 20 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 )
- Expected X and instead saw X. (totalt 1 st)
- `< script src="...">` in: #1: Webbsida , antal grupperade fel: 24 ( 1.00 betyg )
- `< script src="...">` in: #1: Webbsida , antal fel: 1439 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 868 st)
- Expected X and instead saw X. (totalt 478 st)
- Do not access Object.prototype method X from target object. (totalt 21 st)
- Comparing to itself is potentially pointless. (totalt 13 st)
- Unnecessary escape character: \/. (totalt 8 st)
- Unsafe usage of ThrowStatement. (totalt 6 st)
- The Function constructor is eval. (totalt 6 st)
- Unnecessary X. (totalt 6 st)
- X is not modified in this loop. (totalt 5 st)
- X is assigned to itself. (totalt 3 st)
- Unnecessary escape character: \[. (totalt 3 st)
- Unnecessary escape character: \+. (totalt 3 st)
- Script URL is a form of eval. (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)
- 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)
- Unnecessary escape character: \$. (totalt 1 st)
- Unnecessary escape character: \|. (totalt 1 st)
- `< script>` in: #30: cookiesharingif, antal grupperade fel: 2 ( 4.60 betyg )
- `< script>` in: #30: cookiesharingif, antal fel: 80 ( 1.00 betyg )
- Expected X and instead saw X. (totalt 47 st)
- Expected an assignment or function call and instead saw an expression. (totalt 33 st)
- `content-type=".*javascript.*"` in: #31: gtm.js, antal grupperade fel: 9 ( 3.20 betyg )
- `content-type=".*javascript.*"` in: #31: gtm.js, antal fel: 1183 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 833 st)
- Expected X and instead saw X. (totalt 237 st)
- Do not access Object.prototype method X from target object. (totalt 96 st)
- X is not modified in this loop. (totalt 7 st)
- Unnecessary escape character: \/. (totalt 4 st)
- X is assigned to itself. (totalt 3 st)
- eval can be harmful. (totalt 1 st)
- Comparing to itself is potentially pointless. (totalt 1 st)
- Script URL is a form of eval. (totalt 1 st)
- `content-type=".*javascript.*"` in: #32: container-n1eXj, antal grupperade fel: 13 ( 2.40 betyg )
- `content-type=".*javascript.*"` in: #32: container-n1eXj, antal fel: 1262 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 833 st)
- Expected X and instead saw X. (totalt 290 st)
- Do not access Object.prototype method X from target object. (totalt 105 st)
- Unnecessary escape character: \/. (totalt 15 st)
- X is not modified in this loop. (totalt 7 st)
- X is assigned to itself. (totalt 3 st)
- Unnecessary escape character: \-. (totalt 3 st)
- eval can be harmful. (totalt 1 st)
- Comparing to itself is potentially pointless. (totalt 1 st)
- Script URL is a form of eval. (totalt 1 st)
- Unnecessary escape character: \.. (totalt 1 st)
- Unnecessary escape character: \). (totalt 1 st)
- Unnecessary X. (totalt 1 st)
- `content-type=".*javascript.*"` in: #35: analytics.js, antal grupperade fel: 14 ( 2.20 betyg )
- `content-type=".*javascript.*"` in: #35: analytics.js, antal fel: 1692 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1067 st)
- Expected X and instead saw X. (totalt 468 st)
- Do not access Object.prototype method X from target object. (totalt 117 st)
- Unnecessary escape character: \/. (totalt 17 st)
- X is not modified in this loop. (totalt 7 st)
- X is assigned to itself. (totalt 3 st)
- Unnecessary escape character: \-. (totalt 3 st)
- Comparing to itself is potentially pointless. (totalt 2 st)
- Unnecessary X. (totalt 2 st)
- Unnecessary escape character: \[. (totalt 2 st)
- eval can be harmful. (totalt 1 st)
- Script URL is a form of eval. (totalt 1 st)
- Unnecessary escape character: \.. (totalt 1 st)
- Unnecessary escape character: \). (totalt 1 st)
- `content-type=".*javascript.*"` in: #36: configs.php, antal grupperade fel: 14 ( 2.20 betyg )
- `content-type=".*javascript.*"` in: #36: configs.php, antal fel: 1692 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1067 st)
- Expected X and instead saw X. (totalt 468 st)
- Do not access Object.prototype method X from target object. (totalt 117 st)
- Unnecessary escape character: \/. (totalt 17 st)
- X is not modified in this loop. (totalt 7 st)
- X is assigned to itself. (totalt 3 st)
- Unnecessary escape character: \-. (totalt 3 st)
- Comparing to itself is potentially pointless. (totalt 2 st)
- Unnecessary X. (totalt 2 st)
- Unnecessary escape character: \[. (totalt 2 st)
- eval can be harmful. (totalt 1 st)
- Script URL is a form of eval. (totalt 1 st)
- Unnecessary escape character: \.. (totalt 1 st)
- Unnecessary escape character: \). (totalt 1 st)
- `content-type=".*javascript.*"` in: #37: sv.js, antal grupperade fel: 14 ( 2.20 betyg )
- `content-type=".*javascript.*"` in: #37: sv.js, antal fel: 1692 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1067 st)
- Expected X and instead saw X. (totalt 468 st)
- Do not access Object.prototype method X from target object. (totalt 117 st)
- Unnecessary escape character: \/. (totalt 17 st)
- X is not modified in this loop. (totalt 7 st)
- X is assigned to itself. (totalt 3 st)
- Unnecessary escape character: \-. (totalt 3 st)
- Comparing to itself is potentially pointless. (totalt 2 st)
- Unnecessary X. (totalt 2 st)
- Unnecessary escape character: \[. (totalt 2 st)
- eval can be harmful. (totalt 1 st)
- Script URL is a form of eval. (totalt 1 st)
- Unnecessary escape character: \.. (totalt 1 st)
- Unnecessary escape character: \). (totalt 1 st)
- `content-type=".*javascript.*"` in: #40: js, antal grupperade fel: 16 ( 1.80 betyg )
- `content-type=".*javascript.*"` in: #40: js, antal fel: 3076 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 2138 st)
- Expected X and instead saw X. (totalt 686 st)
- Do not access Object.prototype method X from target object. (totalt 199 st)
- Unnecessary escape character: \/. (totalt 20 st)
- X is not modified in this loop. (totalt 10 st)
- X is assigned to itself. (totalt 6 st)
- Comparing to itself is potentially pointless. (totalt 3 st)
- Unnecessary escape character: \-. (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)
- Unnecessary escape character: \.. (totalt 1 st)
- Unnecessary escape character: \). (totalt 1 st)
- Unnecessary escape character: \?. (totalt 1 st)
- Unnecessary escape character: \}. (totalt 1 st)