84% slideshow-manager

Code Review | Slideshow Manager

WordPress plugin Slideshow Manager scored 84% from 54 tests.

About plugin

  • Plugin page: slideshow-manager
  • Plugin version: 2.1.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.2.1-3.7.1
  • WordPress version: 5.9.2
  • First release: Jul 17, 2012
  • Latest release: Nov 12, 2013
  • Number of updates: 42
  • Update frequency: every 11.5 days
  • Top authors: rasmusjoh (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

200+ active / 19,459 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
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.07MB] [CPU: ▼306.75ms] Passed 4 tests

Server-side resources used by Slideshow Manager
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.63 ▲0.1250.19 ▲0.61
Dashboard /wp-admin3.50 ▲0.1038.31 ▲5.60
Posts /wp-admin/edit.php3.73 ▲0.0939.92 ▲1.85
Add New Post /wp-admin/post-new.php6.96 ▼0.0096.47 ▼1,224.71
Media Library /wp-admin/upload.php3.38 ▲0.0825.61 ▼4.75

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 12 new files
Database: no new tables, 1 new option
New WordPress options
slideshow_option

Browser metrics Passed 4 tests

Slideshow Manager: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,897 ▲14316.13 ▲0.488.26 ▲2.411.93 ▼0.77
Dashboard /wp-admin2,894 ▲336.07 ▼0.09119.19 ▼18.21179.81 ▲16.99
Posts /wp-admin/edit.php2,695 ▲43.28 ▲0.0583.83 ▲19.27150.37 ▼2.34
Add New Post /wp-admin/post-new.php1,680 ▲1918.19 ▲1.82392.27 ▼4.02202.10 ▲34.17
Media Library /wp-admin/upload.php1,712 ▲145.64 ▲0.09126.45 ▼16.80236.58 ▲57.61

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • This plugin did not uninstall successfully, leaving 1 option in the database
    • slideshow_option

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test

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
Please take a closer look at the following
  • 2× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/slideshow-manager/slideshow.php:32
    • > PHP Notice
      Trying to get property 'prefix' of non-object in wp-content/plugins/slideshow-manager/slideshow.php on line 29

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need to be fixed:
  • Screenshots: These screenshots have no corresponding images in /assets: #1 (Backend), #2 (Frontend)
Please take inspiration from this readme.txt

slideshow-manager/slideshow.php 92% from 13 tests

This is the main PHP file of "Slideshow Manager" version 2.1.3, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please take the time to fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("slideshow-manager.php" instead of "slideshow.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
No dangerous file extensions were detected759 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP111943519
PO File283131205
CSS12034
JavaScript1191

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.17
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%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
2 compressed PNG files occupy 0.00MB
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
coin-slider/nav.png1.76KB1.83KB0.00%
icon.png0.52KB0.58KB0.00%