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.73 av 5
- JS är dålig.
Webbstandard
- `< script>` in: #1: Webbsida , antal grupperade fel: 3 ( 4.40 betyg )
- `< script>` in: #1: Webbsida , antal fel: 26 ( 1.00 betyg )
- X is assigned a value but never used. (totalt 11 st)
- X is not defined. (totalt 8 st)
- X is defined but never used. (totalt 7 st)
- `< script src="...">` in: #1: Webbsida , antal grupperade fel: 4 ( 4.20 betyg )
- `< script src="...">` in: #1: Webbsida , antal fel: 1316 ( 1.00 betyg )
- X is not defined. (totalt 792 st)
- X is defined but never used. (totalt 431 st)
- X is assigned a value but never used. (totalt 76 st)
- Unexpected console statement. (totalt 17 st)
- `content-type=".*javascript.*"` in: #119: dialog.min.js, antal grupperade fel: 2 ( 4.60 betyg )
- `content-type=".*javascript.*"` in: #119: dialog.min.js, antal fel: 7 ( 3.60 betyg )
- X is not defined. (totalt 6 st)
- Unexpected console statement. (totalt 1 st)
- `content-type=".*javascript.*"` in: #120: lightbox.26bf6b, antal grupperade fel: 2 ( 4.60 betyg )
- `content-type=".*javascript.*"` in: #120: lightbox.26bf6b, antal fel: 46 ( 1.00 betyg )
- X is not defined. (totalt 45 st)
- Unexpected console statement. (totalt 1 st)
- `content-type=".*javascript.*"` in: #122: share-link.min., antal grupperade fel: 2 ( 4.60 betyg )
- `content-type=".*javascript.*"` in: #122: share-link.min., antal fel: 55 ( 1.00 betyg )
- X is not defined. (totalt 54 st)
- Unexpected console statement. (totalt 1 st)
- `content-type=".*javascript.*"` in: #124: text-editor.2c3, antal grupperade fel: 2 ( 4.60 betyg )
- `content-type=".*javascript.*"` in: #124: text-editor.2c3, antal fel: 58 ( 1.00 betyg )
- X is not defined. (totalt 57 st)
- Unexpected console statement. (totalt 1 st)
- `content-type=".*javascript.*"` in: #125: image-carousel., antal grupperade fel: 2 ( 4.60 betyg )
- `content-type=".*javascript.*"` in: #125: image-carousel., antal fel: 59 ( 1.00 betyg )
- X is not defined. (totalt 58 st)
- Unexpected console statement. (totalt 1 st)
- `content-type=".*javascript.*"` in: #126: video.78c625e89, antal grupperade fel: 2 ( 4.60 betyg )
- `content-type=".*javascript.*"` in: #126: video.78c625e89, antal fel: 66 ( 1.00 betyg )
- X is not defined. (totalt 65 st)
- Unexpected console statement. (totalt 1 st)
- `content-type=".*javascript.*"` in: #129: swiper.min.js, antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #129: swiper.min.js, antal fel: 73 ( 1.00 betyg )
- X is not defined. (totalt 67 st)
- X is defined but never used. (totalt 5 st)
- Unexpected console statement. (totalt 1 st)
Integritet & säkerhet
- `< script>` in: #1: Webbsida , antal grupperade fel: 3 ( 4.40 betyg )
- `< script>` in: #1: Webbsida , antal fel: 106 ( 1.00 betyg )
- Unnecessary escape character: \/. (totalt 89 st)
- Expected X and instead saw X. (totalt 9 st)
- Expected an assignment or function call and instead saw an expression. (totalt 8 st)
- `< script src="...">` in: #1: Webbsida , antal grupperade fel: 16 ( 1.80 betyg )
- `< script src="...">` in: #1: Webbsida , antal fel: 3084 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 2321 st)
- Expected X and instead saw X. (totalt 612 st)
- Do not access Object.prototype method X from target object. (totalt 106 st)
- Unnecessary escape character: \/. (totalt 10 st)
- X is assigned to itself. (totalt 7 st)
- Unnecessary escape character: \-. (totalt 7 st)
- Comparing to itself is potentially pointless. (totalt 4 st)
- X is not modified in this loop. (totalt 4 st)
- Unnecessary escape character: \+. (totalt 3 st)
- The Function constructor is eval. (totalt 3 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)
- eval can be harmful. (totalt 1 st)
- `content-type=".*javascript.*"` in: #119: dialog.min.js, antal grupperade fel: 2 ( 4.60 betyg )
- `content-type=".*javascript.*"` in: #119: dialog.min.js, antal fel: 37 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 31 st)
- Expected X and instead saw X. (totalt 6 st)
- `content-type=".*javascript.*"` in: #120: lightbox.26bf6b, antal grupperade fel: 2 ( 4.60 betyg )
- `content-type=".*javascript.*"` in: #120: lightbox.26bf6b, antal fel: 101 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 94 st)
- Expected X and instead saw X. (totalt 7 st)
- `content-type=".*javascript.*"` in: #122: share-link.min., antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #122: share-link.min., antal fel: 107 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 99 st)
- Expected X and instead saw X. (totalt 7 st)
- Script URL is a form of eval. (totalt 1 st)
- `content-type=".*javascript.*"` in: #124: text-editor.2c3, antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #124: text-editor.2c3, antal fel: 111 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 103 st)
- Expected X and instead saw X. (totalt 7 st)
- Script URL is a form of eval. (totalt 1 st)
- `content-type=".*javascript.*"` in: #125: image-carousel., antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #125: image-carousel., antal fel: 112 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 104 st)
- Expected X and instead saw X. (totalt 7 st)
- Script URL is a form of eval. (totalt 1 st)
- `content-type=".*javascript.*"` in: #126: video.78c625e89, antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #126: video.78c625e89, antal fel: 123 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 115 st)
- Expected X and instead saw X. (totalt 7 st)
- Script URL is a form of eval. (totalt 1 st)
- `content-type=".*javascript.*"` in: #129: swiper.min.js, antal grupperade fel: 5 ( 4.00 betyg )
- `content-type=".*javascript.*"` in: #129: swiper.min.js, antal fel: 694 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 617 st)
- Expected X and instead saw X. (totalt 73 st)
- Unnecessary escape character: \/. (totalt 2 st)
- Script URL is a form of eval. (totalt 1 st)
- Unnecessary escape character: \.. (totalt 1 st)