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.98 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: 625 ( 1.00 betyg )
- X is defined but never used. (totalt 433 st)
- X is not defined. (totalt 181 st)
- Unexpected console statement. (totalt 9 st)
- Parsing error: X in strict mode (totalt 2 st)
- `< script>` in: #39: cf-bc-handler.h, antal grupperade fel: 1 ( 4.80 betyg )
- `< script>` in: #39: cf-bc-handler.h, antal fel: 4 ( 4.20 betyg )
- X is defined but never used. (totalt 4 st)
- `< script src="...">` in: #39: cf-bc-handler.h, antal grupperade fel: 2 ( 4.60 betyg )
- `< script src="...">` in: #39: cf-bc-handler.h, antal fel: 46 ( 1.00 betyg )
- X is not defined. (totalt 25 st)
- X is defined but never used. (totalt 21 st)
- `content-type=".*javascript.*"` in: #32: banner.no-autob, antal grupperade fel: 2 ( 4.60 betyg )
- `content-type=".*javascript.*"` in: #32: banner.no-autob, antal fel: 22 ( 1.00 betyg )
- X is defined but never used. (totalt 13 st)
- Unexpected console statement. (totalt 9 st)
- `content-type=".*javascript.*"` in: #40: bc-handler.min., antal grupperade fel: 2 ( 4.60 betyg )
- `content-type=".*javascript.*"` in: #40: bc-handler.min., antal fel: 24 ( 1.00 betyg )
- X is defined but never used. (totalt 14 st)
- Unexpected console statement. (totalt 10 st)
- `content-type=".*javascript.*"` in: #42: 207.3869.c.js, antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #42: 207.3869.c.js, antal fel: 31 ( 1.00 betyg )
- X is defined but never used. (totalt 18 st)
- Unexpected console statement. (totalt 10 st)
- X is assigned a value but never used. (totalt 3 st)
- `content-type=".*javascript.*"` in: #44: 441.3eec.c.js, antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #44: 441.3eec.c.js, antal fel: 33 ( 1.00 betyg )
- X is defined but never used. (totalt 20 st)
- Unexpected console statement. (totalt 10 st)
- X is assigned a value but never used. (totalt 3 st)
- `content-type=".*javascript.*"` in: #46: ui.40dc.c.js, antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #46: ui.40dc.c.js, antal fel: 37 ( 1.00 betyg )
- X is defined but never used. (totalt 21 st)
- Unexpected console statement. (totalt 11 st)
- X is assigned a value but never used. (totalt 5 st)
- `content-type=".*javascript.*"` in: #48: 560.52b6.c.js, antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #48: 560.52b6.c.js, antal fel: 37 ( 1.00 betyg )
- X is defined but never used. (totalt 21 st)
- Unexpected console statement. (totalt 11 st)
- X is assigned a value but never used. (totalt 5 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: 20 ( 1.00 betyg )
- `< script src="...">` in: #1: Webbsida , antal fel: 2912 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1704 st)
- Expected X and instead saw X. (totalt 945 st)
- eval can be harmful. (totalt 117 st)
- Unnecessary escape character: \/. (totalt 37 st)
- Do not access Object.prototype method X from target object. (totalt 33 st)
- Unnecessary X. (totalt 14 st)
- Comparing to itself is potentially pointless. (totalt 10 st)
- The Function constructor is eval. (totalt 10 st)
- Unnecessary escape character: \-. (totalt 10 st)
- Async arrow function has no X expression. (totalt 9 st)
- X is not modified in this loop. (totalt 8 st)
- X is assigned to itself. (totalt 4 st)
- Unnecessary escape character: \=. (totalt 2 st)
- Unexpected string concatenation of literals. (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 URL is a form of eval. (totalt 1 st)
- Unnecessary escape character: \+. (totalt 1 st)
- `< script>` in: #39: cf-bc-handler.h, antal grupperade fel: 1 ( 4.80 betyg )
- `< script>` in: #39: cf-bc-handler.h, antal fel: 7 ( 3.60 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 7 st)
- `< script src="...">` in: #39: cf-bc-handler.h, antal grupperade fel: 3 ( 4.40 betyg )
- `< script src="...">` in: #39: cf-bc-handler.h, antal fel: 362 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 188 st)
- Expected X and instead saw X. (totalt 173 st)
- X is not modified in this loop. (totalt 1 st)
- `content-type=".*javascript.*"` in: #32: banner.no-autob, antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #32: banner.no-autob, antal fel: 407 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 245 st)
- Expected X and instead saw X. (totalt 160 st)
- Do not access Object.prototype method X from target object. (totalt 2 st)
- `content-type=".*javascript.*"` in: #40: bc-handler.min., antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #40: bc-handler.min., antal fel: 412 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 249 st)
- Expected X and instead saw X. (totalt 161 st)
- Do not access Object.prototype method X from target object. (totalt 2 st)
- `content-type=".*javascript.*"` in: #42: 207.3869.c.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #42: 207.3869.c.js, antal fel: 472 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 280 st)
- Expected X and instead saw X. (totalt 188 st)
- Do not access Object.prototype method X from target object. (totalt 2 st)
- Comparing to itself is potentially pointless. (totalt 2 st)
- `content-type=".*javascript.*"` in: #44: 441.3eec.c.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #44: 441.3eec.c.js, antal fel: 482 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 290 st)
- Expected X and instead saw X. (totalt 188 st)
- Do not access Object.prototype method X from target object. (totalt 2 st)
- Comparing to itself is potentially pointless. (totalt 2 st)
- `content-type=".*javascript.*"` in: #46: ui.40dc.c.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #46: ui.40dc.c.js, antal fel: 528 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 335 st)
- Expected X and instead saw X. (totalt 188 st)
- Do not access Object.prototype method X from target object. (totalt 3 st)
- Comparing to itself is potentially pointless. (totalt 2 st)
- `content-type=".*javascript.*"` in: #48: 560.52b6.c.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #48: 560.52b6.c.js, antal fel: 528 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 335 st)
- Expected X and instead saw X. (totalt 188 st)
- Do not access Object.prototype method X from target object. (totalt 3 st)
- Comparing to itself is potentially pointless. (totalt 2 st)