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.39 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: 425 ( 1.00 betyg )
- X is not defined. (totalt 219 st)
- X is defined but never used. (totalt 148 st)
- Unexpected console statement. (totalt 35 st)
- X is assigned a value but never used. (totalt 23 st)
- `content-type=".*javascript.*"` in: #30: init.js, antal grupperade fel: 1 ( 4.80 betyg )
- `content-type=".*javascript.*"` in: #30: init.js, antal fel: 1 ( 4.80 betyg )
- Unexpected console statement. (totalt 1 st)
- `content-type=".*javascript.*"` in: #31: gtm.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #31: gtm.js, antal fel: 586 ( 1.00 betyg )
- X is defined but never used. (totalt 482 st)
- X is assigned a value but never used. (totalt 84 st)
- X is not defined. (totalt 18 st)
- Unexpected console statement. (totalt 2 st)
- `content-type=".*javascript.*"` in: #43: matomo.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #43: matomo.js, antal fel: 743 ( 1.00 betyg )
- X is defined but never used. (totalt 515 st)
- X is not defined. (totalt 120 st)
- X is assigned a value but never used. (totalt 94 st)
- Unexpected console statement. (totalt 14 st)
- `content-type=".*javascript.*"` in: #47: init.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #47: init.js, antal fel: 743 ( 1.00 betyg )
- X is defined but never used. (totalt 515 st)
- X is not defined. (totalt 120 st)
- X is assigned a value but never used. (totalt 94 st)
- Unexpected console statement. (totalt 14 st)
- `content-type=".*javascript.*"` in: #48: index.c201fc46., antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #48: index.c201fc46., antal fel: 795 ( 1.00 betyg )
- X is defined but never used. (totalt 528 st)
- X is not defined. (totalt 123 st)
- X is assigned a value but never used. (totalt 102 st)
- Unexpected console statement. (totalt 42 st)
- `content-type=".*javascript.*"` in: #49: 578.578.76d582a, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #49: 578.578.76d582a, antal fel: 797 ( 1.00 betyg )
- X is defined but never used. (totalt 528 st)
- X is not defined. (totalt 123 st)
- X is assigned a value but never used. (totalt 102 st)
- Unexpected console statement. (totalt 44 st)
- `content-type=".*javascript.*"` in: #50: 925.925.76d582a, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #50: 925.925.76d582a, antal fel: 805 ( 1.00 betyg )
- X is defined but never used. (totalt 531 st)
- X is not defined. (totalt 123 st)
- X is assigned a value but never used. (totalt 105 st)
- Unexpected console statement. (totalt 46 st)
- `content-type=".*javascript.*"` in: #51: 950.950.76d582a, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #51: 950.950.76d582a, antal fel: 821 ( 1.00 betyg )
- X is defined but never used. (totalt 539 st)
- X is not defined. (totalt 123 st)
- X is assigned a value but never used. (totalt 108 st)
- Unexpected console statement. (totalt 51 st)
- `content-type=".*javascript.*"` in: #52: 628.628.76d582a, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #52: 628.628.76d582a, antal fel: 823 ( 1.00 betyg )
- X is defined but never used. (totalt 541 st)
- X is not defined. (totalt 123 st)
- X is assigned a value but never used. (totalt 108 st)
- Unexpected console statement. (totalt 51 st)
- `content-type=".*javascript.*"` in: #53: 873.873.76d582a, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #53: 873.873.76d582a, antal fel: 824 ( 1.00 betyg )
- X is defined but never used. (totalt 542 st)
- X is not defined. (totalt 123 st)
- X is assigned a value but never used. (totalt 108 st)
- Unexpected console statement. (totalt 51 st)
- `content-type=".*javascript.*"` in: #54: 328.328.76d582a, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #54: 328.328.76d582a, antal fel: 846 ( 1.00 betyg )
- X is defined but never used. (totalt 554 st)
- X is not defined. (totalt 123 st)
- X is assigned a value but never used. (totalt 112 st)
- Unexpected console statement. (totalt 57 st)
- `content-type=".*javascript.*"` in: #59: 560.560.76d582a, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #59: 560.560.76d582a, antal fel: 846 ( 1.00 betyg )
- X is defined but never used. (totalt 554 st)
- X is not defined. (totalt 123 st)
- X is assigned a value but never used. (totalt 112 st)
- Unexpected console statement. (totalt 57 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: 17 ( 1.60 betyg )
- `< script src="...">` in: #1: Webbsida , antal fel: 2138 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1439 st)
- Expected X and instead saw X. (totalt 610 st)
- Do not access Object.prototype method X from target object. (totalt 63 st)
- Unnecessary X. (totalt 7 st)
- The Function constructor is eval. (totalt 3 st)
- Unsafe usage of ThrowStatement. (totalt 2 st)
- Unnecessary escape character: \/. (totalt 2 st)
- Unnecessary escape character: \.. (totalt 2 st)
- Unnecessary escape character: \}. (totalt 2 st)
- Unsafe usage of ReturnStatement. (totalt 1 st)
- Unexpected string concatenation of literals. (totalt 1 st)
- X is not modified in this loop. (totalt 1 st)
- Unnecessary escape character: \$. (totalt 1 st)
- Unnecessary escape character: \?. (totalt 1 st)
- Unnecessary escape character: \!. (totalt 1 st)
- eval can be harmful. (totalt 1 st)
- Comparing to itself is potentially pointless. (totalt 1 st)
- `content-type=".*javascript.*"` in: #30: init.js, antal grupperade fel: 2 ( 4.60 betyg )
- `content-type=".*javascript.*"` in: #30: 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: #31: gtm.js, antal grupperade fel: 9 ( 3.20 betyg )
- `content-type=".*javascript.*"` in: #31: gtm.js, antal fel: 1033 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 737 st)
- Expected X and instead saw X. (totalt 200 st)
- Do not access Object.prototype method X from target object. (totalt 74 st)
- Unnecessary escape character: \/. (totalt 13 st)
- X is not modified in this loop. (totalt 3 st)
- X is assigned to itself. (totalt 3 st)
- Unnecessary escape character: \[. (totalt 1 st)
- Comparing to itself is potentially pointless. (totalt 1 st)
- Script URL is a form of eval. (totalt 1 st)
- `content-type=".*javascript.*"` in: #43: matomo.js, antal grupperade fel: 10 ( 3.00 betyg )
- `content-type=".*javascript.*"` in: #43: matomo.js, antal fel: 1047 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 737 st)
- Expected X and instead saw X. (totalt 210 st)
- Do not access Object.prototype method X from target object. (totalt 77 st)
- Unnecessary escape character: \/. (totalt 13 st)
- X is not modified in this loop. (totalt 3 st)
- X is assigned to itself. (totalt 3 st)
- Unnecessary escape character: \[. (totalt 1 st)
- Comparing to itself is potentially pointless. (totalt 1 st)
- Script URL is a form of eval. (totalt 1 st)
- Unnecessary X. (totalt 1 st)
- `content-type=".*javascript.*"` in: #47: init.js, antal grupperade fel: 10 ( 3.00 betyg )
- `content-type=".*javascript.*"` in: #47: init.js, antal fel: 1050 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 739 st)
- Expected X and instead saw X. (totalt 210 st)
- Do not access Object.prototype method X from target object. (totalt 77 st)
- Unnecessary escape character: \/. (totalt 13 st)
- X is not modified in this loop. (totalt 3 st)
- X is assigned to itself. (totalt 3 st)
- Unnecessary escape character: \[. (totalt 2 st)
- Comparing to itself is potentially pointless. (totalt 1 st)
- Script URL is a form of eval. (totalt 1 st)
- Unnecessary X. (totalt 1 st)
- `content-type=".*javascript.*"` in: #48: index.c201fc46., antal grupperade fel: 15 ( 2.00 betyg )
- `content-type=".*javascript.*"` in: #48: index.c201fc46., antal fel: 1734 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1055 st)
- Expected X and instead saw X. (totalt 559 st)
- Do not access Object.prototype method X from target object. (totalt 84 st)
- Unnecessary escape character: \/. (totalt 13 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 X. (totalt 3 st)
- Unsafe usage of ThrowStatement. (totalt 3 st)
- Unnecessary escape character: \[. (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)
- eval can be harmful. (totalt 1 st)
- The Function constructor is eval. (totalt 1 st)
- `content-type=".*javascript.*"` in: #49: 578.578.76d582a, antal grupperade fel: 15 ( 2.00 betyg )
- `content-type=".*javascript.*"` in: #49: 578.578.76d582a, antal fel: 1759 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1072 st)
- Expected X and instead saw X. (totalt 567 st)
- Do not access Object.prototype method X from target object. (totalt 84 st)
- Unnecessary escape character: \/. (totalt 13 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 X. (totalt 3 st)
- Unsafe usage of ThrowStatement. (totalt 3 st)
- Unnecessary escape character: \[. (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)
- eval can be harmful. (totalt 1 st)
- The Function constructor is eval. (totalt 1 st)
- `content-type=".*javascript.*"` in: #50: 925.925.76d582a, antal grupperade fel: 16 ( 1.80 betyg )
- `content-type=".*javascript.*"` in: #50: 925.925.76d582a, antal fel: 2107 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1297 st)
- Expected X and instead saw X. (totalt 685 st)
- Do not access Object.prototype method X from target object. (totalt 84 st)
- Unnecessary escape character: \/. (totalt 14 st)
- X is not modified in this loop. (totalt 4 st)
- Comparing to itself is potentially pointless. (totalt 4 st)
- Unnecessary escape character: \[. (totalt 3 st)
- X is assigned to itself. (totalt 3 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 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: #51: 950.950.76d582a, antal grupperade fel: 25 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #51: 950.950.76d582a, antal fel: 2461 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1455 st)
- Expected X and instead saw X. (totalt 860 st)
- Do not access Object.prototype method X from target object. (totalt 87 st)
- Unnecessary escape character: \/. (totalt 16 st)
- Comparing to itself is potentially pointless. (totalt 6 st)
- Unnecessary escape character: \[. (totalt 4 st)
- X is not modified in this loop. (totalt 4 st)
- Unnecessary X. (totalt 4 st)
- X is assigned to itself. (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)
- 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: #52: 628.628.76d582a, antal grupperade fel: 25 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #52: 628.628.76d582a, antal fel: 2489 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1458 st)
- Expected X and instead saw X. (totalt 885 st)
- Do not access Object.prototype method X from target object. (totalt 87 st)
- Unnecessary escape character: \/. (totalt 16 st)
- Comparing to itself is potentially pointless. (totalt 6 st)
- Unnecessary escape character: \[. (totalt 4 st)
- X is not modified in this loop. (totalt 4 st)
- Unnecessary X. (totalt 4 st)
- X is assigned to itself. (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)
- 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: #53: 873.873.76d582a, antal grupperade fel: 25 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #53: 873.873.76d582a, antal fel: 2540 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1491 st)
- Expected X and instead saw X. (totalt 903 st)
- Do not access Object.prototype method X from target object. (totalt 87 st)
- Unnecessary escape character: \/. (totalt 16 st)
- Comparing to itself is potentially pointless. (totalt 6 st)
- Unnecessary escape character: \[. (totalt 4 st)
- X is not modified in this loop. (totalt 4 st)
- Unnecessary X. (totalt 4 st)
- X is assigned to itself. (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)
- 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: #54: 328.328.76d582a, antal grupperade fel: 26 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #54: 328.328.76d582a, antal fel: 2852 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1664 st)
- Expected X and instead saw X. (totalt 1040 st)
- Do not access Object.prototype method X from target object. (totalt 88 st)
- Unnecessary escape character: \/. (totalt 16 st)
- Comparing to itself is potentially pointless. (totalt 6 st)
- Unnecessary escape character: \[. (totalt 4 st)
- X is not modified in this loop. (totalt 4 st)
- Unnecessary X. (totalt 4 st)
- X is assigned to itself. (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)
- 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: #59: 560.560.76d582a, antal grupperade fel: 26 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #59: 560.560.76d582a, antal fel: 2857 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1667 st)
- Expected X and instead saw X. (totalt 1042 st)
- Do not access Object.prototype method X from target object. (totalt 88 st)
- Unnecessary escape character: \/. (totalt 16 st)
- Comparing to itself is potentially pointless. (totalt 6 st)
- Unnecessary escape character: \[. (totalt 4 st)
- X is not modified in this loop. (totalt 4 st)
- Unnecessary X. (totalt 4 st)
- X is assigned to itself. (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)
- 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)