84% superb-slideshow-gallery

Code Review | Superb slideshow gallery

WordPress plugin Superb slideshow gallery scored84%from 54 tests.

About plugin

  • Plugin page: superb-slideshow-...
  • Plugin version: 13.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.4-6.4
  • WordPress version: 6.3.1
  • First release: Oct 11, 2010
  • Latest release: Oct 29, 2023
  • Number of updates: 113
  • Update frequency: every 42.2 days
  • Top authors: gopiplus (100%)

Code review

54 tests

User reviews

1 review

Install metrics

300+ active /42,364 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.02MB] [CPU: ▼2.63ms] Passed 4 tests

Server-side resources used by Superb slideshow gallery
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0133.55 ▼3.21
Dashboard /wp-admin3.32 ▲0.0246.87 ▼5.12
Posts /wp-admin/edit.php3.37 ▲0.0240.81 ▼2.23
Add New Post /wp-admin/post-new.php5.90 ▲0.0289.43 ▲1.51
Media Library /wp-admin/upload.php3.24 ▲0.0233.91 ▲0.04
Superb slideshow gallery /wp-admin/options-general.php?page=superb-slideshow-gallery3.2928.69

Server storage [IO: ▲0.29MB] [DB: ▲0.07MB] Passed 3 tests

Filesystem and database footprint
This plugin installed successfully
Filesystem: 22 new files
Database: 1 new table, 16 new options
New tables
wp_ssg_superb_gallery
New WordPress options
ssg_width
ssg_random
ssg_descreveal
ssg_title
widget_theysaidso_widget
ssg_pause
ssg_height
db_upgraded
widget_recent-posts
ssg_descreveal1
...

Browser metrics Passed 4 tests

This is an overview of browser requirements for Superb slideshow gallery
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,899 ▲15313.78 ▼0.588.53 ▲6.8642.38 ▼1.02
Dashboard /wp-admin2,199 ▲225.51 ▼0.1883.98 ▼15.9035.41 ▼7.96
Posts /wp-admin/edit.php2,104 ▲72.01 ▲0.0336.19 ▲1.7037.78 ▲4.90
Add New Post /wp-admin/post-new.php1,531 ▲323.10 ▲0.04626.60 ▼67.1050.84 ▼11.16
Media Library /wp-admin/upload.php1,407 ▲74.19 ▼0.0094.85 ▼12.4940.20 ▼2.82
Superb slideshow gallery /wp-admin/options-general.php?page=superb-slideshow-gallery1,0162.0123.7627.57

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for 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
Please fix the following items
  • 5× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/superb-slideshow-gallery/pages/image-management-show.php
    • > /wp-content/plugins/superb-slideshow-gallery/pages/image-management-add.php
    • > /wp-content/plugins/superb-slideshow-gallery/pages/image-management-edit.php
    • > /wp-content/plugins/superb-slideshow-gallery/pages/image-setting.php
    • > /wp-content/plugins/superb-slideshow-gallery/superb-slideshow-gallery.php

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
4 plugin tags: slideshow, superb, widget, gallery

superb-slideshow-gallery/superb-slideshow-gallery.php 92% from 13 tests

"Superb slideshow gallery" version 13.2's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please make the necessary changes and fix the following:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 317 characters long)

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
Everything looks great! No dangerous files found in this plugin1,510 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
PHP68847912
PO File2135191305
JavaScript22528293

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.26
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
3 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
inc/image-icon.png0.61KB0.66KB0.00%
inc/restore.png0.22KB0.11KB▼ 52.42%
inc/x.png0.17KB0.11KB▼ 36.26%