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.90 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: 1591 ( 1.00 betyg )
- X is not defined. (totalt 907 st)
- X is defined but never used. (totalt 532 st)
- X is assigned a value but never used. (totalt 110 st)
- Unexpected console statement. (totalt 42 st)
- `< script>` in: #105: cookiesharingif, antal grupperade fel: 3 ( 4.40 betyg )
- `< script>` in: #105: cookiesharingif, antal fel: 8 ( 3.40 betyg )
- X is defined but never used. (totalt 3 st)
- Unexpected console statement. (totalt 3 st)
- X is not defined. (totalt 2 st)
- `content-type=".*javascript.*"` in: #103: hotjar-1776526., antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #103: hotjar-1776526., antal fel: 24 ( 1.00 betyg )
- X is not defined. (totalt 11 st)
- X is defined but never used. (totalt 8 st)
- Unexpected console statement. (totalt 5 st)
- `content-type=".*javascript.*"` in: #122: sv.js, antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #122: sv.js, antal fel: 25 ( 1.00 betyg )
- X is not defined. (totalt 12 st)
- X is defined but never used. (totalt 8 st)
- Unexpected console statement. (totalt 5 st)
- `content-type=".*javascript.*"` in: #124: nav-menu.a23fbd, antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #124: nav-menu.a23fbd, antal fel: 35 ( 1.00 betyg )
- X is not defined. (totalt 21 st)
- X is defined but never used. (totalt 9 st)
- Unexpected console statement. (totalt 5 st)
- `content-type=".*javascript.*"` in: #125: woocommerce-men, antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #125: woocommerce-men, antal fel: 55 ( 1.00 betyg )
- X is not defined. (totalt 41 st)
- X is defined but never used. (totalt 9 st)
- Unexpected console statement. (totalt 5 st)
- `content-type=".*javascript.*"` in: #126: animated-headli, antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #126: animated-headli, antal fel: 63 ( 1.00 betyg )
- X is not defined. (totalt 49 st)
- X is defined but never used. (totalt 9 st)
- Unexpected console statement. (totalt 5 st)
- `content-type=".*javascript.*"` in: #127: text-editor.c08, antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #127: text-editor.c08, antal fel: 66 ( 1.00 betyg )
- X is not defined. (totalt 52 st)
- X is defined but never used. (totalt 9 st)
- Unexpected console statement. (totalt 5 st)
- `content-type=".*javascript.*"` in: #130: form.5fb35271b8, antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #130: form.5fb35271b8, antal fel: 97 ( 1.00 betyg )
- X is not defined. (totalt 83 st)
- X is defined but never used. (totalt 9 st)
- Unexpected console statement. (totalt 5 st)
- `content-type=".*javascript.*"` in: #131: popup.f7b15b2ca, antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #131: popup.f7b15b2ca, antal fel: 100 ( 1.00 betyg )
- X is not defined. (totalt 86 st)
- X is defined but never used. (totalt 9 st)
- Unexpected console statement. (totalt 5 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: 29 ( 1.00 betyg )
- `< script src="...">` in: #1: Webbsida , antal fel: 4137 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 2913 st)
- Expected X and instead saw X. (totalt 997 st)
- Do not access Object.prototype method X from target object. (totalt 124 st)
- Unnecessary escape character: \/. (totalt 21 st)
- Unexpected string concatenation of literals. (totalt 13 st)
- X is assigned to itself. (totalt 11 st)
- Comparing to itself is potentially pointless. (totalt 9 st)
- Unnecessary escape character: \%. (totalt 6 st)
- X is not modified in this loop. (totalt 5 st)
- Unnecessary escape character: \-. (totalt 5 st)
- The Function constructor is eval. (totalt 5 st)
- Script URL is a form of eval. (totalt 3 st)
- Unnecessary escape character: \?. (totalt 3 st)
- Unnecessary escape character: \}. (totalt 3 st)
- Unnecessary escape character: \+. (totalt 3 st)
- Unnecessary X. (totalt 2 st)
- Unnecessary escape character: \.. (totalt 2 st)
- Unsafe usage of ThrowStatement. (totalt 1 st)
- Unnecessary escape character: \!. (totalt 1 st)
- Unnecessary escape character: \~. (totalt 1 st)
- Unnecessary escape character: \'. (totalt 1 st)
- Unnecessary escape character: \[. (totalt 1 st)
- Unnecessary escape character: \{. (totalt 1 st)
- Unnecessary escape character: \(. (totalt 1 st)
- Unnecessary escape character: \). (totalt 1 st)
- Unnecessary escape character: \*. (totalt 1 st)
- Unnecessary escape character: \^. (totalt 1 st)
- Unnecessary escape character: \$. (totalt 1 st)
- Unnecessary escape character: \|. (totalt 1 st)
- `< script>` in: #105: cookiesharingif, antal grupperade fel: 2 ( 4.60 betyg )
- `< script>` in: #105: cookiesharingif, antal fel: 80 ( 1.00 betyg )
- Expected X and instead saw X. (totalt 47 st)
- Expected an assignment or function call and instead saw an expression. (totalt 33 st)
- `content-type=".*javascript.*"` in: #103: hotjar-1776526., antal grupperade fel: 2 ( 4.60 betyg )
- `content-type=".*javascript.*"` in: #103: hotjar-1776526., antal fel: 43 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 22 st)
- Expected X and instead saw X. (totalt 21 st)
- `content-type=".*javascript.*"` in: #122: sv.js, antal grupperade fel: 2 ( 4.60 betyg )
- `content-type=".*javascript.*"` in: #122: sv.js, antal fel: 43 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 22 st)
- Expected X and instead saw X. (totalt 21 st)
- `content-type=".*javascript.*"` in: #124: nav-menu.a23fbd, antal grupperade fel: 2 ( 4.60 betyg )
- `content-type=".*javascript.*"` in: #124: nav-menu.a23fbd, antal fel: 59 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 37 st)
- Expected X and instead saw X. (totalt 22 st)
- `content-type=".*javascript.*"` in: #125: woocommerce-men, antal grupperade fel: 2 ( 4.60 betyg )
- `content-type=".*javascript.*"` in: #125: woocommerce-men, antal fel: 74 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 52 st)
- Expected X and instead saw X. (totalt 22 st)
- `content-type=".*javascript.*"` in: #126: animated-headli, antal grupperade fel: 2 ( 4.60 betyg )
- `content-type=".*javascript.*"` in: #126: animated-headli, antal fel: 94 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 72 st)
- Expected X and instead saw X. (totalt 22 st)
- `content-type=".*javascript.*"` in: #127: text-editor.c08, antal grupperade fel: 2 ( 4.60 betyg )
- `content-type=".*javascript.*"` in: #127: text-editor.c08, antal fel: 98 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 76 st)
- Expected X and instead saw X. (totalt 22 st)
- `content-type=".*javascript.*"` in: #130: form.5fb35271b8, antal grupperade fel: 2 ( 4.60 betyg )
- `content-type=".*javascript.*"` in: #130: form.5fb35271b8, antal fel: 146 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 123 st)
- Expected X and instead saw X. (totalt 23 st)
- `content-type=".*javascript.*"` in: #131: popup.f7b15b2ca, antal grupperade fel: 2 ( 4.60 betyg )
- `content-type=".*javascript.*"` in: #131: popup.f7b15b2ca, antal fel: 147 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 124 st)
- Expected X and instead saw X. (totalt 23 st)