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: 4.62 av 5
- JS är bra.
Webbstandard
- `< script>` in: #20: testanrop, antal grupperade fel: 1 ( 4.80 betyg )
- `< script>` in: #20: testanrop, antal fel: 1 ( 4.80 betyg )
- Parsing error: Unexpected token : (totalt 1 st)
- `< script src="...">` in: #20: testanrop, antal grupperade fel: 2 ( 4.60 betyg )
- `< script src="...">` in: #20: testanrop, antal fel: 67 ( 1.00 betyg )
- X is defined but never used. (totalt 47 st)
- X is not defined. (totalt 20 st)
- `< script>` in: #49: bc-v4.min.html, antal grupperade fel: 1 ( 4.80 betyg )
- `< script>` in: #49: bc-v4.min.html, antal fel: 1 ( 4.80 betyg )
- X is defined but never used. (totalt 1 st)
- `< script>` in: #52: anchor, antal grupperade fel: 1 ( 4.80 betyg )
- `< script>` in: #52: anchor, antal fel: 1 ( 4.80 betyg )
- X is not defined. (totalt 1 st)
- `< script>` in: #60: bframe, antal grupperade fel: 1 ( 4.80 betyg )
- `< script>` in: #60: bframe, antal fel: 1 ( 4.80 betyg )
- X is not defined. (totalt 1 st)
- `< script>` in: #61: sw-iframe.html, antal grupperade fel: 1 ( 4.80 betyg )
- `< script>` in: #61: sw-iframe.html, antal fel: 2 ( 4.60 betyg )
- X is defined but never used. (totalt 2 st)
Integritet & säkerhet
- `< script>` in: #20: testanrop, antal grupperade fel: 1 ( 4.80 betyg )
- `< script>` in: #20: testanrop, antal fel: 1 ( 4.80 betyg )
- Parsing error: Unexpected token : (totalt 1 st)
- `< script src="...">` in: #20: testanrop, antal grupperade fel: 16 ( 1.80 betyg )
- `< script src="...">` in: #20: testanrop, antal fel: 1730 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1055 st)
- Expected X and instead saw X. (totalt 507 st)
- Unnecessary escape character: \-. (totalt 93 st)
- Do not access Object.prototype method X from target object. (totalt 24 st)
- Unnecessary escape character: \/. (totalt 18 st)
- The Function constructor is eval. (totalt 7 st)
- Unsafe usage of ThrowStatement. (totalt 5 st)
- eval can be harmful. (totalt 4 st)
- Comparing to itself is potentially pointless. (totalt 4 st)
- X is assigned to itself. (totalt 4 st)
- Unnecessary X. (totalt 3 st)
- Unsafe usage of ReturnStatement. (totalt 2 st)
- Unnecessary escape character: \[. (totalt 1 st)
- Unnecessary escape character: \(. (totalt 1 st)
- Unnecessary escape character: \). (totalt 1 st)
- Async method X has no X expression. (totalt 1 st)
- `< script>` in: #49: bc-v4.min.html, antal grupperade fel: 2 ( 4.60 betyg )
- `< script>` in: #49: bc-v4.min.html, antal fel: 2 ( 4.60 betyg )
- Expected X and instead saw X. (totalt 1 st)
- Expected an assignment or function call and instead saw an expression. (totalt 1 st)
- `< script>` in: #61: sw-iframe.html, antal grupperade fel: 2 ( 4.60 betyg )
- `< script>` in: #61: sw-iframe.html, antal fel: 14 ( 2.20 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 11 st)
- Expected X and instead saw X. (totalt 3 st)