84% superb-slideshow

Code Review | Superb Slideshow

WordPress plugin Superb Slideshow scored84%from 54 tests.

About plugin

  • Plugin page: superb-slideshow
  • Plugin version: 12.7
  • PHP version: 7.4.16
  • WordPress compatibility: 3.4-6.4
  • WordPress version: 6.3.1
  • First release: Oct 4, 2009
  • Latest release: Oct 29, 2023
  • Number of updates: 119
  • Update frequency: every 43.2 days
  • Top authors: gopiplus (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /43,197 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.01MB] [CPU: ▼0.11ms] Passed 4 tests

Analyzing server-side resources used by Superb Slideshow
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0136.49 ▼1.34
Dashboard /wp-admin3.32 ▲0.0244.92 ▼3.82
Posts /wp-admin/edit.php3.37 ▲0.0147.12 ▲2.44
Add New Post /wp-admin/post-new.php5.90 ▲0.0191.14 ▲3.30
Media Library /wp-admin/upload.php3.24 ▲0.0136.36 ▲2.29
Superb Slideshow /wp-admin/options-general.php?page=superb-slideshow3.2128.06

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 19 new files
Database: no new tables, 17 new options
New WordPress options
widget_theysaidso_widget
sswld_dir2
db_upgraded
widget_recent-comments
theysaidso_admin_options
sswld_pause
sswld_width
sswld_random
widget_recent-posts
sswld_title
...

Browser metrics Passed 4 tests

Superb Slideshow: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,901 ▲15513.82 ▼0.747.78 ▲6.0237.42 ▼4.92
Dashboard /wp-admin2,196 ▲185.61 ▲0.0189.65 ▼8.3637.37 ▼3.03
Posts /wp-admin/edit.php2,104 ▲41.94 ▼0.0139.48 ▲2.7634.61 ▲2.04
Add New Post /wp-admin/post-new.php1,540 ▲1218.26 ▼4.88621.96 ▼36.7972.33 ▲19.61
Media Library /wp-admin/upload.php1,401 ▼24.19 ▼0.0696.46 ▲1.3943.78 ▲5.05
Superb Slideshow /wp-admin/options-general.php?page=superb-slideshow9921.9922.0026.93

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/superb-slideshow/superb-slideshow.php:26

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)
There were no browser issues found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
2 plugin tags: slideshow, superb

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

The principal PHP file in "Superb Slideshow" v. 12.7 is loaded by WordPress automatically on each request
It is important to fix the following:
  • Description: The description should be shorter than 140 characters (currently 264 characters long)

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
Success! There were no dangerous files found in this plugin775 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP24016352
JavaScript1211223
PO File2111160200

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.21
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%
Functions11
▷ Named functions11100.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.00MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
inc/x.png0.17KB0.11KB▼ 36.26%
inc/restore.png0.22KB0.11KB▼ 52.42%