84% wp-image-slideshow

Code Review | wp image slideshow

WordPress plugin wp image slideshow scored84%from 54 tests.

About plugin

  • Plugin page: wp-image-slideshow
  • Plugin version: 12.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.4-6.4
  • WordPress version: 6.3.1
  • First release: May 6, 2011
  • Latest release: Oct 28, 2023
  • Number of updates: 75
  • Update frequency: every 61.1 days
  • Top authors: gopiplus (100%)

Code review

54 tests

User reviews

1 review

Install metrics

300+ active /36,905 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.01MB] [CPU: ▼6.37ms] Passed 4 tests

An overview of server-side resources used by wp image slideshow
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0133.94 ▼3.48
Dashboard /wp-admin3.32 ▲0.0242.91 ▲0.08
Posts /wp-admin/edit.php3.37 ▲0.0246.05 ▲0.70
Add New Post /wp-admin/post-new.php5.90 ▲0.0280.46 ▼17.85
Media Library /wp-admin/upload.php3.24 ▲0.0133.64 ▼4.22
Wp image slideshow /wp-admin/options-general.php?page=wp-image-slideshow3.2930.99

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 19 new files
Database: 1 new table, 12 new options
New tables
wp_wpis_plugin
New WordPress options
widget_recent-comments
wpis_title
wpis_height
wpis_type
wpis_random
db_upgraded
wpis_pause
widget_recent-posts
can_compress_scripts
widget_theysaidso_widget
...

Browser metrics Passed 4 tests

An overview of browser requirements for wp image slideshow
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,820 ▲5914.19 ▼0.161.91 ▲0.2637.22 ▼1.48
Dashboard /wp-admin2,199 ▲185.50 ▼0.2187.75 ▼10.8338.20 ▼6.06
Posts /wp-admin/edit.php2,107 ▲102.03 ▲0.0437.46 ▲2.5935.52 ▲0.36
Add New Post /wp-admin/post-new.php1,531 ▼023.21 ▲0.15669.80 ▲7.2349.84 ▼18.73
Media Library /wp-admin/upload.php1,404 ▲44.17 ▲0.04104.40 ▼1.8644.56 ▼2.18
Wp image slideshow /wp-admin/options-general.php?page=wp-image-slideshow1,0481.9926.7729.60

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
Please fix the following items
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Almost there! Just fix the following items
  • 5× PHP files output text when accessed directly:
    • > /wp-content/plugins/wp-image-slideshow/pages/image-management-show.php
    • > /wp-content/plugins/wp-image-slideshow/pages/image-setting.php
    • > /wp-content/plugins/wp-image-slideshow/pages/image-management-add.php
    • > /wp-content/plugins/wp-image-slideshow/wp-image-slideshow.php
    • > /wp-content/plugins/wp-image-slideshow/pages/image-management-edit.php

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
3 plugin tags: gallery, image, slideshow

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

"wp image slideshow" version 12.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
  • Description: The description should be shorter than 140 characters (currently 148 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin1,204 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
PHP68244790
PO File2123183280
JavaScript21318134

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
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%
Functions12
▷ Named functions12100.00%
▷ Anonymous functions00.00%
Constants6
▷ Global constants6100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
inc/image-icon.png0.61KB0.66KB0.00%