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.33 av 5
- JS är dålig.
Webbstandard
- `< script>` in: #1: Webbsida , antal grupperade fel: 3 ( 4.40 betyg )
- `< script>` in: #1: Webbsida , antal fel: 4 ( 4.20 betyg )
- X is not defined. (totalt 2 st)
- X is defined but never used. (totalt 1 st)
- Unexpected console statement. (totalt 1 st)
- `< script src="...">` in: #1: Webbsida , antal grupperade fel: 4 ( 4.20 betyg )
- `< script src="...">` in: #1: Webbsida , antal fel: 478 ( 1.00 betyg )
- X is defined but never used. (totalt 255 st)
- X is not defined. (totalt 198 st)
- Unexpected console statement. (totalt 18 st)
- X is assigned a value but never used. (totalt 7 st)
- `content-type=".*javascript.*"` in: #48: ai.2.min.js, antal grupperade fel: 2 ( 4.60 betyg )
- `content-type=".*javascript.*"` in: #48: ai.2.min.js, antal fel: 91 ( 1.00 betyg )
- X is defined but never used. (totalt 86 st)
- X is not defined. (totalt 5 st)
- `content-type=".*javascript.*"` in: #49: cdh-player.js, antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #49: cdh-player.js, antal fel: 106 ( 1.00 betyg )
- X is defined but never used. (totalt 89 st)
- X is not defined. (totalt 9 st)
- Unexpected console statement. (totalt 8 st)
- `content-type=".*javascript.*"` in: #59: loader.js, antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #59: loader.js, antal fel: 137 ( 1.00 betyg )
- X is defined but never used. (totalt 111 st)
- Unexpected console statement. (totalt 17 st)
- X is not defined. (totalt 9 st)
- `content-type=".*javascript.*"` in: #61: heatmaps.js, antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #61: heatmaps.js, antal fel: 148 ( 1.00 betyg )
- X is defined but never used. (totalt 120 st)
- Unexpected console statement. (totalt 19 st)
- X is not defined. (totalt 9 st)
- `content-type=".*javascript.*"` in: #62: jquery-3.7.1.mi, antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #62: jquery-3.7.1.mi, antal fel: 161 ( 1.00 betyg )
- X is defined but never used. (totalt 131 st)
- Unexpected console statement. (totalt 19 st)
- X is not defined. (totalt 11 st)
- `content-type=".*javascript.*"` in: #63: cdhcombo-extern, antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #63: cdhcombo-extern, antal fel: 167 ( 1.00 betyg )
- X is defined but never used. (totalt 132 st)
- Unexpected console statement. (totalt 19 st)
- X is not defined. (totalt 16 st)
- `content-type=".*javascript.*"` in: #64: cdhcombo.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #64: cdhcombo.js, antal fel: 213 ( 1.00 betyg )
- X is defined but never used. (totalt 135 st)
- X is not defined. (totalt 56 st)
- Unexpected console statement. (totalt 21 st)
- X is assigned a value but never used. (totalt 1 st)
- `content-type=".*javascript.*"` in: #65: cdh-video.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #65: cdh-video.js, antal fel: 217 ( 1.00 betyg )
- X is defined but never used. (totalt 135 st)
- X is not defined. (totalt 57 st)
- Unexpected console statement. (totalt 21 st)
- X is assigned a value but never used. (totalt 4 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 )
- Expected X and instead saw X. (totalt 1 st)
- `< script src="...">` in: #1: Webbsida , antal grupperade fel: 15 ( 2.00 betyg )
- `< script src="...">` in: #1: Webbsida , antal fel: 1919 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1219 st)
- Expected X and instead saw X. (totalt 653 st)
- Do not access Object.prototype method X from target object. (totalt 17 st)
- Comparing to itself is potentially pointless. (totalt 7 st)
- Unsafe usage of ThrowStatement. (totalt 5 st)
- Unexpected string concatenation of literals. (totalt 3 st)
- Script URL is a form of eval. (totalt 3 st)
- Unnecessary X. (totalt 3 st)
- Unnecessary escape character: \/. (totalt 2 st)
- X is assigned to itself. (totalt 2 st)
- The Function constructor is eval. (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)
- `content-type=".*javascript.*"` in: #48: ai.2.min.js, antal grupperade fel: 10 ( 3.00 betyg )
- `content-type=".*javascript.*"` in: #48: ai.2.min.js, antal fel: 473 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 413 st)
- Expected X and instead saw X. (totalt 40 st)
- Unnecessary escape character: \.. (totalt 5 st)
- Unnecessary escape character: \/. (totalt 4 st)
- X is assigned to itself. (totalt 3 st)
- Unnecessary escape character: \@. (totalt 2 st)
- Unnecessary escape character: \(. (totalt 2 st)
- Script URL is a form of eval. (totalt 2 st)
- Do not access Object.prototype method X from target object. (totalt 1 st)
- Unnecessary escape character: \". (totalt 1 st)
- `content-type=".*javascript.*"` in: #49: cdh-player.js, antal grupperade fel: 10 ( 3.00 betyg )
- `content-type=".*javascript.*"` in: #49: cdh-player.js, antal fel: 479 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 418 st)
- Expected X and instead saw X. (totalt 41 st)
- Unnecessary escape character: \.. (totalt 5 st)
- Unnecessary escape character: \/. (totalt 4 st)
- X is assigned to itself. (totalt 3 st)
- Unnecessary escape character: \@. (totalt 2 st)
- Unnecessary escape character: \(. (totalt 2 st)
- Script URL is a form of eval. (totalt 2 st)
- Do not access Object.prototype method X from target object. (totalt 1 st)
- Unnecessary escape character: \". (totalt 1 st)
- `content-type=".*javascript.*"` in: #59: loader.js, antal grupperade fel: 15 ( 2.00 betyg )
- `content-type=".*javascript.*"` in: #59: loader.js, antal fel: 777 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 565 st)
- Expected X and instead saw X. (totalt 174 st)
- Unnecessary X. (totalt 6 st)
- Unnecessary escape character: \.. (totalt 5 st)
- Unnecessary escape character: \/. (totalt 5 st)
- Comparing to itself is potentially pointless. (totalt 4 st)
- Unnecessary escape character: \?. (totalt 4 st)
- X is assigned to itself. (totalt 3 st)
- Do not access Object.prototype method X from target object. (totalt 2 st)
- Unnecessary escape character: \@. (totalt 2 st)
- Unnecessary escape character: \(. (totalt 2 st)
- Script URL is a form of eval. (totalt 2 st)
- Unnecessary escape character: \". (totalt 1 st)
- Unnecessary escape character: \[. (totalt 1 st)
- Unnecessary escape character: \^. (totalt 1 st)
- `content-type=".*javascript.*"` in: #61: heatmaps.js, antal grupperade fel: 15 ( 2.00 betyg )
- `content-type=".*javascript.*"` in: #61: heatmaps.js, antal fel: 814 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 588 st)
- Expected X and instead saw X. (totalt 188 st)
- Unnecessary X. (totalt 6 st)
- Unnecessary escape character: \.. (totalt 5 st)
- Unnecessary escape character: \/. (totalt 5 st)
- Comparing to itself is potentially pointless. (totalt 4 st)
- Unnecessary escape character: \?. (totalt 4 st)
- X is assigned to itself. (totalt 3 st)
- Do not access Object.prototype method X from target object. (totalt 2 st)
- Unnecessary escape character: \@. (totalt 2 st)
- Unnecessary escape character: \(. (totalt 2 st)
- Script URL is a form of eval. (totalt 2 st)
- Unnecessary escape character: \". (totalt 1 st)
- Unnecessary escape character: \[. (totalt 1 st)
- Unnecessary escape character: \^. (totalt 1 st)
- `content-type=".*javascript.*"` in: #62: jquery-3.7.1.mi, antal grupperade fel: 15 ( 2.00 betyg )
- `content-type=".*javascript.*"` in: #62: jquery-3.7.1.mi, antal fel: 1187 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 805 st)
- Expected X and instead saw X. (totalt 338 st)
- Unnecessary escape character: \/. (totalt 7 st)
- Unnecessary X. (totalt 7 st)
- Unnecessary escape character: \.. (totalt 5 st)
- Comparing to itself is potentially pointless. (totalt 5 st)
- X is assigned to itself. (totalt 4 st)
- Unnecessary escape character: \?. (totalt 4 st)
- Do not access Object.prototype method X from target object. (totalt 3 st)
- Unnecessary escape character: \@. (totalt 2 st)
- Unnecessary escape character: \(. (totalt 2 st)
- Script URL is a form of eval. (totalt 2 st)
- Unnecessary escape character: \". (totalt 1 st)
- Unnecessary escape character: \[. (totalt 1 st)
- Unnecessary escape character: \^. (totalt 1 st)
- `content-type=".*javascript.*"` in: #63: cdhcombo-extern, antal grupperade fel: 17 ( 1.60 betyg )
- `content-type=".*javascript.*"` in: #63: cdhcombo-extern, antal fel: 1281 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 852 st)
- Expected X and instead saw X. (totalt 379 st)
- Comparing to itself is potentially pointless. (totalt 8 st)
- Unnecessary escape character: \/. (totalt 7 st)
- Unnecessary X. (totalt 7 st)
- Unnecessary escape character: \.. (totalt 5 st)
- Do not access Object.prototype method X from target object. (totalt 4 st)
- X is assigned to itself. (totalt 4 st)
- Unnecessary escape character: \?. (totalt 4 st)
- Unnecessary escape character: \@. (totalt 2 st)
- Unnecessary escape character: \(. (totalt 2 st)
- Script URL is a form of eval. (totalt 2 st)
- Unnecessary escape character: \". (totalt 1 st)
- Unnecessary escape character: \[. (totalt 1 st)
- Unnecessary escape character: \^. (totalt 1 st)
- Unexpected string concatenation of literals. (totalt 1 st)
- The Function constructor is eval. (totalt 1 st)
- `content-type=".*javascript.*"` in: #64: cdhcombo.js, antal grupperade fel: 21 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #64: cdhcombo.js, antal fel: 1366 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 917 st)
- Expected X and instead saw X. (totalt 387 st)
- Comparing to itself is potentially pointless. (totalt 9 st)
- Unnecessary escape character: \/. (totalt 7 st)
- Unnecessary X. (totalt 7 st)
- Unnecessary escape character: \.. (totalt 6 st)
- Do not access Object.prototype method X from target object. (totalt 4 st)
- X is assigned to itself. (totalt 4 st)
- Unnecessary escape character: \?. (totalt 4 st)
- Unexpected string concatenation of literals. (totalt 4 st)
- Unnecessary escape character: \(. (totalt 3 st)
- Unnecessary escape character: \". (totalt 2 st)
- Unnecessary escape character: \@. (totalt 2 st)
- Script URL is a form of eval. (totalt 2 st)
- Unnecessary escape character: \[. (totalt 2 st)
- Unnecessary escape character: \^. (totalt 1 st)
- The Function constructor is eval. (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)
- `content-type=".*javascript.*"` in: #65: cdh-video.js, antal grupperade fel: 21 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #65: cdh-video.js, antal fel: 1366 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 917 st)
- Expected X and instead saw X. (totalt 387 st)
- Comparing to itself is potentially pointless. (totalt 9 st)
- Unnecessary escape character: \/. (totalt 7 st)
- Unnecessary X. (totalt 7 st)
- Unnecessary escape character: \.. (totalt 6 st)
- Do not access Object.prototype method X from target object. (totalt 4 st)
- X is assigned to itself. (totalt 4 st)
- Unnecessary escape character: \?. (totalt 4 st)
- Unexpected string concatenation of literals. (totalt 4 st)
- Unnecessary escape character: \(. (totalt 3 st)
- Unnecessary escape character: \". (totalt 2 st)
- Unnecessary escape character: \@. (totalt 2 st)
- Script URL is a form of eval. (totalt 2 st)
- Unnecessary escape character: \[. (totalt 2 st)
- Unnecessary escape character: \^. (totalt 1 st)
- The Function constructor is eval. (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)