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.98 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 )
- X is defined but never used. (totalt 1 st)
- `< script src="...">` in: #1: Webbsida , antal grupperade fel: 5 ( 4.00 betyg )
- `< script src="...">` in: #1: Webbsida , antal fel: 726 ( 1.00 betyg )
- X is defined but never used. (totalt 582 st)
- X is assigned a value but never used. (totalt 84 st)
- X is not defined. (totalt 48 st)
- Unexpected console statement. (totalt 11 st)
- Parsing error: Unexpected token (totalt 1 st)
- `content-type=".*javascript.*"` in: #10: loader.js, antal grupperade fel: 2 ( 4.60 betyg )
- `content-type=".*javascript.*"` in: #10: loader.js, antal fel: 6 ( 3.80 betyg )
- X is defined but never used. (totalt 4 st)
- Unexpected console statement. (totalt 2 st)
- `content-type=".*javascript.*"` in: #12: 812.8e37984daff, antal grupperade fel: 2 ( 4.60 betyg )
- `content-type=".*javascript.*"` in: #12: 812.8e37984daff, antal fel: 7 ( 3.60 betyg )
- X is defined but never used. (totalt 5 st)
- Unexpected console statement. (totalt 2 st)
- `content-type=".*javascript.*"` in: #13: 146.330cc9d47b1, antal grupperade fel: 2 ( 4.60 betyg )
- `content-type=".*javascript.*"` in: #13: 146.330cc9d47b1, antal fel: 8 ( 3.40 betyg )
- X is defined but never used. (totalt 6 st)
- Unexpected console statement. (totalt 2 st)
- `content-type=".*javascript.*"` in: #14: bad.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #14: bad.js, antal fel: 89 ( 1.00 betyg )
- X is not defined. (totalt 50 st)
- X is defined but never used. (totalt 17 st)
- Unexpected console statement. (totalt 14 st)
- X is assigned a value but never used. (totalt 8 st)
- `content-type=".*javascript.*"` in: #15: bad.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #15: bad.js, antal fel: 170 ( 1.00 betyg )
- X is not defined. (totalt 100 st)
- X is defined but never used. (totalt 28 st)
- Unexpected console statement. (totalt 26 st)
- X is assigned a value but never used. (totalt 16 st)
- `content-type=".*javascript.*"` in: #16: 403.3e1d3923524, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #16: 403.3e1d3923524, antal fel: 171 ( 1.00 betyg )
- X is not defined. (totalt 100 st)
- X is defined but never used. (totalt 29 st)
- Unexpected console statement. (totalt 26 st)
- X is assigned a value but never used. (totalt 16 st)
- `content-type=".*javascript.*"` in: #21: sdk.55e5297cef9, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #21: sdk.55e5297cef9, antal fel: 280 ( 1.00 betyg )
- X is not defined. (totalt 101 st)
- Unexpected console statement. (totalt 94 st)
- X is defined but never used. (totalt 67 st)
- X is assigned a value but never used. (totalt 18 st)
- `content-type=".*javascript.*"` in: #23: ui-web-sv-web.5, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #23: ui-web-sv-web.5, antal fel: 296 ( 1.00 betyg )
- X is not defined. (totalt 101 st)
- Unexpected console statement. (totalt 100 st)
- X is defined but never used. (totalt 76 st)
- X is assigned a value but never used. (totalt 19 st)
Integritet & säkerhet
- `< script src="...">` in: #1: Webbsida , antal grupperade fel: 15 ( 2.00 betyg )
- `< script src="...">` in: #1: Webbsida , antal fel: 4062 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 2059 st)
- Expected X and instead saw X. (totalt 1225 st)
- Unnecessary escape character: \/. (totalt 543 st)
- Do not access Object.prototype method X from target object. (totalt 199 st)
- Unsafe usage of ThrowStatement. (totalt 14 st)
- Comparing to itself is potentially pointless. (totalt 5 st)
- X is not modified in this loop. (totalt 4 st)
- X is assigned to itself. (totalt 3 st)
- Script URL is a form of eval. (totalt 2 st)
- Unnecessary X. (totalt 2 st)
- The Function constructor is eval. (totalt 2 st)
- Parsing error: Unexpected token (totalt 1 st)
- eval can be harmful. (totalt 1 st)
- Unsafe usage of ReturnStatement. (totalt 1 st)
- Unnecessary escape character: \-. (totalt 1 st)
- `content-type=".*javascript.*"` in: #10: loader.js, antal grupperade fel: 2 ( 4.60 betyg )
- `content-type=".*javascript.*"` in: #10: loader.js, antal fel: 24 ( 1.00 betyg )
- Expected X and instead saw X. (totalt 17 st)
- Expected an assignment or function call and instead saw an expression. (totalt 7 st)
- `content-type=".*javascript.*"` in: #12: 812.8e37984daff, antal grupperade fel: 2 ( 4.60 betyg )
- `content-type=".*javascript.*"` in: #12: 812.8e37984daff, antal fel: 41 ( 1.00 betyg )
- Expected X and instead saw X. (totalt 25 st)
- Expected an assignment or function call and instead saw an expression. (totalt 16 st)
- `content-type=".*javascript.*"` in: #13: 146.330cc9d47b1, antal grupperade fel: 2 ( 4.60 betyg )
- `content-type=".*javascript.*"` in: #13: 146.330cc9d47b1, antal fel: 61 ( 1.00 betyg )
- Expected X and instead saw X. (totalt 33 st)
- Expected an assignment or function call and instead saw an expression. (totalt 28 st)
- `content-type=".*javascript.*"` in: #14: bad.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #14: bad.js, antal fel: 339 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 197 st)
- Expected X and instead saw X. (totalt 133 st)
- Do not access Object.prototype method X from target object. (totalt 5 st)
- Async function X has no X expression. (totalt 4 st)
- `content-type=".*javascript.*"` in: #15: bad.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #15: bad.js, antal fel: 617 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 366 st)
- Expected X and instead saw X. (totalt 233 st)
- Do not access Object.prototype method X from target object. (totalt 10 st)
- Async function X has no X expression. (totalt 8 st)
- `content-type=".*javascript.*"` in: #16: 403.3e1d3923524, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #16: 403.3e1d3923524, antal fel: 650 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 391 st)
- Expected X and instead saw X. (totalt 241 st)
- Do not access Object.prototype method X from target object. (totalt 10 st)
- Async function X has no X expression. (totalt 8 st)
- `content-type=".*javascript.*"` in: #21: sdk.55e5297cef9, antal grupperade fel: 9 ( 3.20 betyg )
- `content-type=".*javascript.*"` in: #21: sdk.55e5297cef9, antal fel: 2158 ( 1.00 betyg )
- Expected X and instead saw X. (totalt 1133 st)
- Expected an assignment or function call and instead saw an expression. (totalt 979 st)
- Do not access Object.prototype method X from target object. (totalt 27 st)
- Async function X has no X expression. (totalt 8 st)
- Unnecessary escape character: \/. (totalt 5 st)
- Unnecessary escape character: \+. (totalt 2 st)
- Comparing to itself is potentially pointless. (totalt 2 st)
- Script URL is a form of eval. (totalt 1 st)
- The Function constructor is eval. (totalt 1 st)
- `content-type=".*javascript.*"` in: #23: ui-web-sv-web.5, antal grupperade fel: 9 ( 3.20 betyg )
- `content-type=".*javascript.*"` in: #23: ui-web-sv-web.5, antal fel: 2796 ( 1.00 betyg )
- Expected X and instead saw X. (totalt 1518 st)
- Expected an assignment or function call and instead saw an expression. (totalt 1227 st)
- Do not access Object.prototype method X from target object. (totalt 28 st)
- Async function X has no X expression. (totalt 8 st)
- Unnecessary escape character: \/. (totalt 7 st)
- Script URL is a form of eval. (totalt 3 st)
- Unnecessary escape character: \+. (totalt 2 st)
- Comparing to itself is potentially pointless. (totalt 2 st)
- The Function constructor is eval. (totalt 1 st)