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.74 av 5
- JS är dålig.
Webbstandard
- `< script>` in: #1: encore, antal grupperade fel: 1 ( 4.80 betyg )
- `< script>` in: #1: encore, antal fel: 1 ( 4.80 betyg )
- Parsing error: Unexpected token < (totalt 1 st)
- `< script src="...">` in: #1: encore, antal grupperade fel: 6 ( 3.80 betyg )
- `< script src="...">` in: #1: encore, antal fel: 131 ( 1.00 betyg )
- X is not defined. (totalt 112 st)
- X is defined but never used. (totalt 13 st)
- Unexpected console statement. (totalt 3 st)
- Parsing error: X in strict mode (totalt 1 st)
- Parsing error: Deleting local variable in strict mode (totalt 1 st)
- X is assigned a value but never used. (totalt 1 st)
- `content-type=".*javascript.*"` in: #3: jquery-3.6.0.mi, antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #3: jquery-3.6.0.mi, antal fel: 14 ( 2.20 betyg )
- X is defined but never used. (totalt 10 st)
- X is not defined. (totalt 3 st)
- X is assigned a value but never used. (totalt 1 st)
- `content-type=".*javascript.*"` in: #4: adrum.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #4: adrum.js, antal fel: 28 ( 1.00 betyg )
- X is defined but never used. (totalt 19 st)
- X is not defined. (totalt 5 st)
- X is assigned a value but never used. (totalt 2 st)
- Unexpected console statement. (totalt 2 st)
- `content-type=".*javascript.*"` in: #5: googleMaps.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #5: googleMaps.js, antal fel: 38 ( 1.00 betyg )
- X is defined but never used. (totalt 19 st)
- X is not defined. (totalt 14 st)
- X is assigned a value but never used. (totalt 3 st)
- Unexpected console statement. (totalt 2 st)
- `content-type=".*javascript.*"` in: #6: ToggleWidget.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #6: ToggleWidget.js, antal fel: 42 ( 1.00 betyg )
- X is defined but never used. (totalt 19 st)
- X is not defined. (totalt 18 st)
- X is assigned a value but never used. (totalt 3 st)
- Unexpected console statement. (totalt 2 st)
- `content-type=".*javascript.*"` in: #7: encore-deploy-4, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #7: encore-deploy-4, antal fel: 687 ( 1.00 betyg )
- X is not defined. (totalt 578 st)
- X is defined but never used. (totalt 94 st)
- X is assigned a value but never used. (totalt 11 st)
- Unexpected console statement. (totalt 4 st)
- `content-type=".*javascript.*"` in: #8: toggle.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #8: toggle.js, antal fel: 720 ( 1.00 betyg )
- X is not defined. (totalt 606 st)
- X is defined but never used. (totalt 94 st)
- X is assigned a value but never used. (totalt 16 st)
- Unexpected console statement. (totalt 4 st)
- `content-type=".*javascript.*"` in: #18: encore-sv.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #18: encore-sv.js, antal fel: 741 ( 1.00 betyg )
- X is not defined. (totalt 627 st)
- X is defined but never used. (totalt 94 st)
- X is assigned a value but never used. (totalt 16 st)
- Unexpected console statement. (totalt 4 st)
- `content-type=".*javascript.*"` in: #19: scroll.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #19: scroll.js, antal fel: 754 ( 1.00 betyg )
- X is not defined. (totalt 640 st)
- X is defined but never used. (totalt 94 st)
- X is assigned a value but never used. (totalt 16 st)
- Unexpected console statement. (totalt 4 st)
- `content-type=".*javascript.*"` in: #20: -core.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #20: -core.js, antal fel: 761 ( 1.00 betyg )
- X is not defined. (totalt 647 st)
- X is defined but never used. (totalt 94 st)
- X is assigned a value but never used. (totalt 16 st)
- Unexpected console statement. (totalt 4 st)
- `content-type=".*javascript.*"` in: #21: namespace.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #21: namespace.js, antal fel: 763 ( 1.00 betyg )
- X is not defined. (totalt 648 st)
- X is defined but never used. (totalt 95 st)
- X is assigned a value but never used. (totalt 16 st)
- Unexpected console statement. (totalt 4 st)
- `content-type=".*javascript.*"` in: #25: dialog.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #25: dialog.js, antal fel: 859 ( 1.00 betyg )
- X is not defined. (totalt 742 st)
- X is defined but never used. (totalt 96 st)
- X is assigned a value but never used. (totalt 17 st)
- Unexpected console statement. (totalt 4 st)
- `content-type=".*javascript.*"` in: #28: adrum-ext.f1371, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #28: adrum-ext.f1371, antal fel: 872 ( 1.00 betyg )
- X is not defined. (totalt 742 st)
- X is defined but never used. (totalt 105 st)
- X is assigned a value but never used. (totalt 17 st)
- Unexpected console statement. (totalt 8 st)
Integritet & säkerhet
- `< script>` in: #1: encore, antal grupperade fel: 1 ( 4.80 betyg )
- `< script>` in: #1: encore, antal fel: 1 ( 4.80 betyg )
- Parsing error: Unexpected token < (totalt 1 st)
- `< script src="...">` in: #1: encore, antal grupperade fel: 6 ( 3.80 betyg )
- `< script src="...">` in: #1: encore, antal fel: 69 ( 1.00 betyg )
- Expected X and instead saw X. (totalt 63 st)
- Unnecessary escape character: \/. (totalt 2 st)
- Parsing error: X in strict mode (totalt 1 st)
- Parsing error: Deleting local variable in strict mode (totalt 1 st)
- Do not access Object.prototype method X from target object. (totalt 1 st)
- eval can be harmful. (totalt 1 st)
- `content-type=".*javascript.*"` in: #3: jquery-3.6.0.mi, antal grupperade fel: 7 ( 3.60 betyg )
- `content-type=".*javascript.*"` in: #3: jquery-3.6.0.mi, antal fel: 380 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 216 st)
- Expected X and instead saw X. (totalt 158 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: #4: adrum.js, antal grupperade fel: 7 ( 3.60 betyg )
- `content-type=".*javascript.*"` in: #4: adrum.js, antal fel: 481 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 291 st)
- Expected X and instead saw X. (totalt 174 st)
- Do not access Object.prototype method X from target object. (totalt 10 st)
- Unnecessary escape character: \/. (totalt 2 st)
- X is assigned to itself. (totalt 2 st)
- Unnecessary X. (totalt 1 st)
- Comparing to itself is potentially pointless. (totalt 1 st)
- `content-type=".*javascript.*"` in: #5: googleMaps.js, antal grupperade fel: 8 ( 3.40 betyg )
- `content-type=".*javascript.*"` in: #5: googleMaps.js, antal fel: 482 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 291 st)
- Expected X and instead saw X. (totalt 174 st)
- Do not access Object.prototype method X from target object. (totalt 10 st)
- Unnecessary escape character: \/. (totalt 2 st)
- X is assigned to itself. (totalt 2 st)
- Unnecessary X. (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: #6: ToggleWidget.js, antal grupperade fel: 8 ( 3.40 betyg )
- `content-type=".*javascript.*"` in: #6: ToggleWidget.js, antal fel: 497 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 291 st)
- Expected X and instead saw X. (totalt 189 st)
- Do not access Object.prototype method X from target object. (totalt 10 st)
- Unnecessary escape character: \/. (totalt 2 st)
- X is assigned to itself. (totalt 2 st)
- Unnecessary X. (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: #7: encore-deploy-4, antal grupperade fel: 9 ( 3.20 betyg )
- `content-type=".*javascript.*"` in: #7: encore-deploy-4, antal fel: 594 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 293 st)
- Expected X and instead saw X. (totalt 280 st)
- Do not access Object.prototype method X from target object. (totalt 11 st)
- Implied eval. Consider passing a function instead of a string. (totalt 3 st)
- Unnecessary escape character: \/. (totalt 2 st)
- X is assigned to itself. (totalt 2 st)
- Unnecessary X. (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: #8: toggle.js, antal grupperade fel: 9 ( 3.20 betyg )
- `content-type=".*javascript.*"` in: #8: toggle.js, antal fel: 596 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 293 st)
- Expected X and instead saw X. (totalt 282 st)
- Do not access Object.prototype method X from target object. (totalt 11 st)
- Implied eval. Consider passing a function instead of a string. (totalt 3 st)
- Unnecessary escape character: \/. (totalt 2 st)
- X is assigned to itself. (totalt 2 st)
- Unnecessary X. (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: #18: encore-sv.js, antal grupperade fel: 9 ( 3.20 betyg )
- `content-type=".*javascript.*"` in: #18: encore-sv.js, antal fel: 596 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 293 st)
- Expected X and instead saw X. (totalt 282 st)
- Do not access Object.prototype method X from target object. (totalt 11 st)
- Implied eval. Consider passing a function instead of a string. (totalt 3 st)
- Unnecessary escape character: \/. (totalt 2 st)
- X is assigned to itself. (totalt 2 st)
- Unnecessary X. (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: scroll.js, antal grupperade fel: 9 ( 3.20 betyg )
- `content-type=".*javascript.*"` in: #19: scroll.js, antal fel: 596 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 293 st)
- Expected X and instead saw X. (totalt 282 st)
- Do not access Object.prototype method X from target object. (totalt 11 st)
- Implied eval. Consider passing a function instead of a string. (totalt 3 st)
- Unnecessary escape character: \/. (totalt 2 st)
- X is assigned to itself. (totalt 2 st)
- Unnecessary X. (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: #20: -core.js, antal grupperade fel: 9 ( 3.20 betyg )
- `content-type=".*javascript.*"` in: #20: -core.js, antal fel: 596 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 293 st)
- Expected X and instead saw X. (totalt 282 st)
- Do not access Object.prototype method X from target object. (totalt 11 st)
- Implied eval. Consider passing a function instead of a string. (totalt 3 st)
- Unnecessary escape character: \/. (totalt 2 st)
- X is assigned to itself. (totalt 2 st)
- Unnecessary X. (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: namespace.js, antal grupperade fel: 9 ( 3.20 betyg )
- `content-type=".*javascript.*"` in: #21: namespace.js, antal fel: 596 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 293 st)
- Expected X and instead saw X. (totalt 282 st)
- Do not access Object.prototype method X from target object. (totalt 11 st)
- Implied eval. Consider passing a function instead of a string. (totalt 3 st)
- Unnecessary escape character: \/. (totalt 2 st)
- X is assigned to itself. (totalt 2 st)
- Unnecessary X. (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: #25: dialog.js, antal grupperade fel: 9 ( 3.20 betyg )
- `content-type=".*javascript.*"` in: #25: dialog.js, antal fel: 606 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 294 st)
- Expected X and instead saw X. (totalt 291 st)
- Do not access Object.prototype method X from target object. (totalt 11 st)
- Implied eval. Consider passing a function instead of a string. (totalt 3 st)
- Unnecessary escape character: \/. (totalt 2 st)
- X is assigned to itself. (totalt 2 st)
- Unnecessary X. (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: #28: adrum-ext.f1371, antal grupperade fel: 9 ( 3.20 betyg )
- `content-type=".*javascript.*"` in: #28: adrum-ext.f1371, antal fel: 788 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 420 st)
- Expected X and instead saw X. (totalt 337 st)
- Do not access Object.prototype method X from target object. (totalt 16 st)
- Unnecessary escape character: \/. (totalt 6 st)
- Implied eval. Consider passing a function instead of a string. (totalt 3 st)
- Unnecessary X. (totalt 2 st)
- X is assigned to itself. (totalt 2 st)
- Comparing to itself is potentially pointless. (totalt 1 st)
- Script URL is a form of eval. (totalt 1 st)