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.06 av 5
- JS är ok.
Webbstandard
- `< script>` in: #1: Webbsida , antal grupperade fel: 3 ( 4.40 betyg )
- `< script>` in: #1: Webbsida , antal fel: 11 ( 2.80 betyg )
- X is assigned a value but never used. (totalt 5 st)
- X is defined but never used. (totalt 4 st)
- X is not defined. (totalt 2 st)
- `< script src="...">` in: #1: Webbsida , antal grupperade fel: 3 ( 4.40 betyg )
- `< script src="...">` in: #1: Webbsida , antal fel: 554 ( 1.00 betyg )
- X is not defined. (totalt 504 st)
- X is defined but never used. (totalt 40 st)
- Unexpected console statement. (totalt 10 st)
- `content-type=".*javascript.*"` in: #43: wp-emoji-releas, antal grupperade fel: 1 ( 4.80 betyg )
- `content-type=".*javascript.*"` in: #43: wp-emoji-releas, antal fel: 1 ( 4.80 betyg )
- X is assigned a value but never used. (totalt 1 st)
- `content-type=".*javascript.*"` in: #44: section-fronten, antal grupperade fel: 2 ( 4.60 betyg )
- `content-type=".*javascript.*"` in: #44: section-fronten, 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: #45: shared-frontend, antal grupperade fel: 2 ( 4.60 betyg )
- `content-type=".*javascript.*"` in: #45: shared-frontend, antal fel: 20 ( 1.00 betyg )
- X is not defined. (totalt 19 st)
- X is assigned a value but never used. (totalt 1 st)
- `content-type=".*javascript.*"` in: #46: text-editor.c08, antal grupperade fel: 2 ( 4.60 betyg )
- `content-type=".*javascript.*"` in: #46: text-editor.c08, antal fel: 23 ( 1.00 betyg )
- X is not defined. (totalt 22 st)
- X is assigned a value but never used. (totalt 1 st)
Integritet & säkerhet
- `< script>` in: #1: Webbsida , antal grupperade fel: 3 ( 4.40 betyg )
- `< script>` in: #1: Webbsida , antal fel: 104 ( 1.00 betyg )
- Unnecessary escape character: \/. (totalt 83 st)
- Expected an assignment or function call and instead saw an expression. (totalt 11 st)
- Expected X and instead saw X. (totalt 10 st)
- `< script src="...">` in: #1: Webbsida , antal grupperade fel: 11 ( 2.80 betyg )
- `< script src="...">` in: #1: Webbsida , antal fel: 1193 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 863 st)
- Expected X and instead saw X. (totalt 303 st)
- Unnecessary escape character: \/. (totalt 7 st)
- Do not access Object.prototype method X from target object. (totalt 6 st)
- X is assigned to itself. (totalt 4 st)
- The Function constructor is eval. (totalt 3 st)
- Comparing to itself is potentially pointless. (totalt 3 st)
- Unnecessary X. (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: #43: wp-emoji-releas, antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #43: wp-emoji-releas, antal fel: 26 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 15 st)
- Expected X and instead saw X. (totalt 9 st)
- Do not access Object.prototype method X from target object. (totalt 2 st)
- `content-type=".*javascript.*"` in: #44: section-fronten, antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #44: section-fronten, antal fel: 27 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 16 st)
- Expected X and instead saw X. (totalt 9 st)
- Do not access Object.prototype method X from target object. (totalt 2 st)
- `content-type=".*javascript.*"` in: #45: shared-frontend, antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #45: shared-frontend, antal fel: 61 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 49 st)
- Expected X and instead saw X. (totalt 10 st)
- Do not access Object.prototype method X from target object. (totalt 2 st)
- `content-type=".*javascript.*"` in: #46: text-editor.c08, antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #46: text-editor.c08, antal fel: 65 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 53 st)
- Expected X and instead saw X. (totalt 10 st)
- Do not access Object.prototype method X from target object. (totalt 2 st)