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.41 av 5
- JS är ok.
Webbstandard
- `< script>` in: #1: sv, antal grupperade fel: 1 ( 4.80 betyg )
- `< script>` in: #1: sv, antal fel: 1 ( 4.80 betyg )
- X is defined but never used. (totalt 1 st)
- `< script src="...">` in: #1: sv, antal grupperade fel: 3 ( 4.40 betyg )
- `< script src="...">` in: #1: sv, antal fel: 79 ( 1.00 betyg )
- X is not defined. (totalt 40 st)
- X is defined but never used. (totalt 38 st)
- X is assigned a value but never used. (totalt 1 st)
- `content-type=".*javascript.*"` in: #31: app.min.7b7be6f, antal grupperade fel: 2 ( 4.60 betyg )
- `content-type=".*javascript.*"` in: #31: app.min.7b7be6f, antal fel: 6 ( 3.80 betyg )
- X is defined but never used. (totalt 5 st)
- X is assigned a value but never used. (totalt 1 st)
- `content-type=".*javascript.*"` in: #44: app-vendor-flic, antal grupperade fel: 2 ( 4.60 betyg )
- `content-type=".*javascript.*"` in: #44: app-vendor-flic, antal fel: 6 ( 3.80 betyg )
- X is defined but never used. (totalt 5 st)
- X is assigned a value but never used. (totalt 1 st)
- `content-type=".*javascript.*"` in: #45: app-941.671d172, antal grupperade fel: 2 ( 4.60 betyg )
- `content-type=".*javascript.*"` in: #45: app-941.671d172, antal fel: 7 ( 3.60 betyg )
- X is defined but never used. (totalt 6 st)
- X is assigned a value but never used. (totalt 1 st)
- `content-type=".*javascript.*"` in: #46: app-Intro.3c1a9, antal grupperade fel: 2 ( 4.60 betyg )
- `content-type=".*javascript.*"` in: #46: app-Intro.3c1a9, antal fel: 7 ( 3.60 betyg )
- X is defined but never used. (totalt 6 st)
- X is assigned a value but never used. (totalt 1 st)
- `content-type=".*javascript.*"` in: #47: app-CardSlider., antal grupperade fel: 2 ( 4.60 betyg )
- `content-type=".*javascript.*"` in: #47: app-CardSlider., antal fel: 7 ( 3.60 betyg )
- X is defined but never used. (totalt 6 st)
- X is assigned a value but never used. (totalt 1 st)
- `content-type=".*javascript.*"` in: #48: app-vendor-js-c, antal grupperade fel: 2 ( 4.60 betyg )
- `content-type=".*javascript.*"` in: #48: app-vendor-js-c, antal fel: 8 ( 3.40 betyg )
- X is defined but never used. (totalt 7 st)
- X is assigned a value but never used. (totalt 1 st)
Integritet & säkerhet
- `< script>` in: #1: sv, antal grupperade fel: 1 ( 4.80 betyg )
- `< script>` in: #1: sv, antal fel: 1 ( 4.80 betyg )
- eval can be harmful. (totalt 1 st)
- `< script src="...">` in: #1: sv, antal grupperade fel: 5 ( 4.00 betyg )
- `< script src="...">` in: #1: sv, antal fel: 298 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 179 st)
- Expected X and instead saw X. (totalt 114 st)
- Do not access Object.prototype method X from target object. (totalt 2 st)
- Comparing to itself is potentially pointless. (totalt 2 st)
- The Function constructor is eval. (totalt 1 st)
- `content-type=".*javascript.*"` in: #31: app.min.7b7be6f, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #31: app.min.7b7be6f, antal fel: 141 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 113 st)
- Expected X and instead saw X. (totalt 26 st)
- The Function constructor is eval. (totalt 1 st)
- Unnecessary escape character: \/. (totalt 1 st)
- `content-type=".*javascript.*"` in: #44: app-vendor-flic, antal grupperade fel: 5 ( 4.00 betyg )
- `content-type=".*javascript.*"` in: #44: app-vendor-flic, antal fel: 323 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 256 st)
- Expected X and instead saw X. (totalt 64 st)
- The Function constructor is eval. (totalt 1 st)
- Unnecessary escape character: \/. (totalt 1 st)
- X is not modified in this loop. (totalt 1 st)
- `content-type=".*javascript.*"` in: #45: app-941.671d172, antal grupperade fel: 5 ( 4.00 betyg )
- `content-type=".*javascript.*"` in: #45: app-941.671d172, antal fel: 406 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 311 st)
- Expected X and instead saw X. (totalt 92 st)
- The Function constructor is eval. (totalt 1 st)
- Unnecessary escape character: \/. (totalt 1 st)
- X is not modified in this loop. (totalt 1 st)
- `content-type=".*javascript.*"` in: #46: app-Intro.3c1a9, antal grupperade fel: 5 ( 4.00 betyg )
- `content-type=".*javascript.*"` in: #46: app-Intro.3c1a9, antal fel: 436 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 334 st)
- Expected X and instead saw X. (totalt 99 st)
- The Function constructor is eval. (totalt 1 st)
- Unnecessary escape character: \/. (totalt 1 st)
- X is not modified in this loop. (totalt 1 st)
- `content-type=".*javascript.*"` in: #47: app-CardSlider., antal grupperade fel: 5 ( 4.00 betyg )
- `content-type=".*javascript.*"` in: #47: app-CardSlider., antal fel: 439 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 337 st)
- Expected X and instead saw X. (totalt 99 st)
- The Function constructor is eval. (totalt 1 st)
- Unnecessary escape character: \/. (totalt 1 st)
- X is not modified in this loop. (totalt 1 st)
- `content-type=".*javascript.*"` in: #48: app-vendor-js-c, antal grupperade fel: 6 ( 3.80 betyg )
- `content-type=".*javascript.*"` in: #48: app-vendor-js-c, antal fel: 592 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 481 st)
- Expected X and instead saw X. (totalt 107 st)
- The Function constructor is eval. (totalt 1 st)
- Unnecessary escape character: \/. (totalt 1 st)
- X is not modified in this loop. (totalt 1 st)
- Async function X has no X expression. (totalt 1 st)