10% smooth-slider

Code Review | Smooth Slider

WordPress plugin Smooth Slider scored 10% from 54 tests.

About plugin

  • Plugin page: smooth-slider
  • Plugin version: 2.8.8
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.9.8
  • WordPress version: 5.8.1
  • First release: Sep 10, 2009
  • Latest release: Dec 6, 2018
  • Number of updates: 75
  • Update frequency: every 45.0 days
  • Top authors: internet techies (100%)

Code review

54 tests

User reviews

103 reviews

Install metrics

8,000+ active / 731,813 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
These installer errors require your attention
  • This plugin did not install gracefully
    • > Deprecated in wp-content/plugins/smooth-slider/slider_versions/widgets_1.php+52
    Function create_function() is deprecated

Server metrics [RAM: ▼1.89MB] [CPU: ▼184.41ms] Passed 4 tests

This is a short check of server-side resources used by Smooth Slider
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /1.75 ▼1.094.50 ▼17.64
Dashboard /wp-admin1.76 ▼1.303.90 ▼32.87
Posts /wp-admin/edit.php1.77 ▼1.344.07 ▼26.66
Add New Post /wp-admin/post-new.php1.76 ▼3.674.23 ▼659.90
Media Library /wp-admin/upload.php1.76 ▼1.243.88 ▼18.20
Settings /wp-admin/admin.php?page=smooth-slider-settings1.763.88
Sliders /wp-admin/admin.php?page=smooth-slider-admin1.764.53

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 99 new files
Database: 3 new tables, 3 new options
New tables
wp_smooth_slider
wp_smooth_slider_meta
wp_smooth_slider_postmeta
New WordPress options
smooth_db_version
widget_sslider_wid
smooth_slider_options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Smooth Slider
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,843 ▲24216.31 ▲0.628.24 ▲2.3074.34 ▼9.73
Dashboard /wp-admin2,967 ▲716.13 ▼0.05115.71 ▼17.53169.81 ▼6.52
Posts /wp-admin/edit.php2,777 ▲403.24 ▼0.0064.55 ▼1.37139.35 ▼2.56
Add New Post /wp-admin/post-new.php2,574 ▼1,23321.33 ▲2.52421.38 ▼48.25196.30 ▲34.68
Media Library /wp-admin/upload.php1,786 ▲345.51 ▼0.02143.04 ▼11.55186.91 ▲2.59
Settings /wp-admin/admin.php?page=smooth-slider-settings5,0654.55121.63264.35
Sliders /wp-admin/admin.php?page=smooth-slider-admin1,7345.5884.44187.36

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • Uninstall procedure had uncaught errors
    • > Deprecated in wp-content/plugins/smooth-slider/slider_versions/widgets_1.php+52
    Function create_function() is deprecated
  • Zombie WordPress options were found after uninstall: 1 option
    • widget_sslider_wid

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
These errors were triggered by the plugin
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=smooth-slider-admin
    • > Deprecated in wp-content/plugins/smooth-slider/slider_versions/widgets_1.php+52
    Function create_function() is deprecated

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following
  • 9× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function delete_option() in wp-content/plugins/smooth-slider/uninstall.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/smooth-slider/smooth-slider.php:33
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/smooth-slider/includes/media-images.php:78
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/smooth-slider/includes/smooth-slider-functions.php:216
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/smooth-slider/settings/settings.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/smooth-slider/slider_versions/shortcodes_1.php:40
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/smooth-slider/slider_versions/shortcodes_1.php:40
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/smooth-slider/slider_versions/widgets_1.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_theme_support() in wp-content/plugins/smooth-slider/includes/sslider-get-the-image-functions.php:27

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% 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 require attention:
  • Screenshots: Add images for these screenshots: #1 (One Demo of Smooth Slider), #2 (Another demo with image in centre), #3 (Basic Settings Panel), #4 (Advance Setting options under Miscellaneous section), #5 (Control Live Preview Panel, Get Shortcode and Template Tag), #6 (Export/Import Setting Values, Get Quick Shortcode and Template Tag), #7 (Image auto fetch preferences, customize image width/height and other parameters), #8 (Drag and Drop reorder or added slides)
  • Tags: There are too many tags (89 tag instead of maximum 10)
Please take inspiration from this readme.txt

smooth-slider/smooth-slider.php 92% from 13 tests

"Smooth Slider" version 2.8.8's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please take the time to fix the following:
  • Description: Keep the plugin description shorter than 140 characters (currently 210 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Success! There were no dangerous files found in this plugin7,072 lines of code in 28 files:
LanguageFilesBlank linesComment linesLines of code
PHP124103053,361
JavaScript72672932,875
CSS868125782
XML10054

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.41
Average class complexity7.00
▷ Minimum class complexity7.00
▷ Maximum class complexity7.00
Average method complexity2.50
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions72
▷ Named functions72100.00%
▷ Anonymous functions00.00%
Constants8
▷ Global constants8100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
63 PNG files occupy 0.36MB with 0.25MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
css/skins/sample/buttons/black/nav.png2.74KB0.09KB▼ 96.83%
css/skins/sample/next-horizontal.png3.52KB1.37KB▼ 61.08%
css/skins/sample/buttons/green/prev.png2.94KB0.32KB▼ 89.04%
screenshot-1.png20.59KB21.38KB0.00%
css/skins/default/buttons/black/next.png2.93KB0.31KB▼ 89.28%