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.44 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: 490 ( 1.00 betyg )
- X is defined but never used. (totalt 373 st)
- X is assigned a value but never used. (totalt 91 st)
- X is not defined. (totalt 23 st)
- Unexpected console statement. (totalt 3 st)
- `< script>` in: #29: chat-contact.as, antal grupperade fel: 2 ( 4.60 betyg )
- `< script>` in: #29: chat-contact.as, antal fel: 59 ( 1.00 betyg )
- X is assigned a value but never used. (totalt 54 st)
- X is not defined. (totalt 5 st)
- `< script src="...">` in: #29: chat-contact.as, antal grupperade fel: 5 ( 4.00 betyg )
- `< script src="...">` in: #29: chat-contact.as, antal fel: 383 ( 1.00 betyg )
- X is not defined. (totalt 245 st)
- X is assigned a value but never used. (totalt 84 st)
- X is defined but never used. (totalt 45 st)
- Unexpected console statement. (totalt 8 st)
- Parsing error: Identifier X has already been declared (totalt 1 st)
- `< script>` in: #37: chat-contact.as, antal grupperade fel: 2 ( 4.60 betyg )
- `< script>` in: #37: chat-contact.as, antal fel: 59 ( 1.00 betyg )
- X is assigned a value but never used. (totalt 54 st)
- X is not defined. (totalt 5 st)
- `< script src="...">` in: #37: chat-contact.as, antal grupperade fel: 4 ( 4.20 betyg )
- `< script src="...">` in: #37: chat-contact.as, antal fel: 385 ( 1.00 betyg )
- X is not defined. (totalt 247 st)
- X is assigned a value but never used. (totalt 84 st)
- X is defined but never used. (totalt 46 st)
- Unexpected console statement. (totalt 8 st)
- `content-type=".*javascript.*"` in: #31: multi3-fixed-cu, antal grupperade fel: 2 ( 4.60 betyg )
- `content-type=".*javascript.*"` in: #31: multi3-fixed-cu, antal fel: 2 ( 4.60 betyg )
- X is defined but never used. (totalt 1 st)
- X is not defined. (totalt 1 st)
- `content-type=".*javascript.*"` in: #32: multi3-fixed-sh, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #32: multi3-fixed-sh, antal fel: 35 ( 1.00 betyg )
- X is not defined. (totalt 15 st)
- X is defined but never used. (totalt 7 st)
- Unexpected console statement. (totalt 7 st)
- X is assigned a value but never used. (totalt 6 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: 1487 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1155 st)
- Expected X and instead saw X. (totalt 231 st)
- Do not access Object.prototype method X from target object. (totalt 87 st)
- X is not modified in this loop. (totalt 4 st)
- Unnecessary escape character: \/. (totalt 3 st)
- X is assigned to itself. (totalt 3 st)
- Comparing to itself is potentially pointless. (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 src="...">` in: #29: chat-contact.as, antal grupperade fel: 4 ( 4.20 betyg )
- `< script src="...">` in: #29: chat-contact.as, antal fel: 194 ( 1.00 betyg )
- Expected X and instead saw X. (totalt 190 st)
- Implied eval. Consider passing a function instead of a string. (totalt 2 st)
- Parsing error: Identifier X has already been declared (totalt 1 st)
- X is not modified in this loop. (totalt 1 st)
- `< script src="...">` in: #37: chat-contact.as, antal grupperade fel: 3 ( 4.40 betyg )
- `< script src="...">` in: #37: chat-contact.as, antal fel: 195 ( 1.00 betyg )
- Expected X and instead saw X. (totalt 192 st)
- Implied eval. Consider passing a function instead of a string. (totalt 2 st)
- X is not modified in this loop. (totalt 1 st)
- `content-type=".*javascript.*"` in: #32: multi3-fixed-sh, antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #32: multi3-fixed-sh, antal fel: 60 ( 1.00 betyg )
- Expected X and instead saw X. (totalt 50 st)
- Unnecessary escape character: \.. (totalt 8 st)
- eval can be harmful. (totalt 2 st)