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.40 av 5
- JS är ok.
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: 2 ( 4.60 betyg )
- `< script src="...">` in: #1: Webbsida , antal fel: 70 ( 1.00 betyg )
- X is not defined. (totalt 66 st)
- X is defined but never used. (totalt 4 st)
- `< script>` in: #11: , antal grupperade fel: 1 ( 4.80 betyg )
- `< script>` in: #11: , antal fel: 1 ( 4.80 betyg )
- Parsing error: Unexpected token : (totalt 1 st)
- `< script src="...">` in: #11: , antal grupperade fel: 2 ( 4.60 betyg )
- `< script src="...">` in: #11: , antal fel: 70 ( 1.00 betyg )
- X is not defined. (totalt 66 st)
- X is defined but never used. (totalt 4 st)
- `< script>` in: #24: 819755705, antal grupperade fel: 1 ( 4.80 betyg )
- `< script>` in: #24: 819755705, antal fel: 1 ( 4.80 betyg )
- X is not defined. (totalt 1 st)
- `content-type=".*javascript.*"` in: #10: gtm.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #10: 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 85 st)
- X is not defined. (totalt 17 st)
- Unexpected console statement. (totalt 1 st)
- `content-type=".*javascript.*"` in: #17: matomo.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #17: matomo.js, antal fel: 591 ( 1.00 betyg )
- X is defined but never used. (totalt 459 st)
- X is assigned a value but never used. (totalt 92 st)
- X is not defined. (totalt 33 st)
- Unexpected console statement. (totalt 7 st)
- `content-type=".*javascript.*"` in: #18: tiny-slider.min, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #18: tiny-slider.min, antal fel: 601 ( 1.00 betyg )
- X is defined but never used. (totalt 466 st)
- X is assigned a value but never used. (totalt 93 st)
- X is not defined. (totalt 33 st)
- Unexpected console statement. (totalt 9 st)
- `content-type=".*javascript.*"` in: #19: player-api, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #19: player-api, antal fel: 603 ( 1.00 betyg )
- X is defined but never used. (totalt 468 st)
- X is assigned a value but never used. (totalt 93 st)
- X is not defined. (totalt 33 st)
- Unexpected console statement. (totalt 9 st)
- `content-type=".*javascript.*"` in: #30: js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #30: js, antal fel: 1006 ( 1.00 betyg )
- X is defined but never used. (totalt 794 st)
- X is assigned a value but never used. (totalt 159 st)
- X is not defined. (totalt 44 st)
- Unexpected console statement. (totalt 9 st)
- `content-type=".*javascript.*"` in: #31: www-widgetapi.j, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #31: www-widgetapi.j, antal fel: 1023 ( 1.00 betyg )
- X is defined but never used. (totalt 804 st)
- X is assigned a value but never used. (totalt 159 st)
- X is not defined. (totalt 46 st)
- Unexpected console statement. (totalt 14 st)
- `content-type=".*javascript.*"` in: #32: api.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #32: api.js, antal fel: 1043 ( 1.00 betyg )
- X is defined but never used. (totalt 821 st)
- X is assigned a value but never used. (totalt 160 st)
- X is not defined. (totalt 46 st)
- Unexpected console statement. (totalt 16 st)
- `content-type=".*javascript.*"` in: #35: v1, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #35: v1, antal fel: 1217 ( 1.00 betyg )
- X is defined but never used. (totalt 830 st)
- X is not defined. (totalt 210 st)
- X is assigned a value but never used. (totalt 160 st)
- Unexpected console statement. (totalt 17 st)
- `content-type=".*javascript.*"` in: #37: v1, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #37: v1, antal fel: 1291 ( 1.00 betyg )
- X is defined but never used. (totalt 839 st)
- X is not defined. (totalt 274 st)
- X is assigned a value but never used. (totalt 160 st)
- Unexpected console statement. (totalt 18 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: 2 ( 4.60 betyg )
- `< script src="...">` in: #1: Webbsida , antal fel: 51 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 26 st)
- Expected X and instead saw X. (totalt 25 st)
- `< script>` in: #11: , antal grupperade fel: 1 ( 4.80 betyg )
- `< script>` in: #11: , antal fel: 1 ( 4.80 betyg )
- Parsing error: Unexpected token : (totalt 1 st)
- `< script src="...">` in: #11: , antal grupperade fel: 2 ( 4.60 betyg )
- `< script src="...">` in: #11: , antal fel: 51 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 26 st)
- Expected X and instead saw X. (totalt 25 st)
- `content-type=".*javascript.*"` in: #10: gtm.js, antal grupperade fel: 10 ( 3.00 betyg )
- `content-type=".*javascript.*"` in: #10: gtm.js, antal fel: 1129 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 794 st)
- Expected X and instead saw X. (totalt 201 st)
- Do not access Object.prototype method X from target object. (totalt 87 st)
- Unnecessary escape character: \/. (totalt 37 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: #17: matomo.js, antal grupperade fel: 10 ( 3.00 betyg )
- `content-type=".*javascript.*"` in: #17: matomo.js, antal fel: 1132 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 794 st)
- Expected X and instead saw X. (totalt 201 st)
- Do not access Object.prototype method X from target object. (totalt 90 st)
- Unnecessary escape character: \/. (totalt 37 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: #18: tiny-slider.min, antal grupperade fel: 10 ( 3.00 betyg )
- `content-type=".*javascript.*"` in: #18: tiny-slider.min, antal fel: 1310 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 956 st)
- Expected X and instead saw X. (totalt 217 st)
- Do not access Object.prototype method X from target object. (totalt 90 st)
- Unnecessary escape character: \/. (totalt 37 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: #19: player-api, antal grupperade fel: 10 ( 3.00 betyg )
- `content-type=".*javascript.*"` in: #19: player-api, antal fel: 1318 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 956 st)
- Expected X and instead saw X. (totalt 217 st)
- Do not access Object.prototype method X from target object. (totalt 91 st)
- Unnecessary escape character: \/. (totalt 44 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: #30: js, antal grupperade fel: 14 ( 2.20 betyg )
- `content-type=".*javascript.*"` in: #30: js, antal fel: 2937 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 2230 st)
- Expected X and instead saw X. (totalt 451 st)
- Do not access Object.prototype method X from target object. (totalt 186 st)
- Unnecessary escape character: \/. (totalt 47 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)
- Unexpected string concatenation of literals. (totalt 1 st)
- Unnecessary escape character: \}. (totalt 1 st)
- `content-type=".*javascript.*"` in: #31: www-widgetapi.j, antal grupperade fel: 14 ( 2.20 betyg )
- `content-type=".*javascript.*"` in: #31: www-widgetapi.j, antal fel: 3148 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 2330 st)
- Expected X and instead saw X. (totalt 542 st)
- Do not access Object.prototype method X from target object. (totalt 193 st)
- Unnecessary escape character: \/. (totalt 47 st)
- X is assigned to itself. (totalt 15 st)
- X is not modified in this loop. (totalt 7 st)
- Comparing to itself is potentially pointless. (totalt 6 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)
- Unexpected string concatenation of literals. (totalt 1 st)
- Unnecessary escape character: \}. (totalt 1 st)
- `content-type=".*javascript.*"` in: #32: api.js, antal grupperade fel: 15 ( 2.00 betyg )
- `content-type=".*javascript.*"` in: #32: api.js, antal fel: 3370 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 2482 st)
- Expected X and instead saw X. (totalt 604 st)
- Do not access Object.prototype method X from target object. (totalt 193 st)
- Unnecessary escape character: \/. (totalt 47 st)
- X is assigned to itself. (totalt 15 st)
- X is not modified in this loop. (totalt 8 st)
- Unsafe usage of ThrowStatement. (totalt 7 st)
- Comparing to itself is potentially pointless. (totalt 6 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)
- Unexpected string concatenation of literals. (totalt 1 st)
- Unnecessary escape character: \}. (totalt 1 st)
- `content-type=".*javascript.*"` in: #35: v1, antal grupperade fel: 15 ( 2.00 betyg )
- `content-type=".*javascript.*"` in: #35: v1, antal fel: 3538 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 2601 st)
- Expected X and instead saw X. (totalt 649 st)
- Do not access Object.prototype method X from target object. (totalt 193 st)
- Unnecessary escape character: \/. (totalt 47 st)
- X is assigned to itself. (totalt 15 st)
- Comparing to itself is potentially pointless. (totalt 9 st)
- X is not modified in this loop. (totalt 8 st)
- Unsafe usage of ThrowStatement. (totalt 7 st)
- eval can be harmful. (totalt 2 st)
- Script URL is a form of eval. (totalt 2 st)
- Unnecessary X. (totalt 1 st)
- Unnecessary escape character: \?. (totalt 1 st)
- Unnecessary escape character: \.. (totalt 1 st)
- Unexpected string concatenation of literals. (totalt 1 st)
- Unnecessary escape character: \}. (totalt 1 st)
- `content-type=".*javascript.*"` in: #37: v1, antal grupperade fel: 15 ( 2.00 betyg )
- `content-type=".*javascript.*"` in: #37: v1, antal fel: 3716 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 2740 st)
- Expected X and instead saw X. (totalt 682 st)
- Do not access Object.prototype method X from target object. (totalt 193 st)
- Unnecessary escape character: \/. (totalt 47 st)
- X is assigned to itself. (totalt 15 st)
- Comparing to itself is potentially pointless. (totalt 14 st)
- X is not modified in this loop. (totalt 8 st)
- Unsafe usage of ThrowStatement. (totalt 7 st)
- eval can be harmful. (totalt 3 st)
- Script URL is a form of eval. (totalt 2 st)
- Unnecessary X. (totalt 1 st)
- Unnecessary escape character: \?. (totalt 1 st)
- Unnecessary escape character: \.. (totalt 1 st)
- Unexpected string concatenation of literals. (totalt 1 st)
- Unnecessary escape character: \}. (totalt 1 st)