10% slider-images

Code Review | Slider Carousel - Image Slider

WordPress plugin Slider Carousel - Image Slider scored 10% from 54 tests.

About plugin

  • Plugin page: slider-images
  • Plugin version: 1.5.2
  • PHP version: 7.4.16
  • WordPress compatibility: 4.3-6.3
  • WordPress version: 6.3.1
  • First release: Jul 28, 2016
  • Latest release: Sep 23, 2023
  • Number of updates: 113
  • Update frequency: every 23.1 days
  • Top authors: richteam (100%)

Code review

54 tests

User reviews

64 reviews

Install metrics

6,000+ active / 306,407 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
It is recommended to fix the following installer errors
  • The plugin cannot be installed
    • > Notice in wp-content/plugins/slider-images/rw-slider-image-install.php+156
    Undefined offset: 0

Server metrics [RAM: ▲0.03MB] [CPU: ▼0.38ms] Passed 4 tests

Analyzing server-side resources used by Slider Carousel - Image Slider
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0439.99 ▼0.20
Dashboard /wp-admin3.34 ▲0.0351.02 ▲7.34
Posts /wp-admin/edit.php3.39 ▲0.0344.03 ▼5.86
Add New Post /wp-admin/post-new.php5.92 ▲0.0383.69 ▲0.12
Media Library /wp-admin/upload.php3.26 ▲0.0339.68 ▲4.41

Server storage [IO: ▲4.39MB] [DB: ▲0.03MB] Passed 3 tests

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 257 new files
Database: 11 new tables, 9 new options
New tables
wp_rich_web_slider_id
wp_rich_web_slider_effect3
wp_rich_web_slider_effect5
wp_rich_web_slider_effect6
wp_rich_web_slider_effects_data
wp_rich_web_slider_effect7
wp_rich_web_slider_effect1
wp_rich_web_photo_slider_instal
wp_rich_web_slider_effect9
wp_rich_web_slider_font_family
...
New WordPress options
widget_recent-posts
can_compress_scripts
theysaidso_admin_options
db_upgraded
widget_rich_web_slider_image
widget_recent-comments
rw_slider_image_check_version
widget_theysaidso_widget
rw_slider_image_check_db

Browser metrics 75% from 4 tests

Checking browser requirements for Slider Carousel - Image Slider
It is time to focus on the following
  • Nodes: You must limit the number of DOM nodes under 25,000 (currently 97,193 on /wp-admin/admin.php?page=Rich-Web Slider General)
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,985 ▲17414.15 ▲1.008.55 ▲6.4440.95 ▼11.87
Dashboard /wp-admin2,228 ▲195.82 ▲0.99101.89 ▲2.7567.29 ▲29.30
Posts /wp-admin/edit.php2,120 ▲312.05 ▲0.0335.06 ▼5.2931.54 ▼4.32
Add New Post /wp-admin/post-new.php1,576 ▲6218.59 ▲1.11679.31 ▲6.1644.71 ▼11.29
Media Library /wp-admin/upload.php1,413 ▲284.19 ▼0.02108.99 ▼8.5281.00 ▲32.13
Our Products /wp-admin/admin.php?page=Rich-Web Slider Products9802.0125.4136.81
Slider Options /wp-admin/admin.php?page=Rich-Web Slider General97,1931.8678.3038.38
Slider Manager /wp-admin/admin.php?page=Rich-Web Slider Admin1,3874.2857.4068.55

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • The plugin did not uninstall successfully, leaving 11 tables in the database
    • wp_rich_web_slider_effect6
    • wp_rich_web_slider_effect1
    • wp_rich_web_slider_effects_data
    • wp_rich_web_photo_slider_manager
    • wp_rich_web_slider_effect7
    • wp_rich_web_slider_effect9
    • wp_rich_web_slider_font_family
    • wp_rich_web_slider_effect3
    • wp_rich_web_slider_id
    • wp_rich_web_photo_slider_instal
    • ...
  • The uninstall procedure has failed, leaving 7 options in the database
    • widget_theysaidso_widget
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts
    • widget_rich_web_slider_image
    • widget_recent-comments

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Good news, no errors were detected

SRP 0% 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
  • 6× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/slider-images/style/rw_theme_animation_slider.css.php
    • > /wp-content/plugins/slider-images/scripts/rw_theme_slider_navigation.js.php
    • > /wp-content/plugins/slider-images/scripts/rw_theme_circle_thumbnails.js.php
    • > /wp-content/plugins/slider-images/scripts/rw_theme_thumbnails_slider.js.php
    • > /wp-content/plugins/slider-images/style/rw_theme_slider_navigation.css.php
    • > /wp-content/plugins/slider-images/scripts/rw_theme_fashion_slider.js.php
  • 84× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
    • > PHP Notice
      Undefined variable: rw_loader_options_arr in wp-content/plugins/slider-images/style/rw_theme_slider_navigation.css.php on line 2
    • > PHP Notice
      Undefined variable: rw_theme_options_arr in wp-content/plugins/slider-images/style/rw_theme_flexible_slider.css.php on line 11
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/slider-images/style/rw_theme_flexible_slider.css.php:826
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/slider-images/scripts/rw_theme_dynamic_slider.js.php:3
    • > PHP Fatal error
      Uncaught Error: Call to a member function get_results() on null in wp-content/plugins/slider-images/rw-slider-image-check.php:9
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/slider-images/rw-slider-image-header.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/slider-images/style/rw_theme_content_slider.css.php:758
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/slider-images/php/rw_theme_slider_navigation.php:84
    • > PHP Notice
      Trying to get property 'prefix' of non-object in wp-content/plugins/slider-images/rw-slider-image-check.php on line 3
    • > PHP Notice
      Trying to get property 'Rich_Web_Sl_FS_Arr_Type' of non-object in wp-content/plugins/slider-images/style/rw_theme_flexible_slider.css.php on line 2

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that require attention:
  • Screenshots: Please add images for these screenshots: #22 (Slider Accordion), #23 (Slider Accordion), #24 (Animation Type), #25 (Animation Type)
  • Screenshots: Please add descriptions for these screenshots #6, #7, #8, #9 in slider-images/assets to your readme.txt
The official readme.txt is a good inspiration

slider-images/Slider.php 92% from 13 tests

The main file in "Slider Carousel - Image Slider" v. 1.5.2 serves as a complement to information provided in readme.txt and as the entry point to the plugin
You should first fix the following items:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("slider-images.php" instead of "Slider.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Everything looks great! No dangerous files found in this plugin34,364 lines of code in 111 files:
LanguageFilesBlank linesComment linesLines of code
PHP402426527,303
CSS1440185,042
JavaScript540701,140
SVG300879

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.11
Average class complexity38.00
▷ Minimum class complexity38.00
▷ Maximum class complexity38.00
Average method complexity13.33
▷ Minimum method complexity1.00
▷ Maximum method complexity37.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods3
▷ Static methods00.00%
▷ Public methods3100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions24
▷ Named functions24100.00%
▷ Anonymous functions00.00%
Constants17
▷ Global constants17100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
111 compressed PNG files occupy 0.40MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/icon-17.png0.33KB0.29KB▼ 13.20%
images/icon-25.png1.31KB1.14KB▼ 13.33%
images/12-12.png2.31KB2.27KB▼ 1.73%
images/9.png2.13KB2.09KB▼ 2.02%
images/6.png2.10KB2.06KB▼ 1.86%