72% ultimate-slider

Code Review | Slider Ultimate

WordPress plugin Slider Ultimate scored72%from 54 tests.

About plugin

  • Plugin page: ultimate-slider
  • Plugin version: 2.2.5
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.4
  • WordPress version: 6.3.1
  • First release: Apr 13, 2016
  • Latest release: Nov 7, 2023
  • Number of updates: 171
  • Update frequency: every 16.2 days
  • Top authors: Rustaurius (100%)

Code review

54 tests

User reviews

20 reviews

Install metrics

1,000+ active /132,627 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

Server metrics [RAM: ▲0.28MB] [CPU: ▼8.95ms] Passed 4 tests

Analyzing server-side resources used by Slider Ultimate
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.73 ▲0.2738.36 ▼15.29
Dashboard /wp-admin3.58 ▲0.2846.48 ▼3.16
Posts /wp-admin/edit.php3.63 ▲0.2851.29 ▲2.41
Add New Post /wp-admin/post-new.php6.33 ▲0.4586.40 ▼19.74
Media Library /wp-admin/upload.php3.50 ▲0.2737.73 ▲2.53
Ultimate Slider - Welcome! /wp-admin/index.php?page=ewd-us-getting-started3.4135.22
Settings /wp-admin/edit.php?post_type=ultimate_slider&page=ewd-us-settings3.5139.41
All Slides /wp-admin/edit.php?post_type=ultimate_slider3.5641.26
Slider Tags /wp-admin/edit-tags.php?taxonomy=ultimate_slider_tags&post_type=ultimate_slider3.5040.91
Dashboard /wp-admin/edit.php?post_type=ultimate_slider&page=ewd-us-dashboard3.4134.32
Add New /wp-admin/post-new.php?post_type=ultimate_slider6.3389.46
About Us /wp-admin/edit.php?post_type=ultimate_slider&page=ewd-us-about-us3.4136.73
Slider Categories /wp-admin/edit-tags.php?taxonomy=ultimate_slider_categories&post_type=ultimate_slider3.5034.29

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 261 new files
Database: no new tables, 9 new options
New WordPress options
theysaidso_admin_options
widget_recent-posts
widget_theysaidso_widget
can_compress_scripts
widget_recent-comments
ewd-us-installation-time
ewd-us-permission-level
widget_ewd_us_display_slider
db_upgraded

Browser metrics Passed 4 tests

An overview of browser requirements for Slider Ultimate
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,876 ▲11414.32 ▲0.052.11 ▲0.2539.90 ▼5.85
Dashboard /wp-admin2,253 ▲765.60 ▼0.0089.22 ▲2.2641.76 ▲0.87
Posts /wp-admin/edit.php2,155 ▲522.04 ▲0.0940.49 ▲4.0935.58 ▲2.19
Add New Post /wp-admin/post-new.php6,242 ▲4,71618.84 ▼4.26881.67 ▲113.9336.02 ▼17.99
Media Library /wp-admin/upload.php1,449 ▲494.15 ▼0.0695.30 ▼17.9740.60 ▼1.23
Ultimate Slider - Welcome! /wp-admin/index.php?page=ewd-us-getting-started1,2242.2428.8734.20
Settings /wp-admin/edit.php?post_type=ultimate_slider&page=ewd-us-settings2,1533.7160.7448.12
All Slides /wp-admin/edit.php?post_type=ultimate_slider1,2422.5040.6634.48
Slider Tags /wp-admin/edit-tags.php?taxonomy=ultimate_slider_tags&post_type=ultimate_slider1,2982.1327.2829.67
Dashboard /wp-admin/edit.php?post_type=ultimate_slider&page=ewd-us-dashboard1,1321.9528.5856.25
Add New /wp-admin/post-new.php?post_type=ultimate_slider1,76316.77938.2158.21
About Us /wp-admin/edit.php?post_type=ultimate_slider&page=ewd-us-about-us1,2081.9531.1534.40
Slider Categories /wp-admin/edit-tags.php?taxonomy=ultimate_slider_categories&post_type=ultimate_slider1,2962.1526.6929.83

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • Zombie WordPress options detected upon uninstall: 9 options
    • widget_ewd_us_display_slider
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded
    • ewd-us-installation-time
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • ewd-us-permission-level
    • widget_recent-posts

Smoke tests 25% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 0% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The following issues need your attention
  • 1× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/ultimate-slider/ewd-us-templates/slide-indicators-dots.php
  • 44× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'sapAdminPageSetting_2_6_13' not found in wp-content/plugins/ultimate-slider/lib/simple-admin-pages/classes/AdminPageSetting.SelectTaxonomy.class.php:22
    • > PHP Fatal error
      Uncaught Error: Class 'sapAdminPageSetting_2_6_13' not found in wp-content/plugins/ultimate-slider/lib/simple-admin-pages/classes/AdminPageSetting.Text.class.php:10
    • > PHP Fatal error
      Uncaught Error: Call to undefined function ewd_format_classes() in wp-content/plugins/ultimate-slider/ewd-us-templates/slide-video.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'sapAdminPageSetting_2_6_13' not found in wp-content/plugins/ultimate-slider/lib/simple-admin-pages/classes/AdminPageSetting.Editor.class.php:10
    • > PHP Fatal error
      Uncaught Error: Class 'sapAdminPageSetting_2_6_13' not found in wp-content/plugins/ultimate-slider/lib/simple-admin-pages/classes/AdminPageSetting.Ordering.class.php:21
    • > PHP Warning
      Use of undefined constant EWD_US_PLUGIN_DIR - assumed 'EWD_US_PLUGIN_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/ultimate-slider/views/Base.class.php on line 10
    • > PHP Fatal error
      Uncaught Error: Class 'sapAdminPageSetting_2_6_13' not found in wp-content/plugins/ultimate-slider/lib/simple-admin-pages/classes/AdminPageSetting.SelectMenu.class.php:20
    • > PHP Fatal error
      Uncaught Error: Class 'ewdusView' not found in wp-content/plugins/ultimate-slider/views/View.Slider.class.php:8
    • > PHP Fatal error
      Uncaught Error: Class 'sapAdminPageSetting_2_6_13' not found in wp-content/plugins/ultimate-slider/lib/simple-admin-pages/classes/AdminPageSetting.Number.class.php:10
    • > PHP Fatal error
      Uncaught Error: Class 'ewdusView' not found in wp-content/plugins/ultimate-slider/views/View.Slide.class.php:8

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There are user-side issues you should fix
    • > GET request to /wp-admin/index.php?page=ewd-us-getting-started
    • > Network (severe)
    wp-content/plugins/ultimate-slider/assets/css/admin.css?ver=2.2.5 - Failed to load resource: the server responded with a status of 404 (Not Found)
  • 4 occurences, only the last one shown
    • > GET request to /wp-admin/edit.php?post_type=ultimate_slider&page=ewd-us-about-us
    • > Network (severe)
    wp-content/plugins/ultimate-slider/assets/img/ewd-us-dashboard-banner.png - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that need to be fixed:
  • Tags: Please reduce the number of tags, currently 47 tag instead of maximum 10
You can look at the official readme.txt

ultimate-slider/ultimate-slider.php Passed 13 tests

This is the main PHP file of "Slider Ultimate" version 2.2.5, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
115 characters long description:
Add a responsive slider to any page with a block shortcode. Multiple slide effects. WooCommerce slider integration.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin14,386 lines of code in 170 files:
LanguageFilesBlank linesComment linesLines of code
PHP641,8552,0285,367
CSS203832814,287
JavaScript718234384,149
Markdown31260336
SVG12110247

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.41
Average class complexity15.47
▷ Minimum class complexity1.00
▷ Maximum class complexity125.00
Average method complexity4.09
▷ Minimum method complexity1.00
▷ Maximum method complexity36.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes55
▷ Abstract classes11.82%
▷ Concrete classes5498.18%
▷ Final classes00.00%
Methods258
▷ Static methods41.55%
▷ Public methods23992.64%
▷ Protected methods41.55%
▷ Private methods155.81%
Functions10
▷ Named functions990.00%
▷ Anonymous functions110.00%
Constants9
▷ Global constants9100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
35 PNG files occupy 0.90MB with 0.65MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/img/Black_Background.png6.26KB0.38KB▼ 93.96%
assets/img/Icon_Youtube_Grey.png19.77KB6.31KB▼ 68.10%
lib/simple-admin-pages/img/options-asset-star.png0.78KB0.32KB▼ 58.92%
assets/img/ewd-us-icon.png191.11KB61.43KB▼ 67.86%
assets/img/slider-arrow-left.png4.69KB1.42KB▼ 69.72%