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.53 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: 4 ( 4.20 betyg )
- `< script src="...">` in: #1: Webbsida , antal fel: 832 ( 1.00 betyg )
- X is not defined. (totalt 699 st)
- X is defined but never used. (totalt 114 st)
- Unexpected console statement. (totalt 17 st)
- X is assigned a value but never used. (totalt 2 st)
- `content-type=".*javascript.*"` in: #86: gtm.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #86: gtm.js, antal fel: 581 ( 1.00 betyg )
- X is defined but never used. (totalt 471 st)
- X is assigned a value but never used. (totalt 87 st)
- X is not defined. (totalt 22 st)
- Unexpected console statement. (totalt 1 st)
- `content-type=".*javascript.*"` in: #100: dialog.min.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #100: dialog.min.js, antal fel: 588 ( 1.00 betyg )
- X is defined but never used. (totalt 471 st)
- X is assigned a value but never used. (totalt 87 st)
- X is not defined. (totalt 28 st)
- Unexpected console statement. (totalt 2 st)
- `content-type=".*javascript.*"` in: #114: js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #114: js, antal fel: 1091 ( 1.00 betyg )
- X is defined but never used. (totalt 868 st)
- X is assigned a value but never used. (totalt 177 st)
- X is not defined. (totalt 44 st)
- Unexpected console statement. (totalt 2 st)
- `content-type=".*javascript.*"` in: #115: slides.c0029640, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #115: slides.c0029640, antal fel: 1094 ( 1.00 betyg )
- X is defined but never used. (totalt 868 st)
- X is assigned a value but never used. (totalt 177 st)
- X is not defined. (totalt 47 st)
- Unexpected console statement. (totalt 2 st)
- `content-type=".*javascript.*"` in: #116: nav-menu.a23fbd, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #116: nav-menu.a23fbd, antal fel: 1104 ( 1.00 betyg )
- X is defined but never used. (totalt 869 st)
- X is assigned a value but never used. (totalt 177 st)
- X is not defined. (totalt 56 st)
- Unexpected console statement. (totalt 2 st)
- `content-type=".*javascript.*"` in: #117: text-editor.2cb, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #117: text-editor.2cb, antal fel: 1107 ( 1.00 betyg )
- X is defined but never used. (totalt 869 st)
- X is assigned a value but never used. (totalt 177 st)
- X is not defined. (totalt 59 st)
- Unexpected console statement. (totalt 2 st)
- `content-type=".*javascript.*"` in: #127: swiper.min.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #127: swiper.min.js, antal fel: 1114 ( 1.00 betyg )
- X is defined but never used. (totalt 874 st)
- X is assigned a value but never used. (totalt 177 st)
- X is not defined. (totalt 61 st)
- Unexpected console statement. (totalt 2 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: 14 ( 2.20 betyg )
- `< script src="...">` in: #1: Webbsida , antal fel: 2090 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1320 st)
- Expected X and instead saw X. (totalt 701 st)
- Do not access Object.prototype method X from target object. (totalt 33 st)
- Comparing to itself is potentially pointless. (totalt 9 st)
- Unnecessary escape character: \/. (totalt 8 st)
- The Function constructor is eval. (totalt 6 st)
- X is assigned to itself. (totalt 4 st)
- Unnecessary escape character: \-. (totalt 2 st)
- Unexpected negating the left operand of X operator. (totalt 2 st)
- Unnecessary X. (totalt 1 st)
- Unnecessary escape character: \?. (totalt 1 st)
- Unnecessary escape character: \&. (totalt 1 st)
- eval can be harmful. (totalt 1 st)
- Unnecessary escape character: \+. (totalt 1 st)
- `content-type=".*javascript.*"` in: #86: gtm.js, antal grupperade fel: 9 ( 3.20 betyg )
- `content-type=".*javascript.*"` in: #86: gtm.js, antal fel: 1041 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 754 st)
- Expected X and instead saw X. (totalt 194 st)
- Do not access Object.prototype method X from target object. (totalt 81 st)
- X is not modified in this loop. (totalt 3 st)
- Unnecessary escape character: \/. (totalt 3 st)
- X is assigned to itself. (totalt 3 st)
- Comparing to itself is potentially pointless. (totalt 1 st)
- Unnecessary X. (totalt 1 st)
- Script URL is a form of eval. (totalt 1 st)
- `content-type=".*javascript.*"` in: #100: dialog.min.js, antal grupperade fel: 9 ( 3.20 betyg )
- `content-type=".*javascript.*"` in: #100: dialog.min.js, antal fel: 1078 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 785 st)
- Expected X and instead saw X. (totalt 200 st)
- Do not access Object.prototype method X from target object. (totalt 81 st)
- X is not modified in this loop. (totalt 3 st)
- Unnecessary escape character: \/. (totalt 3 st)
- X is assigned to itself. (totalt 3 st)
- Comparing to itself is potentially pointless. (totalt 1 st)
- Unnecessary X. (totalt 1 st)
- Script URL is a form of eval. (totalt 1 st)
- `content-type=".*javascript.*"` in: #114: js, antal grupperade fel: 11 ( 2.80 betyg )
- `content-type=".*javascript.*"` in: #114: js, antal fel: 2441 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1835 st)
- Expected X and instead saw X. (totalt 418 st)
- Do not access Object.prototype method X from target object. (totalt 163 st)
- X is not modified in this loop. (totalt 6 st)
- Unnecessary escape character: \/. (totalt 6 st)
- X is assigned to itself. (totalt 6 st)
- Comparing to itself is potentially pointless. (totalt 2 st)
- Script URL is a form of eval. (totalt 2 st)
- Unnecessary X. (totalt 1 st)
- Unnecessary escape character: \?. (totalt 1 st)
- Unnecessary escape character: \}. (totalt 1 st)
- `content-type=".*javascript.*"` in: #115: slides.c0029640, antal grupperade fel: 11 ( 2.80 betyg )
- `content-type=".*javascript.*"` in: #115: slides.c0029640, antal fel: 2451 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1845 st)
- Expected X and instead saw X. (totalt 418 st)
- Do not access Object.prototype method X from target object. (totalt 163 st)
- X is not modified in this loop. (totalt 6 st)
- Unnecessary escape character: \/. (totalt 6 st)
- X is assigned to itself. (totalt 6 st)
- Comparing to itself is potentially pointless. (totalt 2 st)
- Script URL is a form of eval. (totalt 2 st)
- Unnecessary X. (totalt 1 st)
- Unnecessary escape character: \?. (totalt 1 st)
- Unnecessary escape character: \}. (totalt 1 st)
- `content-type=".*javascript.*"` in: #116: nav-menu.a23fbd, antal grupperade fel: 11 ( 2.80 betyg )
- `content-type=".*javascript.*"` in: #116: nav-menu.a23fbd, antal fel: 2467 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1860 st)
- Expected X and instead saw X. (totalt 419 st)
- Do not access Object.prototype method X from target object. (totalt 163 st)
- X is not modified in this loop. (totalt 6 st)
- Unnecessary escape character: \/. (totalt 6 st)
- X is assigned to itself. (totalt 6 st)
- Comparing to itself is potentially pointless. (totalt 2 st)
- Script URL is a form of eval. (totalt 2 st)
- Unnecessary X. (totalt 1 st)
- Unnecessary escape character: \?. (totalt 1 st)
- Unnecessary escape character: \}. (totalt 1 st)
- `content-type=".*javascript.*"` in: #117: text-editor.2cb, antal grupperade fel: 11 ( 2.80 betyg )
- `content-type=".*javascript.*"` in: #117: text-editor.2cb, antal fel: 2471 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1864 st)
- Expected X and instead saw X. (totalt 419 st)
- Do not access Object.prototype method X from target object. (totalt 163 st)
- X is not modified in this loop. (totalt 6 st)
- Unnecessary escape character: \/. (totalt 6 st)
- X is assigned to itself. (totalt 6 st)
- Comparing to itself is potentially pointless. (totalt 2 st)
- Script URL is a form of eval. (totalt 2 st)
- Unnecessary X. (totalt 1 st)
- Unnecessary escape character: \?. (totalt 1 st)
- Unnecessary escape character: \}. (totalt 1 st)
- `content-type=".*javascript.*"` in: #127: swiper.min.js, antal grupperade fel: 12 ( 2.60 betyg )
- `content-type=".*javascript.*"` in: #127: swiper.min.js, antal fel: 3042 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 2366 st)
- Expected X and instead saw X. (totalt 485 st)
- Do not access Object.prototype method X from target object. (totalt 163 st)
- Unnecessary escape character: \/. (totalt 8 st)
- X is not modified in this loop. (totalt 6 st)
- X is assigned to itself. (totalt 6 st)
- Comparing to itself is potentially pointless. (totalt 2 st)
- Script URL is a form of eval. (totalt 2 st)
- Unnecessary X. (totalt 1 st)
- Unnecessary escape character: \?. (totalt 1 st)
- Unnecessary escape character: \}. (totalt 1 st)
- Unnecessary escape character: \.. (totalt 1 st)