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.62 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: 1545 ( 1.00 betyg )
- X is defined but never used. (totalt 691 st)
- X is not defined. (totalt 668 st)
- X is assigned a value but never used. (totalt 107 st)
- Unexpected console statement. (totalt 79 st)
- `content-type=".*javascript.*"` in: #66: banner.js, antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #66: banner.js, antal fel: 78 ( 1.00 betyg )
- X is defined but never used. (totalt 44 st)
- X is not defined. (totalt 27 st)
- Unexpected console statement. (totalt 7 st)
- `content-type=".*javascript.*"` in: #69: widget.min.js, antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #69: widget.min.js, antal fel: 93 ( 1.00 betyg )
- X is defined but never used. (totalt 44 st)
- X is not defined. (totalt 27 st)
- Unexpected console statement. (totalt 22 st)
- `content-type=".*javascript.*"` in: #91: slides.c0029640, antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #91: slides.c0029640, antal fel: 96 ( 1.00 betyg )
- X is defined but never used. (totalt 44 st)
- X is not defined. (totalt 30 st)
- Unexpected console statement. (totalt 22 st)
- `content-type=".*javascript.*"` in: #92: load-more.8b46f, antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #92: load-more.8b46f, antal fel: 101 ( 1.00 betyg )
- X is defined but never used. (totalt 44 st)
- X is not defined. (totalt 35 st)
- Unexpected console statement. (totalt 22 st)
- `content-type=".*javascript.*"` in: #93: posts.aec592653, antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #93: posts.aec592653, antal fel: 111 ( 1.00 betyg )
- X is not defined. (totalt 45 st)
- X is defined but never used. (totalt 44 st)
- Unexpected console statement. (totalt 22 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: 25 ( 1.00 betyg )
- `< script src="...">` in: #1: Webbsida , antal fel: 4524 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 3211 st)
- Expected X and instead saw X. (totalt 1047 st)
- Do not access Object.prototype method X from target object. (totalt 134 st)
- Unnecessary escape character: \-. (totalt 48 st)
- Unnecessary escape character: \/. (totalt 15 st)
- X is assigned to itself. (totalt 14 st)
- Comparing to itself is potentially pointless. (totalt 9 st)
- The Function constructor is eval. (totalt 7 st)
- Unexpected string concatenation of literals. (totalt 7 st)
- X is not modified in this loop. (totalt 5 st)
- Unnecessary escape character: \:. (totalt 3 st)
- Async method X has no X expression. (totalt 3 st)
- Unnecessary escape character: \+. (totalt 3 st)
- Unnecessary X. (totalt 2 st)
- Unsafe usage of ThrowStatement. (totalt 2 st)
- Unnecessary escape character: \&. (totalt 2 st)
- Unnecessary escape character: \?. (totalt 2 st)
- Unnecessary escape character: \.. (totalt 2 st)
- Async arrow function has no X expression. (totalt 2 st)
- Unnecessary escape character: \=. (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)
- eval can be harmful. (totalt 1 st)
- Unnecessary escape character: \'. (totalt 1 st)
- `content-type=".*javascript.*"` in: #66: banner.js, antal grupperade fel: 10 ( 3.00 betyg )
- `content-type=".*javascript.*"` in: #66: banner.js, antal fel: 290 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 210 st)
- Expected X and instead saw X. (totalt 62 st)
- Comparing to itself is potentially pointless. (totalt 4 st)
- The Function constructor is eval. (totalt 3 st)
- X is assigned to itself. (totalt 3 st)
- Do not access Object.prototype method X from target object. (totalt 2 st)
- X is not modified in this loop. (totalt 2 st)
- Unsafe usage of ThrowStatement. (totalt 2 st)
- Unnecessary X. (totalt 1 st)
- Unnecessary escape character: \[. (totalt 1 st)
- `content-type=".*javascript.*"` in: #69: widget.min.js, antal grupperade fel: 10 ( 3.00 betyg )
- `content-type=".*javascript.*"` in: #69: widget.min.js, antal fel: 346 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 264 st)
- Expected X and instead saw X. (totalt 64 st)
- Comparing to itself is potentially pointless. (totalt 4 st)
- The Function constructor is eval. (totalt 3 st)
- X is assigned to itself. (totalt 3 st)
- Do not access Object.prototype method X from target object. (totalt 2 st)
- X is not modified in this loop. (totalt 2 st)
- Unsafe usage of ThrowStatement. (totalt 2 st)
- Unnecessary X. (totalt 1 st)
- Unnecessary escape character: \[. (totalt 1 st)
- `content-type=".*javascript.*"` in: #91: slides.c0029640, antal grupperade fel: 10 ( 3.00 betyg )
- `content-type=".*javascript.*"` in: #91: slides.c0029640, antal fel: 356 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 274 st)
- Expected X and instead saw X. (totalt 64 st)
- Comparing to itself is potentially pointless. (totalt 4 st)
- The Function constructor is eval. (totalt 3 st)
- X is assigned to itself. (totalt 3 st)
- Do not access Object.prototype method X from target object. (totalt 2 st)
- X is not modified in this loop. (totalt 2 st)
- Unsafe usage of ThrowStatement. (totalt 2 st)
- Unnecessary X. (totalt 1 st)
- Unnecessary escape character: \[. (totalt 1 st)
- `content-type=".*javascript.*"` in: #92: load-more.8b46f, antal grupperade fel: 10 ( 3.00 betyg )
- `content-type=".*javascript.*"` in: #92: load-more.8b46f, antal fel: 370 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 288 st)
- Expected X and instead saw X. (totalt 64 st)
- Comparing to itself is potentially pointless. (totalt 4 st)
- The Function constructor is eval. (totalt 3 st)
- X is assigned to itself. (totalt 3 st)
- Do not access Object.prototype method X from target object. (totalt 2 st)
- X is not modified in this loop. (totalt 2 st)
- Unsafe usage of ThrowStatement. (totalt 2 st)
- Unnecessary X. (totalt 1 st)
- Unnecessary escape character: \[. (totalt 1 st)
- `content-type=".*javascript.*"` in: #93: posts.aec592653, antal grupperade fel: 10 ( 3.00 betyg )
- `content-type=".*javascript.*"` in: #93: posts.aec592653, antal fel: 379 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 297 st)
- Expected X and instead saw X. (totalt 64 st)
- Comparing to itself is potentially pointless. (totalt 4 st)
- The Function constructor is eval. (totalt 3 st)
- X is assigned to itself. (totalt 3 st)
- Do not access Object.prototype method X from target object. (totalt 2 st)
- X is not modified in this loop. (totalt 2 st)
- Unsafe usage of ThrowStatement. (totalt 2 st)
- Unnecessary X. (totalt 1 st)
- Unnecessary escape character: \[. (totalt 1 st)