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.29 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: 1861 ( 1.00 betyg )
- X is not defined. (totalt 1484 st)
- X is defined but never used. (totalt 274 st)
- Unexpected console statement. (totalt 93 st)
- X is assigned a value but never used. (totalt 10 st)
- `< script>` in: #120: wp-signup.php, antal grupperade fel: 1 ( 4.80 betyg )
- `< script>` in: #120: wp-signup.php, antal fel: 1 ( 4.80 betyg )
- Parsing error: Unexpected token : (totalt 1 st)
- `< script src="...">` in: #120: wp-signup.php, antal grupperade fel: 4 ( 4.20 betyg )
- `< script src="...">` in: #120: wp-signup.php, antal fel: 1222 ( 1.00 betyg )
- X is not defined. (totalt 944 st)
- X is defined but never used. (totalt 190 st)
- Unexpected console statement. (totalt 79 st)
- X is assigned a value but never used. (totalt 9 st)
- `content-type=".*javascript.*"` in: #118: slides.c0029640, antal grupperade fel: 1 ( 4.80 betyg )
- `content-type=".*javascript.*"` in: #118: slides.c0029640, antal fel: 3 ( 4.40 betyg )
- X is not defined. (totalt 3 st)
- `content-type=".*javascript.*"` in: #119: text-editor.c08, antal grupperade fel: 1 ( 4.80 betyg )
- `content-type=".*javascript.*"` in: #119: text-editor.c08, antal fel: 6 ( 3.80 betyg )
- X is not defined. (totalt 6 st)
- `content-type=".*javascript.*"` in: #122: common.js, antal grupperade fel: 2 ( 4.60 betyg )
- `content-type=".*javascript.*"` in: #122: common.js, antal fel: 18 ( 1.40 betyg )
- X is defined but never used. (totalt 11 st)
- X is not defined. (totalt 7 st)
- `content-type=".*javascript.*"` in: #123: util.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #123: util.js, antal fel: 37 ( 1.00 betyg )
- X is defined but never used. (totalt 26 st)
- X is not defined. (totalt 8 st)
- X is assigned a value but never used. (totalt 2 st)
- Unexpected console statement. (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: 18 ( 1.40 betyg )
- `< script src="...">` in: #1: Webbsida , antal fel: 4233 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 2849 st)
- Expected X and instead saw X. (totalt 952 st)
- X is assigned to itself. (totalt 223 st)
- Unnecessary escape character: \-. (totalt 106 st)
- Do not access Object.prototype method X from target object. (totalt 40 st)
- Unnecessary escape character: \/. (totalt 17 st)
- Comparing to itself is potentially pointless. (totalt 9 st)
- Unexpected string concatenation of literals. (totalt 7 st)
- Unnecessary X. (totalt 6 st)
- The Function constructor is eval. (totalt 5 st)
- Script URL is a form of eval. (totalt 5 st)
- Unnecessary escape character: \[. (totalt 4 st)
- Unnecessary escape character: \.. (totalt 3 st)
- Unnecessary escape character: \^. (totalt 2 st)
- Unnecessary escape character: \). (totalt 2 st)
- Async arrow function has no X expression. (totalt 1 st)
- Unnecessary escape character: \?. (totalt 1 st)
- Unnecessary escape character: \+. (totalt 1 st)
- `< script>` in: #120: wp-signup.php, antal grupperade fel: 1 ( 4.80 betyg )
- `< script>` in: #120: wp-signup.php, antal fel: 1 ( 4.80 betyg )
- Parsing error: Unexpected token : (totalt 1 st)
- `< script src="...">` in: #120: wp-signup.php, antal grupperade fel: 17 ( 1.60 betyg )
- `< script src="...">` in: #120: wp-signup.php, antal fel: 3085 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1988 st)
- Expected X and instead saw X. (totalt 788 st)
- X is assigned to itself. (totalt 219 st)
- Do not access Object.prototype method X from target object. (totalt 26 st)
- Unnecessary escape character: \/. (totalt 14 st)
- Unnecessary escape character: \-. (totalt 13 st)
- Comparing to itself is potentially pointless. (totalt 7 st)
- Unexpected string concatenation of literals. (totalt 7 st)
- Unnecessary X. (totalt 6 st)
- Script URL is a form of eval. (totalt 5 st)
- Unnecessary escape character: \[. (totalt 2 st)
- Unnecessary escape character: \^. (totalt 2 st)
- Unnecessary escape character: \). (totalt 2 st)
- Unnecessary escape character: \.. (totalt 2 st)
- The Function constructor is eval. (totalt 2 st)
- Async arrow function has no X expression. (totalt 1 st)
- Unnecessary escape character: \?. (totalt 1 st)
- `content-type=".*javascript.*"` in: #118: slides.c0029640, antal grupperade fel: 1 ( 4.80 betyg )
- `content-type=".*javascript.*"` in: #118: slides.c0029640, antal fel: 10 ( 3.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 10 st)
- `content-type=".*javascript.*"` in: #119: text-editor.c08, antal grupperade fel: 1 ( 4.80 betyg )
- `content-type=".*javascript.*"` in: #119: text-editor.c08, antal fel: 14 ( 2.20 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 14 st)
- `content-type=".*javascript.*"` in: #122: common.js, antal grupperade fel: 8 ( 3.40 betyg )
- `content-type=".*javascript.*"` in: #122: common.js, antal fel: 451 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 356 st)
- Expected X and instead saw X. (totalt 84 st)
- Unnecessary escape character: \?. (totalt 4 st)
- Do not access Object.prototype method X from target object. (totalt 2 st)
- Unexpected string concatenation of literals. (totalt 2 st)
- Unnecessary X. (totalt 1 st)
- Unnecessary escape character: \/. (totalt 1 st)
- Async method X has no X expression. (totalt 1 st)
- `content-type=".*javascript.*"` in: #123: util.js, antal grupperade fel: 13 ( 2.40 betyg )
- `content-type=".*javascript.*"` in: #123: util.js, antal fel: 1817 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 985 st)
- Expected X and instead saw X. (totalt 797 st)
- Do not access Object.prototype method X from target object. (totalt 12 st)
- X is assigned to itself. (totalt 6 st)
- Unnecessary escape character: \?. (totalt 4 st)
- Unnecessary X. (totalt 3 st)
- Unexpected string concatenation of literals. (totalt 2 st)
- X is not modified in this loop. (totalt 2 st)
- Unnecessary escape character: \$. (totalt 2 st)
- Unnecessary escape character: \/. (totalt 1 st)
- Async method X has no X expression. (totalt 1 st)
- The Function constructor is eval. (totalt 1 st)
- Unnecessary escape character: \(. (totalt 1 st)