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: 3.59 av 5
- JS är ok.
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: 132 ( 1.00 betyg )
- X is defined but never used. (totalt 65 st)
- X is not defined. (totalt 38 st)
- X is assigned a value but never used. (totalt 19 st)
- Unexpected console statement. (totalt 10 st)
- `< script>` in: #18: ajax-loader.gif, antal grupperade fel: 1 ( 4.80 betyg )
- `< script>` in: #18: ajax-loader.gif, antal fel: 1 ( 4.80 betyg )
- Parsing error: Unexpected token { (totalt 1 st)
- `< script src="...">` in: #18: ajax-loader.gif, antal grupperade fel: 4 ( 4.20 betyg )
- `< script src="...">` in: #18: ajax-loader.gif, antal fel: 132 ( 1.00 betyg )
- X is defined but never used. (totalt 65 st)
- X is not defined. (totalt 38 st)
- X is assigned a value but never used. (totalt 19 st)
- Unexpected console statement. (totalt 10 st)
- `content-type=".*javascript.*"` in: #11: wp-emoji-releas, antal grupperade fel: 1 ( 4.80 betyg )
- `content-type=".*javascript.*"` in: #11: wp-emoji-releas, antal fel: 1 ( 4.80 betyg )
- X is assigned a value but never used. (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: 10 ( 3.00 betyg )
- `< script src="...">` in: #1: Webbsida , antal fel: 1667 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 897 st)
- Expected X and instead saw X. (totalt 698 st)
- Unnecessary escape character: \-. (totalt 48 st)
- Unnecessary escape character: \/. (totalt 8 st)
- Do not access Object.prototype method X from target object. (totalt 4 st)
- Unnecessary X. (totalt 3 st)
- Unnecessary escape character: \.. (totalt 3 st)
- Comparing to itself is potentially pointless. (totalt 2 st)
- X is assigned to itself. (totalt 2 st)
- X is not modified in this loop. (totalt 2 st)
- `< script>` in: #18: ajax-loader.gif, antal grupperade fel: 1 ( 4.80 betyg )
- `< script>` in: #18: ajax-loader.gif, antal fel: 1 ( 4.80 betyg )
- Parsing error: Unexpected token { (totalt 1 st)
- `< script src="...">` in: #18: ajax-loader.gif, antal grupperade fel: 10 ( 3.00 betyg )
- `< script src="...">` in: #18: ajax-loader.gif, antal fel: 1667 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 897 st)
- Expected X and instead saw X. (totalt 698 st)
- Unnecessary escape character: \-. (totalt 48 st)
- Unnecessary escape character: \/. (totalt 8 st)
- Do not access Object.prototype method X from target object. (totalt 4 st)
- Unnecessary X. (totalt 3 st)
- Unnecessary escape character: \.. (totalt 3 st)
- Comparing to itself is potentially pointless. (totalt 2 st)
- X is assigned to itself. (totalt 2 st)
- X is not modified in this loop. (totalt 2 st)
- `content-type=".*javascript.*"` in: #11: wp-emoji-releas, antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #11: wp-emoji-releas, antal fel: 26 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 15 st)
- Expected X and instead saw X. (totalt 9 st)
- Do not access Object.prototype method X from target object. (totalt 2 st)