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
This plugin's installer ran successfully
Server metrics [RAM: ▼0.00MB] [CPU: ▼12.09ms] Passed 4 tests
An overview of server-side resources used by WooCommerce Basic Ordernumbers
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 39.69 ▼4.53 |
Dashboard /wp-admin | 3.31 ▼0.03 | 47.42 ▼14.99 |
Posts /wp-admin/edit.php | 3.36 ▲0.01 | 45.47 ▼6.95 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.01 | 87.13 ▼21.90 |
Media Library /wp-admin/upload.php | 3.23 ▲0.01 | 37.36 ▲2.79 |
Server storage [IO: ▲0.14MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 22 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
widget_recent-posts |
theysaidso_admin_options |
can_compress_scripts |
db_upgraded |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
WooCommerce Basic Ordernumbers: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,814 ▲28 | 14.68 ▲0.33 | 1.80 ▼0.21 | 40.33 ▼1.88 |
Dashboard /wp-admin | 2,192 ▲21 | 5.51 ▼0.07 | 84.16 ▼9.42 | 40.58 ▲0.31 |
Posts /wp-admin/edit.php | 2,100 ▼3 | 2.01 ▲0.04 | 35.63 ▼3.67 | 33.20 ▼2.71 |
Add New Post /wp-admin/post-new.php | 1,526 ▼0 | 23.06 ▼0.44 | 665.68 ▼5.53 | 60.61 ▼3.32 |
Media Library /wp-admin/upload.php | 1,400 ▼0 | 4.24 ▲0.05 | 97.04 ▼10.43 | 44.77 ▼1.03 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-comments
- widget_theysaidso_widget
- widget_recent-posts
- can_compress_scripts
- theysaidso_admin_options
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at the following
- 2× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/woocommerce-basic-ordernumbers/library/ordernumber_helper.php
- > /wp-content/plugins/woocommerce-basic-ordernumbers/ordernumber_helper_woocommerce.php
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
3 plugin tags: order numbers, orders, woocommerce
woocommerce-basic-ordernumbers/woocommerce-basic-ordernumbers.php 85% from 13 tests
The main PHP script in "WooCommerce Basic Ordernumbers" version 1.4.4 is automatically included on every request by WordPress
It is important to fix the following:
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
- Requires at least: Required version must be the same as the one declared in readme.txt ("4.0" instead of "2.2")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
No dangerous file extensions were detected1,453 lines of code in 11 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 153 | 296 | 1,022 |
JavaScript | 3 | 22 | 36 | 276 |
CSS | 3 | 21 | 13 | 154 |
HTML | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.25 |
Average class complexity | 36.33 |
▷ Minimum class complexity | 8.00 |
▷ Maximum class complexity | 68.00 |
Average method complexity | 2.18 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 19.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 90 | |
▷ Static methods | 4 | 4.44% |
▷ Public methods | 70 | 77.78% |
▷ Protected methods | 20 | 22.22% |
▷ Private methods | 0 | 0.00% |
Functions | 5 | |
▷ Named functions | 5 | 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
5 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/advlogo100.png | 10.50KB | 4.97KB | ▼ 52.62% |
library/images/loading.png | 17.69KB | 0.60KB | ▼ 96.58% |
library/images/icon-16-edit.png | 0.61KB | 0.52KB | ▼ 14.61% |
library/images/icon-16-delete.png | 0.54KB | 0.61KB | 0.00% |
library/images/icon-16-new.png | 0.42KB | 0.37KB | ▼ 12.33% |