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.16 av 5
- JS är ok.
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: 5 ( 4.00 betyg )
- `< script src="...">` in: #1: Webbsida , antal fel: 1265 ( 1.00 betyg )
- X is not defined. (totalt 1167 st)
- X is defined but never used. (totalt 48 st)
- Unexpected console statement. (totalt 31 st)
- X is assigned a value but never used. (totalt 18 st)
- Parsing error: Unexpected token : (totalt 1 st)
- `< script>` in: #32: bc-v4.min.html, antal grupperade fel: 1 ( 4.80 betyg )
- `< script>` in: #32: bc-v4.min.html, antal fel: 1 ( 4.80 betyg )
- X is defined but never used. (totalt 1 st)
- `content-type=".*javascript.*"` in: #16: index.min.js, antal grupperade fel: 1 ( 4.80 betyg )
- `content-type=".*javascript.*"` in: #16: index.min.js, antal fel: 6 ( 3.80 betyg )
- X is defined but never used. (totalt 6 st)
- `content-type=".*javascript.*"` in: #23: configuration.j, antal grupperade fel: 2 ( 4.60 betyg )
- `content-type=".*javascript.*"` in: #23: configuration.j, antal fel: 7 ( 3.60 betyg )
- X is defined but never used. (totalt 6 st)
- X is not defined. (totalt 1 st)
- `content-type=".*javascript.*"` in: #24: cc.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #24: cc.js, antal fel: 35 ( 1.00 betyg )
- X is defined but never used. (totalt 18 st)
- X is not defined. (totalt 10 st)
- X is assigned a value but never used. (totalt 6 st)
- Unexpected console statement. (totalt 1 st)
- `content-type=".*javascript.*"` in: #35: lazyload-10.19., antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #35: lazyload-10.19., antal fel: 38 ( 1.00 betyg )
- X is defined but never used. (totalt 19 st)
- X is not defined. (totalt 12 st)
- X is assigned a value but never used. (totalt 6 st)
- Unexpected console statement. (totalt 1 st)
- `content-type=".*javascript.*"` in: #36: index.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #36: index.js, antal fel: 42 ( 1.00 betyg )
- X is defined but never used. (totalt 19 st)
- X is not defined. (totalt 12 st)
- X is assigned a value but never used. (totalt 8 st)
- Unexpected console statement. (totalt 3 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: 2849 ( 1.00 betyg )
- Expected X and instead saw X. (totalt 1360 st)
- Expected an assignment or function call and instead saw an expression. (totalt 1303 st)
- Unnecessary escape character: \". (totalt 123 st)
- Unnecessary escape character: \/. (totalt 14 st)
- Do not access Object.prototype method X from target object. (totalt 13 st)
- Unnecessary X. (totalt 10 st)
- Unnecessary escape character: \-. (totalt 8 st)
- Comparing to itself is potentially pointless. (totalt 5 st)
- Unnecessary escape character: \[. (totalt 3 st)
- Unnecessary escape character: \:. (totalt 2 st)
- eval can be harmful. (totalt 2 st)
- X is assigned to itself. (totalt 1 st)
- The Function constructor is eval. (totalt 1 st)
- Unnecessary escape character: \^. (totalt 1 st)
- Script URL is a form of eval. (totalt 1 st)
- Unexpected negating the left operand of X operator. (totalt 1 st)
- Parsing error: Unexpected token : (totalt 1 st)
- `< script>` in: #32: bc-v4.min.html, antal grupperade fel: 2 ( 4.60 betyg )
- `< script>` in: #32: bc-v4.min.html, antal fel: 2 ( 4.60 betyg )
- Expected X and instead saw X. (totalt 1 st)
- Expected an assignment or function call and instead saw an expression. (totalt 1 st)
- `content-type=".*javascript.*"` in: #16: index.min.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #16: index.min.js, antal fel: 341 ( 1.00 betyg )
- Expected X and instead saw X. (totalt 177 st)
- Expected an assignment or function call and instead saw an expression. (totalt 162 st)
- Do not access Object.prototype method X from target object. (totalt 1 st)
- Unnecessary escape character: \/. (totalt 1 st)
- `content-type=".*javascript.*"` in: #23: configuration.j, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #23: configuration.j, antal fel: 341 ( 1.00 betyg )
- Expected X and instead saw X. (totalt 177 st)
- Expected an assignment or function call and instead saw an expression. (totalt 162 st)
- Do not access Object.prototype method X from target object. (totalt 1 st)
- Unnecessary escape character: \/. (totalt 1 st)
- `content-type=".*javascript.*"` in: #24: cc.js, antal grupperade fel: 8 ( 3.40 betyg )
- `content-type=".*javascript.*"` in: #24: cc.js, antal fel: 689 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 469 st)
- Expected X and instead saw X. (totalt 213 st)
- Script URL is a form of eval. (totalt 2 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)
- Unnecessary escape character: \[. (totalt 1 st)
- `content-type=".*javascript.*"` in: #35: lazyload-10.19., antal grupperade fel: 8 ( 3.40 betyg )
- `content-type=".*javascript.*"` in: #35: lazyload-10.19., antal fel: 722 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 495 st)
- Expected X and instead saw X. (totalt 220 st)
- Script URL is a form of eval. (totalt 2 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)
- Unnecessary escape character: \[. (totalt 1 st)
- `content-type=".*javascript.*"` in: #36: index.js, antal grupperade fel: 10 ( 3.00 betyg )
- `content-type=".*javascript.*"` in: #36: index.js, antal fel: 763 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 531 st)
- Expected X and instead saw X. (totalt 223 st)
- Script URL is a form of eval. (totalt 2 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)
- Unnecessary escape character: \[. (totalt 1 st)
- Async function X has no X expression. (totalt 1 st)
- Redundant use of `await` on a return value. (totalt 1 st)