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.51 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 self (totalt 1 st)
- `< script src="...">` in: #1: Webbsida , antal grupperade fel: 4 ( 4.20 betyg )
- `< script src="...">` in: #1: Webbsida , antal fel: 91 ( 1.00 betyg )
- X is defined but never used. (totalt 56 st)
- Unexpected console statement. (totalt 15 st)
- X is assigned a value but never used. (totalt 11 st)
- X is not defined. (totalt 9 st)
- `content-type=".*javascript.*"` in: #15: js, antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #15: js, antal fel: 575 ( 1.00 betyg )
- X is defined but never used. (totalt 460 st)
- X is assigned a value but never used. (totalt 90 st)
- X is not defined. (totalt 25 st)
- `content-type=".*javascript.*"` in: #26: js, antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #26: js, antal fel: 1077 ( 1.00 betyg )
- X is defined but never used. (totalt 856 st)
- X is assigned a value but never used. (totalt 180 st)
- X is not defined. (totalt 41 st)
- `content-type=".*javascript.*"` in: #27: analytics.js, antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #27: analytics.js, antal fel: 1107 ( 1.00 betyg )
- X is defined but never used. (totalt 883 st)
- X is assigned a value but never used. (totalt 180 st)
- X is not defined. (totalt 44 st)
- `content-type=".*javascript.*"` in: #34: page-65d0351405, antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #34: page-65d0351405, antal fel: 1109 ( 1.00 betyg )
- X is defined but never used. (totalt 884 st)
- X is assigned a value but never used. (totalt 180 st)
- X is not defined. (totalt 45 st)
- `content-type=".*javascript.*"` in: #35: layout-3af149e2, antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #35: layout-3af149e2, antal fel: 1110 ( 1.00 betyg )
- X is defined but never used. (totalt 884 st)
- X is assigned a value but never used. (totalt 180 st)
- X is not defined. (totalt 46 st)
- `content-type=".*javascript.*"` in: #38: layout-7b30cf2f, antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #38: layout-7b30cf2f, antal fel: 1111 ( 1.00 betyg )
- X is defined but never used. (totalt 884 st)
- X is assigned a value but never used. (totalt 180 st)
- X is not defined. (totalt 47 st)
- `content-type=".*javascript.*"` in: #39: page-47e63f0fd8, antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #39: page-47e63f0fd8, antal fel: 1113 ( 1.00 betyg )
- X is defined but never used. (totalt 885 st)
- X is assigned a value but never used. (totalt 180 st)
- X is not defined. (totalt 48 st)
- `content-type=".*javascript.*"` in: #40: page-645d63cb62, antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #40: page-645d63cb62, antal fel: 1115 ( 1.00 betyg )
- X is defined but never used. (totalt 886 st)
- X is assigned a value but never used. (totalt 180 st)
- X is not defined. (totalt 49 st)
- `content-type=".*javascript.*"` in: #42: page-5891bb1c1a, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #42: page-5891bb1c1a, antal fel: 1121 ( 1.00 betyg )
- X is defined but never used. (totalt 887 st)
- X is assigned a value but never used. (totalt 180 st)
- X is not defined. (totalt 50 st)
- Unexpected console statement. (totalt 4 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 self (totalt 1 st)
- `< script src="...">` in: #1: Webbsida , antal grupperade fel: 10 ( 3.00 betyg )
- `< script src="...">` in: #1: Webbsida , antal fel: 2365 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1242 st)
- Expected X and instead saw X. (totalt 1066 st)
- Do not access Object.prototype method X from target object. (totalt 42 st)
- X is not modified in this loop. (totalt 7 st)
- Comparing to itself is potentially pointless. (totalt 2 st)
- Async function X has no X expression. (totalt 2 st)
- Script URL is a form of eval. (totalt 1 st)
- Async method X has no X expression. (totalt 1 st)
- X is assigned to itself. (totalt 1 st)
- The Function constructor is eval. (totalt 1 st)
- `content-type=".*javascript.*"` in: #15: js, antal grupperade fel: 8 ( 3.40 betyg )
- `content-type=".*javascript.*"` in: #15: js, antal fel: 1145 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 817 st)
- Expected X and instead saw X. (totalt 224 st)
- Do not access Object.prototype method X from target object. (totalt 89 st)
- X is not modified in this loop. (totalt 7 st)
- Unnecessary escape character: \/. (totalt 3 st)
- X is assigned to itself. (totalt 3 st)
- Comparing to itself is potentially pointless. (totalt 1 st)
- Script URL is a form of eval. (totalt 1 st)
- `content-type=".*javascript.*"` in: #26: js, antal grupperade fel: 10 ( 3.00 betyg )
- `content-type=".*javascript.*"` in: #26: js, antal fel: 2503 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1864 st)
- Expected X and instead saw X. (totalt 442 st)
- Do not access Object.prototype method X from target object. (totalt 169 st)
- X is not modified in this loop. (totalt 10 st)
- Unnecessary escape character: \/. (totalt 6 st)
- X is assigned to itself. (totalt 6 st)
- Comparing to itself is potentially pointless. (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: #27: analytics.js, antal grupperade fel: 12 ( 2.60 betyg )
- `content-type=".*javascript.*"` in: #27: analytics.js, antal fel: 2933 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 2098 st)
- Expected X and instead saw X. (totalt 620 st)
- Do not access Object.prototype method X from target object. (totalt 181 st)
- X is not modified in this loop. (totalt 10 st)
- Unnecessary escape character: \/. (totalt 8 st)
- X is assigned to itself. (totalt 6 st)
- Comparing to itself is potentially pointless. (totalt 3 st)
- Script URL is a form of eval. (totalt 2 st)
- Unnecessary escape character: \[. (totalt 2 st)
- Unnecessary escape character: \?. (totalt 1 st)
- Unnecessary escape character: \}. (totalt 1 st)
- Unnecessary X. (totalt 1 st)
- `content-type=".*javascript.*"` in: #34: page-65d0351405, antal grupperade fel: 12 ( 2.60 betyg )
- `content-type=".*javascript.*"` in: #34: page-65d0351405, antal fel: 2958 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 2108 st)
- Expected X and instead saw X. (totalt 635 st)
- Do not access Object.prototype method X from target object. (totalt 181 st)
- X is not modified in this loop. (totalt 10 st)
- Unnecessary escape character: \/. (totalt 8 st)
- X is assigned to itself. (totalt 6 st)
- Comparing to itself is potentially pointless. (totalt 3 st)
- Script URL is a form of eval. (totalt 2 st)
- Unnecessary escape character: \[. (totalt 2 st)
- Unnecessary escape character: \?. (totalt 1 st)
- Unnecessary escape character: \}. (totalt 1 st)
- Unnecessary X. (totalt 1 st)
- `content-type=".*javascript.*"` in: #35: layout-3af149e2, antal grupperade fel: 12 ( 2.60 betyg )
- `content-type=".*javascript.*"` in: #35: layout-3af149e2, antal fel: 2961 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 2111 st)
- Expected X and instead saw X. (totalt 635 st)
- Do not access Object.prototype method X from target object. (totalt 181 st)
- X is not modified in this loop. (totalt 10 st)
- Unnecessary escape character: \/. (totalt 8 st)
- X is assigned to itself. (totalt 6 st)
- Comparing to itself is potentially pointless. (totalt 3 st)
- Script URL is a form of eval. (totalt 2 st)
- Unnecessary escape character: \[. (totalt 2 st)
- Unnecessary escape character: \?. (totalt 1 st)
- Unnecessary escape character: \}. (totalt 1 st)
- Unnecessary X. (totalt 1 st)
- `content-type=".*javascript.*"` in: #38: layout-7b30cf2f, antal grupperade fel: 12 ( 2.60 betyg )
- `content-type=".*javascript.*"` in: #38: layout-7b30cf2f, antal fel: 2964 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 2114 st)
- Expected X and instead saw X. (totalt 635 st)
- Do not access Object.prototype method X from target object. (totalt 181 st)
- X is not modified in this loop. (totalt 10 st)
- Unnecessary escape character: \/. (totalt 8 st)
- X is assigned to itself. (totalt 6 st)
- Comparing to itself is potentially pointless. (totalt 3 st)
- Script URL is a form of eval. (totalt 2 st)
- Unnecessary escape character: \[. (totalt 2 st)
- Unnecessary escape character: \?. (totalt 1 st)
- Unnecessary escape character: \}. (totalt 1 st)
- Unnecessary X. (totalt 1 st)
- `content-type=".*javascript.*"` in: #39: page-47e63f0fd8, antal grupperade fel: 12 ( 2.60 betyg )
- `content-type=".*javascript.*"` in: #39: page-47e63f0fd8, antal fel: 2989 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 2124 st)
- Expected X and instead saw X. (totalt 650 st)
- Do not access Object.prototype method X from target object. (totalt 181 st)
- X is not modified in this loop. (totalt 10 st)
- Unnecessary escape character: \/. (totalt 8 st)
- X is assigned to itself. (totalt 6 st)
- Comparing to itself is potentially pointless. (totalt 3 st)
- Script URL is a form of eval. (totalt 2 st)
- Unnecessary escape character: \[. (totalt 2 st)
- Unnecessary escape character: \?. (totalt 1 st)
- Unnecessary escape character: \}. (totalt 1 st)
- Unnecessary X. (totalt 1 st)
- `content-type=".*javascript.*"` in: #40: page-645d63cb62, antal grupperade fel: 12 ( 2.60 betyg )
- `content-type=".*javascript.*"` in: #40: page-645d63cb62, antal fel: 3014 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 2134 st)
- Expected X and instead saw X. (totalt 665 st)
- Do not access Object.prototype method X from target object. (totalt 181 st)
- X is not modified in this loop. (totalt 10 st)
- Unnecessary escape character: \/. (totalt 8 st)
- X is assigned to itself. (totalt 6 st)
- Comparing to itself is potentially pointless. (totalt 3 st)
- Script URL is a form of eval. (totalt 2 st)
- Unnecessary escape character: \[. (totalt 2 st)
- Unnecessary escape character: \?. (totalt 1 st)
- Unnecessary escape character: \}. (totalt 1 st)
- Unnecessary X. (totalt 1 st)
- `content-type=".*javascript.*"` in: #42: page-5891bb1c1a, antal grupperade fel: 12 ( 2.60 betyg )
- `content-type=".*javascript.*"` in: #42: page-5891bb1c1a, antal fel: 3044 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 2149 st)
- Expected X and instead saw X. (totalt 680 st)
- Do not access Object.prototype method X from target object. (totalt 181 st)
- X is not modified in this loop. (totalt 10 st)
- Unnecessary escape character: \/. (totalt 8 st)
- X is assigned to itself. (totalt 6 st)
- Comparing to itself is potentially pointless. (totalt 3 st)
- Script URL is a form of eval. (totalt 2 st)
- Unnecessary escape character: \[. (totalt 2 st)
- Unnecessary escape character: \?. (totalt 1 st)
- Unnecessary escape character: \}. (totalt 1 st)
- Unnecessary X. (totalt 1 st)