77% abooze-slideshow

Code Review | Aboozé Slideshow

WordPress plugin Aboozé Slideshow scored77%from 54 tests.

About plugin

  • Plugin page: abooze-slideshow
  • Plugin version: 3.2
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.2.1
  • WordPress version: 6.3.1
  • First release: Dec 30, 2011
  • Latest release: Jan 23, 2018
  • Number of updates: 56
  • Update frequency: every 39.6 days
  • Top authors: abooze (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

30+ active /6,865 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: ▼11.58ms] Passed 4 tests

Analyzing server-side resources used by Aboozé Slideshow
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.39 ▼0.0724.59 ▼16.89
Dashboard /wp-admin3.32 ▼0.0350.42 ▼14.58
Posts /wp-admin/edit.php3.37 ▲0.0149.29 ▼3.24
Add New Post /wp-admin/post-new.php5.90 ▲0.0196.17 ▼11.61
Media Library /wp-admin/upload.php3.24 ▲0.0139.07 ▲3.28
Aboozé Slideshow /wp-admin/upload.php?page=abooze-slideshow3.1832.87

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_theysaidso_widget
widget_recent-posts
db_upgraded
widget_recent-comments
theysaidso_admin_options

Browser metrics Passed 4 tests

Aboozé Slideshow: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,853 ▲9213.22 ▼1.182.16 ▲0.2944.14 ▼0.81
Dashboard /wp-admin2,228 ▲255.85 ▼0.0696.52 ▼9.2239.64 ▼4.95
Posts /wp-admin/edit.php2,104 ▲72.04 ▲0.0240.32 ▲2.4736.86 ▲1.68
Add New Post /wp-admin/post-new.php1,558 ▲2718.15 ▼5.43634.46 ▼7.7548.64 ▼5.69
Media Library /wp-admin/upload.php1,404 ▲104.22 ▲0.0697.66 ▼4.7943.74 ▼3.98
Aboozé Slideshow /wp-admin/upload.php?page=abooze-slideshow9042.0523.4833.30

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget

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)
These errors were triggered by the plugin
    • > GET request to /wp-admin/upload.php?page=abooze-slideshow
    • > Notice in wp-content/plugins/abooze-slideshow/abooze-home-slider.php+46
    Undefined index: action
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/upload.php?page=abooze-slideshow
    • > Notice in wp-content/plugins/abooze-slideshow/abooze-home-slider.php+142
    Trying to access array offset on value of type bool

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
Almost there! Just fix the following items
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/abooze-slideshow/abooze-home-slider.php:11

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration 87% 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
These attributes need your attention:
  • Screenshots: These screenshots require images: #1 (Screenshot of admin page.), #2 (Front end view of the slideshow)
  • Plugin Name: Please specify the plugin name on the first line ( === abooze-slideshow === )
You can look at the official readme.txt

abooze-slideshow/abooze-home-slider.php 85% from 13 tests

The main PHP file in "Aboozé Slideshow" ver. 3.2 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
  • Description: Keep the plugin description shorter than 140 characters (currently 247 characters long)
  • Main file name: The principal plugin file should be the same as the plugin slug ("abooze-slideshow.php" instead of "abooze-home-slider.php")

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 plugin369 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP1760367
JavaScript10192

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.18
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%
Functions16
▷ Named functions16100.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
2 PNG files occupy 0.47MB with 0.28MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png101.10KB40.99KB▼ 59.46%
screenshot-2.png380.18KB155.85KB▼ 59.01%