10% superslider-slimbox

Code Review | SuperSlider-Slimbox

WordPress plugin SuperSlider-Slimbox scored 10% from 54 tests.

About plugin

  • Plugin page: superslider-slimbox
  • Plugin version: 1.5
  • PHP version: 7.4.16
  • WordPress version: 5.9.2
  • First release: Dec 22, 2012
  • Latest release: Dec 22, 2012
  • Number of updates: 2
  • Update frequency: every 16.5 days
  • Top authors: Daiv (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active / 3,635 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The following installer errors require your attention
  • The plugin cannot be installed
    • > Notice in wp-content/plugins/superslider-slimbox/superslider-slimbox.php+175
    Trying to access array offset on value of type bool

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

A check of server-side resources used by SuperSlider-Slimbox
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.66 ▲0.1457.12 ▲6.04
Dashboard /wp-admin3.50 ▲0.1040.01 ▼3.53
Posts /wp-admin/edit.php3.73 ▲0.0940.77 ▼32.26
Add New Post /wp-admin/post-new.php6.97 ▼0.0095.31 ▼1,165.95
Media Library /wp-admin/upload.php3.38 ▲0.0925.56 ▼2.84
SuperSlider-Slimbox /wp-admin/options-general.php?page=superslider-slimbox3.5122.47

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 49 new files
Database: no new tables, 1 new option
New WordPress options
ssSlimbox_options

Browser metrics Passed 4 tests

This is an overview of browser requirements for SuperSlider-Slimbox
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,786 ▲2815.64 ▼0.416.44 ▲0.522.82 ▲0.10
Dashboard /wp-admin2,883 ▲226.24 ▲0.00117.06 ▼19.37162.65 ▼4.35
Posts /wp-admin/edit.php2,693 ▲23.23 ▼0.1368.89 ▲3.56178.33 ▲29.67
Add New Post /wp-admin/post-new.php1,856 ▲16616.99 ▼3.65440.35 ▼13.78164.92 ▲9.09
Media Library /wp-admin/upload.php1,706 ▲85.53 ▲0.03147.36 ▼1.75188.51 ▼2.35
SuperSlider-Slimbox /wp-admin/options-general.php?page=superslider-slimbox2,3132.9670.28158.60

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 1 option
    • ssSlimbox_options

Smoke tests 25% 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)
Please fix the following server-side errors
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=superslider-slimbox
    • > Notice in wp-content/plugins/superslider-slimbox/admin/superslider-slimbox-ui.php+583
    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
The following issues need your attention
  • 2× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function current_user_can() in wp-content/plugins/superslider-slimbox/admin/superslider-slimbox-ui.php:25
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/superslider-slimbox/superslider-slimbox.php:173

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Please take a look at the following user-side issues
    • > GET request to /wp-admin/options-general.php?page=superslider-slimbox
    • > Network (severe)
    wp-content/plugins/superslider-show/admin/ss_admin_style.css?ver=5.9.2 - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
These attributes need your attention:
  • Requires at least: Invalid version format
  • Screenshots: Please add images for these screenshots: #1 (![Slimbox sample](screenshot-1.png "Slimbox sample")), #2 (![SuperSlider-Slimbox options screen](screenshot-2.png "SuperSlider-Slimbox options screen")), #3 (![SuperSlider-Slimbox MetaBox on post screen](screenshot-3.png "SuperSlider-Slimbox MetaBox screen"))
The official readme.txt might help

superslider-slimbox/superslider-slimbox.php Passed 13 tests

"SuperSlider-Slimbox" version 1.5's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
138 characters long description:
Another pop over light box. Theme based, animated, automatic linking, autoplay show built with slimbox2 , uses mootools 1.4.5 java script.

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 detected4,015 lines of code in 20 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript111231872,549
PHP3188113863
CSS66913603

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.35
Average class complexity41.00
▷ Minimum class complexity41.00
▷ Maximum class complexity41.00
Average method complexity2.43
▷ Minimum method complexity1.00
▷ Maximum method complexity10.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods28
▷ Static methods00.00%
▷ Public methods28100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants5
▷ Global constants5100.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
10 PNG files occupy 0.16MB with 0.11MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
plugin-data/superslider/ssSlimbox/next_edit.png28.72KB0.29KB▼ 98.99%
plugin-data/superslider/ssSlimbox/prev_edit.png28.90KB0.31KB▼ 98.94%
admin/img/blue.png1.19KB0.62KB▼ 48.15%
plugin-data/superslider/ssSlimbox/default/images/328(2).png20.35KB11.19KB▼ 45.02%
admin/img/black.png1.29KB0.67KB▼ 47.64%