Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully
Server metrics [RAM: ▼1.69MB] [CPU: ▼49.05ms] Passed 4 tests
Analyzing server-side resources used by WPC Free Shipping Bar for WooCommerce
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.30 ▼1.16 | 5.98 ▼42.69 |
Dashboard /wp-admin | 2.32 ▼0.98 | 9.65 ▼35.73 |
Posts /wp-admin/edit.php | 2.32 ▼1.03 | 10.55 ▼36.17 |
Add New Post /wp-admin/post-new.php | 2.32 ▼3.56 | 8.64 ▼81.59 |
Media Library /wp-admin/upload.php | 2.32 ▼0.91 | 7.27 ▼25.53 |
About /wp-admin/admin.php?page=wpclever | 2.32 | 7.34 |
Essential Kit /wp-admin/admin.php?page=wpclever-kit | 2.32 | 6.56 |
Server storage [IO: ▲0.08MB] [DB: ▲0.02MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 13 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_theysaidso_widget |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-posts |
widget_recent-comments |
Browser metrics Passed 4 tests
An overview of browser requirements for WPC Free Shipping Bar for WooCommerce
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,869 ▲123 | 13.46 ▼0.92 | 1.71 ▼0.45 | 40.32 ▼6.45 |
Dashboard /wp-admin | 2,260 ▲72 | 4.93 ▼0.95 | 115.43 ▲12.55 | 80.76 ▲39.48 |
Posts /wp-admin/edit.php | 2,162 ▲73 | 2.05 ▲0.01 | 37.50 ▼5.11 | 34.44 ▼3.96 |
Add New Post /wp-admin/post-new.php | 1,734 ▲192 | 22.59 ▲4.33 | 749.34 ▲109.39 | 51.74 ▼3.62 |
Media Library /wp-admin/upload.php | 1,454 ▲69 | 4.16 ▼0.13 | 122.97 ▲20.21 | 49.14 ▲5.23 |
About /wp-admin/admin.php?page=wpclever | 1,388 | 2.16 | 35.22 | 47.37 |
Essential Kit /wp-admin/admin.php?page=wpclever-kit | 5,712 | 2.16 | 33.61 | 61.50 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.02MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- This plugin cannot be uninstalled
- > Warning in wp-includes/class-wp-hook.php+310
call_user_func_array() expects parameter 1 to be a valid callback, function 'wpcfb_init' not found or invalid function name
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-comments
- widget_theysaidso_widget
- widget_recent-posts
- theysaidso_admin_options
- can_compress_scripts
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Smoke test failed, please fix the following
- 4 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=wpclever-kit
- > POST request to /wp-admin/admin-ajax.php
- > Warning in wp-includes/class-wp-hook.php+310
call_user_func_array() expects parameter 1 to be a valid callback, function 'wpcfb_init' not found or invalid function name
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=wpclever-kit
- > Warning in wp-includes/class-wp-hook.php+310
call_user_func_array() expects parameter 1 to be a valid callback, function 'wpcfb_notice_wc' not found or invalid function name
SRP Passed 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
Congratulations! This plugin passed the SRP test
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% 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
These attributes need to be fixed:
- Screenshots: These screenshots need descriptions #1, #2 in wpc-free-shipping-bar/assets to your readme.txt
wpc-free-shipping-bar/wpc-free-shipping-bar.php Passed 13 tests
"WPC Free Shipping Bar for WooCommerce" version 1.3.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
118 characters long description:
Encourage customers to increase their order value to be qualified for free shipping with a beautiful customizable bar.
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
Everything looks great! No dangerous files found in this plugin1,476 lines of code in 11 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 126 | 30 | 931 |
CSS | 3 | 82 | 6 | 446 |
JavaScript | 3 | 10 | 2 | 70 |
SVG | 1 | 0 | 0 | 29 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
Average class complexity | 28.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 64.00 |
Average method complexity | 3.43 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 19.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 38 | |
▷ Static methods | 4 | 10.53% |
▷ Public methods | 38 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 3 | |
▷ Named functions | 2 | 66.67% |
▷ Anonymous functions | 1 | 33.33% |
Constants | 7 | |
▷ Global constants | 7 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG images were found in this plugin