78% easy-image-slideshow

Code Review | Easy image slideshow

WordPress plugin Easy image slideshow scored78%from 54 tests.

About plugin

  • Plugin page: easy-image-slideshow
  • Plugin version: 7.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.4-6.1
  • WordPress version: 6.3.1
  • First release: Jun 22, 2012
  • Latest release: Dec 1, 2022
  • Number of updates: 48
  • Update frequency: every 79.5 days
  • Top authors: gopiplus@hotmail.com (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /11,743 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
Install script ran successfully

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

This is a short check of server-side resources used by Easy image slideshow
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0637.99 ▼1.14
Dashboard /wp-admin3.36 ▲0.0645.40 ▼2.14
Posts /wp-admin/edit.php3.41 ▲0.0547.97 ▲0.36
Add New Post /wp-admin/post-new.php5.94 ▲0.05100.22 ▲8.53
Media Library /wp-admin/upload.php3.28 ▲0.0533.58 ▼0.84
Easy image slideshow /wp-admin/options-general.php?page=easy-image-slideshow3.2932.24

Server storage [IO: ▲0.39MB] [DB: ▲0.93MB] Passed 3 tests

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Easy image slideshow
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,831 ▲9613.24 ▼0.991.72 ▼0.1640.83 ▼4.65
Dashboard /wp-admin2,210 ▲195.82 ▲0.9494.56 ▼6.3342.03 ▲1.86
Posts /wp-admin/edit.php2,093 ▲42.05 ▲0.0238.89 ▲3.8934.53 ▲1.95
Add New Post /wp-admin/post-new.php1,545 ▲318.14 ▲0.03582.25 ▼74.7467.74 ▲17.68
Media Library /wp-admin/upload.php1,392 ▲44.21 ▲0.0194.80 ▼10.1941.18 ▼4.18
Easy image slideshow /wp-admin/options-general.php?page=easy-image-slideshow9182.1925.3427.34

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts

Smoke tests 50% 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)
Even though everything seems fine, this is not an exhaustive test

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
The following issues need your attention
  • 3× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/easy-image-slideshow/pages/image-management-edit.php
    • > /wp-content/plugins/easy-image-slideshow/pages/image-management-show.php
    • > /wp-content/plugins/easy-image-slideshow/pages/image-management-add.php
  • 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/easy-image-slideshow/easy-image-slideshow.php:22
    • > PHP Notice
      Trying to get property 'prefix' of non-object in wp-content/plugins/easy-image-slideshow/easy-image-slideshow.php on line 18

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
5 plugin tags: plugin, slideshow, image, gallery, widget

easy-image-slideshow/easy-image-slideshow.php 92% from 13 tests

"Easy image slideshow" version 7.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please make the necessary changes and fix the following:
  • Description: Please don't use more than 140 characters for the plugin description (currently 150 characters long)

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
There were no executable files found in this plugin1,055 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
PHP58334660
PO File3116177294
JavaScript2940101

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.31
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%
Functions15
▷ Named functions15100.00%
▷ Anonymous functions00.00%
Constants7
▷ Global constants7100.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 images were found in this plugin