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.53MB] [CPU: ▼0.28ms] 75% from 4 tests
A check of server-side resources used by Premmerce WooCommerce Customers Manager
The following require your attention
- CPU: Total CPU usage should be kept under 500.00ms (currently 1,533.67ms on /wp-admin/admin.php?page=woo-customers-manager)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.04 ▲0.58 | 39.93 ▼4.33 |
Dashboard /wp-admin | 3.89 ▲0.59 | 54.08 ▲1.07 |
Posts /wp-admin/edit.php | 3.94 ▲0.59 | 53.72 ▲2.93 |
Add New Post /wp-admin/post-new.php | 6.41 ▲0.53 | 99.61 ▲0.73 |
Media Library /wp-admin/upload.php | 3.66 ▲0.43 | 40.73 ▲1.40 |
Freemius Debug [v.2.5.10] /wp-admin/admin.php?page=freemius | 4.02 | 40.14 |
Premmerce WooCommerce Customers Manager /wp-admin/admin.php?page=woo-customers-manager | 3.90 | 1,533.67 |
Server storage [IO: ▲3.15MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 213 new files
Database: no new tables, 9 new options
New WordPress options |
---|
can_compress_scripts |
fs_debug_mode |
db_upgraded |
fs_accounts |
fs_active_plugins |
widget_recent-comments |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-posts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Premmerce WooCommerce Customers Manager
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,838 ▲77 | 14.21 ▼0.19 | 1.96 ▲0.29 | 31.60 ▼15.44 |
Dashboard /wp-admin | 2,216 ▲42 | 5.61 ▼0.02 | 90.51 ▼6.94 | 45.46 ▼0.04 |
Posts /wp-admin/edit.php | 2,124 ▲24 | 2.11 ▲0.08 | 40.66 ▲1.65 | 39.91 ▲3.16 |
Add New Post /wp-admin/post-new.php | 1,537 ▲11 | 23.22 ▼0.23 | 660.18 ▼30.07 | 56.87 ▲2.58 |
Media Library /wp-admin/upload.php | 1,424 ▲27 | 4.19 ▼0.09 | 100.65 ▼2.21 | 45.20 ▼0.34 |
Freemius Debug [v.2.5.10] /wp-admin/admin.php?page=freemius | 1,072 | 1.67 | 24.35 | 31.59 |
Premmerce WooCommerce Customers Manager /wp-admin/admin.php?page=woo-customers-manager | 980 | 1.84 | 24.43 | 57.87 |
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
These items require your attention
- Uninstall procedure had uncaught errors
- > Notice in wp-content/plugins/woo-customers-manager/freemius/includes/class-freemius.php+8486
Undefined property: stdClass::$plugins
- Zombie WordPress options were found after uninstall: 9 options
- fs_debug_mode
- db_upgraded
- can_compress_scripts
- widget_recent-comments
- fs_active_plugins
- widget_recent-posts
- widget_theysaidso_widget
- fs_accounts
- theysaidso_admin_options
Smoke tests 75% 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)
Even though everything seems fine, this is not an exhaustive test
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
Please fix the following
- 2× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Interface 'Premmerce\\SDK\\V2\\Plugin\\PluginInterface' not found in wp-content/plugins/woo-customers-manager/src/ExtendedUsersPlugin.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/woo-customers-manager/custom-strings.php:7
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration 93% from 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
3 plugin tags: customers, woocommerce customers, customers manager
woo-customers-manager/premmerce-extended-users.php 85% from 13 tests
"Premmerce WooCommerce Customers Manager" version 1.1.14's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
You should first fix the following items:
- Requires at least: Required version does not match the one declared in readme.txt ("4.8" instead of "3.0.0")
- Main file name: The principal plugin file should be the same as the plugin slug ("woo-customers-manager.php" instead of "premmerce-extended-users.php")
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
There were no executable files found in this plugin34,692 lines of code in 162 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 139 | 8,232 | 17,780 | 33,975 |
Markdown | 2 | 121 | 0 | 284 |
JavaScript | 3 | 34 | 59 | 194 |
PO File | 2 | 58 | 68 | 139 |
JSON | 2 | 0 | 0 | 60 |
CSS | 14 | 5 | 0 | 40 |
PHP code 50% from 2 tests
This is a very shot review of cyclomatic complexity and code structure
Please fix the following
- Cyclomatic complexity of classes has to be reduced to less than 1000 (currently 3,073)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.63 |
Average class complexity | 80.67 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 3,073.00 |
Average method complexity | 4.50 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 94.00 |
Code structure | ||
---|---|---|
Namespaces | 7 | |
Interfaces | 1 | |
Traits | 0 | |
Classes | 56 | |
▷ Abstract classes | 2 | 3.57% |
▷ Concrete classes | 54 | 96.43% |
▷ Final classes | 0 | 0.00% |
Methods | 1,333 | |
▷ Static methods | 218 | 16.35% |
▷ Public methods | 939 | 70.44% |
▷ Protected methods | 17 | 1.28% |
▷ Private methods | 377 | 28.28% |
Functions | 105 | |
▷ Named functions | 99 | 94.29% |
▷ Anonymous functions | 6 | 5.71% |
Constants | 150 | |
▷ Global constants | 98 | 65.33% |
▷ Class constants | 52 | 34.67% |
▷ Public constants | 52 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
3 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 3 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% |
freemius/assets/img/woo-customers-manager.png | 2.69KB | 1.38KB | ▼ 48.75% |