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
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.11MB] [CPU: ▼7.64ms] Passed 4 tests
Server-side resources used by Woo Custom and Sequential Order Number
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.59 ▲0.12 | 41.15 ▼9.09 |
Dashboard /wp-admin | 3.42 ▲0.11 | 51.16 ▲0.44 |
Posts /wp-admin/edit.php | 3.54 ▲0.17 | 48.13 ▼3.39 |
Add New Post /wp-admin/post-new.php | 6.00 ▲0.11 | 86.38 ▼18.52 |
Media Library /wp-admin/upload.php | 3.34 ▲0.11 | 38.34 ▲1.10 |
Server storage [IO: ▲0.49MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 25 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
theysaidso_admin_options |
widget_recent-comments |
db_upgraded |
widget_recent-posts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Checking browser requirements for Woo Custom and Sequential Order Number
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲28 | 14.20 ▼0.38 | 1.72 ▲0.02 | 45.25 ▲1.58 |
Dashboard /wp-admin | 2,195 ▲18 | 5.62 ▲0.03 | 93.41 ▲6.41 | 44.45 ▼1.29 |
Posts /wp-admin/edit.php | 2,100 ▼3 | 1.99 ▼0.02 | 35.85 ▼0.61 | 33.24 ▲1.36 |
Add New Post /wp-admin/post-new.php | 1,547 ▲16 | 23.36 ▲0.03 | 708.83 ▲20.04 | 51.55 ▼5.39 |
Media Library /wp-admin/upload.php | 1,397 ▼0 | 4.19 ▼0.05 | 99.90 ▼2.04 | 42.74 ▼1.52 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- Zombie WordPress options were found after uninstall: 6 options
- db_upgraded
- widget_theysaidso_widget
- widget_recent-posts
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following
- 4× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/woo-custom-and-sequential-order-number/includes/classes/class-wcson-init.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/woo-custom-and-sequential-order-number/includes/classes/class-wcson-order-number.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/woo-custom-and-sequential-order-number/woo-custom-and-sequential-order-number.php:17
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/woo-custom-and-sequential-order-number/includes/views/wcson-order-number.php:4
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
8 plugin tags: order number, sequential order, sequential number, order, woocommerce order...
woo-custom-and-sequential-order-number/woo-custom-and-sequential-order-number.php Passed 13 tests
This is the main PHP file of "Woo Custom and Sequential Order Number" version 2.6.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
74 characters long description:
Generates Custom and Sequential Order Numbers for WooCommerce Store Orders
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin8,165 lines of code in 15 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 6 | 1,658 | 1,346 | 6,652 |
PHP | 5 | 242 | 44 | 925 |
CSS | 3 | 16 | 18 | 415 |
HTML | 1 | 17 | 4 | 173 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
Average class complexity | 41.50 |
▷ Minimum class complexity | 27.00 |
▷ Maximum class complexity | 56.00 |
Average method complexity | 2.84 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 10.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 44 | |
▷ Static methods | 41 | 93.18% |
▷ Public methods | 30 | 68.18% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 14 | 31.82% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 14 | |
▷ Global constants | 14 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
6 PNG files occupy 0.08MB with 0.04MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
documentation/assets/images/vjinfotech.png | 21.98KB | 6.04KB | ▼ 72.51% |
documentation/assets/images/Wcson-Setup-and-Configuration.png | 36.81KB | 12.19KB | ▼ 66.89% |
documentation/assets/css/img/info.png | 0.67KB | 0.70KB | 0.00% |
documentation/assets/images/wcson-license.png | 12.40KB | 4.46KB | ▼ 64.05% |
documentation/assets/css/img/warning.png | 0.59KB | 0.50KB | ▼ 14.99% |