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.71 av 5
- JS är dålig.
Webbstandard
- `< script>` in: #1: Webbsida , antal grupperade fel: 3 ( 4.40 betyg )
- `< script>` in: #1: Webbsida , antal fel: 25 ( 1.00 betyg )
- X is assigned a value but never used. (totalt 13 st)
- X is not defined. (totalt 8 st)
- X is defined but never used. (totalt 4 st)
- `< script src="...">` in: #1: Webbsida , antal grupperade fel: 4 ( 4.20 betyg )
- `< script src="...">` in: #1: Webbsida , antal fel: 789 ( 1.00 betyg )
- X is not defined. (totalt 678 st)
- X is defined but never used. (totalt 86 st)
- Unexpected console statement. (totalt 24 st)
- X is assigned a value but never used. (totalt 1 st)
- `content-type=".*javascript.*"` in: #95: dialog.min.js, antal grupperade fel: 2 ( 4.60 betyg )
- `content-type=".*javascript.*"` in: #95: dialog.min.js, antal fel: 7 ( 3.60 betyg )
- X is not defined. (totalt 6 st)
- Unexpected console statement. (totalt 1 st)
- `content-type=".*javascript.*"` in: #97: woocommerce-men, antal grupperade fel: 2 ( 4.60 betyg )
- `content-type=".*javascript.*"` in: #97: woocommerce-men, antal fel: 27 ( 1.00 betyg )
- X is not defined. (totalt 26 st)
- Unexpected console statement. (totalt 1 st)
- `content-type=".*javascript.*"` in: #98: nav-menu.a23fbd, antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #98: nav-menu.a23fbd, antal fel: 37 ( 1.00 betyg )
- X is not defined. (totalt 35 st)
- Unexpected console statement. (totalt 1 st)
- X is defined but never used. (totalt 1 st)
- `content-type=".*javascript.*"` in: #99: slides.c0029640, antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #99: slides.c0029640, antal fel: 40 ( 1.00 betyg )
- X is not defined. (totalt 38 st)
- Unexpected console statement. (totalt 1 st)
- X is defined but never used. (totalt 1 st)
- `content-type=".*javascript.*"` in: #100: text-editor.c08, antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #100: text-editor.c08, antal fel: 43 ( 1.00 betyg )
- X is not defined. (totalt 41 st)
- Unexpected console statement. (totalt 1 st)
- X is defined but never used. (totalt 1 st)
Integritet & säkerhet
- `< script>` in: #1: Webbsida , antal grupperade fel: 3 ( 4.40 betyg )
- `< script>` in: #1: Webbsida , antal fel: 121 ( 1.00 betyg )
- Unnecessary escape character: \/. (totalt 104 st)
- Expected X and instead saw X. (totalt 9 st)
- Expected an assignment or function call and instead saw an expression. (totalt 8 st)
- `< script src="...">` in: #1: Webbsida , antal grupperade fel: 27 ( 1.00 betyg )
- `< script src="...">` in: #1: Webbsida , antal fel: 2212 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1630 st)
- Expected X and instead saw X. (totalt 513 st)
- Unnecessary escape character: \/. (totalt 19 st)
- Do not access Object.prototype method X from target object. (totalt 7 st)
- Unnecessary escape character: \%. (totalt 6 st)
- Unnecessary escape character: \-. (totalt 5 st)
- X is assigned to itself. (totalt 4 st)
- Comparing to itself is potentially pointless. (totalt 3 st)
- Unnecessary escape character: \.. (totalt 3 st)
- The Function constructor is eval. (totalt 3 st)
- Unnecessary escape character: \?. (totalt 2 st)
- Unnecessary escape character: \+. (totalt 2 st)
- Unnecessary X. (totalt 1 st)
- Script URL is a form of eval. (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)
- Unnecessary escape character: \|. (totalt 1 st)
- Unexpected string concatenation of literals. (totalt 1 st)
- `content-type=".*javascript.*"` in: #95: dialog.min.js, antal grupperade fel: 2 ( 4.60 betyg )
- `content-type=".*javascript.*"` in: #95: dialog.min.js, antal fel: 37 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 31 st)
- Expected X and instead saw X. (totalt 6 st)
- `content-type=".*javascript.*"` in: #97: woocommerce-men, antal grupperade fel: 2 ( 4.60 betyg )
- `content-type=".*javascript.*"` in: #97: woocommerce-men, antal fel: 52 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 46 st)
- Expected X and instead saw X. (totalt 6 st)
- `content-type=".*javascript.*"` in: #98: nav-menu.a23fbd, antal grupperade fel: 2 ( 4.60 betyg )
- `content-type=".*javascript.*"` in: #98: nav-menu.a23fbd, antal fel: 68 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 61 st)
- Expected X and instead saw X. (totalt 7 st)
- `content-type=".*javascript.*"` in: #99: slides.c0029640, antal grupperade fel: 2 ( 4.60 betyg )
- `content-type=".*javascript.*"` in: #99: slides.c0029640, antal fel: 78 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 71 st)
- Expected X and instead saw X. (totalt 7 st)
- `content-type=".*javascript.*"` in: #100: text-editor.c08, antal grupperade fel: 2 ( 4.60 betyg )
- `content-type=".*javascript.*"` in: #100: text-editor.c08, antal fel: 82 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 75 st)
- Expected X and instead saw X. (totalt 7 st)