Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▲4.97MB] [CPU: ▲20.97ms] Passed 4 tests
Analyzing server-side resources used by Product Customer List for WooCommerce
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 8.87 ▲5.40 | 66.93 ▲22.22 |
Dashboard /wp-admin | 8.89 ▲5.58 | 75.77 ▲22.02 |
Posts /wp-admin/edit.php | 8.89 ▲5.53 | 81.13 ▲32.09 |
Add New Post /wp-admin/post-new.php | 9.25 ▲3.36 | 114.23 ▲7.55 |
Media Library /wp-admin/upload.php | 8.89 ▲5.65 | 69.04 ▲35.19 |
Freemius Debug [v.2.5.10] /wp-admin/admin.php?page=freemius | 8.89 | 64.12 |
Server storage [IO: ▲21.84MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 361 new files
Database: no new tables, 9 new options
New WordPress options |
---|
fs_accounts |
fs_active_plugins |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-posts |
fs_debug_mode |
db_upgraded |
widget_recent-comments |
can_compress_scripts |
Browser metrics Passed 4 tests
Checking browser requirements for Product Customer List for WooCommerce
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,809 ▲48 | 14.28 ▲0.13 | 1.99 ▲0.37 | 32.30 ▼9.41 |
Dashboard /wp-admin | 2,215 ▲43 | 5.63 ▼0.14 | 92.02 ▼10.86 | 45.76 ▲2.09 |
Posts /wp-admin/edit.php | 2,121 ▲21 | 2.15 ▲0.19 | 36.91 ▲0.81 | 39.66 ▲2.42 |
Add New Post /wp-admin/post-new.php | 1,534 ▲8 | 21.89 ▼1.12 | 670.98 ▼5.97 | 58.68 ▲5.49 |
Media Library /wp-admin/upload.php | 1,420 ▲20 | 4.24 ▲0.13 | 102.73 ▼11.65 | 50.30 ▲1.71 |
Freemius Debug [v.2.5.10] /wp-admin/admin.php?page=freemius | 1,072 | 1.68 | 31.69 | 30.84 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- This plugin did not uninstall without warnings or errors
- > Notice in wp-content/plugins/wc-product-customer-list/freemius/includes/class-freemius.php+8486
Undefined property: stdClass::$plugins
- This plugin did not uninstall successfully, leaving 9 options in the database
- fs_debug_mode
- theysaidso_admin_options
- widget_theysaidso_widget
- can_compress_scripts
- fs_accounts
- db_upgraded
- widget_recent-posts
- fs_active_plugins
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected
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
- 3× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wc-product-customer-list/views/legacy/table-customer-list-2-6.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/wc-product-customer-list/views/legacy/shortcodes-2-6.php:53
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wc-product-customer-list/functions.php:35
- > PHP Fatal error
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 93% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that need to be fixed:
- Tags: Please reduce the number of tags, currently 16 tag instead of maximum 10
wc-product-customer-list/wc-product-customer-list.php 92% from 13 tests
The entry point to "Product Customer List for WooCommerce" version 3.1.6 is a PHP file that has certain tags in its header comment area
Please take the time to fix the following:
- Requires at least: The required version number did not match the one declared in readme.txt ("5.0" instead of "5.0.0")
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
Everything looks great! No dangerous files found in this plugin153,084 lines of code in 294 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 85 | 25,076 | 34,961 | 109,021 |
PHP | 135 | 8,438 | 18,626 | 38,306 |
CSS | 69 | 131 | 204 | 4,549 |
PO File | 2 | 335 | 404 | 733 |
Sass | 3 | 97 | 3 | 475 |
PHP code 50% from 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
It is recommended to fix the following
- Cyclomatic complexity of classes should be reduced to less than 1000 (currently 3,073)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.62 |
Average class complexity | 83.85 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 3,073.00 |
Average method complexity | 4.57 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 94.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 59 | |
▷ Abstract classes | 2 | 3.39% |
▷ Concrete classes | 57 | 96.61% |
▷ Final classes | 0 | 0.00% |
Methods | 1,377 | |
▷ Static methods | 283 | 20.55% |
▷ Public methods | 987 | 71.68% |
▷ Protected methods | 17 | 1.23% |
▷ Private methods | 373 | 27.09% |
Functions | 121 | |
▷ Named functions | 110 | 90.91% |
▷ Anonymous functions | 11 | 9.09% |
Constants | 148 | |
▷ Global constants | 101 | 68.24% |
▷ Class constants | 47 | 31.76% |
▷ Public constants | 47 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
7 PNG files occupy 0.02MB with 0.00MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
freemius/assets/img/theme-icon.png | 10.97KB | 5.78KB | ▼ 47.37% |
assets/vendor/datatables/datatables-1.10.24/images/sort_both.png | 0.20KB | 0.29KB | 0.00% |
assets/vendor/datatables/datatables-1.10.24/images/sort_asc.png | 0.16KB | 0.25KB | 0.00% |
freemius/assets/img/plugin-icon.png | 9.16KB | 5.26KB | ▼ 42.58% |
assets/vendor/datatables/datatables-1.10.24/images/sort_desc_disabled.png | 0.14KB | 0.25KB | 0.00% |