83% unlimited-background-slider

Code Review | Unlimited Background Slider

WordPress plugin Unlimited Background Slider scored 83% from 54 tests.

About plugin

  • Plugin page: unlimited-backgro...
  • Plugin version: 1.1.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-5.2.6
  • WordPress version: 6.3.1
  • First release: Oct 12, 2016
  • Latest release: Oct 15, 2019
  • Number of updates: 48
  • Update frequency: every 22.9 days
  • Top authors: proscriptsell (100%)

Code review

54 tests

User reviews

11 reviews

Install metrics

1,000+ active / 18,513 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
Install script ran successfully

Server metrics [RAM: ▲0.05MB] [CPU: ▲2.69ms] Passed 4 tests

Analyzing server-side resources used by Unlimited Background Slider
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0444.65 ▲4.63
Dashboard /wp-admin3.36 ▲0.0652.63 ▲4.75
Posts /wp-admin/edit.php3.44 ▲0.0955.11 ▲11.54
Add New Post /wp-admin/post-new.php5.94 ▲0.0592.76 ▲1.58
Media Library /wp-admin/upload.php3.26 ▲0.0337.14 ▼0.22
Add New Slides /wp-admin/post-new.php?post_type=ed_bg_slider3.3649.69
All Slides /wp-admin/edit.php?post_type=ed_bg_slider3.3341.03

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 22 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
can_compress_scripts
widget_recent-comments
theysaidso_admin_options
db_upgraded
widget_theysaidso_widget

Browser metrics Passed 4 tests

A check of browser resources used by Unlimited Background Slider
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,122 ▲38715.67 ▲1.276.40 ▲4.7041.34 ▲2.48
Dashboard /wp-admin2,442 ▲2506.88 ▲1.97125.78 ▲16.4638.67 ▼4.61
Posts /wp-admin/edit.php2,351 ▲2623.58 ▲1.5857.85 ▲21.2334.55 ▼3.22
Add New Post /wp-admin/post-new.php1,566 ▲3323.53 ▲0.41674.21 ▲2.5637.27 ▼18.57
Media Library /wp-admin/upload.php1,487 ▲994.57 ▲0.3094.08 ▼21.1244.02 ▼6.94
Add New Slides /wp-admin/post-new.php?post_type=ed_bg_slider2,4304.4079.1456.67
All Slides /wp-admin/edit.php?post_type=ed_bg_slider1,3153.7945.8326.08

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

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
Almost there! Just fix the following items
  • 4× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/unlimited-background-slider/inc/ed_custom_post_type.php:60
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/unlimited-background-slider/inc/gallery/gallery.php:10
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/unlimited-background-slider/inc/metabox.php:17
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/unlimited-background-slider/inc/side-meta.php:18

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)
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 86% from 29 tests

readme.txt 81% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
  • Donate link: Please fix this invalid url: ""
  • Screenshots: These screenshots do not have images: #1 (Initial Setup for New slide), #2 (Preview)
  • Tags: You are using too many tags: 26 tag instead of maximum 10
You can take inspiration from this readme.txt

unlimited-background-slider/unlimited-background-slider.php 92% from 13 tests

The entry point to "Unlimited Background Slider" version 1.1.3 is a PHP file that has certain tags in its header comment area
The following require your attention:
  • Description: Keep the plugin description shorter than 140 characters (currently 198 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin1,941 lines of code in 18 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript3280127998
PHP8145102744
CSS41093
PO File1212167
SVG10133
Markdown1506

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.62
Average class complexity21.33
▷ Minimum class complexity1.00
▷ Maximum class complexity62.00
Average method complexity11.17
▷ Minimum method complexity1.00
▷ Maximum method complexity55.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods6
▷ Static methods233.33%
▷ Public methods6100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions19
▷ Named functions19100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
2 PNG files occupy 0.50MB with 0.26MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-2.png466.86KB203.58KB▼ 56.39%
screenshot-1.png46.99KB23.96KB▼ 49.02%