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: 3.30 av 5
- JS är ok.
Webbstandard
- `< script src="...">` in: #1: Webbsida , antal grupperade fel: 4 ( 4.20 betyg )
- `< script src="...">` in: #1: Webbsida , antal fel: 95 ( 1.00 betyg )
- X is defined but never used. (totalt 43 st)
- X is not defined. (totalt 36 st)
- X is assigned a value but never used. (totalt 14 st)
- Unexpected console statement. (totalt 2 st)
- `< script>` in: #35: viewer, antal grupperade fel: 1 ( 4.80 betyg )
- `< script>` in: #35: viewer, antal fel: 1 ( 4.80 betyg )
- Parsing error: Unexpected token _init (totalt 1 st)
- `< script src="...">` in: #35: viewer, antal grupperade fel: 4 ( 4.20 betyg )
- `< script src="...">` in: #35: viewer, antal fel: 265 ( 1.00 betyg )
- X is defined but never used. (totalt 154 st)
- X is not defined. (totalt 83 st)
- X is assigned a value but never used. (totalt 18 st)
- Unexpected console statement. (totalt 10 st)
- `< script>` in: #36: viewer, antal grupperade fel: 1 ( 4.80 betyg )
- `< script>` in: #36: viewer, antal fel: 1 ( 4.80 betyg )
- Parsing error: Unexpected token _init (totalt 1 st)
- `< script src="...">` in: #36: viewer, antal grupperade fel: 4 ( 4.20 betyg )
- `< script src="...">` in: #36: viewer, antal fel: 265 ( 1.00 betyg )
- X is defined but never used. (totalt 154 st)
- X is not defined. (totalt 83 st)
- X is assigned a value but never used. (totalt 18 st)
- Unexpected console statement. (totalt 10 st)
- `< script>` in: #60: proxy.html, antal grupperade fel: 1 ( 4.80 betyg )
- `< script>` in: #60: proxy.html, antal fel: 1 ( 4.80 betyg )
- X is not defined. (totalt 1 st)
- `< script src="...">` in: #60: proxy.html, antal grupperade fel: 2 ( 4.60 betyg )
- `< script src="...">` in: #60: proxy.html, antal fel: 4 ( 4.20 betyg )
- X is defined but never used. (totalt 3 st)
- Unexpected console statement. (totalt 1 st)
- `< script>` in: #64: proxy.html, antal grupperade fel: 1 ( 4.80 betyg )
- `< script>` in: #64: proxy.html, antal fel: 1 ( 4.80 betyg )
- X is not defined. (totalt 1 st)
- `< script src="...">` in: #64: proxy.html, antal grupperade fel: 2 ( 4.60 betyg )
- `< script src="...">` in: #64: proxy.html, antal fel: 4 ( 4.20 betyg )
- X is defined but never used. (totalt 3 st)
- Unexpected console statement. (totalt 1 st)
- `content-type=".*javascript.*"` in: #54: lazy.min.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #54: lazy.min.js, antal fel: 45 ( 1.00 betyg )
- X is defined but never used. (totalt 39 st)
- X is assigned a value but never used. (totalt 3 st)
- X is not defined. (totalt 2 st)
- Unexpected console statement. (totalt 1 st)
- `content-type=".*javascript.*"` in: #55: cb-gapi.loaded-, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #55: cb-gapi.loaded-, antal fel: 166 ( 1.00 betyg )
- X is defined but never used. (totalt 153 st)
- X is assigned a value but never used. (totalt 6 st)
- X is not defined. (totalt 5 st)
- Unexpected console statement. (totalt 2 st)
- `content-type=".*javascript.*"` in: #65: cb-gapi.loaded-, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #65: cb-gapi.loaded-, antal fel: 204 ( 1.00 betyg )
- X is defined but never used. (totalt 189 st)
- X is not defined. (totalt 7 st)
- X is assigned a value but never used. (totalt 6 st)
- Unexpected console statement. (totalt 2 st)
Integritet & säkerhet
- `< script src="...">` in: #1: Webbsida , antal grupperade fel: 13 ( 2.40 betyg )
- `< script src="...">` in: #1: Webbsida , antal fel: 137 ( 1.00 betyg )
- Expected X and instead saw X. (totalt 70 st)
- Expected an assignment or function call and instead saw an expression. (totalt 18 st)
- Unexpected string concatenation of literals. (totalt 17 st)
- Unnecessary escape character: \-. (totalt 12 st)
- Unnecessary escape character: \/. (totalt 7 st)
- Unnecessary escape character: \.. (totalt 4 st)
- X is not modified in this loop. (totalt 3 st)
- The Function constructor is eval. (totalt 1 st)
- Unnecessary X. (totalt 1 st)
- Do not access Object.prototype method X from target object. (totalt 1 st)
- Unnecessary escape character: \=. (totalt 1 st)
- Unnecessary escape character: \[. (totalt 1 st)
- Unnecessary escape character: \+. (totalt 1 st)
- `< script>` in: #35: viewer, antal grupperade fel: 1 ( 4.80 betyg )
- `< script>` in: #35: viewer, antal fel: 1 ( 4.80 betyg )
- Parsing error: Unexpected token _init (totalt 1 st)
- `< script src="...">` in: #35: viewer, antal grupperade fel: 19 ( 1.20 betyg )
- `< script src="...">` in: #35: viewer, antal fel: 7118 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 4442 st)
- Expected X and instead saw X. (totalt 2572 st)
- Do not access Object.prototype method X from target object. (totalt 23 st)
- Unnecessary escape character: \/. (totalt 19 st)
- Unnecessary X. (totalt 17 st)
- Comparing to itself is potentially pointless. (totalt 8 st)
- Unnecessary escape character: \-. (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)
- Unnecessary escape character: \). (totalt 3 st)
- X is assigned to itself. (totalt 3 st)
- Script URL is a form of eval. (totalt 3 st)
- Unnecessary escape character: \[. (totalt 2 st)
- Unnecessary escape character: \^. (totalt 2 st)
- Unnecessary escape character: \+. (totalt 1 st)
- Unnecessary escape character: \(. (totalt 1 st)
- Unsafe usage of ReturnStatement. (totalt 1 st)
- eval can be harmful. (totalt 1 st)
- `< script>` in: #36: viewer, antal grupperade fel: 1 ( 4.80 betyg )
- `< script>` in: #36: viewer, antal fel: 1 ( 4.80 betyg )
- Parsing error: Unexpected token _init (totalt 1 st)
- `< script src="...">` in: #36: viewer, antal grupperade fel: 19 ( 1.20 betyg )
- `< script src="...">` in: #36: viewer, antal fel: 7118 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 4442 st)
- Expected X and instead saw X. (totalt 2572 st)
- Do not access Object.prototype method X from target object. (totalt 23 st)
- Unnecessary escape character: \/. (totalt 19 st)
- Unnecessary X. (totalt 17 st)
- Comparing to itself is potentially pointless. (totalt 8 st)
- Unnecessary escape character: \-. (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)
- Unnecessary escape character: \). (totalt 3 st)
- X is assigned to itself. (totalt 3 st)
- Script URL is a form of eval. (totalt 3 st)
- Unnecessary escape character: \[. (totalt 2 st)
- Unnecessary escape character: \^. (totalt 2 st)
- Unnecessary escape character: \+. (totalt 1 st)
- Unnecessary escape character: \(. (totalt 1 st)
- Unsafe usage of ReturnStatement. (totalt 1 st)
- eval can be harmful. (totalt 1 st)
- `< script src="...">` in: #60: proxy.html, antal grupperade fel: 6 ( 3.80 betyg )
- `< script src="...">` in: #60: proxy.html, antal fel: 73 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 43 st)
- Expected X and instead saw X. (totalt 22 st)
- Comparing to itself is potentially pointless. (totalt 3 st)
- Unnecessary escape character: \-. (totalt 2 st)
- Unnecessary escape character: \/. (totalt 2 st)
- Unnecessary escape character: \.. (totalt 1 st)
- `< script src="...">` in: #64: proxy.html, antal grupperade fel: 6 ( 3.80 betyg )
- `< script src="...">` in: #64: proxy.html, antal fel: 73 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 43 st)
- Expected X and instead saw X. (totalt 22 st)
- Comparing to itself is potentially pointless. (totalt 3 st)
- Unnecessary escape character: \-. (totalt 2 st)
- Unnecessary escape character: \/. (totalt 2 st)
- Unnecessary escape character: \.. (totalt 1 st)
- `content-type=".*javascript.*"` in: #54: lazy.min.js, antal grupperade fel: 12 ( 2.60 betyg )
- `content-type=".*javascript.*"` in: #54: lazy.min.js, antal fel: 583 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 275 st)
- Expected X and instead saw X. (totalt 269 st)
- X is assigned to itself. (totalt 16 st)
- Unnecessary X. (totalt 7 st)
- Comparing to itself is potentially pointless. (totalt 4 st)
- Unnecessary escape character: \?. (totalt 4 st)
- Unnecessary escape character: \/. (totalt 2 st)
- Unnecessary escape character: \-. (totalt 2 st)
- Unnecessary escape character: \[. (totalt 1 st)
- Unnecessary escape character: \^. (totalt 1 st)
- Do not access Object.prototype method X from target object. (totalt 1 st)
- eval can be harmful. (totalt 1 st)
- `content-type=".*javascript.*"` in: #55: cb-gapi.loaded-, antal grupperade fel: 22 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #55: cb-gapi.loaded-, antal fel: 2425 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1346 st)
- Expected X and instead saw X. (totalt 897 st)
- X is assigned to itself. (totalt 39 st)
- Do not access Object.prototype method X from target object. (totalt 30 st)
- Unnecessary escape character: \/. (totalt 27 st)
- Unnecessary X. (totalt 26 st)
- Unnecessary escape character: \?. (totalt 10 st)
- Unnecessary escape character: \.. (totalt 10 st)
- Unnecessary escape character: \-. (totalt 9 st)
- Comparing to itself is potentially pointless. (totalt 8 st)
- Unnecessary escape character: \[. (totalt 4 st)
- The Function constructor is eval. (totalt 4 st)
- Unnecessary escape character: \^. (totalt 3 st)
- eval can be harmful. (totalt 2 st)
- Unnecessary escape character: \). (totalt 2 st)
- Unnecessary escape character: \{. (totalt 2 st)
- Unnecessary escape character: \}. (totalt 1 st)
- Script URL is a form of 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)
- `content-type=".*javascript.*"` in: #65: cb-gapi.loaded-, antal grupperade fel: 22 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #65: cb-gapi.loaded-, antal fel: 2834 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1515 st)
- Expected X and instead saw X. (totalt 1092 st)
- X is assigned to itself. (totalt 44 st)
- Do not access Object.prototype method X from target object. (totalt 34 st)
- Unnecessary X. (totalt 32 st)
- Unnecessary escape character: \/. (totalt 32 st)
- Unnecessary escape character: \.. (totalt 14 st)
- Comparing to itself is potentially pointless. (totalt 12 st)
- Unnecessary escape character: \?. (totalt 10 st)
- Unnecessary escape character: \-. (totalt 9 st)
- Unnecessary escape character: \[. (totalt 7 st)
- The Function constructor is eval. (totalt 6 st)
- Unnecessary escape character: \^. (totalt 5 st)
- Unnecessary escape character: \). (totalt 4 st)
- Unnecessary escape character: \{. (totalt 4 st)
- eval can be harmful. (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)
- Script URL is a form of eval. (totalt 1 st)