78% responsive-slider-gallery

Code Review | Responsive Slider Gallery - Image Slideshow Maker

WordPress plugin Responsive Slider Gallery - Image Slideshow Maker scored78%from 54 tests.

About plugin

  • Plugin page: responsive-slider...
  • Plugin version: 1.3.9
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-6.3.2
  • WordPress version: 6.3.1
  • First release: Sep 20, 2015
  • Latest release: Oct 20, 2023
  • Number of updates: 174
  • Update frequency: every 17.0 days
  • Top authors: awordpresslife (100%)

Code review

54 tests

User reviews

11 reviews

Install metrics

3,000+ active /118,723 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

Server metrics [RAM: ▲0.11MB] [CPU: ▼0.02ms] Passed 4 tests

Server-side resources used by Responsive Slider Gallery - Image Slideshow Maker
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.59 ▲0.1241.07 ▲3.40
Dashboard /wp-admin3.45 ▲0.1550.04 ▲3.37
Posts /wp-admin/edit.php3.51 ▲0.1545.72 ▼2.46
Add New Post /wp-admin/post-new.php5.97 ▲0.0983.47 ▼4.38
Media Library /wp-admin/upload.php3.32 ▲0.0940.14 ▲5.36
Docs /wp-admin/edit.php?post_type=responsive_slider&page=rsgallery-doc-page3.3335.61
Add Slider Gallery /wp-admin/post-new.php?post_type=responsive_slider3.6448.75
Our Theme /wp-admin/edit.php?post_type=responsive_slider&page=sr-theme-page3.3334.73
Install Plugins /wp-admin/themes.php?page=tgmpa-install-plugins3.3932.04
All Slider Gallery /wp-admin/edit.php?post_type=responsive_slider3.3234.66

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 70 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-comments
db_upgraded
widget_recent-posts
theysaidso_admin_options
widget_theysaidso_widget

Browser metrics Passed 4 tests

This is an overview of browser requirements for Responsive Slider Gallery - Image Slideshow Maker
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,944 ▲18313.76 ▼0.807.78 ▲6.0543.08 ▼0.66
Dashboard /wp-admin2,268 ▲915.57 ▼0.0986.28 ▲0.3444.33 ▲1.86
Posts /wp-admin/edit.php2,182 ▲822.07 ▲0.0634.32 ▼1.4539.61 ▲3.77
Add New Post /wp-admin/post-new.php1,589 ▲6323.10 ▼0.01677.23 ▼14.8264.52 ▼2.34
Media Library /wp-admin/upload.php1,475 ▲724.25 ▲0.0795.73 ▼2.5647.78 ▲0.60
Docs /wp-admin/edit.php?post_type=responsive_slider&page=rsgallery-doc-page9462.0523.4934.15
Add Slider Gallery /wp-admin/post-new.php?post_type=responsive_slider2,3683.9271.23170.41
Our Theme /wp-admin/edit.php?post_type=responsive_slider&page=sr-theme-page1,0191.8527.5057.83
Install Plugins /wp-admin/themes.php?page=tgmpa-install-plugins1,0802.0323.1328.59
All Slider Gallery /wp-admin/edit.php?post_type=responsive_slider1,1631.9934.0034.27

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Please fix the following server-side errors
    • > GET request to /wp-admin/edit.php?post_type=responsive_slider
    • > Notice in wp-content/plugins/responsive-slider-gallery/responsive-slider-gallery.php+143
    Undefined variable: columns
    • > GET request to /wp-admin/edit.php?post_type=responsive_slider
    • > Notice in wp-content/plugins/responsive-slider-gallery/responsive-slider-gallery.php+143
    Trying to access array offset on value of type null

SRP 50% 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
Please fix the following
  • 6× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/responsive-slider-gallery/docs.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_enqueue_style() in wp-content/plugins/responsive-slider-gallery/slider-settings.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function did_action() in wp-content/plugins/responsive-slider-gallery/class-tgm-plugin-activation.php:2129
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/responsive-slider-gallery/shortcode.php:9
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/responsive-slider-gallery/responsive-slider-gallery.php:460
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_enqueue_script() in wp-content/plugins/responsive-slider-gallery/our-theme/awp-theme.php:3

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
6 plugin tags: photo slider, image slider, slider, slideshow creator, slideshow maker...

responsive-slider-gallery/responsive-slider-gallery.php Passed 13 tests

The principal PHP file in "Responsive Slider Gallery - Image Slideshow Maker" v. 1.3.9 is loaded by WordPress automatically on each request
107 characters long description:
A Responsive Simple Beautiful Easy Powerful CSS & JS Based WordPress Image Slider Gallery Plugin [standard]

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
Success! There were no dangerous files found in this plugin32,536 lines of code in 27 files:
LanguageFilesBlank linesComment linesLines of code
CSS101,7468818,773
SVG5005,495
JavaScript51,2095105,256
PHP65811,7622,820
PO File18592192

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.40
Average class complexity43.88
▷ Minimum class complexity1.00
▷ Maximum class complexity206.00
Average method complexity3.86
▷ Minimum method complexity1.00
▷ Maximum method complexity34.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes8
▷ Abstract classes00.00%
▷ Concrete classes8100.00%
▷ Final classes00.00%
Methods120
▷ Static methods54.17%
▷ Public methods9579.17%
▷ Protected methods2520.83%
▷ Private methods00.00%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.00%
Constants10
▷ Global constants770.00%
▷ Class constants330.00%
▷ Public constants3100.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
6 PNG files occupy 0.86MB with 0.43MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
our-theme/img/aneeq-premium.png165.42KB57.84KB▼ 65.04%
image/responsive-slider-pricing-table.png62.83KB23.45KB▼ 62.68%
css/fotorama.png3.15KB3.22KB0.00%
image/responsive-slider.png640.84KB213.33KB▼ 66.71%
css/new-slide.png2.54KB1.19KB▼ 53.21%