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.20MB] [CPU: ▼5.87ms] Passed 4 tests
Analyzing server-side resources used by Background Slider Master
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.63 ▲0.16 | 43.74 ▲0.27 |
Dashboard /wp-admin | 3.56 ▲0.25 | 56.14 ▲6.86 |
Posts /wp-admin/edit.php | 3.62 ▲0.26 | 52.96 ▼0.03 |
Add New Post /wp-admin/post-new.php | 6.09 ▲0.20 | 85.41 ▼23.09 |
Media Library /wp-admin/upload.php | 3.41 ▲0.17 | 37.71 ▼0.61 |
Settings /wp-admin/admin.php?page=bsm_settings_menu | 3.40 | 36.93 |
Background Slide Sets /wp-admin/edit.php?post_type=bsm-gallery-slides | 3.47 | 42.04 |
Server storage [IO: ▲1.26MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 49 new files
Database: no new tables, 8 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-comments |
bsm_slider_delay_settings_field |
bsm_easing_option_duration_settings_field |
widget_theysaidso_widget |
widget_recent-posts |
theysaidso_admin_options |
db_upgraded |
Browser metrics Passed 4 tests
Checking browser requirements for Background Slider Master
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,984 ▲223 | 14.87 ▲0.32 | 3.01 ▲1.27 | 42.93 ▼2.72 |
Dashboard /wp-admin | 2,390 ▲213 | 6.21 ▲0.54 | 113.70 ▲20.46 | 75.92 ▲33.67 |
Posts /wp-admin/edit.php | 2,318 ▲218 | 3.45 ▲1.47 | 52.91 ▲16.04 | 74.71 ▲37.01 |
Add New Post /wp-admin/post-new.php | 6,276 ▲4,739 | 25.91 ▲2.79 | 918.67 ▲250.57 | 41.94 ▼20.82 |
Media Library /wp-admin/upload.php | 1,455 ▲52 | 4.18 ▼0.09 | 88.45 ▼10.08 | 86.54 ▲40.16 |
Settings /wp-admin/admin.php?page=bsm_settings_menu | 1,245 | 3.11 | 41.00 | 68.15 |
Background Slide Sets /wp-admin/edit.php?post_type=bsm-gallery-slides | 1,279 | 3.57 | 46.78 | 67.25 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-comments
- widget_theysaidso_widget
- can_compress_scripts
- db_upgraded
- widget_recent-posts
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though everything seems fine, this is not 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 fix the following
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function settings_fields() in wp-content/plugins/background-slider-master/admin/partials/menu-page-bsm-settings.php:34
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
These are user-side errors you should fix
- 2 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=bsm-gallery-slides
- > Console-api (warning) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=6.3.1 1:28609 "jQuery.Deferred exception: $(...).live is not a function" "TypeError: $(...).live is not a function\n at HTMLDocument.\u003Canonymous> (/wp-content/plugins/background-slider-master/admin/js/background-slider-master-admin.js?ver=1.0.1:16:31)\n at e (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=6.3.1:2:26990)\n at t (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=6.3.1:2:27292)" undefined
- 2 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=bsm-gallery-slides
- > Javascript (severe) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=6.3.1 1:28721 Uncaught TypeError: $(...).live is not a function
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
7 plugin tags: full screen slider gallery, thumbnail gallery, background slider, responsive background slider, multi page background slider...
background-slider-master/background-slider-master.php 92% from 13 tests
"Background Slider Master" version 2.2.0'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: Please don't use more than 140 characters for the plugin description (currently 460 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected1,551 lines of code in 17 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 11 | 154 | 485 | 828 |
JavaScript | 2 | 51 | 25 | 404 |
CSS | 4 | 15 | 16 | 319 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.21 |
Average class complexity | 8.57 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 32.00 |
Average method complexity | 2.06 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 9.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 50 | |
▷ Static methods | 2 | 4.00% |
▷ Public methods | 45 | 90.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 10.00% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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
22 PNG files occupy 1.09MB with 0.60MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 381.76KB | 120.61KB | ▼ 68.41% |
public/assets/toolbar_fs_icon-default.png | 1.88KB | 1.21KB | ▼ 35.90% |
public/assets/o-toolbar_n_icon.png | 0.61KB | 0.44KB | ▼ 28.66% |
screenshot-3.png | 259.32KB | 99.95KB | ▼ 61.46% |
admin/assets/admin-icon.png | 3.39KB | 0.74KB | ▼ 78.19% |