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.01MB] [CPU: ▼8.24ms] Passed 4 tests
This is a short check of server-side resources used by Billplz for WooCommerce
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 38.12 ▼3.18 |
Dashboard /wp-admin | 3.31 ▼0.04 | 44.18 ▼17.24 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 47.38 ▲1.92 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 81.39 ▼9.11 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 31.47 ▼3.43 |
Server storage [IO: ▲0.18MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 30 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-comments |
theysaidso_admin_options |
widget_recent-posts |
db_upgraded |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Billplz for WooCommerce
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,790 ▲28 | 14.27 ▼0.44 | 1.69 ▼0.23 | 38.59 ▼5.83 |
Dashboard /wp-admin | 2,192 ▲17 | 5.54 ▼0.12 | 92.00 ▼13.13 | 41.25 ▼2.93 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 1.95 ▼0.03 | 39.24 ▲2.19 | 36.50 ▼0.09 |
Add New Post /wp-admin/post-new.php | 1,526 ▼1 | 23.39 ▲0.15 | 594.01 ▼98.52 | 61.59 ▲0.94 |
Media Library /wp-admin/upload.php | 1,403 ▲3 | 4.18 ▲0.02 | 95.80 ▼0.49 | 42.47 ▲0.91 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
- Zombie WordPress options were found after uninstall: 6 options
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-posts
- db_upgraded
- widget_theysaidso_widget
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check 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 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The following issues need your attention
- 4× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/billplz-for-woocommerce/includes/admin/bfw_requery_button_in_order_page.php:27
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/billplz-for-woocommerce/includes/wc_bill_inquiry.php:66
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/billplz-for-woocommerce/includes/admin/bfw_requery_button.php:32
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/billplz-for-woocommerce/includes/admin/bfw_requery_meta_box.php:34
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
Optimizations
Plugin configuration 86% from 29 tests
readme.txt 94% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that require attention:
- Screenshots: Add descriptions for screenshots #1, #2, #3, #4 in billplz-for-woocommerce/assets to your readme.txt
billplz-for-woocommerce/billplzWoo.php 77% from 13 tests
The entry point to "Billplz for WooCommerce" version 3.28.3 is a PHP file that has certain tags in its header comment area
Please take the time to fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("billplz-for-woocommerce.php" instead of "billplzWoo.php")
- Domain Path: The domain path folder does not exist ("/languages/")
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
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
Good job! No executable or dangerous file extensions detected2,934 lines of code in 26 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 22 | 759 | 72 | 2,706 |
JavaScript | 3 | 19 | 5 | 152 |
CSS | 1 | 3 | 4 | 76 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.34 |
Average class complexity | 46.83 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 195.00 |
Average method complexity | 2.94 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 32.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 6 | 100.00% |
▷ Final classes | 1 | 16.67% |
Methods | 135 | |
▷ Static methods | 13 | 9.63% |
▷ Public methods | 107 | 79.26% |
▷ Protected methods | 1 | 0.74% |
▷ Private methods | 27 | 20.00% |
Functions | 25 | |
▷ Named functions | 23 | 92.00% |
▷ Anonymous functions | 2 | 8.00% |
Constants | 12 | |
▷ Global constants | 9 | 75.00% |
▷ Class constants | 3 | 25.00% |
▷ Public constants | 3 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
3 PNG files occupy 0.05MB with 0.01MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/billplz-logo-all.png | 16.03KB | 17.04KB | 0.00% |
assets/images/billplz-logo-old.png | 13.02KB | 5.70KB | ▼ 56.17% |
assets/images/billplz-logo-fpx.png | 17.43KB | 18.43KB | 0.00% |