83% wpbatch-gallery-slideshow

Code Review | WPBatch Gallery Slideshow

WordPress plugin WPBatch Gallery Slideshow scored83%from 54 tests.

About plugin

  • Plugin page: wpbatch-gallery-s...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.0
  • WordPress version: 6.3.1
  • First release: Oct 6, 2014
  • Latest release: Oct 6, 2014
  • Number of updates: 4
  • Update frequency: every 1.8 days
  • Top authors: sujon3g (100%)

Code review

54 tests

User reviews

6 reviews

Install metrics

10+ active /777 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully

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

Server-side resources used by WPBatch Gallery Slideshow
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0434.77 ▼9.44
Dashboard /wp-admin3.34 ▼0.0149.65 ▼16.65
Posts /wp-admin/edit.php3.39 ▲0.0350.78 ▼1.01
Add New Post /wp-admin/post-new.php5.92 ▲0.0386.07 ▼16.09
Media Library /wp-admin/upload.php3.26 ▲0.0337.66 ▲3.86
Add New /wp-admin/post-new.php?post_type=wpbatch_gallery3.3845.14
All Gallery Images /wp-admin/edit.php?post_type=wpbatch_gallery3.3034.98

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-posts
widget_recent-comments
theysaidso_admin_options
widget_theysaidso_widget
db_upgraded

Browser metrics Passed 4 tests

WPBatch Gallery Slideshow: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,945 ▲19913.56 ▼1.195.91 ▲3.8937.53 ▼6.71
Dashboard /wp-admin2,233 ▲454.89 ▲0.00105.15 ▼10.0239.38 ▼5.94
Posts /wp-admin/edit.php2,116 ▲242.05 ▲0.0037.49 ▲0.4432.56 ▼0.88
Add New Post /wp-admin/post-new.php1,556 ▲2823.20 ▲5.01628.92 ▲13.0350.90 ▼4.52
Media Library /wp-admin/upload.php1,415 ▲304.20 ▼0.0394.67 ▼7.9741.13 ▼2.85
Add New /wp-admin/post-new.php?post_type=wpbatch_gallery2,1757.58183.7462.46
All Gallery Images /wp-admin/edit.php?post_type=wpbatch_gallery1,0891.9729.3529.97

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

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

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested

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
Almost there! Just fix the following items
  • 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/wpbatch-gallery-slideshow/index.php:15

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that need to be fixed:
  • Plugin Name: Please specify the plugin name on the first line ( === wpbatch-gallery-slideshow === )
  • Contributors: The plugin contributors field is missing
The official readme.txt is a good inspiration

wpbatch-gallery-slideshow/index.php 92% from 13 tests

The main file in "WPBatch Gallery Slideshow" v. 1.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: Name the main plugin file the same as the plugin slug ("wpbatch-gallery-slideshow.php" instead of "index.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Everything looks great! No dangerous files found in this plugin78 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP117867
CSS301610
JavaScript1081

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.10
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%
Functions5
▷ Named functions5100.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
There are no PNG files in this plugin