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: 3.55 av 5
- JS är ok.
Webbstandard
- `< script src="...">` in: #1: Webbsida , antal grupperade fel: 3 ( 4.40 betyg )
- `< script src="...">` in: #1: Webbsida , antal fel: 140 ( 1.00 betyg )
- X is not defined. (totalt 90 st)
- X is defined but never used. (totalt 36 st)
- Unexpected console statement. (totalt 14 st)
- `< script>` in: #31: 823621296, antal grupperade fel: 1 ( 4.80 betyg )
- `< script>` in: #31: 823621296, antal fel: 1 ( 4.80 betyg )
- X is not defined. (totalt 1 st)
- `content-type=".*javascript.*"` in: #14: gtm.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #14: gtm.js, antal fel: 542 ( 1.00 betyg )
- X is defined but never used. (totalt 439 st)
- X is assigned a value but never used. (totalt 81 st)
- X is not defined. (totalt 21 st)
- Unexpected console statement. (totalt 1 st)
- `content-type=".*javascript.*"` in: #30: script.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #30: script.js, antal fel: 590 ( 1.00 betyg )
- X is defined but never used. (totalt 482 st)
- X is assigned a value but never used. (totalt 81 st)
- X is not defined. (totalt 23 st)
- Unexpected console statement. (totalt 4 st)
- `content-type=".*javascript.*"` in: #56: banner.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #56: banner.js, antal fel: 671 ( 1.00 betyg )
- X is defined but never used. (totalt 526 st)
- X is assigned a value but never used. (totalt 81 st)
- X is not defined. (totalt 52 st)
- Unexpected console statement. (totalt 12 st)
- `content-type=".*javascript.*"` in: #58: api.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #58: api.js, antal fel: 691 ( 1.00 betyg )
- X is defined but never used. (totalt 543 st)
- X is assigned a value but never used. (totalt 82 st)
- X is not defined. (totalt 52 st)
- Unexpected console statement. (totalt 14 st)
- `content-type=".*javascript.*"` in: #61: v1, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #61: v1, antal fel: 995 ( 1.00 betyg )
- X is defined but never used. (totalt 551 st)
- X is not defined. (totalt 347 st)
- X is assigned a value but never used. (totalt 82 st)
- Unexpected console statement. (totalt 15 st)
- `content-type=".*javascript.*"` in: #64: v1, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #64: v1, antal fel: 1155 ( 1.00 betyg )
- X is defined but never used. (totalt 559 st)
- X is not defined. (totalt 498 st)
- X is assigned a value but never used. (totalt 82 st)
- Unexpected console statement. (totalt 16 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: 10 ( 3.00 betyg )
- `< script src="...">` in: #1: Webbsida , antal fel: 700 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 452 st)
- Expected X and instead saw X. (totalt 229 st)
- Unnecessary escape character: \/. (totalt 8 st)
- Unnecessary escape character: \[. (totalt 3 st)
- X is not modified in this loop. (totalt 2 st)
- Unnecessary escape character: \-. (totalt 2 st)
- Do not access Object.prototype method X from target object. (totalt 1 st)
- Unnecessary X. (totalt 1 st)
- Comparing to itself is potentially pointless. (totalt 1 st)
- X is assigned to itself. (totalt 1 st)
- `content-type=".*javascript.*"` in: #14: gtm.js, antal grupperade fel: 9 ( 3.20 betyg )
- `content-type=".*javascript.*"` in: #14: gtm.js, antal fel: 1102 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 784 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 30 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: #30: script.js, antal grupperade fel: 14 ( 2.20 betyg )
- `content-type=".*javascript.*"` in: #30: script.js, antal fel: 1410 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 999 st)
- Expected X and instead saw X. (totalt 267 st)
- Do not access Object.prototype method X from target object. (totalt 88 st)
- Unnecessary escape character: \/. (totalt 30 st)
- X is assigned to itself. (totalt 7 st)
- X is not modified in this loop. (totalt 5 st)
- Comparing to itself is potentially pointless. (totalt 3 st)
- Unnecessary X. (totalt 2 st)
- The Function constructor is eval. (totalt 2 st)
- Unsafe usage of ThrowStatement. (totalt 2 st)
- Unnecessary escape character: \&. (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)
- `content-type=".*javascript.*"` in: #56: banner.js, antal grupperade fel: 15 ( 2.00 betyg )
- `content-type=".*javascript.*"` in: #56: banner.js, antal fel: 1706 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1214 st)
- Expected X and instead saw X. (totalt 330 st)
- Do not access Object.prototype method X from target object. (totalt 90 st)
- Unnecessary escape character: \/. (totalt 30 st)
- X is assigned to itself. (totalt 10 st)
- X is not modified in this loop. (totalt 7 st)
- Comparing to itself is potentially pointless. (totalt 7 st)
- The Function constructor is eval. (totalt 5 st)
- Unsafe usage of ThrowStatement. (totalt 4 st)
- Unnecessary X. (totalt 3 st)
- Unnecessary escape character: \&. (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)
- `content-type=".*javascript.*"` in: #58: api.js, antal grupperade fel: 15 ( 2.00 betyg )
- `content-type=".*javascript.*"` in: #58: api.js, antal fel: 1928 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1366 st)
- Expected X and instead saw X. (totalt 392 st)
- Do not access Object.prototype method X from target object. (totalt 90 st)
- Unnecessary escape character: \/. (totalt 30 st)
- Unsafe usage of ThrowStatement. (totalt 11 st)
- X is assigned to itself. (totalt 10 st)
- X is not modified in this loop. (totalt 8 st)
- Comparing to itself is potentially pointless. (totalt 7 st)
- The Function constructor is eval. (totalt 5 st)
- Unnecessary X. (totalt 3 st)
- Unnecessary escape character: \&. (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)
- `content-type=".*javascript.*"` in: #61: v1, antal grupperade fel: 16 ( 1.80 betyg )
- `content-type=".*javascript.*"` in: #61: v1, antal fel: 2119 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1495 st)
- Expected X and instead saw X. (totalt 442 st)
- Do not access Object.prototype method X from target object. (totalt 90 st)
- Unnecessary escape character: \/. (totalt 30 st)
- Comparing to itself is potentially pointless. (totalt 16 st)
- Unsafe usage of ThrowStatement. (totalt 11 st)
- X is not modified in this loop. (totalt 10 st)
- X is assigned to itself. (totalt 10 st)
- The Function constructor is eval. (totalt 5 st)
- Unnecessary X. (totalt 3 st)
- Unnecessary escape character: \&. (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)
- eval can be harmful. (totalt 1 st)
- `content-type=".*javascript.*"` in: #64: v1, antal grupperade fel: 16 ( 1.80 betyg )
- `content-type=".*javascript.*"` in: #64: v1, antal fel: 2293 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1620 st)
- Expected X and instead saw X. (totalt 483 st)
- Do not access Object.prototype method X from target object. (totalt 90 st)
- Unnecessary escape character: \/. (totalt 30 st)
- Comparing to itself is potentially pointless. (totalt 23 st)
- Unsafe usage of ThrowStatement. (totalt 11 st)
- X is not modified in this loop. (totalt 10 st)
- X is assigned to itself. (totalt 10 st)
- The Function constructor is eval. (totalt 5 st)
- Unnecessary X. (totalt 3 st)
- Unnecessary escape character: \&. (totalt 2 st)
- eval can be harmful. (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)