72% ultimate-carousel

Code Review | Ultimate Carousel

WordPress plugin Ultimate Carousel scored72%from 54 tests.

About plugin

  • Plugin page: ultimate-carousel
  • Plugin version: 1.0.7
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0.1-4.9.8
  • WordPress version: 6.3.1
  • First release: Sep 6, 2018
  • Latest release: Dec 18, 2018
  • Number of updates: 35
  • Update frequency: every 3.0 days
  • Top authors: themescup (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active /1,269 total downloads

Benchmarks

Plugin footprint 82% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲1.36MB] [CPU: ▲5.30ms] Passed 4 tests

A check of server-side resources used by Ultimate Carousel
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /4.75 ▲1.2853.74 ▲10.45
Dashboard /wp-admin4.77 ▲1.4758.78 ▲6.17
Posts /wp-admin/edit.php4.78 ▲1.4162.73 ▲10.72
Add New Post /wp-admin/post-new.php7.18 ▲1.29100.59 ▼3.68
Media Library /wp-admin/upload.php4.78 ▲1.5447.08 ▲8.24
Ultimate Carousels /wp-admin/edit.php?post_type=ultimate-carousel4.7852.13
Add New /wp-admin/post-new.php?post_type=ultimate-carousel4.7850.50

Server storage [IO: ▲4.86MB] [DB: ▲0.00MB] Passed 3 tests

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 129 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_recent-comments
widget_theysaidso_widget
theysaidso_admin_options
db_upgraded
can_compress_scripts

Browser metrics 75% from 4 tests

This is an overview of browser requirements for Ultimate Carousel
You may want to improve the following
  • Nodes: Try to keep the DOM nodes under 25,000 (currently 96,361 on /wp-admin/post-new.php?post_type=ultimate-carousel)
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,147 ▲38615.69 ▲1.3410.09 ▲7.8860.93 ▲16.84
Dashboard /wp-admin2,411 ▲2376.78 ▲1.11126.35 ▲32.5641.37 ▼2.05
Posts /wp-admin/edit.php2,340 ▲2403.49 ▲1.5562.79 ▲22.7333.09 ▼3.43
Add New Post /wp-admin/post-new.php1,592 ▲6621.24 ▼2.28668.29 ▼16.8536.34 ▼18.35
Media Library /wp-admin/upload.php1,476 ▲734.82 ▲0.5889.29 ▼12.6842.91 ▼5.32
Ultimate Carousels /wp-admin/edit.php?post_type=ultimate-carousel1,3173.8152.2227.85
Add New /wp-admin/post-new.php?post_type=ultimate-carousel96,3618.421,304.47231.06

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Smoke test failed, please fix the following
    • > GET request to /wp-admin/post-new.php?post_type=ultimate-carousel
    • > Notice in wp-content/plugins/ultimate-carousel/inc/framework/classes/metabox.class.php+70
    Trying to access array offset on value of type bool

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
  • 313× PHP files trigger server errors when accessed directly (only 10 are shown):
    • > PHP Notice
      Undefined variable: uc_arrow_bg_color_hvr in wp-content/plugins/ultimate-carousel/shortcodes/effect88-column.php on line 35
    • > PHP Notice
      Undefined variable: uc_section_header_color in wp-content/plugins/ultimate-carousel/shortcodes/subscribe.php on line 57
    • > PHP Notice
      Undefined variable: heading in wp-content/plugins/ultimate-carousel/shortcodes/effect88-column.php on line 29
    • > PHP Notice
      Undefined variable: style_fullwidth in wp-content/plugins/ultimate-carousel/shortcodes/fullwitdh.php on line 2108
    • > PHP Notice
      Undefined variable: uc_section_head_font in wp-content/plugins/ultimate-carousel/shortcodes/subscribe.php on line 57
    • > PHP Notice
      Undefined variable: effect_4 in wp-content/plugins/ultimate-carousel/shortcodes/effect89-column.php on line 22
    • > PHP Notice
      Undefined variable: style_fullwidth in wp-content/plugins/ultimate-carousel/shortcodes/fullwitdh.php on line 2108
    • > PHP Notice
      Undefined variable: uc_section_head_font_style in wp-content/plugins/ultimate-carousel/shortcodes/testimonial.php on line 31
    • > PHP Notice
      Undefined variable: uc_arrow_color_hvr in wp-content/plugins/ultimate-carousel/shortcodes/testimonial.php on line 36
    • > PHP Notice
      Undefined variable: style_fullwidth in wp-content/plugins/ultimate-carousel/shortcodes/fullwitdh.php on line 2108

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
These are user-side errors you should fix
  • 4 occurences, only the last one shown
    • > GET request to /wp-admin/post-new.php?post_type=ultimate-carousel
    • > Rendering (warning) in unknown
    /wp-admin/post-new.php?post_type=ultimate-carousel 365 The specified value "100%" cannot be parsed, or is out of range.
    • > GET request to /wp-admin/post-new.php?post_type=ultimate-carousel
    • > Rendering (warning) in unknown
    /wp-admin/post-new.php?post_type=ultimate-carousel 365 The specified value "50%" cannot be parsed, or is out of range.

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that require attention: The official readme.txt might help

ultimate-carousel/ultimate-carousel.php 92% from 13 tests

The entry point to "Ultimate Carousel" version 1.0.7 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
  • Description: Please keep the plugin description shorter than 140 characters (currently 241 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
No dangerous file extensions were detected45,417 lines of code in 103 files:
LanguageFilesBlank linesComment linesLines of code
JSON20017,050
PHP633,9541,39513,536
JavaScript141,0958574,699
CSS81891044,494
SVG1002,671
Sass634102,089
PO File7306334705
Markdown2240173

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.41
Average class complexity14.24
▷ Minimum class complexity1.00
▷ Maximum class complexity94.00
Average method complexity5.28
▷ Minimum method complexity1.00
▷ Maximum method complexity34.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes33
▷ Abstract classes26.06%
▷ Concrete classes3193.94%
▷ Final classes00.00%
Methods102
▷ Static methods54.90%
▷ Public methods102100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions52
▷ Named functions52100.00%
▷ Anonymous functions00.00%
Constants12
▷ Global constants12100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
3 compressed PNG files occupy 0.00MB
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
inc/framework/assets/images/chosen-sprite.png0.53KB0.88KB0.00%
inc/framework/assets/images/checkerboard.png2.29KB2.54KB0.00%
inc/framework/assets/images/chosen-sprite@2x.png0.72KB0.83KB0.00%