Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully
Server metrics [RAM: ▲5.07MB] [CPU: ▲19.31ms] 75% from 4 tests
An overview of server-side resources used by Customer Order History for WooCommerce
It is recommended to improve the following
- Extra RAM: Extra memory usage should kept under 5MB (currently 5.07MB on /wp-admin/admin.php?page=freemius)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 8.99 ▲5.54 | 75.52 ▲34.75 |
Dashboard /wp-admin | 9.01 ▲5.71 | 73.47 ▲23.99 |
Posts /wp-admin/edit.php | 9.02 ▲5.66 | 70.71 ▲5.09 |
Add New Post /wp-admin/post-new.php | 9.25 ▲3.36 | 112.34 ▲13.39 |
Media Library /wp-admin/upload.php | 9.01 ▲5.79 | 67.12 ▲34.97 |
Freemius Debug [v.2.5.3] /wp-admin/admin.php?page=freemius | 9.01 | 55.07 |
Server storage [IO: ▲3.33MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 191 new files
Database: no new tables, 10 new options
New WordPress options |
---|
widget_recent-comments |
can_compress_scripts |
fs_debug_mode |
widget_recent-posts |
fs_accounts |
widget_theysaidso_widget |
db_upgraded |
theysaidso_admin_options |
fs_active_plugins |
fs_gdpr |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Customer Order History for WooCommerce
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,818 ▲83 | 13.18 ▼1.57 | 1.84 ▲0.19 | 32.04 ▼14.94 |
Dashboard /wp-admin | 2,221 ▲33 | 5.83 ▼0.05 | 99.29 ▼6.71 | 43.34 ▼0.58 |
Posts /wp-admin/edit.php | 2,110 ▲16 | 2.02 ▲0.00 | 34.50 ▼5.55 | 36.32 ▼4.14 |
Add New Post /wp-admin/post-new.php | 1,544 ▲11 | 18.21 ▼4.99 | 618.91 ▼31.73 | 57.55 ▲3.70 |
Media Library /wp-admin/upload.php | 1,406 ▲18 | 4.13 ▼0.10 | 99.35 ▼19.99 | 44.62 ▼3.99 |
Freemius Debug [v.2.5.3] /wp-admin/admin.php?page=freemius | 1,078 | 1.72 | 23.73 | 26.66 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- The plugin did not uninstall gracefully
- > Notice in wp-content/plugins/woohistory/freemius/includes/class-freemius.php+8772
Undefined property: stdClass::$plugins
- Zombie WordPress options detected upon uninstall: 10 options
- widget_theysaidso_widget
- db_upgraded
- can_compress_scripts
- widget_recent-posts
- fs_active_plugins
- widget_recent-comments
- fs_gdpr
- fs_accounts
- fs_debug_mode
- theysaidso_admin_options
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP Passed 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Everything seems fine, however this is by no means an exhaustive test
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
8 plugin tags: orders, history, order status, order history, woocommerce...
woohistory/woohistory.php Passed 13 tests
This is the main PHP file of "Customer Order History for WooCommerce" version 2.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
59 characters long description:
View Registered and Guest Customers Previous Order History.
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Success! There were no dangerous files found in this plugin33,974 lines of code in 142 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 117 | 8,009 | 17,150 | 33,256 |
CSS | 20 | 41 | 45 | 447 |
JavaScript | 3 | 34 | 59 | 194 |
PO File | 1 | 18 | 18 | 60 |
SVG | 1 | 5 | 0 | 17 |
PHP code 50% from 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
Please fix the following
- Class cyclomatic complexity has to be reduced to less than 1000 (currently 3,089)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.63 |
Average class complexity | 93.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 3,089.00 |
Average method complexity | 4.61 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 94.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 48 | |
▷ Abstract classes | 2 | 4.17% |
▷ Concrete classes | 46 | 95.83% |
▷ Final classes | 0 | 0.00% |
Methods | 1,253 | |
▷ Static methods | 192 | 15.32% |
▷ Public methods | 871 | 69.51% |
▷ Protected methods | 17 | 1.36% |
▷ Private methods | 365 | 29.13% |
Functions | 104 | |
▷ Named functions | 104 | 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
2 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
freemius/assets/img/plugin-icon.png | 9.16KB | 5.26KB | ▼ 42.58% |
freemius/assets/img/theme-icon.png | 10.97KB | 5.78KB | ▼ 47.37% |