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.96 av 5
- JS är dålig.
Webbstandard
- `< script>` in: #1: Webbsida , antal grupperade fel: 2 ( 4.60 betyg )
- `< script>` in: #1: Webbsida , antal fel: 4 ( 4.20 betyg )
- X is defined but never used. (totalt 2 st)
- X is not defined. (totalt 2 st)
- `< script src="...">` in: #1: Webbsida , antal grupperade fel: 4 ( 4.20 betyg )
- `< script src="...">` in: #1: Webbsida , antal fel: 1801 ( 1.00 betyg )
- X is not defined. (totalt 1685 st)
- X is defined but never used. (totalt 82 st)
- X is assigned a value but never used. (totalt 20 st)
- Unexpected console statement. (totalt 14 st)
- `< script>` in: #49: , antal grupperade fel: 2 ( 4.60 betyg )
- `< script>` in: #49: , antal fel: 4 ( 4.20 betyg )
- X is defined but never used. (totalt 2 st)
- X is not defined. (totalt 2 st)
- `< script src="...">` in: #49: , antal grupperade fel: 4 ( 4.20 betyg )
- `< script src="...">` in: #49: , antal fel: 1801 ( 1.00 betyg )
- X is not defined. (totalt 1685 st)
- X is defined but never used. (totalt 82 st)
- X is assigned a value but never used. (totalt 20 st)
- Unexpected console statement. (totalt 14 st)
- `< script>` in: #50: , antal grupperade fel: 2 ( 4.60 betyg )
- `< script>` in: #50: , antal fel: 4 ( 4.20 betyg )
- X is defined but never used. (totalt 2 st)
- X is not defined. (totalt 2 st)
- `< script src="...">` in: #50: , antal grupperade fel: 4 ( 4.20 betyg )
- `< script src="...">` in: #50: , antal fel: 1801 ( 1.00 betyg )
- X is not defined. (totalt 1685 st)
- X is defined but never used. (totalt 82 st)
- X is assigned a value but never used. (totalt 20 st)
- Unexpected console statement. (totalt 14 st)
- `< script>` in: #51: , antal grupperade fel: 2 ( 4.60 betyg )
- `< script>` in: #51: , antal fel: 4 ( 4.20 betyg )
- X is defined but never used. (totalt 2 st)
- X is not defined. (totalt 2 st)
- `< script src="...">` in: #51: , antal grupperade fel: 4 ( 4.20 betyg )
- `< script src="...">` in: #51: , antal fel: 1801 ( 1.00 betyg )
- X is not defined. (totalt 1685 st)
- X is defined but never used. (totalt 82 st)
- X is assigned a value but never used. (totalt 20 st)
- Unexpected console statement. (totalt 14 st)
- `content-type=".*javascript.*"` in: #36: ai.0.js, antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #36: ai.0.js, antal fel: 27 ( 1.00 betyg )
- X is defined but never used. (totalt 22 st)
- Unexpected console statement. (totalt 4 st)
- X is not defined. (totalt 1 st)
- `content-type=".*javascript.*"` in: #47: web-surveys.js, antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #47: web-surveys.js, antal fel: 27 ( 1.00 betyg )
- X is defined but never used. (totalt 22 st)
- Unexpected console statement. (totalt 4 st)
- X is not defined. (totalt 1 st)
- `content-type=".*javascript.*"` in: #54: widget-core-27., antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #54: widget-core-27., antal fel: 69 ( 1.00 betyg )
- Unexpected console statement. (totalt 37 st)
- X is defined but never used. (totalt 31 st)
- X is not defined. (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 )
- Expected an assignment or function call and instead saw an expression. (totalt 1 st)
- `< script src="...">` in: #1: Webbsida , antal grupperade fel: 21 ( 1.00 betyg )
- `< script src="...">` in: #1: Webbsida , antal fel: 2262 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1283 st)
- Expected X and instead saw X. (totalt 781 st)
- Unnecessary escape character: \/. (totalt 66 st)
- Do not access Object.prototype method X from target object. (totalt 28 st)
- Comparing to itself is potentially pointless. (totalt 24 st)
- Unnecessary escape character: \-. (totalt 21 st)
- Unnecessary X. (totalt 14 st)
- Unexpected string concatenation of literals. (totalt 11 st)
- Unnecessary escape character: \%. (totalt 6 st)
- Unnecessary escape character: \.. (totalt 5 st)
- The Function constructor is eval. (totalt 4 st)
- X is not modified in this loop. (totalt 4 st)
- Unnecessary escape character: \[. (totalt 4 st)
- Unnecessary escape character: \^. (totalt 3 st)
- eval can be harmful. (totalt 2 st)
- X is assigned to itself. (totalt 1 st)
- Script URL is a form of eval. (totalt 1 st)
- Unsafe usage of ThrowStatement. (totalt 1 st)
- Unnecessary escape character: \=. (totalt 1 st)
- Unnecessary escape character: \+. (totalt 1 st)
- Unnecessary escape character: \&. (totalt 1 st)
- `< script>` in: #49: , antal grupperade fel: 1 ( 4.80 betyg )
- `< script>` in: #49: , antal fel: 1 ( 4.80 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1 st)
- `< script src="...">` in: #49: , antal grupperade fel: 21 ( 1.00 betyg )
- `< script src="...">` in: #49: , antal fel: 2262 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1283 st)
- Expected X and instead saw X. (totalt 781 st)
- Unnecessary escape character: \/. (totalt 66 st)
- Do not access Object.prototype method X from target object. (totalt 28 st)
- Comparing to itself is potentially pointless. (totalt 24 st)
- Unnecessary escape character: \-. (totalt 21 st)
- Unnecessary X. (totalt 14 st)
- Unexpected string concatenation of literals. (totalt 11 st)
- Unnecessary escape character: \%. (totalt 6 st)
- Unnecessary escape character: \.. (totalt 5 st)
- The Function constructor is eval. (totalt 4 st)
- X is not modified in this loop. (totalt 4 st)
- Unnecessary escape character: \[. (totalt 4 st)
- Unnecessary escape character: \^. (totalt 3 st)
- eval can be harmful. (totalt 2 st)
- X is assigned to itself. (totalt 1 st)
- Script URL is a form of eval. (totalt 1 st)
- Unsafe usage of ThrowStatement. (totalt 1 st)
- Unnecessary escape character: \=. (totalt 1 st)
- Unnecessary escape character: \+. (totalt 1 st)
- Unnecessary escape character: \&. (totalt 1 st)
- `< script>` in: #50: , antal grupperade fel: 1 ( 4.80 betyg )
- `< script>` in: #50: , antal fel: 1 ( 4.80 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1 st)
- `< script src="...">` in: #50: , antal grupperade fel: 21 ( 1.00 betyg )
- `< script src="...">` in: #50: , antal fel: 2262 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1283 st)
- Expected X and instead saw X. (totalt 781 st)
- Unnecessary escape character: \/. (totalt 66 st)
- Do not access Object.prototype method X from target object. (totalt 28 st)
- Comparing to itself is potentially pointless. (totalt 24 st)
- Unnecessary escape character: \-. (totalt 21 st)
- Unnecessary X. (totalt 14 st)
- Unexpected string concatenation of literals. (totalt 11 st)
- Unnecessary escape character: \%. (totalt 6 st)
- Unnecessary escape character: \.. (totalt 5 st)
- The Function constructor is eval. (totalt 4 st)
- X is not modified in this loop. (totalt 4 st)
- Unnecessary escape character: \[. (totalt 4 st)
- Unnecessary escape character: \^. (totalt 3 st)
- eval can be harmful. (totalt 2 st)
- X is assigned to itself. (totalt 1 st)
- Script URL is a form of eval. (totalt 1 st)
- Unsafe usage of ThrowStatement. (totalt 1 st)
- Unnecessary escape character: \=. (totalt 1 st)
- Unnecessary escape character: \+. (totalt 1 st)
- Unnecessary escape character: \&. (totalt 1 st)
- `< script>` in: #51: , antal grupperade fel: 1 ( 4.80 betyg )
- `< script>` in: #51: , antal fel: 1 ( 4.80 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1 st)
- `< script src="...">` in: #51: , antal grupperade fel: 21 ( 1.00 betyg )
- `< script src="...">` in: #51: , antal fel: 2262 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1283 st)
- Expected X and instead saw X. (totalt 781 st)
- Unnecessary escape character: \/. (totalt 66 st)
- Do not access Object.prototype method X from target object. (totalt 28 st)
- Comparing to itself is potentially pointless. (totalt 24 st)
- Unnecessary escape character: \-. (totalt 21 st)
- Unnecessary X. (totalt 14 st)
- Unexpected string concatenation of literals. (totalt 11 st)
- Unnecessary escape character: \%. (totalt 6 st)
- Unnecessary escape character: \.. (totalt 5 st)
- The Function constructor is eval. (totalt 4 st)
- X is not modified in this loop. (totalt 4 st)
- Unnecessary escape character: \[. (totalt 4 st)
- Unnecessary escape character: \^. (totalt 3 st)
- eval can be harmful. (totalt 2 st)
- X is assigned to itself. (totalt 1 st)
- Script URL is a form of eval. (totalt 1 st)
- Unsafe usage of ThrowStatement. (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: #36: ai.0.js, antal grupperade fel: 8 ( 3.40 betyg )
- `content-type=".*javascript.*"` in: #36: ai.0.js, antal fel: 319 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 221 st)
- Expected X and instead saw X. (totalt 91 st)
- Unnecessary escape character: \@. (totalt 2 st)
- Do not access Object.prototype method X from target object. (totalt 1 st)
- Unnecessary escape character: \". (totalt 1 st)
- Script URL is a form of eval. (totalt 1 st)
- Unnecessary escape character: \(. (totalt 1 st)
- Unnecessary X. (totalt 1 st)
- `content-type=".*javascript.*"` in: #47: web-surveys.js, antal grupperade fel: 10 ( 3.00 betyg )
- `content-type=".*javascript.*"` in: #47: web-surveys.js, antal fel: 324 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 221 st)
- Expected X and instead saw X. (totalt 93 st)
- Unnecessary escape character: \@. (totalt 2 st)
- Unnecessary escape character: \/. (totalt 2 st)
- Do not access Object.prototype method X from target object. (totalt 1 st)
- Unnecessary escape character: \". (totalt 1 st)
- Script URL is a form of eval. (totalt 1 st)
- Unnecessary escape character: \(. (totalt 1 st)
- Unnecessary X. (totalt 1 st)
- Unnecessary escape character: \:. (totalt 1 st)
- `content-type=".*javascript.*"` in: #54: widget-core-27., antal grupperade fel: 13 ( 2.40 betyg )
- `content-type=".*javascript.*"` in: #54: widget-core-27., antal fel: 1813 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1087 st)
- Expected X and instead saw X. (totalt 663 st)
- Unnecessary escape character: \-. (totalt 46 st)
- Unnecessary escape character: \[. (totalt 3 st)
- Unnecessary escape character: \@. (totalt 2 st)
- Unnecessary X. (totalt 2 st)
- Unnecessary escape character: \/. (totalt 2 st)
- Unnecessary escape character: \:. (totalt 2 st)
- Comparing to itself is potentially pointless. (totalt 2 st)
- Do not access Object.prototype method X from target object. (totalt 1 st)
- Unnecessary escape character: \". (totalt 1 st)
- Script URL is a form of eval. (totalt 1 st)
- Unnecessary escape character: \(. (totalt 1 st)