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.64 av 5
- JS är dålig.
Webbstandard
- `< script>` in: #1: sv, antal grupperade fel: 2 ( 4.60 betyg )
- `< script>` in: #1: sv, antal fel: 7 ( 3.60 betyg )
- X is not defined. (totalt 5 st)
- X is assigned a value but never used. (totalt 2 st)
- `< script src="...">` in: #1: sv, antal grupperade fel: 4 ( 4.20 betyg )
- `< script src="...">` in: #1: sv, antal fel: 1421 ( 1.00 betyg )
- X is not defined. (totalt 1000 st)
- X is defined but never used. (totalt 366 st)
- Unexpected console statement. (totalt 51 st)
- X is assigned a value but never used. (totalt 4 st)
- `< script>` in: #44: idContainer.htm, antal grupperade fel: 1 ( 4.80 betyg )
- `< script>` in: #44: idContainer.htm, antal fel: 2 ( 4.60 betyg )
- X is not defined. (totalt 2 st)
- `content-type=".*javascript.*"` in: #19: gtm.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #19: gtm.js, antal fel: 516 ( 1.00 betyg )
- X is defined but never used. (totalt 417 st)
- X is assigned a value but never used. (totalt 85 st)
- X is not defined. (totalt 13 st)
- Unexpected console statement. (totalt 1 st)
- `content-type=".*javascript.*"` in: #34: websdk-config.j, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #34: websdk-config.j, antal fel: 516 ( 1.00 betyg )
- X is defined but never used. (totalt 417 st)
- X is assigned a value but never used. (totalt 85 st)
- X is not defined. (totalt 13 st)
- Unexpected console statement. (totalt 1 st)
- `content-type=".*javascript.*"` in: #36: ace-1022.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #36: ace-1022.js, antal fel: 554 ( 1.00 betyg )
- X is defined but never used. (totalt 423 st)
- X is assigned a value but never used. (totalt 85 st)
- X is not defined. (totalt 45 st)
- Unexpected console statement. (totalt 1 st)
- `content-type=".*javascript.*"` in: #37: config-services, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #37: config-services, antal fel: 555 ( 1.00 betyg )
- X is defined but never used. (totalt 423 st)
- X is assigned a value but never used. (totalt 85 st)
- X is not defined. (totalt 46 st)
- Unexpected console statement. (totalt 1 st)
- `content-type=".*javascript.*"` in: #40: ace-1479.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #40: ace-1479.js, antal fel: 556 ( 1.00 betyg )
- X is defined but never used. (totalt 424 st)
- X is assigned a value but never used. (totalt 85 st)
- X is not defined. (totalt 46 st)
- Unexpected console statement. (totalt 1 st)
- `content-type=".*javascript.*"` in: #41: ace-2963.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #41: ace-2963.js, antal fel: 571 ( 1.00 betyg )
- X is defined but never used. (totalt 436 st)
- X is assigned a value but never used. (totalt 85 st)
- X is not defined. (totalt 49 st)
- Unexpected console statement. (totalt 1 st)
- `content-type=".*javascript.*"` in: #42: ace-8020.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #42: ace-8020.js, antal fel: 613 ( 1.00 betyg )
- X is defined but never used. (totalt 477 st)
- X is assigned a value but never used. (totalt 85 st)
- X is not defined. (totalt 50 st)
- Unexpected console statement. (totalt 1 st)
- `content-type=".*javascript.*"` in: #43: ace-1231.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #43: ace-1231.js, antal fel: 613 ( 1.00 betyg )
- X is defined but never used. (totalt 477 st)
- X is assigned a value but never used. (totalt 85 st)
- X is not defined. (totalt 50 st)
- Unexpected console statement. (totalt 1 st)
- `content-type=".*javascript.*"` in: #45: websdk-config.j, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #45: websdk-config.j, antal fel: 613 ( 1.00 betyg )
- X is defined but never used. (totalt 477 st)
- X is assigned a value but never used. (totalt 85 st)
- X is not defined. (totalt 50 st)
- Unexpected console statement. (totalt 1 st)
- `content-type=".*javascript.*"` in: #46: idContainerPage, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #46: idContainerPage, antal fel: 680 ( 1.00 betyg )
- X is defined but never used. (totalt 528 st)
- X is assigned a value but never used. (totalt 85 st)
- X is not defined. (totalt 62 st)
- Unexpected console statement. (totalt 5 st)
- `content-type=".*javascript.*"` in: #47: config-services, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #47: config-services, antal fel: 681 ( 1.00 betyg )
- X is defined but never used. (totalt 528 st)
- X is assigned a value but never used. (totalt 85 st)
- X is not defined. (totalt 63 st)
- Unexpected console statement. (totalt 5 st)
- `content-type=".*javascript.*"` in: #48: ace-7423.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #48: ace-7423.js, antal fel: 764 ( 1.00 betyg )
- X is defined but never used. (totalt 611 st)
- X is assigned a value but never used. (totalt 85 st)
- X is not defined. (totalt 63 st)
- Unexpected console statement. (totalt 5 st)
Integritet & säkerhet
- `< script>` in: #1: sv, antal grupperade fel: 1 ( 4.80 betyg )
- `< script>` in: #1: sv, antal fel: 1 ( 4.80 betyg )
- Expected X and instead saw X. (totalt 1 st)
- `< script src="...">` in: #1: sv, antal grupperade fel: 27 ( 1.00 betyg )
- `< script src="...">` in: #1: sv, antal fel: 7645 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 4765 st)
- Expected X and instead saw X. (totalt 2596 st)
- Do not access Object.prototype method X from target object. (totalt 78 st)
- Unnecessary X. (totalt 45 st)
- Unnecessary escape character: \-. (totalt 35 st)
- Unnecessary escape character: \/. (totalt 22 st)
- Comparing to itself is potentially pointless. (totalt 20 st)
- X is not modified in this loop. (totalt 12 st)
- Unnecessary escape character: \[. (totalt 12 st)
- Unnecessary escape character: \%. (totalt 12 st)
- X is assigned to itself. (totalt 11 st)
- Unnecessary escape character: \.. (totalt 7 st)
- Unnecessary escape character: \^. (totalt 6 st)
- Unnecessary escape character: \". (totalt 4 st)
- Unnecessary escape character: \+. (totalt 3 st)
- The Function constructor is eval. (totalt 3 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)
- Unnecessary escape character: \$. (totalt 1 st)
- Unsafe usage of ReturnStatement. (totalt 1 st)
- Unsafe usage of ThrowStatement. (totalt 1 st)
- `content-type=".*javascript.*"` in: #19: gtm.js, antal grupperade fel: 10 ( 3.00 betyg )
- `content-type=".*javascript.*"` in: #19: gtm.js, antal fel: 1340 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 836 st)
- Expected X and instead saw X. (totalt 203 st)
- Unnecessary escape character: \/. (totalt 201 st)
- Do not access Object.prototype method X from target object. (totalt 90 st)
- X is not modified in this loop. (totalt 3 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: #34: websdk-config.j, antal grupperade fel: 10 ( 3.00 betyg )
- `content-type=".*javascript.*"` in: #34: websdk-config.j, antal fel: 1340 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 836 st)
- Expected X and instead saw X. (totalt 203 st)
- Unnecessary escape character: \/. (totalt 201 st)
- Do not access Object.prototype method X from target object. (totalt 90 st)
- X is not modified in this loop. (totalt 3 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: #36: ace-1022.js, antal grupperade fel: 10 ( 3.00 betyg )
- `content-type=".*javascript.*"` in: #36: ace-1022.js, antal fel: 1391 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 876 st)
- Expected X and instead saw X. (totalt 213 st)
- Unnecessary escape character: \/. (totalt 201 st)
- Do not access Object.prototype method X from target object. (totalt 90 st)
- X is assigned to itself. (totalt 4 st)
- X is not modified in this loop. (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: #37: config-services, antal grupperade fel: 10 ( 3.00 betyg )
- `content-type=".*javascript.*"` in: #37: config-services, antal fel: 1391 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 876 st)
- Expected X and instead saw X. (totalt 213 st)
- Unnecessary escape character: \/. (totalt 201 st)
- Do not access Object.prototype method X from target object. (totalt 90 st)
- X is assigned to itself. (totalt 4 st)
- X is not modified in this loop. (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: #40: ace-1479.js, antal grupperade fel: 10 ( 3.00 betyg )
- `content-type=".*javascript.*"` in: #40: ace-1479.js, antal fel: 1418 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 894 st)
- Expected X and instead saw X. (totalt 222 st)
- Unnecessary escape character: \/. (totalt 201 st)
- Do not access Object.prototype method X from target object. (totalt 90 st)
- X is assigned to itself. (totalt 4 st)
- X is not modified in this loop. (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: #41: ace-2963.js, antal grupperade fel: 13 ( 2.40 betyg )
- `content-type=".*javascript.*"` in: #41: ace-2963.js, antal fel: 1535 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 959 st)
- Expected X and instead saw X. (totalt 261 st)
- Unnecessary escape character: \/. (totalt 201 st)
- Do not access Object.prototype method X from target object. (totalt 90 st)
- Unnecessary escape character: \.. (totalt 6 st)
- X is assigned to itself. (totalt 4 st)
- Unnecessary escape character: \_. (totalt 4 st)
- X is not modified in this loop. (totalt 3 st)
- Comparing to itself is potentially pointless. (totalt 3 st)
- eval can be harmful. (totalt 1 st)
- Unnecessary X. (totalt 1 st)
- Script URL is a form of eval. (totalt 1 st)
- Unnecessary escape character: \). (totalt 1 st)
- `content-type=".*javascript.*"` in: #42: ace-8020.js, antal grupperade fel: 13 ( 2.40 betyg )
- `content-type=".*javascript.*"` in: #42: ace-8020.js, antal fel: 1951 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1262 st)
- Expected X and instead saw X. (totalt 374 st)
- Unnecessary escape character: \/. (totalt 201 st)
- Do not access Object.prototype method X from target object. (totalt 90 st)
- Unnecessary escape character: \.. (totalt 6 st)
- X is assigned to itself. (totalt 4 st)
- Unnecessary escape character: \_. (totalt 4 st)
- X is not modified in this loop. (totalt 3 st)
- Comparing to itself is potentially pointless. (totalt 3 st)
- eval can be harmful. (totalt 1 st)
- Unnecessary X. (totalt 1 st)
- Script URL is a form of eval. (totalt 1 st)
- Unnecessary escape character: \). (totalt 1 st)
- `content-type=".*javascript.*"` in: #43: ace-1231.js, antal grupperade fel: 13 ( 2.40 betyg )
- `content-type=".*javascript.*"` in: #43: ace-1231.js, antal fel: 1957 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1268 st)
- Expected X and instead saw X. (totalt 374 st)
- Unnecessary escape character: \/. (totalt 201 st)
- Do not access Object.prototype method X from target object. (totalt 90 st)
- Unnecessary escape character: \.. (totalt 6 st)
- X is assigned to itself. (totalt 4 st)
- Unnecessary escape character: \_. (totalt 4 st)
- X is not modified in this loop. (totalt 3 st)
- Comparing to itself is potentially pointless. (totalt 3 st)
- eval can be harmful. (totalt 1 st)
- Unnecessary X. (totalt 1 st)
- Script URL is a form of eval. (totalt 1 st)
- Unnecessary escape character: \). (totalt 1 st)
- `content-type=".*javascript.*"` in: #45: websdk-config.j, antal grupperade fel: 13 ( 2.40 betyg )
- `content-type=".*javascript.*"` in: #45: websdk-config.j, antal fel: 1957 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1268 st)
- Expected X and instead saw X. (totalt 374 st)
- Unnecessary escape character: \/. (totalt 201 st)
- Do not access Object.prototype method X from target object. (totalt 90 st)
- Unnecessary escape character: \.. (totalt 6 st)
- X is assigned to itself. (totalt 4 st)
- Unnecessary escape character: \_. (totalt 4 st)
- X is not modified in this loop. (totalt 3 st)
- Comparing to itself is potentially pointless. (totalt 3 st)
- eval can be harmful. (totalt 1 st)
- Unnecessary X. (totalt 1 st)
- Script URL is a form of eval. (totalt 1 st)
- Unnecessary escape character: \). (totalt 1 st)
- `content-type=".*javascript.*"` in: #46: idContainerPage, antal grupperade fel: 16 ( 1.80 betyg )
- `content-type=".*javascript.*"` in: #46: idContainerPage, antal fel: 2423 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1608 st)
- Expected X and instead saw X. (totalt 478 st)
- Unnecessary escape character: \/. (totalt 201 st)
- Do not access Object.prototype method X from target object. (totalt 92 st)
- Comparing to itself is potentially pointless. (totalt 14 st)
- X is assigned to itself. (totalt 7 st)
- Unnecessary escape character: \.. (totalt 6 st)
- X is not modified in this loop. (totalt 4 st)
- Unnecessary escape character: \_. (totalt 4 st)
- Unnecessary X. (totalt 2 st)
- The Function constructor is eval. (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)
- Unnecessary escape character: \[. (totalt 1 st)
- `content-type=".*javascript.*"` in: #47: config-services, antal grupperade fel: 16 ( 1.80 betyg )
- `content-type=".*javascript.*"` in: #47: config-services, antal fel: 2423 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1608 st)
- Expected X and instead saw X. (totalt 478 st)
- Unnecessary escape character: \/. (totalt 201 st)
- Do not access Object.prototype method X from target object. (totalt 92 st)
- Comparing to itself is potentially pointless. (totalt 14 st)
- X is assigned to itself. (totalt 7 st)
- Unnecessary escape character: \.. (totalt 6 st)
- X is not modified in this loop. (totalt 4 st)
- Unnecessary escape character: \_. (totalt 4 st)
- Unnecessary X. (totalt 2 st)
- The Function constructor is eval. (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)
- Unnecessary escape character: \[. (totalt 1 st)
- `content-type=".*javascript.*"` in: #48: ace-7423.js, antal grupperade fel: 16 ( 1.80 betyg )
- `content-type=".*javascript.*"` in: #48: ace-7423.js, antal fel: 2490 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1647 st)
- Expected X and instead saw X. (totalt 506 st)
- Unnecessary escape character: \/. (totalt 201 st)
- Do not access Object.prototype method X from target object. (totalt 92 st)
- Comparing to itself is potentially pointless. (totalt 14 st)
- X is assigned to itself. (totalt 7 st)
- Unnecessary escape character: \.. (totalt 6 st)
- X is not modified in this loop. (totalt 4 st)
- Unnecessary escape character: \_. (totalt 4 st)
- Unnecessary X. (totalt 2 st)
- The Function constructor is eval. (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)
- Unnecessary escape character: \[. (totalt 1 st)