Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully
Server metrics [RAM: ▲0.00MB] [CPU: ▼0.55ms] Passed 4 tests
This is a short check of server-side resources used by Customer Manager for Woocommerce
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 43.00 ▲5.44 |
Dashboard /wp-admin | 3.31 ▲0.00 | 50.29 ▼2.48 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 49.57 ▲0.44 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 95.96 ▼4.52 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 39.42 ▲4.37 |
Server storage [IO: ▲1.58MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 60 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
db_upgraded |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-posts |
widget_recent-comments |
Browser metrics Passed 4 tests
Customer Manager for Woocommerce: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲54 | 14.48 ▲0.48 | 1.88 ▲0.10 | 44.39 ▲4.92 |
Dashboard /wp-admin | 2,200 ▲18 | 5.85 ▼0.04 | 111.73 ▲0.83 | 44.46 ▼3.30 |
Posts /wp-admin/edit.php | 2,089 ▼3 | 2.01 ▲0.01 | 39.97 ▲2.96 | 35.12 ▲0.96 |
Add New Post /wp-admin/post-new.php | 1,514 ▼0 | 17.45 ▼0.10 | 636.39 ▼43.89 | 50.82 ▼2.33 |
Media Library /wp-admin/upload.php | 1,388 ▼0 | 4.21 ▲0.02 | 95.50 ▼14.20 | 42.75 ▼4.71 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-comments
- widget_recent-posts
- db_upgraded
- can_compress_scripts
- widget_theysaidso_widget
- theysaidso_admin_options
Smoke tests 75% 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 50% from 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
Almost there! Just fix the following items
- 3× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function did_action() in wp-content/plugins/customer-manager-for-woocommerce/libs/tgm/class-tgm-plugin-activation.php:2109
- > PHP Fatal error
Uncaught Error: Call to undefined function did_action() in wp-content/plugins/customer-manager-for-woocommerce/libs/tgm/class-tgm-plugin-activation.php:2109
- > PHP Fatal error
Uncaught Error: Call to undefined function did_action() in wp-content/plugins/customer-manager-for-woocommerce/libs/tgm/class-tgm-plugin-activation.php:2109
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected
Optimizations
Plugin configuration 86% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need to be fixed:
- Tags: Please reduce the number of tags, currently 12 tag instead of maximum 10
customer-manager-for-woocommerce/mainfilter.php 77% from 13 tests
The principal PHP file in "Customer Manager for Woocommerce" v. 2.3 is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
- Requires at least: Required version must match the one declared in readme.txt ("4.0" instead of "2.6.0")
- Main file name: Name the main plugin file the same as the plugin slug ("customer-manager-for-woocommerce.php" instead of "mainfilter.php")
- Text Domain: The text domain name must use dashes instead of underscores, and it must be lowercase
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin13,368 lines of code in 51 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 6 | 636 | 474 | 3,776 |
PHP | 8 | 1,181 | 1,652 | 2,566 |
CSS | 7 | 5 | 56 | 2,505 |
Sass | 15 | 153 | 41 | 2,190 |
LESS | 14 | 34 | 44 | 1,646 |
SVG | 1 | 0 | 0 | 685 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.52 |
Average class complexity | 48.14 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 206.00 |
Average method complexity | 4.27 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 34.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 101 | |
▷ Static methods | 5 | 4.95% |
▷ Public methods | 78 | 77.23% |
▷ Protected methods | 23 | 22.77% |
▷ Private methods | 0 | 0.00% |
Functions | 10 | |
▷ Named functions | 10 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 3 | 100.00% |
▷ Public constants | 3 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/aa2.png | 1.34KB | 1.26KB | ▼ 5.77% |