Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼1.25ms] Passed 4 tests
This is a short check of server-side resources used by Extended Order Details for WooCommerce
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.61 ▲0.15 | 41.21 ▼5.50 |
Dashboard /wp-admin | 3.32 ▲0.02 | 49.15 ▼5.49 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 54.02 ▲4.79 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 102.41 ▲12.27 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 37.70 ▲1.20 |
Server storage [IO: ▲5.14MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 38 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
db_upgraded |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-comments |
widget_recent-posts |
Browser metrics Passed 4 tests
Checking browser requirements for Extended Order Details for WooCommerce
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲3 | 14.75 ▲0.45 | 1.83 ▼0.46 | 44.48 ▼0.66 |
Dashboard /wp-admin | 2,192 ▲12 | 5.59 ▼0.06 | 84.29 ▼13.98 | 39.52 ▼5.47 |
Posts /wp-admin/edit.php | 2,103 ▼0 | 2.00 ▼0.02 | 40.83 ▲5.80 | 35.63 ▲0.10 |
Add New Post /wp-admin/post-new.php | 1,545 ▲13 | 23.44 ▲0.20 | 630.84 ▼24.76 | 55.46 ▼0.57 |
Media Library /wp-admin/upload.php | 1,394 ▼6 | 4.27 ▲0.05 | 97.35 ▼2.82 | 44.38 ▲0.70 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-posts
- can_compress_scripts
- widget_recent-comments
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
- 2× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_head() in wp-content/plugins/wc-order-details/assets/wcod-template.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/wc-order-details/inc/wcod_settings.php:1
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
4 plugin tags: export orders, order items, order export, extended order details
wc-order-details/index.php 92% from 13 tests
Analyzing the main PHP file in "Extended Order Details for WooCommerce" version 2.0.0
You should first fix the following items:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("wc-order-details.php" instead of "index.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
No dangerous file extensions were detected11,273 lines of code in 19 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
SVG | 3 | 0 | 0 | 9,546 |
PHP | 4 | 307 | 68 | 1,149 |
PO File | 4 | 92 | 100 | 260 |
CSS | 4 | 25 | 11 | 208 |
JavaScript | 4 | 32 | 13 | 110 |
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.38 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 15 | |
▷ Named functions | 15 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/350x400.png | 1.30KB | 1.25KB | ▼ 3.92% |