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
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.52MB] [CPU: ▼3.67ms] Passed 4 tests
Server-side resources used by Woocommerce Customers Order History
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.04 ▲0.58 | 42.41 ▼2.03 |
Dashboard /wp-admin | 3.89 ▲0.58 | 52.20 ▲1.73 |
Posts /wp-admin/edit.php | 3.94 ▲0.58 | 46.95 ▲0.13 |
Add New Post /wp-admin/post-new.php | 6.40 ▲0.52 | 84.61 ▼14.50 |
Media Library /wp-admin/upload.php | 3.65 ▲0.42 | 39.22 ▲2.54 |
Freemius Debug [v.2.5.10] /wp-admin/admin.php?page=freemius | 3.97 | 38.10 |
Server storage [IO: ▲3.51MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 211 new files
Database: no new tables, 11 new options
New WordPress options |
---|
db_upgraded |
fs_accounts |
wcchpo_install_date |
can_compress_scripts |
fs_debug_mode |
theysaidso_admin_options |
wcchpo_orderCacheStatus |
widget_recent-comments |
widget_recent-posts |
widget_theysaidso_widget |
... |
Browser metrics Passed 4 tests
An overview of browser requirements for Woocommerce Customers Order History
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,834 ▲99 | 13.69 ▼0.66 | 2.04 ▼0.18 | 31.82 ▼19.89 |
Dashboard /wp-admin | 2,240 ▲52 | 5.82 ▼0.05 | 114.96 ▼5.20 | 46.07 ▲2.32 |
Posts /wp-admin/edit.php | 2,123 ▲34 | 2.04 ▲0.06 | 35.31 ▼2.10 | 37.52 ▲2.42 |
Add New Post /wp-admin/post-new.php | 1,546 ▲32 | 21.01 ▲3.35 | 686.04 ▼24.32 | 60.15 ▲5.17 |
Media Library /wp-admin/upload.php | 1,422 ▲31 | 4.21 ▼0.01 | 99.51 ▼3.57 | 45.86 ▲0.30 |
Freemius Debug [v.2.5.10] /wp-admin/admin.php?page=freemius | 1,063 | 1.73 | 25.75 | 24.66 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- This plugin did not uninstall without warnings or errors
- > Notice in wp-content/plugins/woo-customers-order-history/includes/freemius/includes/class-freemius.php+8486
Undefined property: stdClass::$plugins
- Zombie WordPress options detected upon uninstall: 11 options
- widget_recent-posts
- widget_theysaidso_widget
- wcchpo_orderCacheStatus
- theysaidso_admin_options
- db_upgraded
- can_compress_scripts
- fs_debug_mode
- widget_recent-comments
- wcchpo_install_date
- fs_active_plugins
- ...
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested
SRP 0% from 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
The following issues need your attention
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/woo-customers-order-history/public/partials/woo-customers-order-history-public-display.php
- 4× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_redirect() in wp-content/plugins/woo-customers-order-history/admin/partials/wcchpo_product_history.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_redirect() in wp-content/plugins/woo-customers-order-history/admin/partials/wcchpo_download_history.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr_e() in wp-content/plugins/woo-customers-order-history/admin/partials/wcchpo_settings.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_redirect() in wp-content/plugins/woo-customers-order-history/admin/partials/wcchpo_order_history.php:4
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
7 plugin tags: woocommerce history, woocommerce orders, woocommerce order history, order history, wordpress...
woo-customers-order-history/woo-customers-order-history.php Passed 13 tests
Analyzing the main PHP file in "Woocommerce Customers Order History" version 5.2.2
81 characters long description:
The most intuitive way to see a user's order history. Nothing will skip your eye.
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin34,882 lines of code in 153 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 131 | 8,218 | 17,924 | 34,493 |
JavaScript | 5 | 38 | 113 | 200 |
PO File | 2 | 61 | 115 | 163 |
CSS | 15 | 1 | 9 | 26 |
PHP code 50% from 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Please fix the following
- Class cyclomatic complexity has to be reduced to less than 1000 (currently 3,073)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.64 |
Average class complexity | 84.25 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 3,073.00 |
Average method complexity | 4.60 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 94.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 55 | |
▷ Abstract classes | 2 | 3.64% |
▷ Concrete classes | 53 | 96.36% |
▷ Final classes | 0 | 0.00% |
Methods | 1,299 | |
▷ Static methods | 199 | 15.32% |
▷ Public methods | 905 | 69.67% |
▷ Protected methods | 17 | 1.31% |
▷ Private methods | 377 | 29.02% |
Functions | 102 | |
▷ Named functions | 102 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 146 | |
▷ Global constants | 99 | 67.81% |
▷ Class constants | 47 | 32.19% |
▷ Public constants | 47 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
8 PNG files occupy 0.34MB with 0.20MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 69.82KB | 26.99KB | ▼ 61.34% |
screenshot-2.png | 106.07KB | 33.46KB | ▼ 68.45% |
Thumbnail.png | 2.71KB | 1.84KB | ▼ 32.24% |
includes/freemius/assets/img/theme-icon.png | 10.97KB | 5.78KB | ▼ 47.37% |
banner-772x250.png | 21.22KB | 3.18KB | ▼ 84.99% |