Benchmarks
Plugin footprint Passed 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 successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.12MB] [CPU: ▼290.69ms] Passed 4 tests
A check of server-side resources used by Add Customer for WooCommerce
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.72 ▲0.20 | 56.60 ▲4.72 |
Dashboard /wp-admin | 3.56 ▲0.15 | 35.76 ▲0.70 |
Posts /wp-admin/edit.php | 3.78 ▲0.15 | 41.11 ▼0.95 |
Add New Post /wp-admin/post-new.php | 7.03 ▲0.06 | 97.19 ▼1,159.81 |
Media Library /wp-admin/upload.php | 3.44 ▲0.14 | 25.77 ▼2.68 |
Add Customer Settings /wp-admin/options-general.php?page=wac-options | 3.44 | 24.10 |
Server storage [IO: ▲0.10MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 20 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
Add Customer for WooCommerce: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,800 ▲45 | 15.88 ▼0.18 | 5.95 ▼0.14 | 2.68 ▼0.52 |
Dashboard /wp-admin | 2,897 ▲42 | 6.16 ▲0.02 | 116.83 ▼19.36 | 154.77 ▼5.11 |
Posts /wp-admin/edit.php | 2,693 ▼1 | 3.23 ▼0.01 | 63.79 ▲1.64 | 141.67 ▲3.68 |
Add New Post /wp-admin/post-new.php | 1,664 ▲3 | 16.19 ▼0.68 | 419.25 ▲22.21 | 157.07 ▲1.77 |
Media Library /wp-admin/upload.php | 1,697 ▼1 | 5.45 ▼0.07 | 159.61 ▲10.84 | 189.95 ▲0.96 |
Add Customer Settings /wp-admin/options-general.php?page=wac-options | 1,134 | 2.43 | 54.41 | 115.00 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The plugin uninstalled completely, with no zombie files or tables
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP Passed 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 SRP test was a success
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need your attention:
- Donate link: Invalid URI found ("")
- License uri: Invalid URI found ("")
add-customer-for-woocommerce/add-customer-for-woocommerce.php 92% from 13 tests
This is the main PHP file of "Add Customer for WooCommerce" version 1.4.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please take the time to fix the following:
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
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
There were no executable files found in this plugin1,115 lines of code in 15 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 9 | 101 | 330 | 685 |
PO File | 3 | 125 | 145 | 376 |
CSS | 1 | 8 | 12 | 35 |
JavaScript | 2 | 7 | 13 | 19 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.34 |
Average class complexity | 23.25 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 53.00 |
Average method complexity | 3.55 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 35 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 35 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 3 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 3 | 100.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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
PNG images were not found in this plugin