Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.01MB] [CPU: ▼3.40ms] Passed 4 tests
Analyzing server-side resources used by Order Reports for WooCommerce
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 38.96 ▼8.13 |
Dashboard /wp-admin | 3.32 ▲0.01 | 46.96 ▲0.24 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 42.36 ▼3.46 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 85.76 ▲0.72 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 35.97 ▼2.23 |
Server storage [IO: ▲1.49MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 74 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
widget_recent-comments |
widget_theysaidso_widget |
can_compress_scripts |
db_upgraded |
theysaidso_admin_options |
Browser metrics Passed 4 tests
An overview of browser requirements for Order Reports for WooCommerce
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,805 ▲59 | 13.14 ▼1.27 | 1.73 ▼0.30 | 47.80 ▼0.71 |
Dashboard /wp-admin | 2,211 ▲20 | 5.81 ▲0.78 | 97.38 ▼0.83 | 39.98 ▼7.71 |
Posts /wp-admin/edit.php | 2,072 ▼17 | 2.05 ▲0.05 | 34.45 ▼0.43 | 33.79 ▲1.45 |
Add New Post /wp-admin/post-new.php | 1,539 ▲5 | 23.11 ▼0.02 | 651.52 ▼36.36 | 68.88 ▲11.29 |
Media Library /wp-admin/upload.php | 1,396 ▲8 | 4.24 ▲0.01 | 96.68 ▼11.46 | 41.32 ▼5.07 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-comments
- theysaidso_admin_options
- widget_recent-posts
- db_upgraded
- can_compress_scripts
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, this is by no means an exhaustive test
SRP 50% from 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
Please fix the following
- 2× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/order-reports-for-woocommerce/admin/views/dashboard.php:4
- > PHP Fatal error
Uncaught Error: Class 'orfw_app' not found in wp-content/plugins/order-reports-for-woocommerce/classes/orders.class.php:12
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected
Optimizations
Plugin configuration 86% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
3 plugin tags: order reports, export orders, filter orders
order-reports-for-woocommerce/order-reports.php 69% from 13 tests
This is the main PHP file of "Order Reports for WooCommerce" version 1.0.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
You should first fix the following items:
- Requires at least: Required version must be the same as the one declared in readme.txt ("4.0" instead of "3.0.0")
- Domain Path: The domain path points to a folder that does not exist ("/language")
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
- Main file name: The principal plugin file should be the same as the plugin slug ("order-reports-for-woocommerce.php" instead of "order-reports.php")
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 plugin12,839 lines of code in 46 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 7 | 1,160 | 1,498 | 9,496 |
SVG | 20 | 0 | 15 | 1,303 |
CSS | 4 | 210 | 27 | 1,146 |
PHP | 14 | 204 | 477 | 890 |
Markdown | 1 | 1 | 0 | 4 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.28 |
Average class complexity | 9.91 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 55.00 |
Average method complexity | 2.85 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 29.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 11 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 11 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 53 | |
▷ Static methods | 4 | 7.55% |
▷ Public methods | 48 | 90.57% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 9.43% |
Functions | 6 | |
▷ Named functions | 5 | 83.33% |
▷ Anonymous functions | 1 | 16.67% |
Constants | 7 | |
▷ Global constants | 7 | 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
2 compressed PNG files occupy 0.01MB
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/assets/lib/jqueryui/images/ui-icons_555555_256x240.png | 3.68KB | 4.18KB | 0.00% |
admin/assets/lib/jqueryui/images/ui-icons_444444_256x240.png | 3.68KB | 4.18KB | 0.00% |