Javascript
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.55 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: 5 ( 4.00 betyg )
- `< script src="...">` in: #1: Webbsida , antal fel: 897 ( 1.00 betyg )
- X is not defined. (totalt 652 st)
- X is defined but never used. (totalt 167 st)
- Unexpected console statement. (totalt 41 st)
- X is assigned a value but never used. (totalt 36 st)
- Parsing error: Deleting local variable in strict mode (totalt 1 st)
- `< script>` in: #56: bc-v4.min.html, antal grupperade fel: 1 ( 4.80 betyg )
- `< script>` in: #56: bc-v4.min.html, antal fel: 1 ( 4.80 betyg )
- X is defined but never used. (totalt 1 st)
- `content-type=".*javascript.*"` in: #42: configuration.j, antal grupperade fel: 1 ( 4.80 betyg )
- `content-type=".*javascript.*"` in: #42: configuration.j, antal fel: 11 ( 2.80 betyg )
- X is not defined. (totalt 11 st)
- `content-type=".*javascript.*"` in: #43: cc.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #43: cc.js, antal fel: 39 ( 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)
- Unexpected console statement. (totalt 1 st)
- `content-type=".*javascript.*"` in: #59: init.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #59: init.js, antal fel: 40 ( 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)
- Unexpected console statement. (totalt 2 st)
- `content-type=".*javascript.*"` in: #61: init.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #61: init.js, antal fel: 40 ( 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)
- Unexpected console statement. (totalt 2 st)
- `content-type=".*javascript.*"` in: #62: index.c201fc46., antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #62: index.c201fc46., antal fel: 92 ( 1.00 betyg )
- Unexpected console statement. (totalt 30 st)
- X is defined but never used. (totalt 25 st)
- X is not defined. (totalt 23 st)
- X is assigned a value but never used. (totalt 14 st)
- `content-type=".*javascript.*"` in: #63: 578.578.76d582a, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #63: 578.578.76d582a, antal fel: 94 ( 1.00 betyg )
- Unexpected console statement. (totalt 32 st)
- X is defined but never used. (totalt 25 st)
- X is not defined. (totalt 23 st)
- X is assigned a value but never used. (totalt 14 st)
- `content-type=".*javascript.*"` in: #64: 925.925.76d582a, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #64: 925.925.76d582a, antal fel: 102 ( 1.00 betyg )
- Unexpected console statement. (totalt 34 st)
- X is defined but never used. (totalt 28 st)
- X is not defined. (totalt 23 st)
- X is assigned a value but never used. (totalt 17 st)
- `content-type=".*javascript.*"` in: #65: 950.950.76d582a, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #65: 950.950.76d582a, antal fel: 118 ( 1.00 betyg )
- Unexpected console statement. (totalt 39 st)
- X is defined but never used. (totalt 36 st)
- X is not defined. (totalt 23 st)
- X is assigned a value but never used. (totalt 20 st)
- `content-type=".*javascript.*"` in: #66: 628.628.76d582a, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #66: 628.628.76d582a, antal fel: 120 ( 1.00 betyg )
- Unexpected console statement. (totalt 39 st)
- X is defined but never used. (totalt 38 st)
- X is not defined. (totalt 23 st)
- X is assigned a value but never used. (totalt 20 st)
- `content-type=".*javascript.*"` in: #67: 873.873.76d582a, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #67: 873.873.76d582a, antal fel: 121 ( 1.00 betyg )
- X is defined but never used. (totalt 39 st)
- Unexpected console statement. (totalt 39 st)
- X is not defined. (totalt 23 st)
- X is assigned a value but never used. (totalt 20 st)
- `content-type=".*javascript.*"` in: #68: 328.328.76d582a, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #68: 328.328.76d582a, antal fel: 143 ( 1.00 betyg )
- X is defined but never used. (totalt 51 st)
- Unexpected console statement. (totalt 45 st)
- X is assigned a value but never used. (totalt 24 st)
- X is not defined. (totalt 23 st)
- `content-type=".*javascript.*"` in: #73: 560.560.76d582a, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #73: 560.560.76d582a, antal fel: 143 ( 1.00 betyg )
- X is defined but never used. (totalt 51 st)
- Unexpected console statement. (totalt 45 st)
- X is assigned a value but never used. (totalt 24 st)
- X is not defined. (totalt 23 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: 20 ( 1.00 betyg )
- `< script src="...">` in: #1: Webbsida , antal fel: 2215 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1386 st)
- Expected X and instead saw X. (totalt 746 st)
- Unnecessary escape character: \-. (totalt 20 st)
- Unnecessary escape character: \/. (totalt 12 st)
- Do not access Object.prototype method X from target object. (totalt 11 st)
- Unnecessary X. (totalt 10 st)
- Unnecessary escape character: \.. (totalt 6 st)
- Unnecessary escape character: \[. (totalt 5 st)
- Unnecessary escape character: \^. (totalt 3 st)
- eval can be harmful. (totalt 3 st)
- X is assigned to itself. (totalt 2 st)
- The Function constructor is eval. (totalt 2 st)
- Unnecessary escape character: \:. (totalt 2 st)
- Comparing to itself is potentially pointless. (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)
- Implied eval. Consider passing a function instead of a string. (totalt 1 st)
- Parsing error: Deleting local variable in strict mode (totalt 1 st)
- `< script>` in: #56: bc-v4.min.html, antal grupperade fel: 2 ( 4.60 betyg )
- `< script>` in: #56: 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: #43: cc.js, antal grupperade fel: 6 ( 3.80 betyg )
- `content-type=".*javascript.*"` in: #43: cc.js, antal fel: 347 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 306 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: #59: init.js, antal grupperade fel: 6 ( 3.80 betyg )
- `content-type=".*javascript.*"` in: #59: init.js, antal fel: 350 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 306 st)
- Expected X and instead saw X. (totalt 38 st)
- Unnecessary escape character: \[. (totalt 2 st)
- Script URL is a form of eval. (totalt 2 st)
- Unnecessary escape character: \< . (totalt 1 st)
- Unnecessary escape character: \>. (totalt 1 st)
- `content-type=".*javascript.*"` in: #61: init.js, antal grupperade fel: 6 ( 3.80 betyg )
- `content-type=".*javascript.*"` in: #61: init.js, antal fel: 353 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 308 st)
- Expected X and instead saw X. (totalt 38 st)
- Unnecessary escape character: \[. (totalt 3 st)
- Script URL is a form of eval. (totalt 2 st)
- Unnecessary escape character: \< . (totalt 1 st)
- Unnecessary escape character: \>. (totalt 1 st)
- `content-type=".*javascript.*"` in: #62: index.c201fc46., antal grupperade fel: 15 ( 2.00 betyg )
- `content-type=".*javascript.*"` in: #62: index.c201fc46., antal fel: 1037 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 624 st)
- Expected X and instead saw X. (totalt 387 st)
- Do not access Object.prototype method X from target object. (totalt 7 st)
- Unnecessary escape character: \[. (totalt 3 st)
- Unsafe usage of ThrowStatement. (totalt 3 st)
- Script URL is a form of eval. (totalt 2 st)
- Unnecessary X. (totalt 2 st)
- Comparing to itself is potentially pointless. (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)
- X is not modified in this loop. (totalt 1 st)
- eval can be harmful. (totalt 1 st)
- The Function constructor is eval. (totalt 1 st)
- `content-type=".*javascript.*"` in: #63: 578.578.76d582a, antal grupperade fel: 15 ( 2.00 betyg )
- `content-type=".*javascript.*"` in: #63: 578.578.76d582a, antal fel: 1062 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 641 st)
- Expected X and instead saw X. (totalt 395 st)
- Do not access Object.prototype method X from target object. (totalt 7 st)
- Unnecessary escape character: \[. (totalt 3 st)
- Unsafe usage of ThrowStatement. (totalt 3 st)
- Script URL is a form of eval. (totalt 2 st)
- Unnecessary X. (totalt 2 st)
- Comparing to itself is potentially pointless. (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)
- X is not modified in this loop. (totalt 1 st)
- eval can be harmful. (totalt 1 st)
- The Function constructor is eval. (totalt 1 st)
- `content-type=".*javascript.*"` in: #64: 925.925.76d582a, antal grupperade fel: 17 ( 1.60 betyg )
- `content-type=".*javascript.*"` in: #64: 925.925.76d582a, antal fel: 1410 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 866 st)
- Expected X and instead saw X. (totalt 513 st)
- Do not access Object.prototype method X from target object. (totalt 7 st)
- Unnecessary escape character: \[. (totalt 4 st)
- Script URL is a form of eval. (totalt 3 st)
- Comparing to itself is potentially pointless. (totalt 3 st)
- Unsafe usage of ThrowStatement. (totalt 3 st)
- Unnecessary X. (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)
- X is not modified in this loop. (totalt 1 st)
- eval can be harmful. (totalt 1 st)
- The Function constructor is eval. (totalt 1 st)
- Unnecessary escape character: \/. (totalt 1 st)
- Unnecessary escape character: \{. (totalt 1 st)
- `content-type=".*javascript.*"` in: #65: 950.950.76d582a, antal grupperade fel: 26 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #65: 950.950.76d582a, antal fel: 1764 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1024 st)
- Expected X and instead saw X. (totalt 688 st)
- Do not access Object.prototype method X from target object. (totalt 10 st)
- Unnecessary escape character: \[. (totalt 5 st)
- Comparing to itself is potentially pointless. (totalt 5 st)
- Script URL is a form of eval. (totalt 3 st)
- Unnecessary X. (totalt 3 st)
- Unsafe usage of ThrowStatement. (totalt 3 st)
- Unnecessary escape character: \/. (totalt 3 st)
- Unnecessary escape character: \(. (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)
- X is not modified in this loop. (totalt 1 st)
- eval can be harmful. (totalt 1 st)
- The Function constructor is 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)
- `content-type=".*javascript.*"` in: #66: 628.628.76d582a, antal grupperade fel: 26 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #66: 628.628.76d582a, antal fel: 1792 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1027 st)
- Expected X and instead saw X. (totalt 713 st)
- Do not access Object.prototype method X from target object. (totalt 10 st)
- Unnecessary escape character: \[. (totalt 5 st)
- Comparing to itself is potentially pointless. (totalt 5 st)
- Script URL is a form of eval. (totalt 3 st)
- Unnecessary X. (totalt 3 st)
- Unsafe usage of ThrowStatement. (totalt 3 st)
- Unnecessary escape character: \/. (totalt 3 st)
- Unnecessary escape character: \(. (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)
- X is not modified in this loop. (totalt 1 st)
- eval can be harmful. (totalt 1 st)
- The Function constructor is 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)
- `content-type=".*javascript.*"` in: #67: 873.873.76d582a, antal grupperade fel: 26 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #67: 873.873.76d582a, antal fel: 1843 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1060 st)
- Expected X and instead saw X. (totalt 731 st)
- Do not access Object.prototype method X from target object. (totalt 10 st)
- Unnecessary escape character: \[. (totalt 5 st)
- Comparing to itself is potentially pointless. (totalt 5 st)
- Script URL is a form of eval. (totalt 3 st)
- Unnecessary X. (totalt 3 st)
- Unsafe usage of ThrowStatement. (totalt 3 st)
- Unnecessary escape character: \/. (totalt 3 st)
- Unnecessary escape character: \(. (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)
- X is not modified in this loop. (totalt 1 st)
- eval can be harmful. (totalt 1 st)
- The Function constructor is 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)
- `content-type=".*javascript.*"` in: #68: 328.328.76d582a, antal grupperade fel: 27 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #68: 328.328.76d582a, antal fel: 2155 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1233 st)
- Expected X and instead saw X. (totalt 868 st)
- Do not access Object.prototype method X from target object. (totalt 11 st)
- Unnecessary escape character: \[. (totalt 5 st)
- Comparing to itself is potentially pointless. (totalt 5 st)
- Script URL is a form of eval. (totalt 3 st)
- Unnecessary X. (totalt 3 st)
- Unsafe usage of ThrowStatement. (totalt 3 st)
- Unnecessary escape character: \/. (totalt 3 st)
- Unnecessary escape character: \(. (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)
- X is not modified in this loop. (totalt 1 st)
- eval can be harmful. (totalt 1 st)
- The Function constructor is 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)
- `content-type=".*javascript.*"` in: #73: 560.560.76d582a, antal grupperade fel: 27 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #73: 560.560.76d582a, antal fel: 2160 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1236 st)
- Expected X and instead saw X. (totalt 870 st)
- Do not access Object.prototype method X from target object. (totalt 11 st)
- Unnecessary escape character: \[. (totalt 5 st)
- Comparing to itself is potentially pointless. (totalt 5 st)
- Script URL is a form of eval. (totalt 3 st)
- Unnecessary X. (totalt 3 st)
- Unsafe usage of ThrowStatement. (totalt 3 st)
- Unnecessary escape character: \/. (totalt 3 st)
- Unnecessary escape character: \(. (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)
- X is not modified in this loop. (totalt 1 st)
- eval can be harmful. (totalt 1 st)
- The Function constructor is 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)