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.53 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: 4 ( 4.20 betyg )
- `< script src="...">` in: #1: Webbsida , antal fel: 397 ( 1.00 betyg )
- X is not defined. (totalt 206 st)
- X is defined but never used. (totalt 137 st)
- X is assigned a value but never used. (totalt 43 st)
- Unexpected console statement. (totalt 11 st)
- `content-type=".*javascript.*"` in: #30: gtm.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #30: gtm.js, antal fel: 556 ( 1.00 betyg )
- X is defined but never used. (totalt 449 st)
- X is assigned a value but never used. (totalt 85 st)
- X is not defined. (totalt 21 st)
- Unexpected console statement. (totalt 1 st)
- `content-type=".*javascript.*"` in: #43: default.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #43: default.js, antal fel: 558 ( 1.00 betyg )
- X is defined but never used. (totalt 449 st)
- X is assigned a value but never used. (totalt 85 st)
- X is not defined. (totalt 23 st)
- Unexpected console statement. (totalt 1 st)
- `content-type=".*javascript.*"` in: #46: config.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #46: config.js, antal fel: 564 ( 1.00 betyg )
- X is defined but never used. (totalt 449 st)
- X is assigned a value but never used. (totalt 85 st)
- X is not defined. (totalt 29 st)
- Unexpected console statement. (totalt 1 st)
- `content-type=".*javascript.*"` in: #47: config.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #47: config.js, antal fel: 581 ( 1.00 betyg )
- X is defined but never used. (totalt 449 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: #48: tex2jax.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #48: tex2jax.js, antal fel: 597 ( 1.00 betyg )
- X is defined but never used. (totalt 450 st)
- X is assigned a value but never used. (totalt 85 st)
- X is not defined. (totalt 61 st)
- Unexpected console statement. (totalt 1 st)
- `content-type=".*javascript.*"` in: #50: MathMenu.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #50: MathMenu.js, antal fel: 674 ( 1.00 betyg )
- X is defined but never used. (totalt 483 st)
- X is not defined. (totalt 105 st)
- X is assigned a value but never used. (totalt 85 st)
- Unexpected console statement. (totalt 1 st)
- `content-type=".*javascript.*"` in: #53: MathZoom.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #53: MathZoom.js, antal fel: 693 ( 1.00 betyg )
- X is defined but never used. (totalt 486 st)
- X is not defined. (totalt 121 st)
- X is assigned a value but never used. (totalt 85 st)
- Unexpected console statement. (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: 21 ( 1.00 betyg )
- `< script src="...">` in: #1: Webbsida , antal fel: 1804 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 998 st)
- Unnecessary escape character: \/. (totalt 429 st)
- Expected X and instead saw X. (totalt 313 st)
- Do not access Object.prototype method X from target object. (totalt 39 st)
- Unnecessary X. (totalt 4 st)
- Unnecessary escape character: \}. (totalt 3 st)
- Unnecessary escape character: \.. (totalt 2 st)
- X is not modified in this loop. (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)
- The Function constructor is eval. (totalt 1 st)
- Comparing to itself is potentially pointless. (totalt 1 st)
- X is assigned to itself. (totalt 1 st)
- Unnecessary escape character: \[. (totalt 1 st)
- eval can be harmful. (totalt 1 st)
- Unnecessary escape character: \%. (totalt 1 st)
- Unnecessary escape character: \&. (totalt 1 st)
- `content-type=".*javascript.*"` in: #30: gtm.js, antal grupperade fel: 9 ( 3.20 betyg )
- `content-type=".*javascript.*"` in: #30: gtm.js, antal fel: 1077 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 779 st)
- Expected X and instead saw X. (totalt 199 st)
- Do not access Object.prototype method X from target object. (totalt 85 st)
- Unnecessary escape character: \/. (totalt 5 st)
- X is not modified in this loop. (totalt 3 st)
- X is assigned to itself. (totalt 3 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: #43: default.js, antal grupperade fel: 9 ( 3.20 betyg )
- `content-type=".*javascript.*"` in: #43: default.js, antal fel: 1077 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 779 st)
- Expected X and instead saw X. (totalt 199 st)
- Do not access Object.prototype method X from target object. (totalt 85 st)
- Unnecessary escape character: \/. (totalt 5 st)
- X is not modified in this loop. (totalt 3 st)
- X is assigned to itself. (totalt 3 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: #46: config.js, antal grupperade fel: 9 ( 3.20 betyg )
- `content-type=".*javascript.*"` in: #46: config.js, antal fel: 1077 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 779 st)
- Expected X and instead saw X. (totalt 199 st)
- Do not access Object.prototype method X from target object. (totalt 85 st)
- Unnecessary escape character: \/. (totalt 5 st)
- X is not modified in this loop. (totalt 3 st)
- X is assigned to itself. (totalt 3 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: #47: config.js, antal grupperade fel: 9 ( 3.20 betyg )
- `content-type=".*javascript.*"` in: #47: config.js, antal fel: 1077 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 779 st)
- Expected X and instead saw X. (totalt 199 st)
- Do not access Object.prototype method X from target object. (totalt 85 st)
- Unnecessary escape character: \/. (totalt 5 st)
- X is not modified in this loop. (totalt 3 st)
- X is assigned to itself. (totalt 3 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: #48: tex2jax.js, antal grupperade fel: 11 ( 2.80 betyg )
- `content-type=".*javascript.*"` in: #48: tex2jax.js, antal fel: 1086 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 779 st)
- Expected X and instead saw X. (totalt 206 st)
- Do not access Object.prototype method X from target object. (totalt 85 st)
- Unnecessary escape character: \/. (totalt 5 st)
- X is not modified in this loop. (totalt 3 st)
- X is assigned to itself. (totalt 3 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)
- Unnecessary escape character: \[. (totalt 1 st)
- Unnecessary escape character: \:. (totalt 1 st)
- `content-type=".*javascript.*"` in: #50: MathMenu.js, antal grupperade fel: 11 ( 2.80 betyg )
- `content-type=".*javascript.*"` in: #50: MathMenu.js, antal fel: 1099 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 782 st)
- Expected X and instead saw X. (totalt 211 st)
- Do not access Object.prototype method X from target object. (totalt 89 st)
- Unnecessary escape character: \/. (totalt 5 st)
- X is not modified in this loop. (totalt 3 st)
- X is assigned to itself. (totalt 3 st)
- Unnecessary X. (totalt 2 st)
- Comparing to itself is potentially pointless. (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)
- `content-type=".*javascript.*"` in: #53: MathZoom.js, antal grupperade fel: 11 ( 2.80 betyg )
- `content-type=".*javascript.*"` in: #53: MathZoom.js, antal fel: 1099 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 782 st)
- Expected X and instead saw X. (totalt 211 st)
- Do not access Object.prototype method X from target object. (totalt 89 st)
- Unnecessary escape character: \/. (totalt 5 st)
- X is not modified in this loop. (totalt 3 st)
- X is assigned to itself. (totalt 3 st)
- Unnecessary X. (totalt 2 st)
- Comparing to itself is potentially pointless. (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)