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.87 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: 600 ( 1.00 betyg )
- X is defined but never used. (totalt 468 st)
- X is assigned a value but never used. (totalt 95 st)
- Unexpected console statement. (totalt 19 st)
- X is not defined. (totalt 18 st)
- `content-type=".*javascript.*"` in: #31: -5BwordpressSlu, antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #31: -5BwordpressSlu, antal fel: 5 ( 4.00 betyg )
- X is assigned a value but never used. (totalt 3 st)
- X is defined but never used. (totalt 1 st)
- X is not defined. (totalt 1 st)
- `content-type=".*javascript.*"` in: #33: eb6e03f4.349f66, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #33: eb6e03f4.349f66, antal fel: 88 ( 1.00 betyg )
- Unexpected console statement. (totalt 41 st)
- X is defined but never used. (totalt 32 st)
- X is assigned a value but never used. (totalt 14 st)
- X is not defined. (totalt 1 st)
- `content-type=".*javascript.*"` in: #34: 602.fdddef8a273, antal grupperade fel: 5 ( 4.00 betyg )
- `content-type=".*javascript.*"` in: #34: 602.fdddef8a273, antal fel: 89 ( 1.00 betyg )
- Unexpected console statement. (totalt 41 st)
- X is defined but never used. (totalt 32 st)
- X is assigned a value but never used. (totalt 14 st)
- X is not defined. (totalt 1 st)
- Parsing error: Unexpected token : (totalt 1 st)
- `content-type=".*javascript.*"` in: #35: 654.a817e256496, antal grupperade fel: 5 ( 4.00 betyg )
- `content-type=".*javascript.*"` in: #35: 654.a817e256496, antal fel: 89 ( 1.00 betyg )
- Unexpected console statement. (totalt 41 st)
- X is defined but never used. (totalt 32 st)
- X is assigned a value but never used. (totalt 14 st)
- X is not defined. (totalt 1 st)
- Parsing error: Unexpected token : (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: 15 ( 2.00 betyg )
- `< script src="...">` in: #1: Webbsida , antal fel: 3863 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 2463 st)
- Expected X and instead saw X. (totalt 1236 st)
- Do not access Object.prototype method X from target object. (totalt 136 st)
- X is not modified in this loop. (totalt 9 st)
- X is assigned to itself. (totalt 4 st)
- Unnecessary escape character: \/. (totalt 3 st)
- Comparing to itself is potentially pointless. (totalt 3 st)
- Unnecessary X. (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)
- The Function constructor is eval. (totalt 1 st)
- Unnecessary escape character: \-. (totalt 1 st)
- Async function X has no X expression. (totalt 1 st)
- Async method X has no X expression. (totalt 1 st)
- `content-type=".*javascript.*"` in: #31: -5BwordpressSlu, antal grupperade fel: 2 ( 4.60 betyg )
- `content-type=".*javascript.*"` in: #31: -5BwordpressSlu, antal fel: 44 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 23 st)
- Expected X and instead saw X. (totalt 21 st)
- `content-type=".*javascript.*"` in: #33: eb6e03f4.349f66, antal grupperade fel: 9 ( 3.20 betyg )
- `content-type=".*javascript.*"` in: #33: eb6e03f4.349f66, antal fel: 916 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 541 st)
- Expected X and instead saw X. (totalt 359 st)
- Unnecessary X. (totalt 6 st)
- Comparing to itself is potentially pointless. (totalt 3 st)
- Unnecessary escape character: \/. (totalt 3 st)
- The Function constructor is eval. (totalt 1 st)
- Unsafe usage of ReturnStatement. (totalt 1 st)
- Async method X has no X expression. (totalt 1 st)
- Async arrow function has no X expression. (totalt 1 st)
- `content-type=".*javascript.*"` in: #34: 602.fdddef8a273, antal grupperade fel: 10 ( 3.00 betyg )
- `content-type=".*javascript.*"` in: #34: 602.fdddef8a273, antal fel: 917 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 541 st)
- Expected X and instead saw X. (totalt 359 st)
- Unnecessary X. (totalt 6 st)
- Comparing to itself is potentially pointless. (totalt 3 st)
- Unnecessary escape character: \/. (totalt 3 st)
- The Function constructor is eval. (totalt 1 st)
- Unsafe usage of ReturnStatement. (totalt 1 st)
- Async method X has no X expression. (totalt 1 st)
- Async arrow function has no X expression. (totalt 1 st)
- Parsing error: Unexpected token : (totalt 1 st)
- `content-type=".*javascript.*"` in: #35: 654.a817e256496, antal grupperade fel: 10 ( 3.00 betyg )
- `content-type=".*javascript.*"` in: #35: 654.a817e256496, antal fel: 917 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 541 st)
- Expected X and instead saw X. (totalt 359 st)
- Unnecessary X. (totalt 6 st)
- Comparing to itself is potentially pointless. (totalt 3 st)
- Unnecessary escape character: \/. (totalt 3 st)
- The Function constructor is eval. (totalt 1 st)
- Unsafe usage of ReturnStatement. (totalt 1 st)
- Async method X has no X expression. (totalt 1 st)
- Async arrow function has no X expression. (totalt 1 st)
- Parsing error: Unexpected token : (totalt 1 st)