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.79 av 5
- JS är dålig.
Webbstandard
- `< script>` in: #1: Webbsida , antal grupperade fel: 2 ( 4.60 betyg )
- `< script>` in: #1: Webbsida , antal fel: 10 ( 3.00 betyg )
- X is not defined. (totalt 9 st)
- X is assigned a value but never used. (totalt 1 st)
- `< script src="...">` in: #1: Webbsida , antal grupperade fel: 3 ( 4.40 betyg )
- `< script src="...">` in: #1: Webbsida , antal fel: 180 ( 1.00 betyg )
- X is defined but never used. (totalt 92 st)
- X is not defined. (totalt 62 st)
- Unexpected console statement. (totalt 26 st)
- `< script>` in: #20: cookiesharingif, antal grupperade fel: 3 ( 4.40 betyg )
- `< script>` in: #20: 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)
- `< script>` in: #33: favicon.ico, antal grupperade fel: 2 ( 4.60 betyg )
- `< script>` in: #33: favicon.ico, antal fel: 10 ( 3.00 betyg )
- X is not defined. (totalt 9 st)
- X is assigned a value but never used. (totalt 1 st)
- `< script src="...">` in: #33: favicon.ico, antal grupperade fel: 3 ( 4.40 betyg )
- `< script src="...">` in: #33: favicon.ico, antal fel: 180 ( 1.00 betyg )
- X is defined but never used. (totalt 92 st)
- X is not defined. (totalt 62 st)
- Unexpected console statement. (totalt 26 st)
- `content-type=".*javascript.*"` in: #21: gtm.js, antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #21: gtm.js, antal fel: 547 ( 1.00 betyg )
- X is defined but never used. (totalt 446 st)
- X is assigned a value but never used. (totalt 82 st)
- X is not defined. (totalt 19 st)
- `content-type=".*javascript.*"` in: #22: integration, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #22: integration, antal fel: 1209 ( 1.00 betyg )
- X is not defined. (totalt 676 st)
- X is defined but never used. (totalt 449 st)
- X is assigned a value but never used. (totalt 82 st)
- Unexpected console statement. (totalt 2 st)
- `content-type=".*javascript.*"` in: #29: partial.2.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #29: partial.2.js, antal fel: 1211 ( 1.00 betyg )
- X is not defined. (totalt 677 st)
- X is defined but never used. (totalt 449 st)
- X is assigned a value but never used. (totalt 82 st)
- Unexpected console statement. (totalt 3 st)
- `content-type=".*javascript.*"` in: #30: partial.3.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #30: partial.3.js, antal fel: 1213 ( 1.00 betyg )
- X is not defined. (totalt 678 st)
- X is defined but never used. (totalt 450 st)
- X is assigned a value but never used. (totalt 82 st)
- Unexpected console statement. (totalt 3 st)
- `content-type=".*javascript.*"` in: #31: sv.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #31: sv.js, antal fel: 1214 ( 1.00 betyg )
- X is not defined. (totalt 679 st)
- X is defined but never used. (totalt 450 st)
- X is assigned a value but never used. (totalt 82 st)
- Unexpected console statement. (totalt 3 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: 13 ( 2.40 betyg )
- `< script src="...">` in: #1: Webbsida , antal fel: 1134 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 706 st)
- Expected X and instead saw X. (totalt 386 st)
- Do not access Object.prototype method X from target object. (totalt 12 st)
- Unnecessary X. (totalt 8 st)
- Comparing to itself is potentially pointless. (totalt 5 st)
- Unnecessary escape character: \/. (totalt 5 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)
- Script URL is a form of eval. (totalt 1 st)
- Unsafe usage of ThrowStatement. (totalt 1 st)
- The Function constructor is eval. (totalt 1 st)
- Unnecessary escape character: \@. (totalt 1 st)
- `< script>` in: #20: cookiesharingif, antal grupperade fel: 2 ( 4.60 betyg )
- `< script>` in: #20: 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)
- `< script>` in: #33: favicon.ico, antal grupperade fel: 1 ( 4.80 betyg )
- `< script>` in: #33: favicon.ico, antal fel: 2 ( 4.60 betyg )
- Expected X and instead saw X. (totalt 2 st)
- `< script src="...">` in: #33: favicon.ico, antal grupperade fel: 13 ( 2.40 betyg )
- `< script src="...">` in: #33: favicon.ico, antal fel: 1134 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 706 st)
- Expected X and instead saw X. (totalt 386 st)
- Do not access Object.prototype method X from target object. (totalt 12 st)
- Unnecessary X. (totalt 8 st)
- Comparing to itself is potentially pointless. (totalt 5 st)
- Unnecessary escape character: \/. (totalt 5 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)
- Script URL is a form of eval. (totalt 1 st)
- Unsafe usage of ThrowStatement. (totalt 1 st)
- The Function constructor is eval. (totalt 1 st)
- Unnecessary escape character: \@. (totalt 1 st)
- `content-type=".*javascript.*"` in: #21: gtm.js, antal grupperade fel: 8 ( 3.40 betyg )
- `content-type=".*javascript.*"` in: #21: gtm.js, antal fel: 1187 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 837 st)
- Expected X and instead saw X. (totalt 237 st)
- Do not access Object.prototype method X from target object. (totalt 97 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)
- Comparing to itself is potentially pointless. (totalt 1 st)
- Script URL is a form of eval. (totalt 1 st)
- `content-type=".*javascript.*"` in: #22: integration, antal grupperade fel: 10 ( 3.00 betyg )
- `content-type=".*javascript.*"` in: #22: integration, antal fel: 1307 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 932 st)
- Expected X and instead saw X. (totalt 257 st)
- Do not access Object.prototype method X from target object. (totalt 97 st)
- X is not modified in this loop. (totalt 7 st)
- Unnecessary escape character: \/. (totalt 6 st)
- X is assigned to itself. (totalt 3 st)
- Unnecessary escape character: \:. (totalt 2 st)
- Comparing to itself is potentially pointless. (totalt 1 st)
- Script URL is a form of eval. (totalt 1 st)
- Unexpected string concatenation of literals. (totalt 1 st)
- `content-type=".*javascript.*"` in: #29: partial.2.js, antal grupperade fel: 10 ( 3.00 betyg )
- `content-type=".*javascript.*"` in: #29: partial.2.js, antal fel: 1602 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1144 st)
- Expected X and instead saw X. (totalt 338 st)
- Do not access Object.prototype method X from target object. (totalt 97 st)
- X is not modified in this loop. (totalt 9 st)
- Unnecessary escape character: \/. (totalt 6 st)
- X is assigned to itself. (totalt 3 st)
- Unnecessary escape character: \:. (totalt 2 st)
- Comparing to itself is potentially pointless. (totalt 1 st)
- Script URL is a form of eval. (totalt 1 st)
- Unexpected string concatenation of literals. (totalt 1 st)
- `content-type=".*javascript.*"` in: #30: partial.3.js, antal grupperade fel: 10 ( 3.00 betyg )
- `content-type=".*javascript.*"` in: #30: partial.3.js, antal fel: 1610 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1151 st)
- Expected X and instead saw X. (totalt 339 st)
- Do not access Object.prototype method X from target object. (totalt 97 st)
- X is not modified in this loop. (totalt 9 st)
- Unnecessary escape character: \/. (totalt 6 st)
- X is assigned to itself. (totalt 3 st)
- Unnecessary escape character: \:. (totalt 2 st)
- Comparing to itself is potentially pointless. (totalt 1 st)
- Script URL is a form of eval. (totalt 1 st)
- Unexpected string concatenation of literals. (totalt 1 st)
- `content-type=".*javascript.*"` in: #31: sv.js, antal grupperade fel: 10 ( 3.00 betyg )
- `content-type=".*javascript.*"` in: #31: sv.js, antal fel: 1610 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1151 st)
- Expected X and instead saw X. (totalt 339 st)
- Do not access Object.prototype method X from target object. (totalt 97 st)
- X is not modified in this loop. (totalt 9 st)
- Unnecessary escape character: \/. (totalt 6 st)
- X is assigned to itself. (totalt 3 st)
- Unnecessary escape character: \:. (totalt 2 st)
- Comparing to itself is potentially pointless. (totalt 1 st)
- Script URL is a form of eval. (totalt 1 st)
- Unexpected string concatenation of literals. (totalt 1 st)