87% abooze-slideshow

Code Review | Aboozé Slideshow

WordPress plugin Aboozé Slideshow scored 87% 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: 5.9.2
  • 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

40+ active / 6,545 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

Server metrics [RAM: ▼0.03MB] [CPU: ▼302.47ms] 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.47 ▼0.0449.79 ▼2.59
Dashboard /wp-admin3.43 ▲0.0232.91 ▼2.36
Posts /wp-admin/edit.php3.65 ▲0.0136.25 ▼0.43
Add New Post /wp-admin/post-new.php6.90 ▼0.0798.01 ▼1,201.51
Media Library /wp-admin/upload.php3.30 ▲0.0024.40 ▼3.40
Aboozé Slideshow /wp-admin/upload.php?page=abooze-slideshow3.2522.00

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 5 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Checking browser requirements for Aboozé Slideshow
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,777 ▲2315.87 ▲0.326.68 ▲0.432.16 ▼0.47
Dashboard /wp-admin2,894 ▲396.17 ▼0.01118.14 ▼17.03159.26 ▼3.20
Posts /wp-admin/edit.php2,675 ▼133.25 ▲0.0162.46 ▼1.25141.08 ▼0.19
Add New Post /wp-admin/post-new.php1,664 ▼415.80 ▼2.20406.19 ▲7.73155.70 ▲1.24
Media Library /wp-admin/upload.php1,703 ▲55.53 ▼0.01138.43 ▼2.05191.26 ▲1.06
Aboozé Slideshow /wp-admin/upload.php?page=abooze-slideshow1,1442.3855.41134.87

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Uninstall script ran successfully

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Please fix the following server-side errors
    • > 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 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
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > 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 shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 87% from 29 tests

readme.txt 88% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that require attention:
  • Plugin Name: Please specify the plugin name on the first line ( === abooze-slideshow === )
  • Screenshots: These screenshots have no corresponding images in /assets: #1 (Screenshot of admin page.), #2 (Front end view of the slideshow)
You can look at the official readme.txt

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

"Aboozé Slideshow" version 3.2's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
It is important to fix the following:
  • Description: Keep the plugin description shorter than 140 characters (currently 247 characters long)
  • Main file name: Name the main plugin file 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 review of files and their extensions; it is not recommended to include executable files
No dangerous file extensions were detected369 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP1760367
JavaScript10192

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
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

PNG files should be compressed to save space and minimize bandwidth usage
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-2.png380.18KB155.85KB▼ 59.01%
screenshot-1.png101.10KB40.99KB▼ 59.46%