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.01MB] [CPU: ▼3.89ms] Passed 4 tests
Server-side resources used by Report For WooCommerce
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 41.72 ▲1.16 |
Dashboard /wp-admin | 3.32 ▲0.02 | 50.24 ▼3.55 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 54.11 ▼10.92 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 102.09 ▲2.63 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 35.66 ▼2.26 |
Product Report /wp-admin/admin.php?page=woo-product | 3.27 | 31.45 |
Dashboard /wp-admin/admin.php?page=woo-report | 3.27 | 33.24 |
Order Report /wp-admin/admin.php?page=woo-order | 3.27 | 33.86 |
Server storage [IO: ▲0.10MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 18 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_theysaidso_widget |
recovery_mode_email_last_sent |
theysaidso_admin_options |
widget_recent-posts |
can_compress_scripts |
db_upgraded |
widget_recent-comments |
Browser metrics Passed 4 tests
Report For WooCommerce: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,816 ▲55 | 14.22 ▼0.33 | 1.70 ▲0.10 | 37.49 ▼7.20 |
Dashboard /wp-admin | 2,222 ▲42 | 5.66 ▲0.02 | 91.45 ▼39.23 | 43.35 ▼13.84 |
Posts /wp-admin/edit.php | 2,130 ▲30 | 2.01 ▼0.02 | 39.12 ▼0.72 | 34.72 ▼5.09 |
Add New Post /wp-admin/post-new.php | 1,576 ▲28 | 18.63 ▼4.73 | 655.51 ▲10.35 | 52.76 ▼4.25 |
Media Library /wp-admin/upload.php | 1,430 ▲33 | 4.19 ▼0.10 | 94.85 ▼12.55 | 43.73 ▼0.74 |
Product Report /wp-admin/admin.php?page=woo-product | 801 | 1.48 | 11.91 | 27.71 |
Dashboard /wp-admin/admin.php?page=woo-report | 756 | 1.56 | 7.01 | 39.40 |
Order Report /wp-admin/admin.php?page=woo-order | 798 | 1.48 | 14.34 | 22.83 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- This plugin did not uninstall successfully, leaving 7 options in the database
- theysaidso_admin_options
- widget_recent-comments
- can_compress_scripts
- widget_recent-posts
- recovery_mode_email_last_sent
- db_upgraded
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
These errors were triggered by the plugin
- > GET request to /wp-admin/admin.php?page=woo-report
- > Error in wp-content/plugins/report-for-woocommerce/includes/woo-dashboard.php+93
Uncaught Error: Call to undefined function wc_price() in wp-content/plugins/report-for-woocommerce/includes/woo-dashboard.php:93
Stack trace:
#0 wp-content/plugins/report-for-woocommerce/includes/woo-dashboard.php(11): Woo_Dashboard->woo_report_sales_by_month()
#1 wp-content/plugins/report-for-woocommerce/includes/woo-report.php(51): Woo_Dashboard->woo_report()
#2 wp-includes/class-wp-hook.php(310): Woo_Report->add_menu()
#3 wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters()
#4 wp-includes/plugin.php(517): WP_Hook->do_action()
#5 wp-admin/admin.php(259): do_action()
#6 {main}
thrown
SRP Passed 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
Congratulations! This plugin passed the SRP test
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need your attention:
- Screenshots: These screenshots have no corresponding images in /assets: #1 (Monthly gross and net sales report), #2 (Order sales report), #3 (Product Sales report)
report-for-woocommerce/report-for-woocommerce.php Passed 13 tests
The main PHP file in "Report For WooCommerce" ver. 1.0 adds more information about the plugin and also serves as the entry point for this plugin
52 characters long description:
WooCommerce order and product analysis sales report.
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 detected600 lines of code in 11 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 75 | 17 | 508 |
CSS | 2 | 1 | 2 | 69 |
JavaScript | 3 | 4 | 7 | 23 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.28 |
Average class complexity | 8.17 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 14.00 |
Average method complexity | 2.65 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 12.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 6 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 26 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 26 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.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
All PNG images should be compressed to minimize bandwidth usage for end users
3 PNG files occupy 0.05MB with 0.03MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-2.png | 14.02KB | 6.92KB | ▼ 50.66% |
screenshot-3.png | 29.47KB | 9.93KB | ▼ 66.31% |
screenshot-1.png | 11.14KB | 5.11KB | ▼ 54.14% |