67% slider-responsive-slideshow

Code Review | Slider Responsive Slideshow - Image slider, Gallery slideshow

WordPress plugin Slider Responsive Slideshow - Image slider, Gallery slideshow scored67%from 54 tests.

About plugin

  • Plugin page: slider-responsive...
  • Plugin version: 1.3.5
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-6.3.2
  • WordPress version: 6.3.1
  • First release: Oct 27, 2015
  • Latest release: Oct 20, 2023
  • Number of updates: 138
  • Update frequency: every 21.2 days
  • Top authors: awordpresslife (100%)

Code review

54 tests

User reviews

10 reviews

Install metrics

3,000+ active /108,483 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

Server metrics [RAM: ▲0.13MB] [CPU: ▼7.22ms] Passed 4 tests

Server-side resources used by Slider Responsive Slideshow - Image slider, Gallery slideshow
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.60 ▲0.1341.79 ▼0.58
Dashboard /wp-admin3.45 ▲0.1048.03 ▼10.15
Posts /wp-admin/edit.php3.56 ▲0.2047.08 ▲0.09
Add New Post /wp-admin/post-new.php6.03 ▲0.1482.64 ▼18.23
Media Library /wp-admin/upload.php3.37 ▲0.1435.01 ▲0.24
All Slider /wp-admin/edit.php?post_type=slider_responsive3.3731.91
Our Theme /wp-admin/edit.php?post_type=slider-responsive-slideshow&page=sr-theme-page3.1426.49
Upgrade Plugin /wp-admin/edit.php?post_type=slider-responsive-slideshow&page=sr-upgrade-plugin-page3.1424.83
Add New Slider /wp-admin/post-new.php?post_type=slider_responsive3.5348.83
Featured Plugin /wp-admin/edit.php?post_type=slider-responsive-slideshow&page=sr-featured-plugin-page3.1423.01
Docs /wp-admin/edit.php?post_type=slider-responsive-slideshow&page=sr-doc-page3.1425.41

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 60 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
db_upgraded
theysaidso_admin_options
widget_recent-posts
widget_recent-comments
widget_theysaidso_widget

Browser metrics Passed 4 tests

Checking browser requirements for Slider Responsive Slideshow - Image slider, Gallery slideshow
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,898 ▲12713.37 ▼0.917.74 ▲5.8142.86 ▼1.94
Dashboard /wp-admin2,219 ▲445.55 ▼0.0282.49 ▼14.3236.02 ▼4.75
Posts /wp-admin/edit.php2,127 ▲272.00 ▼0.0132.83 ▼0.1432.02 ▼1.27
Add New Post /wp-admin/post-new.php1,549 ▲2323.03 ▲0.03651.68 ▼46.0552.05 ▼6.21
Media Library /wp-admin/upload.php1,427 ▲244.21 ▼0.0294.18 ▼5.2642.73 ▼0.58
All Slider /wp-admin/edit.php?post_type=slider_responsive1,1081.9129.5430.46
Our Theme /wp-admin/edit.php?post_type=slider-responsive-slideshow&page=sr-theme-page280.420.083.53
Upgrade Plugin /wp-admin/edit.php?post_type=slider-responsive-slideshow&page=sr-upgrade-plugin-page280.420.083.43
Add New Slider /wp-admin/post-new.php?post_type=slider_responsive2,3753.9171.19141.01
Featured Plugin /wp-admin/edit.php?post_type=slider-responsive-slideshow&page=sr-featured-plugin-page280.420.093.84
Docs /wp-admin/edit.php?post_type=slider-responsive-slideshow&page=sr-doc-page280.420.083.45

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts

Smoke tests 0% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
These errors were triggered by the plugin
    • > GET request to /wp-admin/edit.php?post_type=slider_responsive
    • > Notice in wp-content/plugins/slider-responsive-slideshow/slider-responsive-slideshow.php+141
    Undefined variable: columns
    • > GET request to /wp-admin/edit.php?post_type=slider_responsive
    • > Notice in wp-content/plugins/slider-responsive-slideshow/slider-responsive-slideshow.php+141
    Trying to access array offset on value of type null

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 take a closer look at the following
  • 1× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/slider-responsive-slideshow/docs.php
  • 5× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_enqueue_style() in wp-content/plugins/slider-responsive-slideshow/slider-settings.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/slider-responsive-slideshow/shortcode.php:9
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/slider-responsive-slideshow/slider-responsive-slideshow.php:475
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_enqueue_script() in wp-content/plugins/slider-responsive-slideshow/our-theme/awp-theme.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_enqueue_style() in wp-content/plugins/slider-responsive-slideshow/featured-plugins/featured-plugins.php:3

User-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There are user-side issues you should fix
    • > GET request to /wp-admin/edit.php?post_type=slider-responsive-slideshow&page=sr-theme-page
    • > Network (severe)
    wp-admin/edit.php?post_type=slider-responsive-slideshow&page=sr-theme-page - Failed to load resource: the server responded with a status of 403 (Forbidden)
    • > GET request to /wp-admin/edit.php?post_type=slider-responsive-slideshow&page=sr-upgrade-plugin-page
    • > Network (severe)
    wp-admin/edit.php?post_type=slider-responsive-slideshow&page=sr-upgrade-plugin-page - Failed to load resource: the server responded with a status of 403 (Forbidden)
    • > GET request to /wp-admin/edit.php?post_type=slider-responsive-slideshow&page=sr-featured-plugin-page
    • > Network (severe)
    wp-admin/edit.php?post_type=slider-responsive-slideshow&page=sr-featured-plugin-page - Failed to load resource: the server responded with a status of 403 (Forbidden)
    • > GET request to /wp-admin/edit.php?post_type=slider-responsive-slideshow&page=sr-doc-page
    • > Network (severe)
    wp-admin/edit.php?post_type=slider-responsive-slideshow&page=sr-doc-page - Failed to load resource: the server responded with a status of 403 (Forbidden)

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
5 plugin tags: image slider, gallery slideshow, slider, photo slider, slider gallery

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

This is the main PHP file of "Slider Responsive Slideshow - Image slider, Gallery slideshow" version 1.3.5, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
83 characters long description:
An Easy Simple Responsive Beautiful Powerful CSS & JS Based WordPress Slider Plugin

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
Good job! No executable or dangerous file extensions detected24,430 lines of code in 31 files:
LanguageFilesBlank linesComment linesLines of code
CSS121,59912416,038
SVG3003,644
JavaScript87972393,004
PHP71301791,501
PO File1110113243

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.21
Average class complexity11.00
▷ Minimum class complexity11.00
▷ Maximum class complexity11.00
Average method complexity1.53
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods19
▷ Static methods00.00%
▷ Public methods1789.47%
▷ Protected methods210.53%
▷ Private methods00.00%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants7
▷ Global constants7100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
5 PNG files occupy 1.75MB with 0.89MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
image/responsive-slideshow.png1,566.87KB440.72KB▼ 71.87%
our-theme/img/aneeq-premium.png165.42KB57.84KB▼ 65.04%
css/grabbing.png0.11KB0.14KB0.00%
css/new-slide.png2.54KB1.19KB▼ 53.21%
image/responsive-slider-slideshow.png60.32KB22.64KB▼ 62.47%