78% responsive-slider

Code Review | Responsive Slider

WordPress plugin Responsive Slider scored78%from 54 tests.

About plugin

  • Plugin page: responsive-slider
  • Plugin version: 0.1.9
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-4.5.2
  • WordPress version: 6.3.1
  • First release: Apr 16, 2012
  • Latest release: Feb 3, 2017
  • Number of updates: 20
  • Update frequency: every 87.7 days
  • Top authors: Griden (100%)

Code review

54 tests

User reviews

34 reviews

Install metrics

5,000+ active /193,226 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.05MB] [CPU: ▼4.55ms] Passed 4 tests

An overview of server-side resources used by Responsive Slider
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0539.24 ▼3.79
Dashboard /wp-admin3.36 ▲0.0549.59 ▲1.27
Posts /wp-admin/edit.php3.41 ▲0.0545.41 ▲1.61
Add New Post /wp-admin/post-new.php5.94 ▲0.0586.90 ▼17.29
Media Library /wp-admin/upload.php3.27 ▲0.0538.00 ▲2.48
Add New Slide /wp-admin/post-new.php?post_type=slides3.3645.04
All Slides /wp-admin/edit.php?post_type=slides3.3234.99
Settings /wp-admin/edit.php?post_type=slides&page=responsive-slider-settings3.2228.17

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 14 new files
Database: no new tables, 7 new options
New WordPress options
theysaidso_admin_options
responsive_slider_options
db_upgraded
widget_recent-comments
widget_recent-posts
can_compress_scripts
widget_theysaidso_widget

Browser metrics Passed 4 tests

An overview of browser requirements for Responsive Slider
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,920 ▲14913.63 ▼0.696.10 ▲4.1341.65 ▼5.24
Dashboard /wp-admin2,240 ▲494.88 ▼1.01112.20 ▲7.9242.73 ▲1.37
Posts /wp-admin/edit.php2,120 ▲312.01 ▼0.0234.18 ▼6.2635.57 ▼3.85
Add New Post /wp-admin/post-new.php1,540 ▲2117.59 ▼5.60682.74 ▲72.9062.63 ▲18.03
Media Library /wp-admin/upload.php1,419 ▲284.24 ▲0.0296.38 ▼7.6939.81 ▼4.48
Add New Slide /wp-admin/post-new.php?post_type=slides1,7103.5263.4032.56
All Slides /wp-admin/edit.php?post_type=slides1,1191.9431.2830.66
Settings /wp-admin/edit.php?post_type=slides&page=responsive-slider-settings8982.0324.6827.82

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Almost there, just fix the following server-side errors
    • > GET request to /wp-admin/edit.php?post_type=slides&page=responsive-slider-settings
    • > User deprecated in wp-includes/functions.php+5463
    Function screen_icon is deprecated since version 3.8.0 with no alternative available.
    • > GET request to /wp-admin/edit.php?post_type=slides&page=responsive-slider-settings
    • > User deprecated in wp-includes/functions.php+5463
    Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The following issues need your attention
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/responsive-slider/responsive-slider.php:23

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 93% from 29 tests

readme.txt 88% from 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
Attributes that require attention:
  • Donate link: Invalid URI found ("")
  • Tags: Please reduce the number of tags, currently 16 tag instead of maximum 10
Please take inspiration from this readme.txt

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

Analyzing the main PHP file in "Responsive Slider" version 0.1.9
96 characters long description:
A responsive content slider for integrating into themes, pages and posts via a simple shortcode.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Success! There were no dangerous files found in this plugin731 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
PHP1136186265
PO File3100103241
CSS21124143
HTML110263
JavaScript161419

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.14
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions30
▷ Named functions30100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
images/slider-nav.png1.29KB0.90KB▼ 30.36%