Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.48MB] [CPU: ▼6.77ms] Passed 4 tests
A check of server-side resources used by PureDevs Customer History for WooCommerce
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.96 ▲0.50 | 35.58 ▼4.23 |
Dashboard /wp-admin | 3.80 ▲0.50 | 50.90 ▼0.71 |
Posts /wp-admin/edit.php | 3.85 ▲0.50 | 47.30 ▼2.23 |
Add New Post /wp-admin/post-new.php | 6.32 ▲0.43 | 85.70 ▼16.60 |
Media Library /wp-admin/upload.php | 3.72 ▲0.49 | 37.09 ▼4.00 |
Freemius Debug [v.2.4.3] /wp-admin/admin.php?page=freemius | 3.91 | 34.69 |
Server storage [IO: ▲4.27MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 197 new files
Database: no new tables, 12 new options
New WordPress options |
---|
widget_theysaidso_widget |
fs_active_plugins |
can_compress_scripts |
db_upgraded |
fs_debug_mode |
pd-woo-results_per_page |
widget_recent-comments |
theysaidso_admin_options |
pd-woo-hide_users_with_no_orders |
widget_recent-posts |
... |
Browser metrics Passed 4 tests
This is an overview of browser requirements for PureDevs Customer History for WooCommerce
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,832 ▲46 | 14.24 ▼0.13 | 1.65 ▼0.36 | 27.49 ▼16.98 |
Dashboard /wp-admin | 2,238 ▲61 | 5.53 ▼0.13 | 98.38 ▲8.63 | 46.55 ▲3.21 |
Posts /wp-admin/edit.php | 2,144 ▲44 | 2.12 ▲0.09 | 36.92 ▲0.94 | 32.96 ▼6.91 |
Add New Post /wp-admin/post-new.php | 1,553 ▲10 | 23.20 ▲0.02 | 660.66 ▼2.60 | 57.50 ▼0.03 |
Media Library /wp-admin/upload.php | 1,443 ▲40 | 4.12 ▲0.03 | 98.72 ▼7.15 | 43.86 ▼4.98 |
Freemius Debug [v.2.4.3] /wp-admin/admin.php?page=freemius | 1,086 | 1.69 | 29.23 | 31.61 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% 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
- The plugin did not uninstall gracefully
- > Notice in wp-content/plugins/puredevs-customer-history-for-woocommerce/includes/freemius/includes/class-freemius.php+8575
Undefined property: stdClass::$plugins
- This plugin did not uninstall successfully, leaving 10 options in the database
- theysaidso_admin_options
- widget_recent-comments
- fs_accounts
- widget_theysaidso_widget
- can_compress_scripts
- fs_gdpr
- db_upgraded
- fs_active_plugins
- widget_recent-posts
- fs_debug_mode
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 0% 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
The following issues need your attention
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/puredevs-customer-history-for-woocommerce/public/partials/pd-customer-history-public-display.php
- 2× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html__() in wp-content/plugins/puredevs-customer-history-for-woocommerce/admin/partials/templates/dashboard/last-orders.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html__() in wp-content/plugins/puredevs-customer-history-for-woocommerce/admin/partials/templates/dashboard/top-customers.php:5
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
Optimizations
Plugin configuration 87% from 29 tests
readme.txt 88% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need your attention:
- License uri: Invalid URI found ("http: //www.gnu.org/licenses/gpl-2.0.html")
- Tags: Please reduce the number of tags, currently 12 tag instead of maximum 10
puredevs-customer-history-for-woocommerce/puredevs-customer-history-for-woocommerce.php 85% from 13 tests
"PureDevs Customer History for WooCommerce" version 1.0.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
It is important to fix the following:
- Description: The description should be shorter than 140 characters (currently 191 characters long)
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
There were no executable files found in this plugin33,106 lines of code in 152 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 126 | 7,383 | 16,668 | 31,859 |
CSS | 13 | 151 | 13 | 830 |
JavaScript | 8 | 59 | 102 | 324 |
XML | 5 | 0 | 0 | 93 |
PHP code 50% from 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Please tend to the following items
- Please reduce cyclomatic complexity of classes to less than 1000 (currently 2,911)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.62 |
Average class complexity | 76.43 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 2,911.00 |
Average method complexity | 4.55 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 86.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 54 | |
▷ Abstract classes | 2 | 3.70% |
▷ Concrete classes | 52 | 96.30% |
▷ Final classes | 0 | 0.00% |
Methods | 1,180 | |
▷ Static methods | 180 | 15.25% |
▷ Public methods | 833 | 70.59% |
▷ Protected methods | 15 | 1.27% |
▷ Private methods | 332 | 28.14% |
Functions | 100 | |
▷ Named functions | 100 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 127 | |
▷ Global constants | 102 | 80.31% |
▷ Class constants | 25 | 19.69% |
▷ Public constants | 25 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
4 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
includes/freemius/assets/img/theme-icon.png | 10.97KB | 5.78KB | ▼ 47.37% |
includes/freemius/assets/img/plugin-icon.png | 9.16KB | 5.26KB | ▼ 42.58% |
includes/freemius/assets/img/puredevs-customer-history-for-woocommerce.png | 7.86KB | 3.61KB | ▼ 54.04% |
includes/freemius/assets/img/puredevs-woo-customer-history.png | 2.20KB | 1.02KB | ▼ 53.77% |