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.45 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: 1422 ( 1.00 betyg )
- X is not defined. (totalt 1189 st)
- X is defined but never used. (totalt 175 st)
- Unexpected console statement. (totalt 54 st)
- X is assigned a value but never used. (totalt 3 st)
- Parsing error: Unexpected token < (totalt 1 st)
- `< script>` in: #12: cookiesharingif, antal grupperade fel: 3 ( 4.40 betyg )
- `< script>` in: #12: 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: #29: siteanalyze-805, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #29: siteanalyze-805, antal fel: 45 ( 1.00 betyg )
- X is not defined. (totalt 32 st)
- X is defined but never used. (totalt 9 st)
- Unexpected console statement. (totalt 3 st)
- X is assigned a value but never used. (totalt 1 st)
- `content-type=".*javascript.*"` in: #30: sv.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #30: sv.js, antal fel: 46 ( 1.00 betyg )
- X is not defined. (totalt 33 st)
- X is defined but never used. (totalt 9 st)
- Unexpected console statement. (totalt 3 st)
- X is assigned a value but never used. (totalt 1 st)
- `content-type=".*javascript.*"` in: #37: init.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #37: init.js, antal fel: 46 ( 1.00 betyg )
- X is not defined. (totalt 33 st)
- X is defined but never used. (totalt 9 st)
- Unexpected console statement. (totalt 3 st)
- X is assigned a value but never used. (totalt 1 st)
- `content-type=".*javascript.*"` in: #38: index.c201fc46., antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #38: index.c201fc46., antal fel: 98 ( 1.00 betyg )
- X is not defined. (totalt 36 st)
- Unexpected console statement. (totalt 31 st)
- X is defined but never used. (totalt 22 st)
- X is assigned a value but never used. (totalt 9 st)
- `content-type=".*javascript.*"` in: #39: 578.578.76d582a, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #39: 578.578.76d582a, antal fel: 100 ( 1.00 betyg )
- X is not defined. (totalt 36 st)
- Unexpected console statement. (totalt 33 st)
- X is defined but never used. (totalt 22 st)
- X is assigned a value but never used. (totalt 9 st)
- `content-type=".*javascript.*"` in: #40: 925.925.76d582a, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #40: 925.925.76d582a, antal fel: 108 ( 1.00 betyg )
- X is not defined. (totalt 36 st)
- Unexpected console statement. (totalt 35 st)
- X is defined but never used. (totalt 25 st)
- X is assigned a value but never used. (totalt 12 st)
- `content-type=".*javascript.*"` in: #41: 950.950.76d582a, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #41: 950.950.76d582a, antal fel: 124 ( 1.00 betyg )
- Unexpected console statement. (totalt 40 st)
- X is not defined. (totalt 36 st)
- X is defined but never used. (totalt 33 st)
- X is assigned a value but never used. (totalt 15 st)
- `content-type=".*javascript.*"` in: #42: 628.628.76d582a, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #42: 628.628.76d582a, antal fel: 126 ( 1.00 betyg )
- Unexpected console statement. (totalt 40 st)
- X is not defined. (totalt 36 st)
- X is defined but never used. (totalt 35 st)
- X is assigned a value but never used. (totalt 15 st)
- `content-type=".*javascript.*"` in: #43: 873.873.76d582a, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #43: 873.873.76d582a, antal fel: 127 ( 1.00 betyg )
- Unexpected console statement. (totalt 40 st)
- X is not defined. (totalt 36 st)
- X is defined but never used. (totalt 36 st)
- X is assigned a value but never used. (totalt 15 st)
- `content-type=".*javascript.*"` in: #44: 328.328.76d582a, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #44: 328.328.76d582a, antal fel: 149 ( 1.00 betyg )
- X is defined but never used. (totalt 48 st)
- Unexpected console statement. (totalt 46 st)
- X is not defined. (totalt 36 st)
- X is assigned a value but never used. (totalt 19 st)
- `content-type=".*javascript.*"` in: #49: 560.560.76d582a, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #49: 560.560.76d582a, antal fel: 149 ( 1.00 betyg )
- X is defined but never used. (totalt 48 st)
- Unexpected console statement. (totalt 46 st)
- X is not defined. (totalt 36 st)
- X is assigned a value but never used. (totalt 19 st)
- `content-type=".*javascript.*"` in: #50: 229.229.76d582a, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #50: 229.229.76d582a, antal fel: 149 ( 1.00 betyg )
- X is defined but never used. (totalt 48 st)
- Unexpected console statement. (totalt 46 st)
- X is not defined. (totalt 36 st)
- X is assigned a value but never used. (totalt 19 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: 21 ( 1.00 betyg )
- `< script src="...">` in: #1: Webbsida , antal fel: 3562 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 2536 st)
- Expected X and instead saw X. (totalt 930 st)
- Do not access Object.prototype method X from target object. (totalt 22 st)
- Unnecessary escape character: \/. (totalt 15 st)
- Unnecessary escape character: \-. (totalt 12 st)
- Unnecessary escape character: \.. (totalt 12 st)
- Unnecessary escape character: \[. (totalt 8 st)
- X is not modified in this loop. (totalt 4 st)
- X is assigned to itself. (totalt 4 st)
- Comparing to itself is potentially pointless. (totalt 3 st)
- Unnecessary escape character: \%. (totalt 3 st)
- Unnecessary X. (totalt 2 st)
- Unnecessary escape character: \+. (totalt 2 st)
- Unnecessary escape character: \(. (totalt 2 st)
- Script URL is a form of eval. (totalt 1 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)
- Unexpected string concatenation of literals. (totalt 1 st)
- Parsing error: Unexpected token < (totalt 1 st)
- `< script>` in: #12: cookiesharingif, antal grupperade fel: 2 ( 4.60 betyg )
- `< script>` in: #12: 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: #28: init.js, antal grupperade fel: 2 ( 4.60 betyg )
- `content-type=".*javascript.*"` in: #28: init.js, antal fel: 3 ( 4.40 betyg )
- Expected X and instead saw X. (totalt 2 st)
- Unnecessary escape character: \[. (totalt 1 st)
- `content-type=".*javascript.*"` in: #29: siteanalyze-805, antal grupperade fel: 6 ( 3.80 betyg )
- `content-type=".*javascript.*"` in: #29: siteanalyze-805, antal fel: 164 ( 1.00 betyg )
- Expected X and instead saw X. (totalt 80 st)
- Expected an assignment or function call and instead saw an expression. (totalt 67 st)
- Do not access Object.prototype method X from target object. (totalt 9 st)
- Unnecessary escape character: \/. (totalt 5 st)
- Unnecessary escape character: \[. (totalt 2 st)
- Script URL is a form of eval. (totalt 1 st)
- `content-type=".*javascript.*"` in: #30: sv.js, antal grupperade fel: 6 ( 3.80 betyg )
- `content-type=".*javascript.*"` in: #30: sv.js, antal fel: 164 ( 1.00 betyg )
- Expected X and instead saw X. (totalt 80 st)
- Expected an assignment or function call and instead saw an expression. (totalt 67 st)
- Do not access Object.prototype method X from target object. (totalt 9 st)
- Unnecessary escape character: \/. (totalt 5 st)
- Unnecessary escape character: \[. (totalt 2 st)
- Script URL is a form of eval. (totalt 1 st)
- `content-type=".*javascript.*"` in: #37: init.js, antal grupperade fel: 6 ( 3.80 betyg )
- `content-type=".*javascript.*"` in: #37: init.js, antal fel: 167 ( 1.00 betyg )
- Expected X and instead saw X. (totalt 80 st)
- Expected an assignment or function call and instead saw an expression. (totalt 69 st)
- Do not access Object.prototype method X from target object. (totalt 9 st)
- Unnecessary escape character: \/. (totalt 5 st)
- Unnecessary escape character: \[. (totalt 3 st)
- Script URL is a form of eval. (totalt 1 st)
- `content-type=".*javascript.*"` in: #38: index.c201fc46., antal grupperade fel: 14 ( 2.20 betyg )
- `content-type=".*javascript.*"` in: #38: index.c201fc46., antal fel: 851 ( 1.00 betyg )
- Expected X and instead saw X. (totalt 429 st)
- Expected an assignment or function call and instead saw an expression. (totalt 385 st)
- Do not access Object.prototype method X from target object. (totalt 16 st)
- Unnecessary escape character: \/. (totalt 5 st)
- Unnecessary escape character: \[. (totalt 3 st)
- Unsafe usage of ThrowStatement. (totalt 3 st)
- Unnecessary X. (totalt 2 st)
- Comparing to itself is potentially pointless. (totalt 2 st)
- Script URL is a form of eval. (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: #39: 578.578.76d582a, antal grupperade fel: 14 ( 2.20 betyg )
- `content-type=".*javascript.*"` in: #39: 578.578.76d582a, antal fel: 876 ( 1.00 betyg )
- Expected X and instead saw X. (totalt 437 st)
- Expected an assignment or function call and instead saw an expression. (totalt 402 st)
- Do not access Object.prototype method X from target object. (totalt 16 st)
- Unnecessary escape character: \/. (totalt 5 st)
- Unnecessary escape character: \[. (totalt 3 st)
- Unsafe usage of ThrowStatement. (totalt 3 st)
- Unnecessary X. (totalt 2 st)
- Comparing to itself is potentially pointless. (totalt 2 st)
- Script URL is a form of eval. (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: #40: 925.925.76d582a, antal grupperade fel: 15 ( 2.00 betyg )
- `content-type=".*javascript.*"` in: #40: 925.925.76d582a, antal fel: 1224 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 627 st)
- Expected X and instead saw X. (totalt 555 st)
- Do not access Object.prototype method X from target object. (totalt 16 st)
- Unnecessary escape character: \/. (totalt 6 st)
- Unnecessary escape character: \[. (totalt 4 st)
- Comparing to itself is potentially pointless. (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)
- 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)
- `content-type=".*javascript.*"` in: #41: 950.950.76d582a, antal grupperade fel: 24 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #41: 950.950.76d582a, antal fel: 1578 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 785 st)
- Expected X and instead saw X. (totalt 730 st)
- Do not access Object.prototype method X from target object. (totalt 19 st)
- Unnecessary escape character: \/. (totalt 8 st)
- Unnecessary escape character: \[. (totalt 5 st)
- Comparing to itself is potentially pointless. (totalt 5 st)
- Unnecessary X. (totalt 3 st)
- Unsafe usage of ThrowStatement. (totalt 3 st)
- Script URL is a form of eval. (totalt 2 st)
- Unnecessary escape character: \(. (totalt 2 st)
- Unnecessary escape character: \). (totalt 2 st)
- Unnecessary escape character: \{. (totalt 2 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: #42: 628.628.76d582a, antal grupperade fel: 24 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #42: 628.628.76d582a, antal fel: 1606 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 788 st)
- Expected X and instead saw X. (totalt 755 st)
- Do not access Object.prototype method X from target object. (totalt 19 st)
- Unnecessary escape character: \/. (totalt 8 st)
- Unnecessary escape character: \[. (totalt 5 st)
- Comparing to itself is potentially pointless. (totalt 5 st)
- Unnecessary X. (totalt 3 st)
- Unsafe usage of ThrowStatement. (totalt 3 st)
- Script URL is a form of eval. (totalt 2 st)
- Unnecessary escape character: \(. (totalt 2 st)
- Unnecessary escape character: \). (totalt 2 st)
- Unnecessary escape character: \{. (totalt 2 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: #43: 873.873.76d582a, antal grupperade fel: 24 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #43: 873.873.76d582a, antal fel: 1657 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 821 st)
- Expected X and instead saw X. (totalt 773 st)
- Do not access Object.prototype method X from target object. (totalt 19 st)
- Unnecessary escape character: \/. (totalt 8 st)
- Unnecessary escape character: \[. (totalt 5 st)
- Comparing to itself is potentially pointless. (totalt 5 st)
- Unnecessary X. (totalt 3 st)
- Unsafe usage of ThrowStatement. (totalt 3 st)
- Script URL is a form of eval. (totalt 2 st)
- Unnecessary escape character: \(. (totalt 2 st)
- Unnecessary escape character: \). (totalt 2 st)
- Unnecessary escape character: \{. (totalt 2 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: #44: 328.328.76d582a, antal grupperade fel: 25 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #44: 328.328.76d582a, antal fel: 1969 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 994 st)
- Expected X and instead saw X. (totalt 910 st)
- Do not access Object.prototype method X from target object. (totalt 20 st)
- Unnecessary escape character: \/. (totalt 8 st)
- Unnecessary escape character: \[. (totalt 5 st)
- Comparing to itself is potentially pointless. (totalt 5 st)
- Unnecessary X. (totalt 3 st)
- Unsafe usage of ThrowStatement. (totalt 3 st)
- Script URL is a form of eval. (totalt 2 st)
- Unnecessary escape character: \(. (totalt 2 st)
- Unnecessary escape character: \). (totalt 2 st)
- Unnecessary escape character: \{. (totalt 2 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: #49: 560.560.76d582a, antal grupperade fel: 25 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #49: 560.560.76d582a, antal fel: 1974 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 997 st)
- Expected X and instead saw X. (totalt 912 st)
- Do not access Object.prototype method X from target object. (totalt 20 st)
- Unnecessary escape character: \/. (totalt 8 st)
- Unnecessary escape character: \[. (totalt 5 st)
- Comparing to itself is potentially pointless. (totalt 5 st)
- Unnecessary X. (totalt 3 st)
- Unsafe usage of ThrowStatement. (totalt 3 st)
- Script URL is a form of eval. (totalt 2 st)
- Unnecessary escape character: \(. (totalt 2 st)
- Unnecessary escape character: \). (totalt 2 st)
- Unnecessary escape character: \{. (totalt 2 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: #50: 229.229.76d582a, antal grupperade fel: 25 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #50: 229.229.76d582a, antal fel: 1979 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1000 st)
- Expected X and instead saw X. (totalt 914 st)
- Do not access Object.prototype method X from target object. (totalt 20 st)
- Unnecessary escape character: \/. (totalt 8 st)
- Unnecessary escape character: \[. (totalt 5 st)
- Comparing to itself is potentially pointless. (totalt 5 st)
- Unnecessary X. (totalt 3 st)
- Unsafe usage of ThrowStatement. (totalt 3 st)
- Script URL is a form of eval. (totalt 2 st)
- Unnecessary escape character: \(. (totalt 2 st)
- Unnecessary escape character: \). (totalt 2 st)
- Unnecessary escape character: \{. (totalt 2 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)