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.37 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: 5 ( 4.00 betyg )
- `< script src="...">` in: #1: Webbsida , antal fel: 458 ( 1.00 betyg )
- X is not defined. (totalt 349 st)
- X is defined but never used. (totalt 102 st)
- Unexpected console statement. (totalt 4 st)
- X is assigned a value but never used. (totalt 2 st)
- Parsing error: Unexpected token (totalt 1 st)
- `content-type=".*javascript.*"` in: #18: gtm.js, antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #18: gtm.js, antal fel: 541 ( 1.00 betyg )
- X is defined but never used. (totalt 438 st)
- X is assigned a value but never used. (totalt 87 st)
- X is not defined. (totalt 16 st)
- `content-type=".*javascript.*"` in: #19: sdk.js, antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #19: sdk.js, antal fel: 541 ( 1.00 betyg )
- X is defined but never used. (totalt 438 st)
- X is assigned a value but never used. (totalt 87 st)
- X is not defined. (totalt 16 st)
- `content-type=".*javascript.*"` in: #21: m-el-main, antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #21: m-el-main, antal fel: 584 ( 1.00 betyg )
- X is defined but never used. (totalt 477 st)
- X is assigned a value but never used. (totalt 89 st)
- X is not defined. (totalt 18 st)
- `content-type=".*javascript.*"` in: #41: icon-box.min.js, antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #41: icon-box.min.js, antal fel: 585 ( 1.00 betyg )
- X is defined but never used. (totalt 477 st)
- X is assigned a value but never used. (totalt 89 st)
- X is not defined. (totalt 19 st)
- `content-type=".*javascript.*"` in: #42: sdk.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #42: sdk.js, antal fel: 586 ( 1.00 betyg )
- X is defined but never used. (totalt 477 st)
- X is assigned a value but never used. (totalt 89 st)
- X is not defined. (totalt 19 st)
- Parsing error: X in strict mode (totalt 1 st)
- `content-type=".*javascript.*"` in: #43: analytics.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #43: analytics.js, antal fel: 616 ( 1.00 betyg )
- X is defined but never used. (totalt 504 st)
- X is assigned a value but never used. (totalt 89 st)
- X is not defined. (totalt 22 st)
- Parsing error: X in strict mode (totalt 1 st)
- `content-type=".*javascript.*"` in: #54: js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #54: js, antal fel: 1057 ( 1.00 betyg )
- X is defined but never used. (totalt 861 st)
- X is assigned a value but never used. (totalt 162 st)
- X is not defined. (totalt 33 st)
- Parsing error: X in strict mode (totalt 1 st)
- `content-type=".*javascript.*"` in: #60: supportedLangua, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #60: supportedLangua, antal fel: 1058 ( 1.00 betyg )
- X is defined but never used. (totalt 861 st)
- X is assigned a value but never used. (totalt 162 st)
- X is not defined. (totalt 34 st)
- Parsing error: X in strict mode (totalt 1 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: 19 ( 1.20 betyg )
- `< script src="...">` in: #1: Webbsida , antal fel: 1936 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1373 st)
- Expected X and instead saw X. (totalt 445 st)
- Unnecessary escape character: \/. (totalt 32 st)
- Unnecessary X. (totalt 17 st)
- Unexpected string concatenation of literals. (totalt 13 st)
- Unnecessary escape character: \-. (totalt 11 st)
- Do not access Object.prototype method X from target object. (totalt 10 st)
- Comparing to itself is potentially pointless. (totalt 7 st)
- Unnecessary escape character: \[. (totalt 5 st)
- Unnecessary escape character: \%. (totalt 5 st)
- Unnecessary escape character: \^. (totalt 4 st)
- X is not modified in this loop. (totalt 3 st)
- X is assigned to itself. (totalt 2 st)
- Unnecessary escape character: \). (totalt 2 st)
- Unnecessary escape character: \.. (totalt 2 st)
- The Function constructor is eval. (totalt 2 st)
- Unnecessary escape character: \+. (totalt 1 st)
- Parsing error: Unexpected token (totalt 1 st)
- Unnecessary escape character: \&. (totalt 1 st)
- `content-type=".*javascript.*"` in: #18: gtm.js, antal grupperade fel: 9 ( 3.20 betyg )
- `content-type=".*javascript.*"` in: #18: gtm.js, antal fel: 1211 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 855 st)
- Expected X and instead saw X. (totalt 238 st)
- Do not access Object.prototype method X from target object. (totalt 100 st)
- X is not modified in this loop. (totalt 7 st)
- Unnecessary escape character: \/. (totalt 5 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: #19: sdk.js, antal grupperade fel: 9 ( 3.20 betyg )
- `content-type=".*javascript.*"` in: #19: sdk.js, antal fel: 1218 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 858 st)
- Expected X and instead saw X. (totalt 238 st)
- Do not access Object.prototype method X from target object. (totalt 100 st)
- Unnecessary escape character: \/. (totalt 9 st)
- X is not modified in this loop. (totalt 7 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: #21: m-el-main, antal grupperade fel: 14 ( 2.20 betyg )
- `content-type=".*javascript.*"` in: #21: m-el-main, antal fel: 2597 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1630 st)
- Expected X and instead saw X. (totalt 812 st)
- Do not access Object.prototype method X from target object. (totalt 102 st)
- Unnecessary escape character: \/. (totalt 20 st)
- X is not modified in this loop. (totalt 8 st)
- Unnecessary X. (totalt 6 st)
- X is assigned to itself. (totalt 5 st)
- Unnecessary escape character: \?. (totalt 4 st)
- Script URL is a form of eval. (totalt 3 st)
- Comparing to itself is potentially pointless. (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)
- `content-type=".*javascript.*"` in: #41: icon-box.min.js, antal grupperade fel: 14 ( 2.20 betyg )
- `content-type=".*javascript.*"` in: #41: icon-box.min.js, antal fel: 2601 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1633 st)
- Expected X and instead saw X. (totalt 813 st)
- Do not access Object.prototype method X from target object. (totalt 102 st)
- Unnecessary escape character: \/. (totalt 20 st)
- X is not modified in this loop. (totalt 8 st)
- Unnecessary X. (totalt 6 st)
- X is assigned to itself. (totalt 5 st)
- Unnecessary escape character: \?. (totalt 4 st)
- Script URL is a form of eval. (totalt 3 st)
- Comparing to itself is potentially pointless. (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)
- `content-type=".*javascript.*"` in: #42: sdk.js, antal grupperade fel: 15 ( 2.00 betyg )
- `content-type=".*javascript.*"` in: #42: sdk.js, antal fel: 2602 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1633 st)
- Expected X and instead saw X. (totalt 813 st)
- Do not access Object.prototype method X from target object. (totalt 102 st)
- Unnecessary escape character: \/. (totalt 20 st)
- X is not modified in this loop. (totalt 8 st)
- Unnecessary X. (totalt 6 st)
- X is assigned to itself. (totalt 5 st)
- Unnecessary escape character: \?. (totalt 4 st)
- Script URL is a form of eval. (totalt 3 st)
- Comparing to itself is potentially pointless. (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)
- Parsing error: X in strict mode (totalt 1 st)
- `content-type=".*javascript.*"` in: #43: analytics.js, antal grupperade fel: 16 ( 1.80 betyg )
- `content-type=".*javascript.*"` in: #43: analytics.js, antal fel: 3032 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1867 st)
- Expected X and instead saw X. (totalt 991 st)
- Do not access Object.prototype method X from target object. (totalt 114 st)
- Unnecessary escape character: \/. (totalt 22 st)
- X is not modified in this loop. (totalt 8 st)
- Unnecessary X. (totalt 7 st)
- X is assigned to itself. (totalt 5 st)
- Unnecessary escape character: \?. (totalt 4 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 escape character: \). (totalt 1 st)
- Unnecessary escape character: \.. (totalt 1 st)
- Parsing error: X in strict mode (totalt 1 st)
- `content-type=".*javascript.*"` in: #54: js, antal grupperade fel: 17 ( 1.60 betyg )
- `content-type=".*javascript.*"` in: #54: js, antal fel: 4525 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 3024 st)
- Expected X and instead saw X. (totalt 1215 st)
- Do not access Object.prototype method X from target object. (totalt 212 st)
- Unnecessary escape character: \/. (totalt 25 st)
- X is not modified in this loop. (totalt 12 st)
- X is assigned to itself. (totalt 8 st)
- Unnecessary X. (totalt 7 st)
- Unnecessary escape character: \?. (totalt 5 st)
- Comparing to itself is potentially pointless. (totalt 4 st)
- Script URL is a form of eval. (totalt 4 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)
- Parsing error: X in strict mode (totalt 1 st)
- Unnecessary escape character: \}. (totalt 1 st)
- `content-type=".*javascript.*"` in: #60: supportedLangua, antal grupperade fel: 17 ( 1.60 betyg )
- `content-type=".*javascript.*"` in: #60: supportedLangua, antal fel: 4525 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 3024 st)
- Expected X and instead saw X. (totalt 1215 st)
- Do not access Object.prototype method X from target object. (totalt 212 st)
- Unnecessary escape character: \/. (totalt 25 st)
- X is not modified in this loop. (totalt 12 st)
- X is assigned to itself. (totalt 8 st)
- Unnecessary X. (totalt 7 st)
- Unnecessary escape character: \?. (totalt 5 st)
- Comparing to itself is potentially pointless. (totalt 4 st)
- Script URL is a form of eval. (totalt 4 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)
- Parsing error: X in strict mode (totalt 1 st)
- Unnecessary escape character: \}. (totalt 1 st)