Javascript
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.48 av 5
- JS är ok.Webbstandard
- `< script>` in: #1: Webbsida , antal grupperade fel: 2 ( 4.60 betyg )
- `< script>` in: #1: Webbsida , antal fel: 20 ( 1.00 betyg )
- X is not defined. (totalt 17 st)
- X is defined but never used. (totalt 3 st)
- `< script src="...">` in: #1: Webbsida , antal grupperade fel: 5 ( 4.00 betyg )
- `< script src="...">` in: #1: Webbsida , antal fel: 2003 ( 1.00 betyg )
- X is not defined. (totalt 1275 st)
- X is defined but never used. (totalt 516 st)
- X is assigned a value but never used. (totalt 170 st)
- Unexpected console statement. (totalt 41 st)
- Parsing error: Unexpected token (totalt 1 st)
- `< script>` in: #61: CookieInformati, antal grupperade fel: 2 ( 4.60 betyg )
- `< script>` in: #61: CookieInformati, antal fel: 10 ( 3.00 betyg )
- X is not defined. (totalt 8 st)
- X is defined but never used. (totalt 2 st)
- `< script>` in: #70: index.71bde09.h, antal grupperade fel: 2 ( 4.60 betyg )
- `< script>` in: #70: index.71bde09.h, antal fel: 2 ( 4.60 betyg )
- X is assigned a value but never used. (totalt 1 st)
- X is not defined. (totalt 1 st)
- `content-type=".*javascript.*"` in: #69: widget.js, antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #69: widget.js, antal fel: 201 ( 1.00 betyg )
- X is defined but never used. (totalt 177 st)
- Unexpected console statement. (totalt 18 st)
- X is not defined. (totalt 6 st)
- `content-type=".*javascript.*"` in: #73: bundle.1a92cef0, antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #73: bundle.1a92cef0, antal fel: 374 ( 1.00 betyg )
- X is defined but never used. (totalt 346 st)
- Unexpected console statement. (totalt 22 st)
- X is not defined. (totalt 6 st)
- `content-type=".*javascript.*"` in: #75: client.bundle.a, antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #75: client.bundle.a, antal fel: 861 ( 1.00 betyg )
- X is defined but never used. (totalt 718 st)
- Unexpected console statement. (totalt 125 st)
- X is not defined. (totalt 18 st)
- `content-type=".*javascript.*"` in: #78: localization-sv, antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #78: localization-sv, antal fel: 861 ( 1.00 betyg )
- X is defined but never used. (totalt 718 st)
- Unexpected console statement. (totalt 125 st)
- X is not defined. (totalt 18 st)
- `content-type=".*javascript.*"` in: #85: primus.js, antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #85: primus.js, antal fel: 905 ( 1.00 betyg )
- X is defined but never used. (totalt 762 st)
- Unexpected console statement. (totalt 125 st)
- X is not defined. (totalt 18 st)
Integritet & säkerhet
- `< script>` in: #1: Webbsida , antal grupperade fel: 1 ( 4.80 betyg )
- `< script>` in: #1: Webbsida , antal fel: 2 ( 4.60 betyg )
- Expected X and instead saw X. (totalt 2 st)
- `< script src="...">` in: #1: Webbsida , antal grupperade fel: 26 ( 1.00 betyg )
- `< script src="...">` in: #1: Webbsida , antal fel: 4975 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 3302 st)
- Expected X and instead saw X. (totalt 1369 st)
- Unnecessary escape character: \/. (totalt 137 st)
- Do not access Object.prototype method X from target object. (totalt 98 st)
- X is assigned to itself. (totalt 11 st)
- Unnecessary escape character: \-. (totalt 9 st)
- X is not modified in this loop. (totalt 6 st)
- Comparing to itself is potentially pointless. (totalt 6 st)
- Unnecessary escape character: \.. (totalt 4 st)
- Unnecessary escape character: \[. (totalt 4 st)
- Unnecessary escape character: \}. (totalt 3 st)
- Unnecessary escape character: \+. (totalt 3 st)
- The Function constructor is eval. (totalt 3 st)
- Async method X has no X expression. (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 X. (totalt 2 st)
- Unnecessary escape character: \?. (totalt 1 st)
- Script URL is a form of eval. (totalt 1 st)
- Parsing error: Unexpected token (totalt 1 st)
- Unnecessary escape character: \@. (totalt 1 st)
- Unsafe usage of ThrowStatement. (totalt 1 st)
- Redundant use of `await` on a return value. (totalt 1 st)
- Async function has no X expression. (totalt 1 st)
- `< script>` in: #70: index.71bde09.h, antal grupperade fel: 2 ( 4.60 betyg )
- `< script>` in: #70: index.71bde09.h, antal fel: 7 ( 3.60 betyg )
- Expected X and instead saw X. (totalt 6 st)
- Unnecessary escape character: \/. (totalt 1 st)
- `content-type=".*javascript.*"` in: #69: widget.js, antal grupperade fel: 7 ( 3.60 betyg )
- `content-type=".*javascript.*"` in: #69: widget.js, antal fel: 841 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 472 st)
- Expected X and instead saw X. (totalt 327 st)
- Do not access Object.prototype method X from target object. (totalt 26 st)
- Unnecessary escape character: \/. (totalt 11 st)
- The Function constructor is eval. (totalt 2 st)
- Unnecessary X. (totalt 2 st)
- Unnecessary escape character: \[. (totalt 1 st)
- `content-type=".*javascript.*"` in: #73: bundle.1a92cef0, antal grupperade fel: 9 ( 3.20 betyg )
- `content-type=".*javascript.*"` in: #73: bundle.1a92cef0, antal fel: 1528 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 852 st)
- Expected X and instead saw X. (totalt 602 st)
- Do not access Object.prototype method X from target object. (totalt 52 st)
- Unnecessary escape character: \/. (totalt 12 st)
- Unnecessary X. (totalt 4 st)
- The Function constructor is eval. (totalt 3 st)
- Unnecessary escape character: \[. (totalt 1 st)
- X is not modified in this loop. (totalt 1 st)
- Unsafe usage of ThrowStatement. (totalt 1 st)
- `content-type=".*javascript.*"` in: #75: client.bundle.a, antal grupperade fel: 16 ( 1.80 betyg )
- `content-type=".*javascript.*"` in: #75: client.bundle.a, antal fel: 4335 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 2532 st)
- Expected X and instead saw X. (totalt 1622 st)
- Do not access Object.prototype method X from target object. (totalt 110 st)
- Unnecessary escape character: \/. (totalt 14 st)
- Comparing to itself is potentially pointless. (totalt 13 st)
- Unnecessary X. (totalt 8 st)
- Unsafe usage of ThrowStatement. (totalt 8 st)
- X is not modified in this loop. (totalt 7 st)
- Unnecessary escape character: \.. (totalt 7 st)
- The Function constructor is eval. (totalt 5 st)
- Unnecessary escape character: \_. (totalt 4 st)
- Unnecessary escape character: \[. (totalt 1 st)
- X is assigned to itself. (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: #78: localization-sv, antal grupperade fel: 16 ( 1.80 betyg )
- `content-type=".*javascript.*"` in: #78: localization-sv, antal fel: 4335 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 2532 st)
- Expected X and instead saw X. (totalt 1622 st)
- Do not access Object.prototype method X from target object. (totalt 110 st)
- Unnecessary escape character: \/. (totalt 14 st)
- Comparing to itself is potentially pointless. (totalt 13 st)
- Unnecessary X. (totalt 8 st)
- Unsafe usage of ThrowStatement. (totalt 8 st)
- X is not modified in this loop. (totalt 7 st)
- Unnecessary escape character: \.. (totalt 7 st)
- The Function constructor is eval. (totalt 5 st)
- Unnecessary escape character: \_. (totalt 4 st)
- Unnecessary escape character: \[. (totalt 1 st)
- X is assigned to itself. (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: #85: primus.js, antal grupperade fel: 17 ( 1.60 betyg )
- `content-type=".*javascript.*"` in: #85: primus.js, antal fel: 4344 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 2534 st)
- Expected X and instead saw X. (totalt 1626 st)
- Do not access Object.prototype method X from target object. (totalt 110 st)
- Unnecessary escape character: \/. (totalt 15 st)
- Comparing to itself is potentially pointless. (totalt 14 st)
- Unnecessary X. (totalt 8 st)
- Unsafe usage of ThrowStatement. (totalt 8 st)
- X is not modified in this loop. (totalt 7 st)
- Unnecessary escape character: \.. (totalt 7 st)
- The Function constructor is eval. (totalt 5 st)
- Unnecessary escape character: \_. (totalt 4 st)
- Unnecessary escape character: \[. (totalt 1 st)
- X is assigned to itself. (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)