Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▲0.06MB] [CPU: ▼9.39ms] Passed 4 tests
Analyzing server-side resources used by Remove products background for WooCommerce
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.70 ▲0.23 | 42.65 ▼2.54 |
Dashboard /wp-admin | 3.42 ▲0.12 | 35.54 ▼10.67 |
Posts /wp-admin/edit.php | 3.49 ▲0.13 | 40.32 ▼11.56 |
Add New Post /wp-admin/post-new.php | 5.67 ▼0.22 | 86.38 ▼12.77 |
Media Library /wp-admin/upload.php | 3.43 ▲0.20 | 35.96 ▼0.66 |
Server storage [IO: ▲0.12MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 17 new files
Database: 2 new tables, 9 new options
New tables |
---|
wp_wc_remove_bg_backup |
wp_wc_remove_bg |
New WordPress options |
---|
widget_recent-comments |
widget_recent-posts |
db_upgraded |
RemoveBG_gallery |
theysaidso_admin_options |
widget_theysaidso_widget |
can_compress_scripts |
RemoveBG_thumbnail |
RemoveBG_Preserve_Resize |
Browser metrics Passed 4 tests
An overview of browser requirements for Remove products background for WooCommerce
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,826 ▲65 | 14.39 ▼0.23 | 1.69 ▼0.22 | 40.10 ▼11.54 |
Dashboard /wp-admin | 2,235 ▲58 | 5.84 ▲0.20 | 91.85 ▲0.14 | 39.80 ▲0.12 |
Posts /wp-admin/edit.php | 2,139 ▲39 | 2.26 ▲0.27 | 43.04 ▲8.83 | 38.86 ▼2.01 |
Add New Post /wp-admin/post-new.php | 1,555 ▲26 | 23.67 ▲0.44 | 667.14 ▲58.28 | 37.14 ▼11.64 |
Media Library /wp-admin/upload.php | 1,434 ▲34 | 4.41 ▲0.18 | 102.06 ▼8.46 | 39.84 ▼1.98 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
- The plugin did not uninstall successfully, leaving 2 tables in the database
- wp_wc_remove_bg_backup
- wp_wc_remove_bg
- Zombie WordPress options detected upon uninstall: 9 options
- db_upgraded
- theysaidso_admin_options
- RemoveBG_gallery
- widget_recent-posts
- RemoveBG_Preserve_Resize
- RemoveBG_thumbnail
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please take a closer look at the following
- 2× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_upload_dir() in wp-content/plugins/wc-remove-bg/admin/partials/plugin-wc-remove-bg-display-admin.php:15
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/wc-remove-bg/admin/partials/plugin-wc-remove-bg-display-admin-notices.php:17
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were 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
5 plugin tags: woocommerce, change background, remove background, background, product images
wc-remove-bg/wc-remove-bg.php 92% from 13 tests
"Remove products background for WooCommerce" version 1.2's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
You should first fix the following items:
- Requires at least: The required version number must match the one declared in readme.txt ("4.2" instead of "4.1")
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
There were no executable files found in this plugin1,910 lines of code in 12 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 10 | 188 | 397 | 1,377 |
JavaScript | 1 | 28 | 8 | 417 |
CSS | 1 | 7 | 1 | 116 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
Average class complexity | 30.60 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 143.00 |
Average method complexity | 4.27 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 33.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 42 | |
▷ Static methods | 1 | 2.38% |
▷ Public methods | 25 | 59.52% |
▷ Protected methods | 13 | 30.95% |
▷ Private methods | 4 | 9.52% |
Functions | 4 | |
▷ Named functions | 3 | 75.00% |
▷ Anonymous functions | 1 | 25.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
No PNG files were detected