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.58 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: 466 ( 1.00 betyg )
- X is not defined. (totalt 321 st)
- X is defined but never used. (totalt 98 st)
- Unexpected console statement. (totalt 33 st)
- X is assigned a value but never used. (totalt 14 st)
- `content-type=".*javascript.*"` in: #68: gtm.js, antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #68: gtm.js, antal fel: 574 ( 1.00 betyg )
- X is defined but never used. (totalt 464 st)
- X is assigned a value but never used. (totalt 89 st)
- X is not defined. (totalt 21 st)
- `content-type=".*javascript.*"` in: #77: common.js, antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #77: common.js, antal fel: 586 ( 1.00 betyg )
- X is defined but never used. (totalt 475 st)
- X is assigned a value but never used. (totalt 89 st)
- X is not defined. (totalt 22 st)
- `content-type=".*javascript.*"` in: #78: util.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #78: util.js, antal fel: 605 ( 1.00 betyg )
- X is defined but never used. (totalt 490 st)
- X is assigned a value but never used. (totalt 91 st)
- X is not defined. (totalt 23 st)
- Unexpected console statement. (totalt 1 st)
- `content-type=".*javascript.*"` in: #79: map.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #79: map.js, antal fel: 618 ( 1.00 betyg )
- X is defined but never used. (totalt 497 st)
- X is assigned a value but never used. (totalt 92 st)
- X is not defined. (totalt 24 st)
- Unexpected console statement. (totalt 5 st)
- `content-type=".*javascript.*"` in: #80: marker.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #80: marker.js, antal fel: 623 ( 1.00 betyg )
- X is defined but never used. (totalt 497 st)
- X is assigned a value but never used. (totalt 92 st)
- X is not defined. (totalt 25 st)
- Unexpected console statement. (totalt 9 st)
- `content-type=".*javascript.*"` in: #82: core.gfvbdf8m.j, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #82: core.gfvbdf8m.j, antal fel: 647 ( 1.00 betyg )
- X is defined but never used. (totalt 515 st)
- X is assigned a value but never used. (totalt 94 st)
- X is not defined. (totalt 26 st)
- Unexpected console statement. (totalt 12 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: 32 ( 1.00 betyg )
- `< script src="...">` in: #1: Webbsida , antal fel: 2299 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1303 st)
- Expected X and instead saw X. (totalt 659 st)
- X is assigned to itself. (totalt 219 st)
- Do not access Object.prototype method X from target object. (totalt 22 st)
- Unexpected string concatenation of literals. (totalt 22 st)
- Unnecessary escape character: \/. (totalt 18 st)
- Unnecessary X. (totalt 8 st)
- Unnecessary escape character: \%. (totalt 6 st)
- Unnecessary escape character: \.. (totalt 5 st)
- Unnecessary escape character: \-. (totalt 5 st)
- Unnecessary escape character: \[. (totalt 3 st)
- Unnecessary escape character: \). (totalt 3 st)
- Comparing to itself is potentially pointless. (totalt 2 st)
- Unnecessary escape character: \^. (totalt 2 st)
- Async method X has no X expression. (totalt 2 st)
- Unnecessary escape character: \+. (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)
- Async arrow function has no X expression. (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)
- Unnecessary escape character: \$. (totalt 1 st)
- Unnecessary escape character: \|. (totalt 1 st)
- `< script>` in: #81: sm.25.html, antal grupperade fel: 2 ( 4.60 betyg )
- `< script>` in: #81: sm.25.html, antal fel: 6 ( 3.80 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 3 st)
- Expected X and instead saw X. (totalt 3 st)
- `content-type=".*javascript.*"` in: #68: gtm.js, antal grupperade fel: 10 ( 3.00 betyg )
- `content-type=".*javascript.*"` in: #68: gtm.js, antal fel: 1076 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 773 st)
- Expected X and instead saw X. (totalt 200 st)
- Do not access Object.prototype method X from target object. (totalt 77 st)
- Unnecessary escape character: \/. (totalt 13 st)
- Unnecessary escape character: \-. (totalt 4 st)
- X is not modified in this loop. (totalt 3 st)
- X is assigned to itself. (totalt 3 st)
- eval can be harmful. (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: #77: common.js, antal grupperade fel: 14 ( 2.20 betyg )
- `content-type=".*javascript.*"` in: #77: common.js, antal fel: 1513 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1115 st)
- Expected X and instead saw X. (totalt 284 st)
- Do not access Object.prototype method X from target object. (totalt 79 st)
- Unnecessary escape character: \/. (totalt 14 st)
- Unnecessary escape character: \-. (totalt 4 st)
- Unnecessary escape character: \?. (totalt 4 st)
- X is not modified in this loop. (totalt 3 st)
- X is assigned to itself. (totalt 3 st)
- Unexpected string concatenation of literals. (totalt 2 st)
- eval can be harmful. (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)
- Async method X has no X expression. (totalt 1 st)
- `content-type=".*javascript.*"` in: #78: util.js, antal grupperade fel: 17 ( 1.60 betyg )
- `content-type=".*javascript.*"` in: #78: util.js, antal fel: 2879 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1744 st)
- Expected X and instead saw X. (totalt 997 st)
- Do not access Object.prototype method X from target object. (totalt 89 st)
- Unnecessary escape character: \/. (totalt 14 st)
- X is assigned to itself. (totalt 9 st)
- X is not modified in this loop. (totalt 5 st)
- Unnecessary escape character: \-. (totalt 4 st)
- Unnecessary escape character: \?. (totalt 4 st)
- Unnecessary X. (totalt 3 st)
- Unexpected string concatenation of literals. (totalt 2 st)
- Unnecessary escape character: \$. (totalt 2 st)
- eval can be harmful. (totalt 1 st)
- Comparing to itself is potentially pointless. (totalt 1 st)
- Script URL is a form of eval. (totalt 1 st)
- Async method X has no X expression. (totalt 1 st)
- The Function constructor is eval. (totalt 1 st)
- Unnecessary escape character: \(. (totalt 1 st)
- `content-type=".*javascript.*"` in: #79: map.js, antal grupperade fel: 18 ( 1.40 betyg )
- `content-type=".*javascript.*"` in: #79: map.js, antal fel: 3191 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 2002 st)
- Expected X and instead saw X. (totalt 1039 st)
- Do not access Object.prototype method X from target object. (totalt 92 st)
- Unnecessary escape character: \/. (totalt 15 st)
- X is assigned to itself. (totalt 10 st)
- Unnecessary X. (totalt 6 st)
- Unnecessary escape character: \-. (totalt 5 st)
- X is not modified in this loop. (totalt 5 st)
- Unnecessary escape character: \?. (totalt 4 st)
- eval can be harmful. (totalt 2 st)
- Unexpected string concatenation of literals. (totalt 2 st)
- Unnecessary escape character: \$. (totalt 2 st)
- Async function has no X expression. (totalt 2 st)
- Comparing to itself is potentially pointless. (totalt 1 st)
- Script URL is a form of eval. (totalt 1 st)
- Async method X has no X expression. (totalt 1 st)
- The Function constructor is eval. (totalt 1 st)
- Unnecessary escape character: \(. (totalt 1 st)
- `content-type=".*javascript.*"` in: #80: marker.js, antal grupperade fel: 18 ( 1.40 betyg )
- `content-type=".*javascript.*"` in: #80: marker.js, antal fel: 3520 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 2285 st)
- Expected X and instead saw X. (totalt 1080 st)
- Do not access Object.prototype method X from target object. (totalt 92 st)
- Unnecessary escape character: \/. (totalt 15 st)
- X is assigned to itself. (totalt 15 st)
- Unnecessary X. (totalt 6 st)
- Unnecessary escape character: \-. (totalt 5 st)
- X is not modified in this loop. (totalt 5 st)
- Unnecessary escape character: \?. (totalt 4 st)
- eval can be harmful. (totalt 2 st)
- Unexpected string concatenation of literals. (totalt 2 st)
- Unnecessary escape character: \$. (totalt 2 st)
- Async function has no X expression. (totalt 2 st)
- Comparing to itself is potentially pointless. (totalt 1 st)
- Script URL is a form of eval. (totalt 1 st)
- Async method X has no X expression. (totalt 1 st)
- The Function constructor is eval. (totalt 1 st)
- Unnecessary escape character: \(. (totalt 1 st)
- `content-type=".*javascript.*"` in: #82: core.gfvbdf8m.j, antal grupperade fel: 22 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #82: core.gfvbdf8m.j, antal fel: 3837 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 2446 st)
- Expected X and instead saw X. (totalt 1221 st)
- Do not access Object.prototype method X from target object. (totalt 93 st)
- Unnecessary escape character: \/. (totalt 18 st)
- X is assigned to itself. (totalt 17 st)
- Unnecessary escape character: \-. (totalt 6 st)
- Unnecessary X. (totalt 6 st)
- X is not modified in this loop. (totalt 5 st)
- Script URL is a form of eval. (totalt 4 st)
- Unnecessary escape character: \?. (totalt 4 st)
- eval can be harmful. (totalt 2 st)
- Unexpected string concatenation of literals. (totalt 2 st)
- Unnecessary escape character: \$. (totalt 2 st)
- Async function has no X expression. (totalt 2 st)
- Unnecessary escape character: \.. (totalt 2 st)
- Comparing to itself is potentially pointless. (totalt 1 st)
- Async method X has no X expression. (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)