Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.03MB] [CPU: ▼6.07ms] Passed 4 tests
An overview of server-side resources used by Custom Order Numbers for WooCommerce
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 42.80 ▼5.73 |
Dashboard /wp-admin | 3.33 ▲0.03 | 48.98 ▲0.89 |
Posts /wp-admin/edit.php | 3.38 ▲0.03 | 45.61 ▼3.53 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.03 | 87.95 ▼14.47 |
Media Library /wp-admin/upload.php | 3.25 ▲0.03 | 35.29 ▼0.55 |
Server storage [IO: ▲0.16MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 18 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
db_upgraded |
widget_recent-posts |
can_compress_scripts |
widget_theysaidso_widget |
theysaidso_admin_options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Custom Order Numbers for WooCommerce
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲54 | 13.71 ▼0.90 | 2.05 ▲0.00 | 46.89 ▲7.89 |
Dashboard /wp-admin | 2,203 ▲15 | 5.76 ▲0.87 | 98.07 ▼1.90 | 38.15 ▼6.20 |
Posts /wp-admin/edit.php | 2,092 ▼0 | 2.01 ▼0.04 | 34.69 ▼7.53 | 31.77 ▼5.10 |
Add New Post /wp-admin/post-new.php | 1,542 ▲9 | 18.14 ▼5.06 | 614.55 ▼1.20 | 55.91 ▲5.00 |
Media Library /wp-admin/upload.php | 1,385 ▼3 | 4.24 ▲0.08 | 95.60 ▼3.33 | 43.42 ▼1.97 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-posts
- widget_recent-comments
- db_upgraded
- theysaidso_admin_options
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 | 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
Everything seems fine, however this is by no means an exhaustive test
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side
Optimizations
Plugin configuration Passed 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: woocommerce, sequential order numbers, custom order numbers
custom-order-numbers-for-woocommerce/custom-order-numbers-for-woocommerce.php Passed 13 tests
The principal PHP file in "Custom Order Numbers for WooCommerce" v. 1.6.0 is loaded by WordPress automatically on each request
37 characters long description:
Custom order numbers for WooCommerce.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Success! There were no dangerous files found in this plugin2,538 lines of code in 16 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 10 | 246 | 740 | 2,004 |
JavaScript | 4 | 54 | 27 | 308 |
PO File | 1 | 79 | 91 | 224 |
Markdown | 1 | 0 | 0 | 2 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.45 |
Average class complexity | 34.12 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 165.00 |
Average method complexity | 4.53 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 34.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 1 | 12.50% |
Methods | 75 | |
▷ Static methods | 13 | 17.33% |
▷ Public methods | 75 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.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
PNG files should be compressed to save space and minimize bandwidth usage
No PNG files were detected