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.72 av 5
- JS är dålig.
Webbstandard
- `< script>` in: #1: Webbsida , antal grupperade fel: 2 ( 4.60 betyg )
- `< script>` in: #1: Webbsida , antal fel: 14 ( 2.20 betyg )
- X is not defined. (totalt 12 st)
- X is assigned a value but never used. (totalt 2 st)
- `content-type=".*javascript.*"` in: #2: jquery-3.7.0.mi, antal grupperade fel: 2 ( 4.60 betyg )
- `content-type=".*javascript.*"` in: #2: jquery-3.7.0.mi, antal fel: 13 ( 2.40 betyg )
- X is defined but never used. (totalt 11 st)
- X is not defined. (totalt 2 st)
- `content-type=".*javascript.*"` in: #3: jquery-migrate-, antal grupperade fel: 2 ( 4.60 betyg )
- `content-type=".*javascript.*"` in: #3: jquery-migrate-, antal fel: 19 ( 1.20 betyg )
- X is defined but never used. (totalt 14 st)
- X is not defined. (totalt 5 st)
- `content-type=".*javascript.*"` in: #10: foxy-mobile-men, antal grupperade fel: 2 ( 4.60 betyg )
- `content-type=".*javascript.*"` in: #10: foxy-mobile-men, antal fel: 86 ( 1.00 betyg )
- X is not defined. (totalt 71 st)
- X is defined but never used. (totalt 15 st)
- `content-type=".*javascript.*"` in: #11: dothis.js, antal grupperade fel: 2 ( 4.60 betyg )
- `content-type=".*javascript.*"` in: #11: dothis.js, antal fel: 121 ( 1.00 betyg )
- X is not defined. (totalt 106 st)
- X is defined but never used. (totalt 15 st)
- `content-type=".*javascript.*"` in: #60: login6.js, antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #60: login6.js, antal fel: 170 ( 1.00 betyg )
- X is not defined. (totalt 143 st)
- X is defined but never used. (totalt 26 st)
- X is assigned a value but never used. (totalt 1 st)
- `content-type=".*javascript.*"` in: #61: sha1.js, antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #61: sha1.js, antal fel: 176 ( 1.00 betyg )
- X is not defined. (totalt 143 st)
- X is defined but never used. (totalt 32 st)
- X is assigned a value but never used. (totalt 1 st)
- `content-type=".*javascript.*"` in: #62: editor-video.js, antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #62: editor-video.js, antal fel: 192 ( 1.00 betyg )
- X is not defined. (totalt 156 st)
- X is defined but never used. (totalt 34 st)
- X is assigned a value but never used. (totalt 2 st)
- `content-type=".*javascript.*"` in: #63: search-field.js, antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #63: search-field.js, antal fel: 213 ( 1.00 betyg )
- X is not defined. (totalt 176 st)
- X is defined but never used. (totalt 35 st)
- X is assigned a value but never used. (totalt 2 st)
- `content-type=".*javascript.*"` in: #64: jquery.auto-com, antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #64: jquery.auto-com, antal fel: 221 ( 1.00 betyg )
- X is not defined. (totalt 180 st)
- X is defined but never used. (totalt 39 st)
- X is assigned a value but never used. (totalt 2 st)
- `content-type=".*javascript.*"` in: #67: functions.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #67: functions.js, antal fel: 232 ( 1.00 betyg )
- X is not defined. (totalt 190 st)
- X is defined but never used. (totalt 39 st)
- X is assigned a value but never used. (totalt 2 st)
- Unexpected console statement. (totalt 1 st)
- `content-type=".*javascript.*"` in: #68: openPopup.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #68: openPopup.js, antal fel: 235 ( 1.00 betyg )
- X is not defined. (totalt 193 st)
- X is defined but never used. (totalt 39 st)
- X is assigned a value but never used. (totalt 2 st)
- Unexpected console statement. (totalt 1 st)
- `content-type=".*javascript.*"` in: #69: functions.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #69: functions.js, antal fel: 255 ( 1.00 betyg )
- X is not defined. (totalt 210 st)
- X is defined but never used. (totalt 42 st)
- X is assigned a value but never used. (totalt 2 st)
- Unexpected console statement. (totalt 1 st)
- `content-type=".*javascript.*"` in: #72: recaptcha--fi.j, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #72: recaptcha--fi.j, antal fel: 354 ( 1.00 betyg )
- X is not defined. (totalt 227 st)
- X is defined but never used. (totalt 120 st)
- Unexpected console statement. (totalt 4 st)
- X is assigned a value but never used. (totalt 3 st)
Integritet & säkerhet
- `< script>` in: #1: Webbsida , antal grupperade fel: 2 ( 4.60 betyg )
- `< script>` in: #1: Webbsida , antal fel: 14 ( 2.20 betyg )
- Expected X and instead saw X. (totalt 13 st)
- Unnecessary escape character: \/. (totalt 1 st)
- `content-type=".*javascript.*"` in: #2: jquery-3.7.0.mi, antal grupperade fel: 7 ( 3.60 betyg )
- `content-type=".*javascript.*"` in: #2: jquery-3.7.0.mi, antal fel: 373 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 217 st)
- Expected X and instead saw X. (totalt 150 st)
- Unnecessary escape character: \/. (totalt 2 st)
- Do not access Object.prototype method X from target object. (totalt 1 st)
- Unnecessary X. (totalt 1 st)
- Comparing to itself is potentially pointless. (totalt 1 st)
- X is assigned to itself. (totalt 1 st)
- `content-type=".*javascript.*"` in: #3: jquery-migrate-, antal grupperade fel: 7 ( 3.60 betyg )
- `content-type=".*javascript.*"` in: #3: jquery-migrate-, antal fel: 409 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 241 st)
- Expected X and instead saw X. (totalt 159 st)
- Unnecessary escape character: \/. (totalt 5 st)
- Do not access Object.prototype method X from target object. (totalt 1 st)
- Unnecessary X. (totalt 1 st)
- Comparing to itself is potentially pointless. (totalt 1 st)
- X is assigned to itself. (totalt 1 st)
- `content-type=".*javascript.*"` in: #10: foxy-mobile-men, antal grupperade fel: 7 ( 3.60 betyg )
- `content-type=".*javascript.*"` in: #10: foxy-mobile-men, antal fel: 414 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 241 st)
- Expected X and instead saw X. (totalt 164 st)
- Unnecessary escape character: \/. (totalt 5 st)
- Do not access Object.prototype method X from target object. (totalt 1 st)
- Unnecessary X. (totalt 1 st)
- Comparing to itself is potentially pointless. (totalt 1 st)
- X is assigned to itself. (totalt 1 st)
- `content-type=".*javascript.*"` in: #11: dothis.js, antal grupperade fel: 7 ( 3.60 betyg )
- `content-type=".*javascript.*"` in: #11: dothis.js, antal fel: 418 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 241 st)
- Expected X and instead saw X. (totalt 168 st)
- Unnecessary escape character: \/. (totalt 5 st)
- Do not access Object.prototype method X from target object. (totalt 1 st)
- Unnecessary X. (totalt 1 st)
- Comparing to itself is potentially pointless. (totalt 1 st)
- X is assigned to itself. (totalt 1 st)
- `content-type=".*javascript.*"` in: #60: login6.js, antal grupperade fel: 7 ( 3.60 betyg )
- `content-type=".*javascript.*"` in: #60: login6.js, antal fel: 422 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 241 st)
- Expected X and instead saw X. (totalt 172 st)
- Unnecessary escape character: \/. (totalt 5 st)
- Do not access Object.prototype method X from target object. (totalt 1 st)
- Unnecessary X. (totalt 1 st)
- Comparing to itself is potentially pointless. (totalt 1 st)
- X is assigned to itself. (totalt 1 st)
- `content-type=".*javascript.*"` in: #61: sha1.js, antal grupperade fel: 7 ( 3.60 betyg )
- `content-type=".*javascript.*"` in: #61: sha1.js, antal fel: 423 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 241 st)
- Expected X and instead saw X. (totalt 173 st)
- Unnecessary escape character: \/. (totalt 5 st)
- Do not access Object.prototype method X from target object. (totalt 1 st)
- Unnecessary X. (totalt 1 st)
- Comparing to itself is potentially pointless. (totalt 1 st)
- X is assigned to itself. (totalt 1 st)
- `content-type=".*javascript.*"` in: #62: editor-video.js, antal grupperade fel: 7 ( 3.60 betyg )
- `content-type=".*javascript.*"` in: #62: editor-video.js, antal fel: 429 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 241 st)
- Expected X and instead saw X. (totalt 179 st)
- Unnecessary escape character: \/. (totalt 5 st)
- Do not access Object.prototype method X from target object. (totalt 1 st)
- Unnecessary X. (totalt 1 st)
- Comparing to itself is potentially pointless. (totalt 1 st)
- X is assigned to itself. (totalt 1 st)
- `content-type=".*javascript.*"` in: #63: search-field.js, antal grupperade fel: 7 ( 3.60 betyg )
- `content-type=".*javascript.*"` in: #63: search-field.js, antal fel: 437 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 241 st)
- Expected X and instead saw X. (totalt 187 st)
- Unnecessary escape character: \/. (totalt 5 st)
- Do not access Object.prototype method X from target object. (totalt 1 st)
- Unnecessary X. (totalt 1 st)
- Comparing to itself is potentially pointless. (totalt 1 st)
- X is assigned to itself. (totalt 1 st)
- `content-type=".*javascript.*"` in: #64: jquery.auto-com, antal grupperade fel: 7 ( 3.60 betyg )
- `content-type=".*javascript.*"` in: #64: jquery.auto-com, antal fel: 459 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 252 st)
- Expected X and instead saw X. (totalt 197 st)
- Unnecessary escape character: \/. (totalt 6 st)
- Do not access Object.prototype method X from target object. (totalt 1 st)
- Unnecessary X. (totalt 1 st)
- Comparing to itself is potentially pointless. (totalt 1 st)
- X is assigned to itself. (totalt 1 st)
- `content-type=".*javascript.*"` in: #67: functions.js, antal grupperade fel: 7 ( 3.60 betyg )
- `content-type=".*javascript.*"` in: #67: functions.js, antal fel: 460 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 252 st)
- Expected X and instead saw X. (totalt 198 st)
- Unnecessary escape character: \/. (totalt 6 st)
- Do not access Object.prototype method X from target object. (totalt 1 st)
- Unnecessary X. (totalt 1 st)
- Comparing to itself is potentially pointless. (totalt 1 st)
- X is assigned to itself. (totalt 1 st)
- `content-type=".*javascript.*"` in: #68: openPopup.js, antal grupperade fel: 7 ( 3.60 betyg )
- `content-type=".*javascript.*"` in: #68: openPopup.js, antal fel: 460 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 252 st)
- Expected X and instead saw X. (totalt 198 st)
- Unnecessary escape character: \/. (totalt 6 st)
- Do not access Object.prototype method X from target object. (totalt 1 st)
- Unnecessary X. (totalt 1 st)
- Comparing to itself is potentially pointless. (totalt 1 st)
- X is assigned to itself. (totalt 1 st)
- `content-type=".*javascript.*"` in: #69: functions.js, antal grupperade fel: 7 ( 3.60 betyg )
- `content-type=".*javascript.*"` in: #69: functions.js, antal fel: 461 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 252 st)
- Expected X and instead saw X. (totalt 199 st)
- Unnecessary escape character: \/. (totalt 6 st)
- Do not access Object.prototype method X from target object. (totalt 1 st)
- Unnecessary X. (totalt 1 st)
- Comparing to itself is potentially pointless. (totalt 1 st)
- X is assigned to itself. (totalt 1 st)
- `content-type=".*javascript.*"` in: #72: recaptcha--fi.j, antal grupperade fel: 18 ( 1.40 betyg )
- `content-type=".*javascript.*"` in: #72: recaptcha--fi.j, antal fel: 2731 ( 1.00 betyg )
- Expected X and instead saw X. (totalt 1843 st)
- Expected an assignment or function call and instead saw an expression. (totalt 826 st)
- Unnecessary escape character: \/. (totalt 15 st)
- X is assigned to itself. (totalt 7 st)
- Do not access Object.prototype method X from target object. (totalt 6 st)
- Comparing to itself is potentially pointless. (totalt 5 st)
- Unnecessary escape character: \). (totalt 5 st)
- Unnecessary escape character: \?. (totalt 4 st)
- Unnecessary escape character: \-. (totalt 3 st)
- Unnecessary escape character: \^. (totalt 3 st)
- Unnecessary escape character: \.. (totalt 3 st)
- Unnecessary X. (totalt 2 st)
- eval can be harmful. (totalt 2 st)
- X is not modified in this loop. (totalt 2 st)
- Unnecessary escape character: \(. (totalt 2 st)
- Unnecessary escape character: \+. (totalt 1 st)
- Unnecessary escape character: \[. (totalt 1 st)
- Unnecessary escape character: \{. (totalt 1 st)