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.72 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: 5 ( 4.00 betyg )
- `< script src="...">` in: #1: Webbsida , antal fel: 257 ( 1.00 betyg )
- X is not defined. (totalt 169 st)
- X is defined but never used. (totalt 70 st)
- Unexpected console statement. (totalt 11 st)
- X is assigned a value but never used. (totalt 6 st)
- Parsing error: Invalid regular expression: /^?\-?([1-9]{1}[0-9]{0,2}(\,[0-9]{3})*(\.[0-9]{0,2})?|[1-9]{1}\d*(\.[0-9]{0,2})?|0(\.[0-9]{0,2})?|(\.[0-9]{1,2})?)$/: Nothing to repeat (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: 1202 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 613 st)
- Expected X and instead saw X. (totalt 543 st)
- Do not access Object.prototype method X from target object. (totalt 13 st)
- Unnecessary escape character: \/. (totalt 12 st)
- Comparing to itself is potentially pointless. (totalt 3 st)
- Unnecessary escape character: \.. (totalt 3 st)
- Unnecessary escape character: \-. (totalt 3 st)
- X is not modified in this loop. (totalt 2 st)
- Unnecessary escape character: \[. (totalt 2 st)
- The Function constructor is eval. (totalt 2 st)
- eval can be harmful. (totalt 2 st)
- Unnecessary X. (totalt 1 st)
- Unnecessary escape character: \". (totalt 1 st)
- Parsing error: Invalid regular expression: /^?\-?([1-9]{1}[0-9]{0,2}(\,[0-9]{3})*(\.[0-9]{0,2})?|[1-9]{1}\d*(\.[0-9]{0,2})?|0(\.[0-9]{0,2})?|(\.[0-9]{1,2})?)$/: Nothing to repeat (totalt 1 st)
- Unnecessary escape character: \^. (totalt 1 st)