Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.05MB] [CPU: ▼4.43ms] Passed 4 tests
This is a short check of server-side resources used by Bonanza - WooCommerce Free Gifts Lite
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.05 | 39.41 ▼8.00 |
Dashboard /wp-admin | 3.35 ▲0.05 | 54.25 ▲3.38 |
Posts /wp-admin/edit.php | 3.46 ▲0.11 | 50.58 ▼4.80 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.05 | 92.29 ▼3.89 |
Media Library /wp-admin/upload.php | 3.27 ▲0.05 | 37.79 ▼1.04 |
Server storage [IO: ▲1.49MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 210 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
theysaidso_admin_options |
widget_recent-comments |
widget_theysaidso_widget |
can_compress_scripts |
db_upgraded |
Browser metrics Passed 4 tests
A check of browser resources used by Bonanza - WooCommerce Free Gifts Lite
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,824 ▲63 | 13.32 ▼0.88 | 4.92 ▲2.73 | 42.30 ▼1.72 |
Dashboard /wp-admin | 2,221 ▲15 | 5.81 ▼0.08 | 100.86 ▼4.19 | 39.05 ▲0.42 |
Posts /wp-admin/edit.php | 2,110 ▲10 | 2.06 ▲0.04 | 37.08 ▲1.95 | 35.33 ▲2.59 |
Add New Post /wp-admin/post-new.php | 1,545 ▲10 | 22.88 ▼0.28 | 600.60 ▼33.33 | 67.77 ▼1.74 |
Media Library /wp-admin/upload.php | 1,412 ▲12 | 4.26 ▲0.04 | 103.15 ▼14.05 | 48.18 ▲0.92 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- widget_theysaidso_widget
- widget_recent-comments
- can_compress_scripts
- widget_recent-posts
- db_upgraded
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test
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
The following issues need your attention
- 38× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Picker_Base' not found in wp-content/plugins/bonanza-woocommerce-free-gifts-lite/admin/includes/cmb2/includes/types/CMB2_Type_Text_Datetime_Timestamp.php:13
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Hookup_Base' not found in wp-content/plugins/bonanza-woocommerce-free-gifts-lite/admin/includes/cmb2/includes/CMB2_hookup.php:14
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_File_Base' not found in wp-content/plugins/bonanza-woocommerce-free-gifts-lite/admin/includes/cmb2/includes/types/CMB2_Type_File_List.php:13
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Base' not found in wp-content/plugins/bonanza-woocommerce-free-gifts-lite/admin/includes/cmb2/includes/CMB2_Field.php:17
- > PHP Fatal error
Uncaught Error: Class 'CMB2_REST_Controller' not found in wp-content/plugins/bonanza-woocommerce-free-gifts-lite/admin/includes/cmb2/includes/rest-api/CMB2_REST_Controller_Boxes.php:17
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Multi_Base' not found in wp-content/plugins/bonanza-woocommerce-free-gifts-lite/admin/includes/cmb2/includes/types/CMB2_Type_Taxonomy_Base.php:13
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Multi_Base' not found in wp-content/plugins/bonanza-woocommerce-free-gifts-lite/admin/includes/cmb2/includes/types/CMB2_Type_Radio.php:13
- > PHP Fatal error
Uncaught Error: Class 'XLWCFG_Rule_Base' not found in wp-content/plugins/bonanza-woocommerce-free-gifts-lite/rules/rules/day.php:3
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Radio' not found in wp-content/plugins/bonanza-woocommerce-free-gifts-lite/admin/includes/cmb2/includes/types/CMB2_Type_Multicheck.php:13
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Taxonomy_Multicheck' not found in wp-content/plugins/bonanza-woocommerce-free-gifts-lite/admin/includes/cmb2/includes/types/CMB2_Type_Taxonomy_Multicheck_Hierarchical.php:13
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 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
7 plugin tags: woocommerce bulk gifts, woocommerce bogo plugin, woocommerce free gifts, woocommerce bogo deals, xlplugins...
bonanza-woocommerce-free-gifts-lite/bonanza-woocommerce-free-gifts-lite.php Passed 13 tests
The main PHP script in "Bonanza - WooCommerce Free Gifts Lite" version 1.0.0 is automatically included on every request by WordPress
62 characters long description:
WooCommerce Free Gifts plugin allows you to add gifts on cart.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Everything looks great! No dangerous files found in this plugin21,726 lines of code in 149 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 114 | 3,754 | 7,645 | 13,964 |
CSS | 19 | 1,243 | 1,193 | 5,432 |
JavaScript | 15 | 536 | 516 | 2,319 |
SVG | 1 | 0 | 0 | 11 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.46 |
Average class complexity | 19.52 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 181.00 |
Average method complexity | 3.26 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 53.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 112 | |
▷ Abstract classes | 8 | 7.14% |
▷ Concrete classes | 104 | 92.86% |
▷ Final classes | 0 | 0.00% |
Methods | 920 | |
▷ Static methods | 218 | 23.70% |
▷ Public methods | 821 | 89.24% |
▷ Protected methods | 94 | 10.22% |
▷ Private methods | 5 | 0.54% |
Functions | 31 | |
▷ Named functions | 29 | 93.55% |
▷ Anonymous functions | 2 | 6.45% |
Constants | 25 | |
▷ Global constants | 16 | 64.00% |
▷ Class constants | 9 | 36.00% |
▷ Public constants | 9 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
20 PNG files occupy 0.05MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/includes/cmb2/images/ui-bg_glass_95_fef1ec_1x400.png | 0.12KB | 0.14KB | 0.00% |
admin/assets/img/nextmove.png | 5.32KB | 2.53KB | ▼ 52.45% |
admin/includes/cmb2/images/ui-bg_glass_75_e6e6e6_1x400.png | 0.11KB | 0.14KB | 0.00% |
admin/includes/cmb2/images/ui-icons_2e83ff_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |
admin/includes/cmb2/images/ui-bg_flat_0_aaaaaa_40x100.png | 0.18KB | 0.08KB | ▼ 51.67% |