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.48 av 5
- JS är dålig.
Webbstandard
- `< script>` in: #1: Webbsida , antal grupperade fel: 2 ( 4.60 betyg )
- `< script>` in: #1: Webbsida , antal fel: 3 ( 4.40 betyg )
- X is defined but never used. (totalt 2 st)
- X is not defined. (totalt 1 st)
- `< script src="...">` in: #1: Webbsida , antal grupperade fel: 5 ( 4.00 betyg )
- `< script src="...">` in: #1: Webbsida , antal fel: 596 ( 1.00 betyg )
- X is defined but never used. (totalt 477 st)
- Unexpected console statement. (totalt 82 st)
- X is not defined. (totalt 34 st)
- X is assigned a value but never used. (totalt 2 st)
- Parsing error: Unexpected token < (totalt 1 st)
- `< script>` in: #11: cookiesharingif, antal grupperade fel: 3 ( 4.40 betyg )
- `< script>` in: #11: 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: #12: gtm.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #12: gtm.js, antal fel: 511 ( 1.00 betyg )
- X is defined but never used. (totalt 416 st)
- X is assigned a value but never used. (totalt 81 st)
- X is not defined. (totalt 13 st)
- Unexpected console statement. (totalt 1 st)
- `content-type=".*javascript.*"` in: #23: sv.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #23: sv.js, antal fel: 512 ( 1.00 betyg )
- X is defined but never used. (totalt 416 st)
- X is assigned a value but never used. (totalt 81 st)
- X is not defined. (totalt 14 st)
- Unexpected console statement. (totalt 1 st)
- `content-type=".*javascript.*"` in: #24: js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #24: js, antal fel: 1007 ( 1.00 betyg )
- X is defined but never used. (totalt 806 st)
- X is assigned a value but never used. (totalt 170 st)
- X is not defined. (totalt 30 st)
- Unexpected console statement. (totalt 1 st)
- `content-type=".*javascript.*"` in: #25: js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #25: js, antal fel: 1510 ( 1.00 betyg )
- X is defined but never used. (totalt 1203 st)
- X is assigned a value but never used. (totalt 260 st)
- X is not defined. (totalt 46 st)
- Unexpected console statement. (totalt 1 st)
- `content-type=".*javascript.*"` in: #26: js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #26: js, antal fel: 2015 ( 1.00 betyg )
- X is defined but never used. (totalt 1602 st)
- X is assigned a value but never used. (totalt 350 st)
- X is not defined. (totalt 62 st)
- Unexpected console statement. (totalt 1 st)
Integritet & säkerhet
- `< script>` in: #1: Webbsida , antal grupperade fel: 5 ( 4.00 betyg )
- `< script>` in: #1: Webbsida , antal fel: 20 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 15 st)
- Expected X and instead saw X. (totalt 2 st)
- Unnecessary escape character: \/. (totalt 1 st)
- Script URL is a form of eval. (totalt 1 st)
- Unnecessary escape character: \". (totalt 1 st)
- `< script src="...">` in: #1: Webbsida , antal grupperade fel: 19 ( 1.20 betyg )
- `< script src="...">` in: #1: Webbsida , antal fel: 4484 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 3533 st)
- Expected X and instead saw X. (totalt 729 st)
- Do not access Object.prototype method X from target object. (totalt 66 st)
- Unsafe usage of ThrowStatement. (totalt 56 st)
- Comparing to itself is potentially pointless. (totalt 32 st)
- X is not modified in this loop. (totalt 16 st)
- Unnecessary escape character: \/. (totalt 12 st)
- Unnecessary escape character: \-. (totalt 12 st)
- The Function constructor is eval. (totalt 7 st)
- Unnecessary escape character: \.. (totalt 6 st)
- Script URL is a form of eval. (totalt 4 st)
- Unnecessary X. (totalt 4 st)
- X is assigned to itself. (totalt 1 st)
- Parsing error: Unexpected token < (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>` in: #11: cookiesharingif, antal grupperade fel: 2 ( 4.60 betyg )
- `< script>` in: #11: 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: #12: gtm.js, antal grupperade fel: 10 ( 3.00 betyg )
- `content-type=".*javascript.*"` in: #12: gtm.js, antal fel: 1424 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 868 st)
- Unnecessary escape character: \/. (totalt 242 st)
- Expected X and instead saw X. (totalt 205 st)
- Do not access Object.prototype method X from target object. (totalt 98 st)
- X is not modified in this loop. (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)
- Unnecessary X. (totalt 1 st)
- Script URL is a form of eval. (totalt 1 st)
- `content-type=".*javascript.*"` in: #23: sv.js, antal grupperade fel: 10 ( 3.00 betyg )
- `content-type=".*javascript.*"` in: #23: sv.js, antal fel: 1424 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 868 st)
- Unnecessary escape character: \/. (totalt 242 st)
- Expected X and instead saw X. (totalt 205 st)
- Do not access Object.prototype method X from target object. (totalt 98 st)
- X is not modified in this loop. (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)
- Unnecessary X. (totalt 1 st)
- Script URL is a form of eval. (totalt 1 st)
- `content-type=".*javascript.*"` in: #24: js, antal grupperade fel: 12 ( 2.60 betyg )
- `content-type=".*javascript.*"` in: #24: js, antal fel: 2786 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1918 st)
- Expected X and instead saw X. (totalt 421 st)
- Unnecessary escape character: \/. (totalt 245 st)
- Do not access Object.prototype method X from target object. (totalt 181 st)
- X is not modified in this loop. (totalt 7 st)
- X is assigned to itself. (totalt 6 st)
- Comparing to itself is potentially pointless. (totalt 2 st)
- Script URL is a form of eval. (totalt 2 st)
- eval can be harmful. (totalt 1 st)
- Unnecessary X. (totalt 1 st)
- Unnecessary escape character: \?. (totalt 1 st)
- Unnecessary escape character: \}. (totalt 1 st)
- `content-type=".*javascript.*"` in: #25: js, antal grupperade fel: 12 ( 2.60 betyg )
- `content-type=".*javascript.*"` in: #25: js, antal fel: 4138 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 2962 st)
- Expected X and instead saw X. (totalt 637 st)
- Do not access Object.prototype method X from target object. (totalt 260 st)
- Unnecessary escape character: \/. (totalt 248 st)
- X is not modified in this loop. (totalt 10 st)
- X is assigned to itself. (totalt 9 st)
- Comparing to itself is potentially pointless. (totalt 3 st)
- Script URL is a form of eval. (totalt 3 st)
- Unnecessary escape character: \?. (totalt 2 st)
- Unnecessary escape character: \}. (totalt 2 st)
- eval can be harmful. (totalt 1 st)
- Unnecessary X. (totalt 1 st)
- `content-type=".*javascript.*"` in: #26: js, antal grupperade fel: 12 ( 2.60 betyg )
- `content-type=".*javascript.*"` in: #26: js, antal fel: 5491 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 4005 st)
- Expected X and instead saw X. (totalt 853 st)
- Do not access Object.prototype method X from target object. (totalt 341 st)
- Unnecessary escape character: \/. (totalt 251 st)
- X is not modified in this loop. (totalt 13 st)
- X is assigned to itself. (totalt 12 st)
- Comparing to itself is potentially pointless. (totalt 4 st)
- Script URL is a form of eval. (totalt 4 st)
- Unnecessary escape character: \?. (totalt 3 st)
- Unnecessary escape character: \}. (totalt 3 st)
- eval can be harmful. (totalt 1 st)
- Unnecessary X. (totalt 1 st)