84% responsive-slides

Code Review | Responsive Slides

WordPress plugin Responsive Slides scored84%from 54 tests.

About plugin

  • Plugin page: responsive-slides
  • Plugin version: 2.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-3.5.1
  • WordPress version: 6.3.1
  • First release: Apr 4, 2013
  • Latest release: Apr 7, 2013
  • Number of updates: 19
  • Update frequency: every 0.2 days
  • Top authors: soroushatarod (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

40+ active /3,239 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully

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

Server-side resources used by Responsive Slides
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.57 ▲0.1136.20 ▼2.49
Dashboard /wp-admin3.41 ▲0.1044.67 ▼2.19
Posts /wp-admin/edit.php3.52 ▲0.1645.25 ▼6.83
Add New Post /wp-admin/post-new.php6.01 ▲0.1388.56 ▼4.90
Media Library /wp-admin/upload.php3.33 ▲0.1035.81 ▲0.80
Add A New Slideshow /wp-admin/post-new.php?post_type=responsive_post3.3841.64
Responsive Slideshow /wp-admin/edit.php?post_type=responsive_post3.3734.83

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Responsive Slides
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,946 ▲20013.62 ▼1.034.94 ▲3.1840.66 ▼4.02
Dashboard /wp-admin2,237 ▲494.86 ▼1.17109.90 ▼0.0538.88 ▲1.03
Posts /wp-admin/edit.php2,120 ▲312.15 ▲0.1539.27 ▲3.1634.24 ▼0.08
Add New Post /wp-admin/post-new.php1,566 ▲4718.16 ▼5.11592.59 ▼93.5345.13 ▼8.71
Media Library /wp-admin/upload.php1,419 ▲374.20 ▲0.0493.52 ▼4.7444.30 ▲2.86
Add A New Slideshow /wp-admin/post-new.php?post_type=responsive_post2,0313.4579.5979.29
Responsive Slideshow /wp-admin/edit.php?post_type=responsive_post1,0891.9329.9029.51

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments

Smoke tests 75% 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)
The smoke test was a success, however most plugin functionality was not tested

SRP 50% 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
  • 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-slides/responsive-slider.php:82

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
  • Screenshots: These screenshots do not have images: #1 (Able to browse through various saved slideshow, and view their shortcode), #2 (Featuring guider, to assist you when you are facing troubles.)
The official readme.txt might help

responsive-slides/responsive-slider.php 92% from 13 tests

The main file in "Responsive Slides" v. 2.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
The following require your attention:
  • Main file name: The principal plugin file should be the same as the plugin slug ("responsive-slides.php" instead of "responsive-slider.php")

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
Good job! No executable or dangerous file extensions detected2,187 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript42302881,472
PHP15197393
CSS34613322

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.43
Average class complexity55.00
▷ Minimum class complexity55.00
▷ Maximum class complexity55.00
Average method complexity3.25
▷ Minimum method complexity1.00
▷ Maximum method complexity25.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods24
▷ Static methods00.00%
▷ Public methods2083.33%
▷ Protected methods00.00%
▷ Private methods416.67%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG files were detected