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.87 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: 500 ( 1.00 betyg )
- X is not defined. (totalt 260 st)
- X is defined but never used. (totalt 152 st)
- Unexpected console statement. (totalt 48 st)
- X is assigned a value but never used. (totalt 40 st)
- `< script>` in: #33: bc-v4.min.html, antal grupperade fel: 1 ( 4.80 betyg )
- `< script>` in: #33: bc-v4.min.html, antal fel: 1 ( 4.80 betyg )
- X is defined but never used. (totalt 1 st)
- `content-type=".*javascript.*"` in: #21: configuration.j, antal grupperade fel: 1 ( 4.80 betyg )
- `content-type=".*javascript.*"` in: #21: configuration.j, antal fel: 8 ( 3.40 betyg )
- X is not defined. (totalt 8 st)
- `content-type=".*javascript.*"` in: #22: cc.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #22: cc.js, antal fel: 36 ( 1.00 betyg )
- X is not defined. (totalt 17 st)
- X is defined but never used. (totalt 12 st)
- X is assigned a value but never used. (totalt 6 st)
- Unexpected console statement. (totalt 1 st)
- `content-type=".*javascript.*"` in: #34: , antal grupperade fel: 5 ( 4.00 betyg )
- `content-type=".*javascript.*"` in: #34: , antal fel: 37 ( 1.00 betyg )
- X is not defined. (totalt 17 st)
- X is defined but never used. (totalt 12 st)
- X is assigned a value but never used. (totalt 6 st)
- Unexpected console statement. (totalt 1 st)
- Parsing error: Deleting local variable in strict mode (totalt 1 st)
- `content-type=".*javascript.*"` in: #36: snoobi2.php, antal grupperade fel: 5 ( 4.00 betyg )
- `content-type=".*javascript.*"` in: #36: snoobi2.php, antal fel: 38 ( 1.00 betyg )
- X is not defined. (totalt 17 st)
- X is defined but never used. (totalt 12 st)
- X is assigned a value but never used. (totalt 6 st)
- Parsing error: Deleting local variable in strict mode (totalt 2 st)
- Unexpected console statement. (totalt 1 st)
- `content-type=".*javascript.*"` in: #42: Hyphenopoly.js, antal grupperade fel: 5 ( 4.00 betyg )
- `content-type=".*javascript.*"` in: #42: Hyphenopoly.js, antal fel: 41 ( 1.00 betyg )
- X is not defined. (totalt 20 st)
- X is defined but never used. (totalt 12 st)
- X is assigned a value but never used. (totalt 6 st)
- Parsing error: Deleting local variable in strict mode (totalt 2 st)
- Unexpected console statement. (totalt 1 st)
- `content-type=".*javascript.*"` in: #43: cf436070-3781-4, antal grupperade fel: 5 ( 4.00 betyg )
- `content-type=".*javascript.*"` in: #43: cf436070-3781-4, antal fel: 41 ( 1.00 betyg )
- X is not defined. (totalt 20 st)
- X is defined but never used. (totalt 12 st)
- X is assigned a value but never used. (totalt 6 st)
- Parsing error: Deleting local variable in strict mode (totalt 2 st)
- Unexpected console statement. (totalt 1 st)
- `content-type=".*javascript.*"` in: #44: production-buil, antal grupperade fel: 5 ( 4.00 betyg )
- `content-type=".*javascript.*"` in: #44: production-buil, antal fel: 779 ( 1.00 betyg )
- X is defined but never used. (totalt 553 st)
- X is not defined. (totalt 150 st)
- Unexpected console statement. (totalt 66 st)
- X is assigned a value but never used. (totalt 8 st)
- Parsing error: Deleting local variable in strict mode (totalt 2 st)
- `content-type=".*javascript.*"` in: #45: client.js, antal grupperade fel: 5 ( 4.00 betyg )
- `content-type=".*javascript.*"` in: #45: client.js, antal fel: 811 ( 1.00 betyg )
- X is defined but never used. (totalt 579 st)
- X is not defined. (totalt 152 st)
- Unexpected console statement. (totalt 69 st)
- X is assigned a value but never used. (totalt 9 st)
- Parsing error: Deleting local variable in strict mode (totalt 2 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: 3564 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 2562 st)
- Expected X and instead saw X. (totalt 920 st)
- Unnecessary X. (totalt 15 st)
- Do not access Object.prototype method X from target object. (totalt 12 st)
- Unnecessary escape character: \-. (totalt 11 st)
- Unsafe usage of ThrowStatement. (totalt 11 st)
- Unnecessary escape character: \/. (totalt 9 st)
- X is not modified in this loop. (totalt 5 st)
- Unnecessary escape character: \[. (totalt 3 st)
- Comparing to itself is potentially pointless. (totalt 3 st)
- The Function constructor is eval. (totalt 3 st)
- X is assigned to itself. (totalt 2 st)
- Unnecessary escape character: \.. (totalt 2 st)
- Unnecessary escape character: \}. (totalt 2 st)
- Unnecessary escape character: \$. (totalt 1 st)
- Unnecessary escape character: \?. (totalt 1 st)
- Async arrow function has no X expression. (totalt 1 st)
- Unnecessary escape character: \+. (totalt 1 st)
- `< script>` in: #33: bc-v4.min.html, antal grupperade fel: 2 ( 4.60 betyg )
- `< script>` in: #33: bc-v4.min.html, antal fel: 2 ( 4.60 betyg )
- Expected X and instead saw X. (totalt 1 st)
- Expected an assignment or function call and instead saw an expression. (totalt 1 st)
- `content-type=".*javascript.*"` in: #22: cc.js, antal grupperade fel: 6 ( 3.80 betyg )
- `content-type=".*javascript.*"` in: #22: cc.js, antal fel: 348 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 307 st)
- Expected X and instead saw X. (totalt 36 st)
- Script URL is a form of eval. (totalt 2 st)
- Unnecessary escape character: \< . (totalt 1 st)
- Unnecessary escape character: \>. (totalt 1 st)
- Unnecessary escape character: \[. (totalt 1 st)
- `content-type=".*javascript.*"` in: #34: , antal grupperade fel: 7 ( 3.60 betyg )
- `content-type=".*javascript.*"` in: #34: , antal fel: 349 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 307 st)
- Expected X and instead saw X. (totalt 36 st)
- Script URL is a form of eval. (totalt 2 st)
- Unnecessary escape character: \< . (totalt 1 st)
- Unnecessary escape character: \>. (totalt 1 st)
- Unnecessary escape character: \[. (totalt 1 st)
- Parsing error: Deleting local variable in strict mode (totalt 1 st)
- `content-type=".*javascript.*"` in: #36: snoobi2.php, antal grupperade fel: 7 ( 3.60 betyg )
- `content-type=".*javascript.*"` in: #36: snoobi2.php, antal fel: 350 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 307 st)
- Expected X and instead saw X. (totalt 36 st)
- Script URL is a form of eval. (totalt 2 st)
- Parsing error: Deleting local variable in strict mode (totalt 2 st)
- Unnecessary escape character: \< . (totalt 1 st)
- Unnecessary escape character: \>. (totalt 1 st)
- Unnecessary escape character: \[. (totalt 1 st)
- `content-type=".*javascript.*"` in: #42: Hyphenopoly.js, antal grupperade fel: 7 ( 3.60 betyg )
- `content-type=".*javascript.*"` in: #42: Hyphenopoly.js, antal fel: 379 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 334 st)
- Expected X and instead saw X. (totalt 38 st)
- Script URL is a form of eval. (totalt 2 st)
- Parsing error: Deleting local variable in strict mode (totalt 2 st)
- Unnecessary escape character: \< . (totalt 1 st)
- Unnecessary escape character: \>. (totalt 1 st)
- Unnecessary escape character: \[. (totalt 1 st)
- `content-type=".*javascript.*"` in: #43: cf436070-3781-4, antal grupperade fel: 7 ( 3.60 betyg )
- `content-type=".*javascript.*"` in: #43: cf436070-3781-4, antal fel: 379 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 334 st)
- Expected X and instead saw X. (totalt 38 st)
- Script URL is a form of eval. (totalt 2 st)
- Parsing error: Deleting local variable in strict mode (totalt 2 st)
- Unnecessary escape character: \< . (totalt 1 st)
- Unnecessary escape character: \>. (totalt 1 st)
- Unnecessary escape character: \[. (totalt 1 st)
- `content-type=".*javascript.*"` in: #44: production-buil, antal grupperade fel: 27 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #44: production-buil, antal fel: 5546 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 3250 st)
- Expected X and instead saw X. (totalt 1788 st)
- Unsafe usage of ThrowStatement. (totalt 145 st)
- Unnecessary escape character: \.. (totalt 106 st)
- Do not access Object.prototype method X from target object. (totalt 57 st)
- Comparing to itself is potentially pointless. (totalt 43 st)
- Unnecessary escape character: \/. (totalt 38 st)
- X is not modified in this loop. (totalt 26 st)
- Unexpected string concatenation of literals. (totalt 14 st)
- Unnecessary escape character: \). (totalt 13 st)
- Unnecessary escape character: \-. (totalt 10 st)
- Unnecessary escape character: \[. (totalt 8 st)
- The Function constructor is eval. (totalt 8 st)
- Unnecessary escape character: \+. (totalt 6 st)
- Unnecessary X. (totalt 6 st)
- Unnecessary escape character: \:. (totalt 6 st)
- X is assigned to itself. (totalt 5 st)
- Unnecessary escape character: \(. (totalt 4 st)
- Script URL is a form of eval. (totalt 3 st)
- Parsing error: Deleting local variable in strict mode (totalt 2 st)
- Unnecessary escape character: \,. (totalt 2 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)
- `content-type=".*javascript.*"` in: #45: client.js, antal grupperade fel: 28 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #45: client.js, antal fel: 5947 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 3422 st)
- Expected X and instead saw X. (totalt 1965 st)
- Unsafe usage of ThrowStatement. (totalt 146 st)
- Unnecessary escape character: \.. (totalt 106 st)
- Do not access Object.prototype method X from target object. (totalt 96 st)
- Comparing to itself is potentially pointless. (totalt 51 st)
- Unnecessary escape character: \/. (totalt 40 st)
- X is not modified in this loop. (totalt 26 st)
- Unexpected string concatenation of literals. (totalt 14 st)
- Unnecessary escape character: \). (totalt 13 st)
- Unnecessary escape character: \-. (totalt 10 st)
- The Function constructor is eval. (totalt 9 st)
- Unnecessary escape character: \[. (totalt 8 st)
- Unnecessary escape character: \+. (totalt 6 st)
- Unnecessary X. (totalt 6 st)
- Unnecessary escape character: \:. (totalt 6 st)
- X is assigned to itself. (totalt 5 st)
- Unnecessary escape character: \(. (totalt 4 st)
- Script URL is a form of eval. (totalt 3 st)
- Parsing error: Deleting local variable in strict mode (totalt 2 st)
- Unnecessary escape character: \,. (totalt 2 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)
- Unsafe usage of ContinueStatement. (totalt 1 st)