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.97 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 var (totalt 1 st)
- `< script src="...">` in: #1: Webbsida , antal grupperade fel: 4 ( 4.20 betyg )
- `< script src="...">` in: #1: Webbsida , antal fel: 264 ( 1.00 betyg )
- X is not defined. (totalt 147 st)
- X is defined but never used. (totalt 97 st)
- Unexpected console statement. (totalt 13 st)
- X is assigned a value but never used. (totalt 7 st)
- `< script>` in: #16: kort, antal grupperade fel: 1 ( 4.80 betyg )
- `< script>` in: #16: kort, antal fel: 1 ( 4.80 betyg )
- Parsing error: Unexpected token { (totalt 1 st)
- `content-type=".*javascript.*"` in: #22: platform.js, antal grupperade fel: 2 ( 4.60 betyg )
- `content-type=".*javascript.*"` in: #22: platform.js, antal fel: 16 ( 1.80 betyg )
- X is defined but never used. (totalt 15 st)
- Unexpected console statement. (totalt 1 st)
- `content-type=".*javascript.*"` in: #31: jquery-1.11.2.m, antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #31: jquery-1.11.2.m, antal fel: 41 ( 1.00 betyg )
- X is defined but never used. (totalt 37 st)
- X is not defined. (totalt 3 st)
- Unexpected console statement. (totalt 1 st)
- `content-type=".*javascript.*"` in: #32: mapbox-gl.888ca, antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #32: mapbox-gl.888ca, antal fel: 43 ( 1.00 betyg )
- X is defined but never used. (totalt 37 st)
- X is not defined. (totalt 5 st)
- Unexpected console statement. (totalt 1 st)
- `content-type=".*javascript.*"` in: #33: search.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #33: search.js, antal fel: 44 ( 1.00 betyg )
- X is defined but never used. (totalt 37 st)
- X is not defined. (totalt 5 st)
- Unexpected console statement. (totalt 1 st)
- Parsing error: Unexpected token : (totalt 1 st)
- `content-type=".*javascript.*"` in: #35: nr-rum-1.288.1., antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #35: nr-rum-1.288.1., antal fel: 77 ( 1.00 betyg )
- X is defined but never used. (totalt 70 st)
- X is not defined. (totalt 5 st)
- Unexpected console statement. (totalt 1 st)
- Parsing error: Unexpected token : (totalt 1 st)
- `content-type=".*javascript.*"` in: #48: slider.js, antal grupperade fel: 5 ( 4.00 betyg )
- `content-type=".*javascript.*"` in: #48: slider.js, antal fel: 331 ( 1.00 betyg )
- X is defined but never used. (totalt 213 st)
- X is assigned a value but never used. (totalt 63 st)
- Unexpected console statement. (totalt 41 st)
- X is not defined. (totalt 13 st)
- Parsing error: Unexpected token : (totalt 1 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 var (totalt 1 st)
- `< script src="...">` in: #1: Webbsida , antal grupperade fel: 18 ( 1.40 betyg )
- `< script src="...">` in: #1: Webbsida , antal fel: 2255 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1284 st)
- Expected X and instead saw X. (totalt 782 st)
- Unnecessary escape character: \-. (totalt 93 st)
- Do not access Object.prototype method X from target object. (totalt 41 st)
- Unnecessary escape character: \/. (totalt 22 st)
- Unnecessary X. (totalt 9 st)
- Comparing to itself is potentially pointless. (totalt 5 st)
- X is not modified in this loop. (totalt 4 st)
- Unsafe usage of ThrowStatement. (totalt 2 st)
- Unnecessary escape character: \(. (totalt 2 st)
- Unnecessary escape character: \). (totalt 2 st)
- Unnecessary escape character: \&. (totalt 2 st)
- The Function constructor is eval. (totalt 2 st)
- X is assigned to itself. (totalt 1 st)
- Unnecessary escape character: \:. (totalt 1 st)
- Unsafe usage of ReturnStatement. (totalt 1 st)
- Script URL is a form of eval. (totalt 1 st)
- Unnecessary escape character: \?. (totalt 1 st)
- `< script>` in: #16: kort, antal grupperade fel: 1 ( 4.80 betyg )
- `< script>` in: #16: kort, antal fel: 1 ( 4.80 betyg )
- Parsing error: Unexpected token { (totalt 1 st)
- `content-type=".*javascript.*"` in: #22: platform.js, antal grupperade fel: 5 ( 4.00 betyg )
- `content-type=".*javascript.*"` in: #22: platform.js, antal fel: 99 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 69 st)
- Expected X and instead saw X. (totalt 26 st)
- Unnecessary escape character: \+. (totalt 2 st)
- Unsafe usage of ReturnStatement. (totalt 1 st)
- Unsafe usage of ThrowStatement. (totalt 1 st)
- `content-type=".*javascript.*"` in: #31: jquery-1.11.2.m, antal grupperade fel: 13 ( 2.40 betyg )
- `content-type=".*javascript.*"` in: #31: jquery-1.11.2.m, antal fel: 505 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 322 st)
- Expected X and instead saw X. (totalt 166 st)
- Comparing to itself is potentially pointless. (totalt 3 st)
- Unnecessary escape character: \/. (totalt 3 st)
- Unnecessary escape character: \+. (totalt 2 st)
- X is not modified in this loop. (totalt 2 st)
- Unsafe usage of ReturnStatement. (totalt 1 st)
- Unsafe usage of ThrowStatement. (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)
- The Function constructor is eval. (totalt 1 st)
- `content-type=".*javascript.*"` in: #32: mapbox-gl.888ca, antal grupperade fel: 13 ( 2.40 betyg )
- `content-type=".*javascript.*"` in: #32: mapbox-gl.888ca, antal fel: 506 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 323 st)
- Expected X and instead saw X. (totalt 166 st)
- Comparing to itself is potentially pointless. (totalt 3 st)
- Unnecessary escape character: \/. (totalt 3 st)
- Unnecessary escape character: \+. (totalt 2 st)
- X is not modified in this loop. (totalt 2 st)
- Unsafe usage of ReturnStatement. (totalt 1 st)
- Unsafe usage of ThrowStatement. (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)
- The Function constructor is eval. (totalt 1 st)
- `content-type=".*javascript.*"` in: #33: search.js, antal grupperade fel: 14 ( 2.20 betyg )
- `content-type=".*javascript.*"` in: #33: search.js, antal fel: 507 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 323 st)
- Expected X and instead saw X. (totalt 166 st)
- Comparing to itself is potentially pointless. (totalt 3 st)
- Unnecessary escape character: \/. (totalt 3 st)
- Unnecessary escape character: \+. (totalt 2 st)
- X is not modified in this loop. (totalt 2 st)
- Unsafe usage of ReturnStatement. (totalt 1 st)
- Unsafe usage of ThrowStatement. (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)
- The Function constructor is eval. (totalt 1 st)
- Parsing error: Unexpected token : (totalt 1 st)
- `content-type=".*javascript.*"` in: #35: nr-rum-1.288.1., antal grupperade fel: 14 ( 2.20 betyg )
- `content-type=".*javascript.*"` in: #35: nr-rum-1.288.1., antal fel: 727 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 495 st)
- Expected X and instead saw X. (totalt 213 st)
- Comparing to itself is potentially pointless. (totalt 3 st)
- X is not modified in this loop. (totalt 3 st)
- Unnecessary escape character: \/. (totalt 3 st)
- Unnecessary escape character: \+. (totalt 2 st)
- Unsafe usage of ReturnStatement. (totalt 1 st)
- Unsafe usage of ThrowStatement. (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)
- The Function constructor is eval. (totalt 1 st)
- Parsing error: Unexpected token : (totalt 1 st)
- `content-type=".*javascript.*"` in: #48: slider.js, antal grupperade fel: 33 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #48: slider.js, antal fel: 3698 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 2647 st)
- Expected X and instead saw X. (totalt 653 st)
- Unnecessary escape character: \.. (totalt 141 st)
- Unnecessary escape character: \-. (totalt 55 st)
- Do not access Object.prototype method X from target object. (totalt 45 st)
- Unnecessary escape character: \/. (totalt 41 st)
- Comparing to itself is potentially pointless. (totalt 23 st)
- Unnecessary escape character: \). (totalt 16 st)
- X is not modified in this loop. (totalt 13 st)
- Unsafe usage of ThrowStatement. (totalt 9 st)
- Unnecessary escape character: \+. (totalt 6 st)
- The Function constructor is eval. (totalt 6 st)
- Unnecessary X. (totalt 5 st)
- Unnecessary escape character: \(. (totalt 4 st)
- Unnecessary escape character: \". (totalt 4 st)
- Unnecessary escape character: \[. (totalt 3 st)
- X is assigned to itself. (totalt 3 st)
- Unnecessary escape character: \%. (totalt 3 st)
- Async method X has no X expression. (totalt 3 st)
- Unsafe usage of ReturnStatement. (totalt 2 st)
- Unnecessary escape character: \,. (totalt 2 st)
- Unnecessary escape character: \:. (totalt 2 st)
- Async arrow function has no X expression. (totalt 2 st)
- Parsing error: Unexpected token : (totalt 1 st)
- Unnecessary escape character: \_. (totalt 1 st)
- Redundant use of `await` on a return value. (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)