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.39 av 5
- JS är dålig.
Webbstandard
- `< script>` in: #1: Webbsida , antal grupperade fel: 2 ( 4.60 betyg )
- `< script>` in: #1: Webbsida , antal fel: 32 ( 1.00 betyg )
- X is not defined. (totalt 31 st)
- Unexpected console statement. (totalt 1 st)
- `< script src="...">` in: #1: Webbsida , antal grupperade fel: 5 ( 4.00 betyg )
- `< script src="...">` in: #1: Webbsida , antal fel: 1180 ( 1.00 betyg )
- X is not defined. (totalt 750 st)
- X is defined but never used. (totalt 321 st)
- Unexpected console statement. (totalt 93 st)
- X is assigned a value but never used. (totalt 14 st)
- Parsing error: X in strict mode (totalt 2 st)
- `< script src="...">` in: #73: hub.html, antal grupperade fel: 1 ( 4.80 betyg )
- `< script src="...">` in: #73: hub.html, antal fel: 13 ( 2.40 betyg )
- X is defined but never used. (totalt 13 st)
- `content-type=".*javascript.*"` in: #43: dfb8aaaa-bc28-4, antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #43: dfb8aaaa-bc28-4, antal fel: 42 ( 1.00 betyg )
- X is defined but never used. (totalt 28 st)
- Unexpected console statement. (totalt 11 st)
- X is not defined. (totalt 3 st)
- `content-type=".*javascript.*"` in: #56: atv-webb.js, antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #56: atv-webb.js, antal fel: 281 ( 1.00 betyg )
- X is not defined. (totalt 234 st)
- X is defined but never used. (totalt 36 st)
- Unexpected console statement. (totalt 11 st)
- `content-type=".*javascript.*"` in: #58: ReadSpeaker.Goo, antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #58: ReadSpeaker.Goo, antal fel: 314 ( 1.00 betyg )
- X is not defined. (totalt 266 st)
- X is defined but never used. (totalt 37 st)
- Unexpected console statement. (totalt 11 st)
- `content-type=".*javascript.*"` in: #60: ppms.js, antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #60: ppms.js, antal fel: 334 ( 1.00 betyg )
- X is not defined. (totalt 270 st)
- X is defined but never used. (totalt 50 st)
- Unexpected console statement. (totalt 14 st)
- `content-type=".*javascript.*"` in: #62: ReadSpeaker.Cor, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #62: ReadSpeaker.Cor, antal fel: 4044 ( 1.00 betyg )
- X is not defined. (totalt 3931 st)
- X is defined but never used. (totalt 92 st)
- Unexpected console statement. (totalt 20 st)
- X is assigned a value but never used. (totalt 1 st)
- `content-type=".*javascript.*"` in: #68: widget.a101de8f, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #68: widget.a101de8f, antal fel: 4044 ( 1.00 betyg )
- X is not defined. (totalt 3931 st)
- X is defined but never used. (totalt 92 st)
- Unexpected console statement. (totalt 20 st)
- X is assigned a value but never used. (totalt 1 st)
- `content-type=".*javascript.*"` in: #77: display-rules, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #77: display-rules, antal fel: 4044 ( 1.00 betyg )
- X is not defined. (totalt 3931 st)
- X is defined but never used. (totalt 92 st)
- Unexpected console statement. (totalt 20 st)
- X is assigned a value but never used. (totalt 1 st)
- `content-type=".*javascript.*"` in: #79: status, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #79: status, antal fel: 4044 ( 1.00 betyg )
- X is not defined. (totalt 3931 st)
- X is defined but never used. (totalt 92 st)
- Unexpected console statement. (totalt 20 st)
- X is assigned a value but never used. (totalt 1 st)
Integritet & säkerhet
- `< script>` in: #1: Webbsida , antal grupperade fel: 2 ( 4.60 betyg )
- `< script>` in: #1: Webbsida , antal fel: 26 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 16 st)
- Expected X and instead saw X. (totalt 10 st)
- `< script src="...">` in: #1: Webbsida , antal grupperade fel: 28 ( 1.00 betyg )
- `< script src="...">` in: #1: Webbsida , antal fel: 5822 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 3530 st)
- Expected X and instead saw X. (totalt 1887 st)
- Unnecessary escape character: \-. (totalt 115 st)
- Do not access Object.prototype method X from target object. (totalt 87 st)
- Unnecessary escape character: \/. (totalt 28 st)
- Unnecessary X. (totalt 27 st)
- X is not modified in this loop. (totalt 22 st)
- Unnecessary escape character: \[. (totalt 20 st)
- The Function constructor is eval. (totalt 14 st)
- Comparing to itself is potentially pointless. (totalt 13 st)
- Unexpected string concatenation of literals. (totalt 11 st)
- Async arrow function has no X expression. (totalt 9 st)
- X is assigned to itself. (totalt 8 st)
- Unnecessary escape character: \.. (totalt 8 st)
- Unnecessary escape character: \=. (totalt 6 st)
- Unsafe usage of ThrowStatement. (totalt 6 st)
- Unnecessary escape character: \). (totalt 5 st)
- Unnecessary escape character: \(. (totalt 5 st)
- Unnecessary escape character: \+. (totalt 5 st)
- eval can be harmful. (totalt 3 st)
- Unnecessary escape character: \*. (totalt 2 st)
- Unnecessary escape character: \". (totalt 2 st)
- Script URL is a form of eval. (totalt 2 st)
- Unnecessary escape character: \:. (totalt 2 st)
- Parsing error: X in strict mode (totalt 2 st)
- Unnecessary escape character: \,. (totalt 1 st)
- Unnecessary escape character: \^. (totalt 1 st)
- Unnecessary escape character: \{. (totalt 1 st)
- `< script src="...">` in: #73: hub.html, antal grupperade fel: 5 ( 4.00 betyg )
- `< script src="...">` in: #73: hub.html, antal fel: 131 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 79 st)
- Expected X and instead saw X. (totalt 47 st)
- The Function constructor is eval. (totalt 3 st)
- Do not access Object.prototype method X from target object. (totalt 1 st)
- Unsafe usage of ThrowStatement. (totalt 1 st)
- `content-type=".*javascript.*"` in: #43: dfb8aaaa-bc28-4, antal grupperade fel: 12 ( 2.60 betyg )
- `content-type=".*javascript.*"` in: #43: dfb8aaaa-bc28-4, antal fel: 946 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 586 st)
- Expected X and instead saw X. (totalt 327 st)
- Do not access Object.prototype method X from target object. (totalt 11 st)
- Unnecessary escape character: \-. (totalt 5 st)
- Unnecessary escape character: \.. (totalt 5 st)
- Unnecessary X. (totalt 4 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)
- The Function constructor is eval. (totalt 1 st)
- eval can be harmful. (totalt 1 st)
- `content-type=".*javascript.*"` in: #56: atv-webb.js, antal grupperade fel: 13 ( 2.40 betyg )
- `content-type=".*javascript.*"` in: #56: atv-webb.js, antal fel: 1014 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 586 st)
- Expected X and instead saw X. (totalt 394 st)
- Do not access Object.prototype method X from target object. (totalt 11 st)
- Unnecessary escape character: \-. (totalt 5 st)
- Unnecessary escape character: \.. (totalt 5 st)
- Unnecessary X. (totalt 4 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)
- The Function constructor is eval. (totalt 1 st)
- eval can be harmful. (totalt 1 st)
- Unnecessary escape character: \e. (totalt 1 st)
- `content-type=".*javascript.*"` in: #58: ReadSpeaker.Goo, antal grupperade fel: 13 ( 2.40 betyg )
- `content-type=".*javascript.*"` in: #58: ReadSpeaker.Goo, antal fel: 1024 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 595 st)
- Expected X and instead saw X. (totalt 394 st)
- Do not access Object.prototype method X from target object. (totalt 12 st)
- Unnecessary escape character: \-. (totalt 5 st)
- Unnecessary escape character: \.. (totalt 5 st)
- Unnecessary X. (totalt 4 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)
- The Function constructor is eval. (totalt 1 st)
- eval can be harmful. (totalt 1 st)
- Unnecessary escape character: \e. (totalt 1 st)
- `content-type=".*javascript.*"` in: #60: ppms.js, antal grupperade fel: 13 ( 2.40 betyg )
- `content-type=".*javascript.*"` in: #60: ppms.js, antal fel: 1290 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 857 st)
- Expected X and instead saw X. (totalt 397 st)
- Do not access Object.prototype method X from target object. (totalt 12 st)
- Unnecessary escape character: \-. (totalt 5 st)
- Unnecessary escape character: \.. (totalt 5 st)
- Unnecessary X. (totalt 4 st)
- Unnecessary escape character: \/. (totalt 2 st)
- Unnecessary escape character: \). (totalt 2 st)
- eval can be harmful. (totalt 2 st)
- Unnecessary escape character: \:. (totalt 1 st)
- Unnecessary escape character: \*. (totalt 1 st)
- The Function constructor is eval. (totalt 1 st)
- Unnecessary escape character: \e. (totalt 1 st)
- `content-type=".*javascript.*"` in: #62: ReadSpeaker.Cor, antal grupperade fel: 20 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #62: ReadSpeaker.Cor, antal fel: 2232 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1644 st)
- Expected X and instead saw X. (totalt 487 st)
- Do not access Object.prototype method X from target object. (totalt 57 st)
- Unnecessary X. (totalt 12 st)
- Unnecessary escape character: \.. (totalt 6 st)
- Unnecessary escape character: \-. (totalt 5 st)
- Unnecessary escape character: \/. (totalt 4 st)
- Unnecessary escape character: \:. (totalt 2 st)
- Unnecessary escape character: \). (totalt 2 st)
- eval can be harmful. (totalt 2 st)
- X is assigned to itself. (totalt 2 st)
- Unnecessary escape character: \*. (totalt 1 st)
- The Function constructor is eval. (totalt 1 st)
- Unnecessary escape character: \e. (totalt 1 st)
- Unexpected string concatenation of literals. (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)
- Script URL is a form of eval. (totalt 1 st)
- `content-type=".*javascript.*"` in: #68: widget.a101de8f, antal grupperade fel: 20 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #68: widget.a101de8f, antal fel: 2232 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1644 st)
- Expected X and instead saw X. (totalt 487 st)
- Do not access Object.prototype method X from target object. (totalt 57 st)
- Unnecessary X. (totalt 12 st)
- Unnecessary escape character: \.. (totalt 6 st)
- Unnecessary escape character: \-. (totalt 5 st)
- Unnecessary escape character: \/. (totalt 4 st)
- Unnecessary escape character: \:. (totalt 2 st)
- Unnecessary escape character: \). (totalt 2 st)
- eval can be harmful. (totalt 2 st)
- X is assigned to itself. (totalt 2 st)
- Unnecessary escape character: \*. (totalt 1 st)
- The Function constructor is eval. (totalt 1 st)
- Unnecessary escape character: \e. (totalt 1 st)
- Unexpected string concatenation of literals. (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)
- Script URL is a form of eval. (totalt 1 st)
- `content-type=".*javascript.*"` in: #77: display-rules, antal grupperade fel: 20 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #77: display-rules, antal fel: 2232 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1644 st)
- Expected X and instead saw X. (totalt 487 st)
- Do not access Object.prototype method X from target object. (totalt 57 st)
- Unnecessary X. (totalt 12 st)
- Unnecessary escape character: \.. (totalt 6 st)
- Unnecessary escape character: \-. (totalt 5 st)
- Unnecessary escape character: \/. (totalt 4 st)
- Unnecessary escape character: \:. (totalt 2 st)
- Unnecessary escape character: \). (totalt 2 st)
- eval can be harmful. (totalt 2 st)
- X is assigned to itself. (totalt 2 st)
- Unnecessary escape character: \*. (totalt 1 st)
- The Function constructor is eval. (totalt 1 st)
- Unnecessary escape character: \e. (totalt 1 st)
- Unexpected string concatenation of literals. (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)
- Script URL is a form of eval. (totalt 1 st)
- `content-type=".*javascript.*"` in: #79: status, antal grupperade fel: 20 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #79: status, antal fel: 2232 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1644 st)
- Expected X and instead saw X. (totalt 487 st)
- Do not access Object.prototype method X from target object. (totalt 57 st)
- Unnecessary X. (totalt 12 st)
- Unnecessary escape character: \.. (totalt 6 st)
- Unnecessary escape character: \-. (totalt 5 st)
- Unnecessary escape character: \/. (totalt 4 st)
- Unnecessary escape character: \:. (totalt 2 st)
- Unnecessary escape character: \). (totalt 2 st)
- eval can be harmful. (totalt 2 st)
- X is assigned to itself. (totalt 2 st)
- Unnecessary escape character: \*. (totalt 1 st)
- The Function constructor is eval. (totalt 1 st)
- Unnecessary escape character: \e. (totalt 1 st)
- Unexpected string concatenation of literals. (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)
- Script URL is a form of eval. (totalt 1 st)