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.87 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 : (totalt 1 st)
- `< script src="...">` in: #1: Webbsida , antal grupperade fel: 3 ( 4.40 betyg )
- `< script src="...">` in: #1: Webbsida , antal fel: 10 ( 3.00 betyg )
- Unexpected console statement. (totalt 5 st)
- X is not defined. (totalt 4 st)
- X is defined but never used. (totalt 1 st)
- `content-type=".*javascript.*"` in: #19: Hyphenopoly-7fe, antal grupperade fel: 1 ( 4.80 betyg )
- `content-type=".*javascript.*"` in: #19: Hyphenopoly-7fe, antal fel: 3 ( 4.40 betyg )
- X is not defined. (totalt 3 st)
- `content-type=".*javascript.*"` in: #29: swiper.min.mjs, antal grupperade fel: 1 ( 4.80 betyg )
- `content-type=".*javascript.*"` in: #29: swiper.min.mjs, antal fel: 3 ( 4.40 betyg )
- X is not defined. (totalt 3 st)
- `content-type=".*javascript.*"` in: #30: a11y.min.mjs, antal grupperade fel: 2 ( 4.60 betyg )
- `content-type=".*javascript.*"` in: #30: a11y.min.mjs, antal fel: 4 ( 4.20 betyg )
- X is not defined. (totalt 3 st)
- X is defined but never used. (totalt 1 st)
- `content-type=".*javascript.*"` in: #31: autoplay.min.mj, antal grupperade fel: 2 ( 4.60 betyg )
- `content-type=".*javascript.*"` in: #31: autoplay.min.mj, antal fel: 4 ( 4.20 betyg )
- X is not defined. (totalt 3 st)
- X is defined but never used. (totalt 1 st)
- `content-type=".*javascript.*"` in: #32: effect-fade.min, antal grupperade fel: 2 ( 4.60 betyg )
- `content-type=".*javascript.*"` in: #32: effect-fade.min, antal fel: 4 ( 4.20 betyg )
- X is not defined. (totalt 3 st)
- X is defined but never used. (totalt 1 st)
- `content-type=".*javascript.*"` in: #33: widget.js, antal grupperade fel: 5 ( 4.00 betyg )
- `content-type=".*javascript.*"` in: #33: widget.js, antal fel: 707 ( 1.00 betyg )
- X is assigned a value but never used. (totalt 426 st)
- X is not defined. (totalt 114 st)
- X is defined but never used. (totalt 82 st)
- Unexpected console statement. (totalt 78 st)
- Definition for rule X was not found. (totalt 7 st)
- `content-type=".*javascript.*"` in: #34: swiper-core.min, antal grupperade fel: 5 ( 4.00 betyg )
- `content-type=".*javascript.*"` in: #34: swiper-core.min, antal fel: 707 ( 1.00 betyg )
- X is assigned a value but never used. (totalt 426 st)
- X is not defined. (totalt 114 st)
- X is defined but never used. (totalt 82 st)
- Unexpected console statement. (totalt 78 st)
- Definition for rule X was not found. (totalt 7 st)
- `content-type=".*javascript.*"` in: #35: ssr-window.esm., antal grupperade fel: 5 ( 4.00 betyg )
- `content-type=".*javascript.*"` in: #35: ssr-window.esm., antal fel: 707 ( 1.00 betyg )
- X is assigned a value but never used. (totalt 426 st)
- X is not defined. (totalt 114 st)
- X is defined but never used. (totalt 82 st)
- Unexpected console statement. (totalt 78 st)
- Definition for rule X was not found. (totalt 7 st)
- `content-type=".*javascript.*"` in: #36: classes-to-sele, antal grupperade fel: 5 ( 4.00 betyg )
- `content-type=".*javascript.*"` in: #36: classes-to-sele, antal fel: 707 ( 1.00 betyg )
- X is assigned a value but never used. (totalt 426 st)
- X is not defined. (totalt 114 st)
- X is defined but never used. (totalt 82 st)
- Unexpected console statement. (totalt 78 st)
- Definition for rule X was not found. (totalt 7 st)
- `content-type=".*javascript.*"` in: #37: utils.min.mjs, antal grupperade fel: 5 ( 4.00 betyg )
- `content-type=".*javascript.*"` in: #37: utils.min.mjs, antal fel: 711 ( 1.00 betyg )
- X is assigned a value but never used. (totalt 426 st)
- X is not defined. (totalt 114 st)
- X is defined but never used. (totalt 85 st)
- Unexpected console statement. (totalt 79 st)
- Definition for rule X was not found. (totalt 7 st)
- `content-type=".*javascript.*"` in: #38: effect-init.min, antal grupperade fel: 5 ( 4.00 betyg )
- `content-type=".*javascript.*"` in: #38: effect-init.min, antal fel: 711 ( 1.00 betyg )
- X is assigned a value but never used. (totalt 426 st)
- X is not defined. (totalt 114 st)
- X is defined but never used. (totalt 85 st)
- Unexpected console statement. (totalt 79 st)
- Definition for rule X was not found. (totalt 7 st)
- `content-type=".*javascript.*"` in: #39: effect-target.m, antal grupperade fel: 5 ( 4.00 betyg )
- `content-type=".*javascript.*"` in: #39: effect-target.m, antal fel: 711 ( 1.00 betyg )
- X is assigned a value but never used. (totalt 426 st)
- X is not defined. (totalt 114 st)
- X is defined but never used. (totalt 85 st)
- Unexpected console statement. (totalt 79 st)
- Definition for rule X was not found. (totalt 7 st)
- `content-type=".*javascript.*"` in: #40: effect-virtual-, antal grupperade fel: 5 ( 4.00 betyg )
- `content-type=".*javascript.*"` in: #40: effect-virtual-, antal fel: 711 ( 1.00 betyg )
- X is assigned a value but never used. (totalt 426 st)
- X is not defined. (totalt 114 st)
- X is defined but never used. (totalt 85 st)
- Unexpected console statement. (totalt 79 st)
- Definition for rule X was not found. (totalt 7 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: 1 ( 4.80 betyg )
- `< script src="...">` in: #1: Webbsida , antal fel: 34 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 34 st)
- `content-type=".*javascript.*"` in: #19: Hyphenopoly-7fe, antal grupperade fel: 2 ( 4.60 betyg )
- `content-type=".*javascript.*"` in: #19: Hyphenopoly-7fe, antal fel: 28 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 25 st)
- Expected X and instead saw X. (totalt 3 st)
- `content-type=".*javascript.*"` in: #29: swiper.min.mjs, antal grupperade fel: 2 ( 4.60 betyg )
- `content-type=".*javascript.*"` in: #29: swiper.min.mjs, antal fel: 28 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 25 st)
- Expected X and instead saw X. (totalt 3 st)
- `content-type=".*javascript.*"` in: #30: a11y.min.mjs, antal grupperade fel: 2 ( 4.60 betyg )
- `content-type=".*javascript.*"` in: #30: a11y.min.mjs, antal fel: 56 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 53 st)
- Expected X and instead saw X. (totalt 3 st)
- `content-type=".*javascript.*"` in: #31: autoplay.min.mj, antal grupperade fel: 2 ( 4.60 betyg )
- `content-type=".*javascript.*"` in: #31: autoplay.min.mj, antal fel: 84 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 80 st)
- Expected X and instead saw X. (totalt 4 st)
- `content-type=".*javascript.*"` in: #32: effect-fade.min, antal grupperade fel: 2 ( 4.60 betyg )
- `content-type=".*javascript.*"` in: #32: effect-fade.min, antal fel: 88 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 84 st)
- Expected X and instead saw X. (totalt 4 st)
- `content-type=".*javascript.*"` in: #33: widget.js, antal grupperade fel: 13 ( 2.40 betyg )
- `content-type=".*javascript.*"` in: #33: widget.js, antal fel: 733 ( 1.00 betyg )
- Expected X and instead saw X. (totalt 377 st)
- Expected an assignment or function call and instead saw an expression. (totalt 322 st)
- Unsafe usage of ThrowStatement. (totalt 17 st)
- Definition for rule X was not found. (totalt 7 st)
- Unexpected string concatenation of literals. (totalt 2 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)
- The Function constructor is eval. (totalt 1 st)
- Do not access Object.prototype method X from target object. (totalt 1 st)
- `content-type=".*javascript.*"` in: #34: swiper-core.min, antal grupperade fel: 13 ( 2.40 betyg )
- `content-type=".*javascript.*"` in: #34: swiper-core.min, antal fel: 963 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 522 st)
- Expected X and instead saw X. (totalt 406 st)
- Unsafe usage of ThrowStatement. (totalt 17 st)
- Definition for rule X was not found. (totalt 7 st)
- Unnecessary escape character: \/. (totalt 2 st)
- Unexpected string concatenation of literals. (totalt 2 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)
- The Function constructor is eval. (totalt 1 st)
- Do not access Object.prototype method X from target object. (totalt 1 st)
- `content-type=".*javascript.*"` in: #35: ssr-window.esm., antal grupperade fel: 13 ( 2.40 betyg )
- `content-type=".*javascript.*"` in: #35: ssr-window.esm., antal fel: 971 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 525 st)
- Expected X and instead saw X. (totalt 411 st)
- Unsafe usage of ThrowStatement. (totalt 17 st)
- Definition for rule X was not found. (totalt 7 st)
- Unnecessary escape character: \/. (totalt 2 st)
- Unexpected string concatenation of literals. (totalt 2 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)
- The Function constructor is eval. (totalt 1 st)
- Do not access Object.prototype method X from target object. (totalt 1 st)
- `content-type=".*javascript.*"` in: #36: classes-to-sele, antal grupperade fel: 13 ( 2.40 betyg )
- `content-type=".*javascript.*"` in: #36: classes-to-sele, antal fel: 973 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 525 st)
- Expected X and instead saw X. (totalt 411 st)
- Unsafe usage of ThrowStatement. (totalt 17 st)
- Definition for rule X was not found. (totalt 7 st)
- Unnecessary escape character: \/. (totalt 3 st)
- Unnecessary escape character: \.. (totalt 2 st)
- Unexpected string concatenation of literals. (totalt 2 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)
- The Function constructor is eval. (totalt 1 st)
- Do not access Object.prototype method X from target object. (totalt 1 st)
- `content-type=".*javascript.*"` in: #37: utils.min.mjs, antal grupperade fel: 13 ( 2.40 betyg )
- `content-type=".*javascript.*"` in: #37: utils.min.mjs, antal fel: 988 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 537 st)
- Expected X and instead saw X. (totalt 414 st)
- Unsafe usage of ThrowStatement. (totalt 17 st)
- Definition for rule X was not found. (totalt 7 st)
- Unnecessary escape character: \/. (totalt 3 st)
- Unnecessary escape character: \.. (totalt 2 st)
- Unexpected string concatenation of literals. (totalt 2 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)
- The Function constructor is eval. (totalt 1 st)
- Do not access Object.prototype method X from target object. (totalt 1 st)
- `content-type=".*javascript.*"` in: #38: effect-init.min, antal grupperade fel: 13 ( 2.40 betyg )
- `content-type=".*javascript.*"` in: #38: effect-init.min, antal fel: 996 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 545 st)
- Expected X and instead saw X. (totalt 414 st)
- Unsafe usage of ThrowStatement. (totalt 17 st)
- Definition for rule X was not found. (totalt 7 st)
- Unnecessary escape character: \/. (totalt 3 st)
- Unnecessary escape character: \.. (totalt 2 st)
- Unexpected string concatenation of literals. (totalt 2 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)
- The Function constructor is eval. (totalt 1 st)
- Do not access Object.prototype method X from target object. (totalt 1 st)
- `content-type=".*javascript.*"` in: #39: effect-target.m, antal grupperade fel: 13 ( 2.40 betyg )
- `content-type=".*javascript.*"` in: #39: effect-target.m, antal fel: 996 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 545 st)
- Expected X and instead saw X. (totalt 414 st)
- Unsafe usage of ThrowStatement. (totalt 17 st)
- Definition for rule X was not found. (totalt 7 st)
- Unnecessary escape character: \/. (totalt 3 st)
- Unnecessary escape character: \.. (totalt 2 st)
- Unexpected string concatenation of literals. (totalt 2 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)
- The Function constructor is eval. (totalt 1 st)
- Do not access Object.prototype method X from target object. (totalt 1 st)
- `content-type=".*javascript.*"` in: #40: effect-virtual-, antal grupperade fel: 13 ( 2.40 betyg )
- `content-type=".*javascript.*"` in: #40: effect-virtual-, antal fel: 998 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 547 st)
- Expected X and instead saw X. (totalt 414 st)
- Unsafe usage of ThrowStatement. (totalt 17 st)
- Definition for rule X was not found. (totalt 7 st)
- Unnecessary escape character: \/. (totalt 3 st)
- Unnecessary escape character: \.. (totalt 2 st)
- Unexpected string concatenation of literals. (totalt 2 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)
- The Function constructor is eval. (totalt 1 st)
- Do not access Object.prototype method X from target object. (totalt 1 st)