Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▲0.35MB] [CPU: ▼2.23ms] Passed 4 tests
Server-side resources used by Product Base Order for WooCommerce
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.63 ▲0.18 | 45.36 ▲6.52 |
Dashboard /wp-admin | 3.74 ▲0.44 | 47.22 ▼1.15 |
Posts /wp-admin/edit.php | 3.79 ▲0.44 | 49.51 ▲2.36 |
Add New Post /wp-admin/post-new.php | 6.28 ▲0.40 | 94.48 ▼11.83 |
Media Library /wp-admin/upload.php | 3.60 ▲0.38 | 36.94 ▲1.69 |
Server storage [IO: ▲0.55MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 31 new files
Database: no new tables, 10 new options
New WordPress options |
---|
widget_recent-comments |
widget_theysaidso_widget |
can_compress_scripts |
wpr_pbowc_admin_settings_product_page |
widget_recent-posts |
db_upgraded |
wpr_pbowc_admin_settings_general |
wpr_pbowc_admin_settings_shortcodes |
wpr_pbowc_admin_settings_help |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Product Base Order for WooCommerce: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,912 ▲177 | 14.00 ▼0.27 | 12.30 ▲10.37 | 41.24 ▼2.92 |
Dashboard /wp-admin | 2,230 ▲51 | 4.91 ▼0.94 | 110.33 ▲9.54 | 41.20 ▼7.53 |
Posts /wp-admin/edit.php | 2,115 ▲26 | 2.04 ▲0.01 | 36.35 ▼1.98 | 35.47 ▼2.83 |
Add New Post /wp-admin/post-new.php | 1,536 ▲1 | 22.99 ▼0.22 | 618.36 ▲22.52 | 57.10 ▲4.60 |
Media Library /wp-admin/upload.php | 1,415 ▲24 | 4.24 ▲0.05 | 97.17 ▼5.77 | 41.78 ▼2.45 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% 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 uninstall procedure has failed, leaving 10 options in the database
- wpr_pbowc_admin_settings_general
- widget_recent-posts
- wpr_pbowc_admin_settings_product_page
- widget_theysaidso_widget
- wpr_pbowc_admin_settings_help
- wpr_pbowc_admin_settings_shortcodes
- widget_recent-comments
- can_compress_scripts
- db_upgraded
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check 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 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following items
- 3× PHP files trigger server errors when accessed directly:
- > PHP Notice
Undefined variable: get_orders in wp-content/plugins/product-base-order-for-woocommerce/templates/global-orders-list.php on line 33
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/product-base-order-for-woocommerce/templates/global-orders-list.php:197
- > PHP Notice
Undefined variable: filter_option in wp-content/plugins/product-base-order-for-woocommerce/templates/global-orders-list.php on line 8
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
4 plugin tags: woocommerce, order, product, product-base-order
product-base-order-for-woocommerce/product-base-order-for-woocommerce.php 92% from 13 tests
The entry point to "Product Base Order for WooCommerce" version 1.0.0 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected8,535 lines of code in 24 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 3 | 1,992 | 7,008 | 6,444 |
PHP | 17 | 330 | 835 | 1,587 |
CSS | 3 | 3 | 37 | 503 |
JSON | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.45 |
Average class complexity | 16.09 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 68.00 |
Average method complexity | 3.05 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 28.00 |
Code structure | ||
---|---|---|
Namespaces | 4 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 11 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 11 | 100.00% |
▷ Final classes | 1 | 9.09% |
Methods | 82 | |
▷ Static methods | 4 | 4.88% |
▷ Public methods | 79 | 96.34% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 3 | 3.66% |
Functions | 15 | |
▷ Named functions | 14 | 93.33% |
▷ Anonymous functions | 1 | 6.67% |
Constants | 6 | |
▷ Global constants | 6 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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
PNG images were not found in this plugin