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.20 av 5
- JS är dålig.
Webbstandard
- `< script src="...">` in: #1: Webbsida , antal grupperade fel: 4 ( 4.20 betyg )
- `< script src="...">` in: #1: Webbsida , antal fel: 27 ( 1.00 betyg )
- X is defined but never used. (totalt 14 st)
- X is not defined. (totalt 7 st)
- Unexpected console statement. (totalt 5 st)
- Parsing error: Unexpected token : (totalt 1 st)
- `content-type=".*javascript.*"` in: #20: gtm.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #20: gtm.js, antal fel: 495 ( 1.00 betyg )
- X is defined but never used. (totalt 386 st)
- X is assigned a value but never used. (totalt 94 st)
- X is not defined. (totalt 14 st)
- Unexpected console statement. (totalt 1 st)
- `content-type=".*javascript.*"` in: #42: init.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #42: init.js, antal fel: 495 ( 1.00 betyg )
- X is defined but never used. (totalt 386 st)
- X is assigned a value but never used. (totalt 94 st)
- X is not defined. (totalt 14 st)
- Unexpected console statement. (totalt 1 st)
- `content-type=".*javascript.*"` in: #44: siteanalyze-805, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #44: siteanalyze-805, antal fel: 540 ( 1.00 betyg )
- X is defined but never used. (totalt 395 st)
- X is assigned a value but never used. (totalt 95 st)
- X is not defined. (totalt 46 st)
- Unexpected console statement. (totalt 4 st)
- `content-type=".*javascript.*"` in: #46: init.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #46: init.js, antal fel: 540 ( 1.00 betyg )
- X is defined but never used. (totalt 395 st)
- X is assigned a value but never used. (totalt 95 st)
- X is not defined. (totalt 46 st)
- Unexpected console statement. (totalt 4 st)
- `content-type=".*javascript.*"` in: #53: index.c201fc46., antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #53: index.c201fc46., antal fel: 592 ( 1.00 betyg )
- X is defined but never used. (totalt 408 st)
- X is assigned a value but never used. (totalt 103 st)
- X is not defined. (totalt 49 st)
- Unexpected console statement. (totalt 32 st)
- `content-type=".*javascript.*"` in: #54: 578.578.76d582a, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #54: 578.578.76d582a, antal fel: 594 ( 1.00 betyg )
- X is defined but never used. (totalt 408 st)
- X is assigned a value but never used. (totalt 103 st)
- X is not defined. (totalt 49 st)
- Unexpected console statement. (totalt 34 st)
- `content-type=".*javascript.*"` in: #55: 925.925.76d582a, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #55: 925.925.76d582a, antal fel: 602 ( 1.00 betyg )
- X is defined but never used. (totalt 411 st)
- X is assigned a value but never used. (totalt 106 st)
- X is not defined. (totalt 49 st)
- Unexpected console statement. (totalt 36 st)
- `content-type=".*javascript.*"` in: #56: 950.950.76d582a, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #56: 950.950.76d582a, antal fel: 618 ( 1.00 betyg )
- X is defined but never used. (totalt 419 st)
- X is assigned a value but never used. (totalt 109 st)
- X is not defined. (totalt 49 st)
- Unexpected console statement. (totalt 41 st)
- `content-type=".*javascript.*"` in: #57: 628.628.76d582a, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #57: 628.628.76d582a, antal fel: 620 ( 1.00 betyg )
- X is defined but never used. (totalt 421 st)
- X is assigned a value but never used. (totalt 109 st)
- X is not defined. (totalt 49 st)
- Unexpected console statement. (totalt 41 st)
- `content-type=".*javascript.*"` in: #58: 873.873.76d582a, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #58: 873.873.76d582a, antal fel: 621 ( 1.00 betyg )
- X is defined but never used. (totalt 422 st)
- X is assigned a value but never used. (totalt 109 st)
- X is not defined. (totalt 49 st)
- Unexpected console statement. (totalt 41 st)
- `content-type=".*javascript.*"` in: #59: 328.328.76d582a, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #59: 328.328.76d582a, antal fel: 643 ( 1.00 betyg )
- X is defined but never used. (totalt 434 st)
- X is assigned a value but never used. (totalt 113 st)
- X is not defined. (totalt 49 st)
- Unexpected console statement. (totalt 47 st)
Integritet & säkerhet
- `< script>` in: #1: Webbsida , antal grupperade fel: 2 ( 4.60 betyg )
- `< script>` in: #1: Webbsida , antal fel: 3 ( 4.40 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 2 st)
- Expected X and instead saw X. (totalt 1 st)
- `< script src="...">` in: #1: Webbsida , antal grupperade fel: 12 ( 2.60 betyg )
- `< script src="...">` in: #1: Webbsida , antal fel: 661 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 434 st)
- Expected X and instead saw X. (totalt 210 st)
- Unnecessary X. (totalt 3 st)
- Unnecessary escape character: \/. (totalt 3 st)
- Do not access Object.prototype method X from target object. (totalt 2 st)
- Comparing to itself is potentially pointless. (totalt 2 st)
- Unnecessary escape character: \-. (totalt 2 st)
- Unnecessary escape character: \[. (totalt 1 st)
- Unnecessary escape character: \.. (totalt 1 st)
- X is assigned to itself. (totalt 1 st)
- Unexpected string concatenation of literals. (totalt 1 st)
- Parsing error: Unexpected token : (totalt 1 st)
- `content-type=".*javascript.*"` in: #20: gtm.js, antal grupperade fel: 11 ( 2.80 betyg )
- `content-type=".*javascript.*"` in: #20: gtm.js, antal fel: 1336 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1013 st)
- Expected X and instead saw X. (totalt 222 st)
- Do not access Object.prototype method X from target object. (totalt 87 st)
- X is not modified in this loop. (totalt 3 st)
- Unnecessary escape character: \/. (totalt 3 st)
- X is assigned to itself. (totalt 3 st)
- Comparing to itself is potentially pointless. (totalt 1 st)
- Unnecessary escape character: \?. (totalt 1 st)
- Unnecessary escape character: \.. (totalt 1 st)
- Unexpected string concatenation of literals. (totalt 1 st)
- Script URL is a form of eval. (totalt 1 st)
- `content-type=".*javascript.*"` in: #42: init.js, antal grupperade fel: 12 ( 2.60 betyg )
- `content-type=".*javascript.*"` in: #42: init.js, antal fel: 1339 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1013 st)
- Expected X and instead saw X. (totalt 224 st)
- Do not access Object.prototype method X from target object. (totalt 87 st)
- X is not modified in this loop. (totalt 3 st)
- Unnecessary escape character: \/. (totalt 3 st)
- X is assigned to itself. (totalt 3 st)
- Comparing to itself is potentially pointless. (totalt 1 st)
- Unnecessary escape character: \?. (totalt 1 st)
- Unnecessary escape character: \.. (totalt 1 st)
- Unexpected string concatenation of literals. (totalt 1 st)
- Script URL is a form of eval. (totalt 1 st)
- Unnecessary escape character: \[. (totalt 1 st)
- `content-type=".*javascript.*"` in: #44: siteanalyze-805, antal grupperade fel: 12 ( 2.60 betyg )
- `content-type=".*javascript.*"` in: #44: siteanalyze-805, antal fel: 1500 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1080 st)
- Expected X and instead saw X. (totalt 302 st)
- Do not access Object.prototype method X from target object. (totalt 96 st)
- Unnecessary escape character: \/. (totalt 8 st)
- X is not modified in this loop. (totalt 3 st)
- X is assigned to itself. (totalt 3 st)
- Script URL is a form of 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)
- Unexpected string concatenation of literals. (totalt 1 st)
- `content-type=".*javascript.*"` in: #46: init.js, antal grupperade fel: 12 ( 2.60 betyg )
- `content-type=".*javascript.*"` in: #46: init.js, antal fel: 1503 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1082 st)
- Expected X and instead saw X. (totalt 302 st)
- Do not access Object.prototype method X from target object. (totalt 96 st)
- Unnecessary escape character: \/. (totalt 8 st)
- X is not modified in this loop. (totalt 3 st)
- X is assigned to itself. (totalt 3 st)
- Unnecessary escape character: \[. (totalt 3 st)
- Script URL is a form of eval. (totalt 2 st)
- Comparing to itself is potentially pointless. (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: #53: index.c201fc46., antal grupperade fel: 18 ( 1.40 betyg )
- `content-type=".*javascript.*"` in: #53: index.c201fc46., antal fel: 2187 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1398 st)
- Expected X and instead saw X. (totalt 651 st)
- Do not access Object.prototype method X from target object. (totalt 103 st)
- Unnecessary escape character: \/. (totalt 8 st)
- X is not modified in this loop. (totalt 4 st)
- X is assigned to itself. (totalt 3 st)
- Comparing to itself is potentially pointless. (totalt 3 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)
- Unnecessary escape character: \?. (totalt 1 st)
- Unnecessary escape character: \.. (totalt 1 st)
- Unexpected string concatenation of literals. (totalt 1 st)
- Unnecessary escape character: \(. (totalt 1 st)
- Unnecessary escape character: \). (totalt 1 st)
- eval can be harmful. (totalt 1 st)
- The Function constructor is eval. (totalt 1 st)
- `content-type=".*javascript.*"` in: #54: 578.578.76d582a, antal grupperade fel: 18 ( 1.40 betyg )
- `content-type=".*javascript.*"` in: #54: 578.578.76d582a, antal fel: 2212 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1415 st)
- Expected X and instead saw X. (totalt 659 st)
- Do not access Object.prototype method X from target object. (totalt 103 st)
- Unnecessary escape character: \/. (totalt 8 st)
- X is not modified in this loop. (totalt 4 st)
- X is assigned to itself. (totalt 3 st)
- Comparing to itself is potentially pointless. (totalt 3 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)
- Unnecessary escape character: \?. (totalt 1 st)
- Unnecessary escape character: \.. (totalt 1 st)
- Unexpected string concatenation of literals. (totalt 1 st)
- Unnecessary escape character: \(. (totalt 1 st)
- Unnecessary escape character: \). (totalt 1 st)
- eval can be harmful. (totalt 1 st)
- The Function constructor is eval. (totalt 1 st)
- `content-type=".*javascript.*"` in: #55: 925.925.76d582a, antal grupperade fel: 19 ( 1.20 betyg )
- `content-type=".*javascript.*"` in: #55: 925.925.76d582a, antal fel: 2560 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1640 st)
- Expected X and instead saw X. (totalt 777 st)
- Do not access Object.prototype method X from target object. (totalt 103 st)
- Unnecessary escape character: \/. (totalt 9 st)
- X is not modified in this loop. (totalt 4 st)
- Comparing to itself is potentially pointless. (totalt 4 st)
- Unnecessary escape character: \[. (totalt 4 st)
- X is assigned to itself. (totalt 3 st)
- Script URL is a form of eval. (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)
- Unexpected string concatenation of literals. (totalt 1 st)
- Unnecessary escape character: \(. (totalt 1 st)
- Unnecessary escape character: \). (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: #56: 950.950.76d582a, antal grupperade fel: 26 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #56: 950.950.76d582a, antal fel: 2914 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1798 st)
- Expected X and instead saw X. (totalt 952 st)
- Do not access Object.prototype method X from target object. (totalt 106 st)
- Unnecessary escape character: \/. (totalt 11 st)
- Comparing to itself is potentially pointless. (totalt 6 st)
- Unnecessary escape character: \[. (totalt 5 st)
- X is not modified in this loop. (totalt 4 st)
- X is assigned to itself. (totalt 3 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 2 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)
- Unexpected string concatenation of literals. (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)
- `content-type=".*javascript.*"` in: #57: 628.628.76d582a, antal grupperade fel: 26 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #57: 628.628.76d582a, antal fel: 2942 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1801 st)
- Expected X and instead saw X. (totalt 977 st)
- Do not access Object.prototype method X from target object. (totalt 106 st)
- Unnecessary escape character: \/. (totalt 11 st)
- Comparing to itself is potentially pointless. (totalt 6 st)
- Unnecessary escape character: \[. (totalt 5 st)
- X is not modified in this loop. (totalt 4 st)
- X is assigned to itself. (totalt 3 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 2 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)
- Unexpected string concatenation of literals. (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)
- `content-type=".*javascript.*"` in: #58: 873.873.76d582a, antal grupperade fel: 26 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #58: 873.873.76d582a, antal fel: 2993 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1834 st)
- Expected X and instead saw X. (totalt 995 st)
- Do not access Object.prototype method X from target object. (totalt 106 st)
- Unnecessary escape character: \/. (totalt 11 st)
- Comparing to itself is potentially pointless. (totalt 6 st)
- Unnecessary escape character: \[. (totalt 5 st)
- X is not modified in this loop. (totalt 4 st)
- X is assigned to itself. (totalt 3 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 2 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)
- Unexpected string concatenation of literals. (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)
- `content-type=".*javascript.*"` in: #59: 328.328.76d582a, antal grupperade fel: 27 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #59: 328.328.76d582a, antal fel: 3305 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 2007 st)
- Expected X and instead saw X. (totalt 1132 st)
- Do not access Object.prototype method X from target object. (totalt 107 st)
- Unnecessary escape character: \/. (totalt 11 st)
- Comparing to itself is potentially pointless. (totalt 6 st)
- Unnecessary escape character: \[. (totalt 5 st)
- X is not modified in this loop. (totalt 4 st)
- X is assigned to itself. (totalt 3 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 2 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)
- Unexpected string concatenation of literals. (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)