Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
These installer errors require your attention
- This plugin did not install gracefully
- > Warning in wp-includes/class-wp-hook.php+310
call_user_func_array() expects parameter 1 to be a valid callback, function 'activate_kb_woocommerce_braspress' not found or invalid function name
Server metrics [RAM: ▲0.13MB] [CPU: ▼7.09ms] Passed 4 tests
This is a short check of server-side resources used by Kayo Bruno - Braspress for WooCommerce
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.58 ▲0.12 | 42.48 ▲0.91 |
Dashboard /wp-admin | 3.48 ▲0.17 | 47.77 ▼5.75 |
Posts /wp-admin/edit.php | 3.53 ▲0.17 | 53.20 ▼1.62 |
Add New Post /wp-admin/post-new.php | 6.02 ▲0.13 | 84.69 ▼21.88 |
Media Library /wp-admin/upload.php | 3.34 ▲0.11 | 38.23 ▲1.61 |
Server storage [IO: ▲0.13MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 34 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
widget_theysaidso_widget |
can_compress_scripts |
db_upgraded |
theysaidso_admin_options |
widget_recent-posts |
Browser metrics Passed 4 tests
An overview of browser requirements for Kayo Bruno - Braspress for WooCommerce
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,796 ▲35 | 14.69 ▲0.39 | 2.08 ▲0.39 | 43.00 ▼5.94 |
Dashboard /wp-admin | 2,205 ▲25 | 5.73 ▲0.05 | 85.76 ▼3.85 | 39.87 ▼6.47 |
Posts /wp-admin/edit.php | 2,107 ▲7 | 2.06 ▲0.06 | 40.95 ▲4.59 | 35.20 ▲3.91 |
Add New Post /wp-admin/post-new.php | 1,532 ▼13 | 17.71 ▼5.79 | 705.82 ▲28.52 | 54.15 ▼3.63 |
Media Library /wp-admin/upload.php | 1,398 ▼5 | 4.23 ▼0.05 | 97.62 ▼7.54 | 43.09 ▼1.88 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- Uninstall procedure had uncaught errors
- > Warning in wp-includes/class-wp-hook.php+310
call_user_func_array() expects parameter 1 to be a valid callback, function 'deactivate_kb_woocommerce_braspress' not found or invalid function name
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-posts
- db_upgraded
- theysaidso_admin_options
- can_compress_scripts
- widget_theysaidso_widget
- 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
Even though no errors were found, this is by no means 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
Please take a closer look at the following
- 6× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Class 'KB_WooCommerce_Braspress_Shipping_Method' not found in wp-content/plugins/kb-woocommerce-braspress/includes/shipping/class-kb-woocommerce-braspress-road.php:3
- > PHP Fatal error
Uncaught Error: Class 'WC_Shipping_Method' not found in wp-content/plugins/kb-woocommerce-braspress/includes/abstracts/abstract-kb-woocommerce-braspress-shipping-method.php:3
- > PHP Fatal error
Uncaught Error: Class 'KB_WooCommerce_Braspress_Shipping_Method' not found in wp-content/plugins/kb-woocommerce-braspress/includes/shipping/class-kb-woocommerce-braspress-road-fob.php:3
- > PHP Fatal error
Uncaught Error: Class 'KB_WooCommerce_Braspress_Shipping_Method' not found in wp-content/plugins/kb-woocommerce-braspress/includes/shipping/class-kb-woocommerce-braspress-air-fob.php:3
- > PHP Fatal error
Trait 'KB_WooCommerce_Braspress_Functions' not found in wp-content/plugins/kb-woocommerce-braspress/includes/class-kb-woocommerce-braspress-api.php on line 3
- > PHP Fatal error
Uncaught Error: Class 'KB_WooCommerce_Braspress_Shipping_Method' not found in wp-content/plugins/kb-woocommerce-braspress/includes/shipping/class-kb-woocommerce-braspress-air.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
4 plugin tags: delivery, braspress, shipping, woocommerce
kb-woocommerce-braspress/kb-woocommerce-braspress.php Passed 13 tests
This is the main PHP file of "Kayo Bruno - Braspress for WooCommerce" version 1.2.2, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
63 characters long description:
This is an unofficial Braspress plugin for shipping calculation
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected1,826 lines of code in 27 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 20 | 249 | 693 | 1,227 |
JavaScript | 4 | 80 | 60 | 487 |
PO File | 1 | 45 | 13 | 112 |
CSS | 2 | 0 | 8 | 0 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.17 |
Average class complexity | 4.38 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 31.00 |
Average method complexity | 1.50 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 10.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 1 | |
Traits | 1 | |
Classes | 14 | |
▷ Abstract classes | 1 | 7.14% |
▷ Concrete classes | 13 | 92.86% |
▷ Final classes | 0 | 0.00% |
Methods | 103 | |
▷ Static methods | 1 | 0.97% |
▷ Public methods | 74 | 71.84% |
▷ Protected methods | 9 | 8.74% |
▷ Private methods | 20 | 19.42% |
Functions | 11 | |
▷ Named functions | 4 | 36.36% |
▷ Anonymous functions | 7 | 63.64% |
Constants | 9 | |
▷ Global constants | 9 | 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 files were detected