Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▲1.50MB] [CPU: ▲10.14ms] Passed 4 tests
Server-side resources used by Sales Report for WooCommerce
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.99 ▲1.52 | 51.39 ▲11.22 |
Dashboard /wp-admin | 4.82 ▲1.47 | 72.94 ▲10.30 |
Posts /wp-admin/edit.php | 4.93 ▲1.57 | 70.83 ▲19.80 |
Add New Post /wp-admin/post-new.php | 7.40 ▲1.51 | 101.92 ▲3.68 |
Media Library /wp-admin/upload.php | 4.74 ▲1.51 | 60.87 ▲15.37 |
Server storage [IO: ▲2.05MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 94 new files
Database: no new tables, 8 new options
New WordPress options |
---|
theysaidso_admin_options |
can_compress_scripts |
db_upgraded |
berocket_admin_notices_rate_stars |
widget_theysaidso_widget |
widget_recent-posts |
br-sales_report-options |
widget_recent-comments |
Browser metrics Passed 4 tests
A check of browser resources used by Sales Report for WooCommerce
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,806 ▲20 | 14.67 ▲0.15 | 1.69 ▼0.21 | 38.48 ▼6.84 |
Dashboard /wp-admin | 2,200 ▲20 | 5.57 ▼0.09 | 84.27 ▼2.22 | 70.41 ▲30.89 |
Posts /wp-admin/edit.php | 2,123 ▲20 | 1.96 ▼0.03 | 39.46 ▼1.73 | 36.74 ▲2.88 |
Add New Post /wp-admin/post-new.php | 1,542 ▲16 | 23.75 ▲0.64 | 742.79 ▲81.03 | 52.66 ▼10.19 |
Media Library /wp-admin/upload.php | 1,417 ▲20 | 4.22 ▲0.09 | 102.84 ▼6.05 | 72.14 ▲27.93 |
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
You still need to fix the following
- Zombie WordPress options were found after uninstall: 8 options
- berocket_key_activated_plugins
- berocket_admin_notices_rate_stars
- widget_theysaidso_widget
- widget_recent-comments
- db_upgraded
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-posts
Smoke tests 50% from 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 0% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please take a closer look at the following
- 3× PHP files output text when accessed directly:
- > /wp-content/plugins/sales-report-for-woocommerce/templates/email.php
- > /wp-content/plugins/sales-report-for-woocommerce/templates/email_head.php
- > /wp-content/plugins/sales-report-for-woocommerce/templates/email_foot.php
- 38× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Notice
Undefined variable: html_data in wp-content/plugins/sales-report-for-woocommerce/templates/email.php on line 5
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/sales-report-for-woocommerce/berocket/libraries/wpml_compatibility.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/sales-report-for-woocommerce/berocket/libraries/popup.php:7
- > PHP Fatal error
Uncaught Error: Class 'BeRocket_plugin_variations' not found in wp-content/plugins/sales-report-for-woocommerce/includes/paid.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/sales-report-for-woocommerce/main.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/sales-report-for-woocommerce/templates/send_empty.php:2
- > PHP Notice
Undefined variable: date_string in wp-content/plugins/sales-report-for-woocommerce/templates/email_head.php on line 6
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/sales-report-for-woocommerce/berocket/libraries/tippy.php:7
- > PHP Warning
in_array() expects parameter 2 to be array, null given in wp-content/plugins/sales-report-for-woocommerce/templates/email.php on line 9
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/sales-report-for-woocommerce/templates/email.php on line 9
- > PHP Notice
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 90% from 29 tests
readme.txt 88% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need to be fixed:
- Screenshots: These screenshots have no corresponding images in /assets: #1 (General settings), #2 (Weekly report)
- Tags: You are using too many tags: 36 tag instead of maximum 10
sales-report-for-woocommerce/woocommerce-sales-report.php 92% from 13 tests
"Sales Report for WooCommerce" version 3.5.7.7's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please take the time to fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("sales-report-for-woocommerce.php" instead of "woocommerce-sales-report.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Success! There were no dangerous files found in this plugin21,555 lines of code in 65 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 40 | 436 | 1,322 | 9,479 |
CSS | 14 | 2,516 | 79 | 9,470 |
JavaScript | 7 | 49 | 62 | 2,068 |
PO File | 3 | 221 | 243 | 509 |
XML | 1 | 0 | 0 | 29 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.53 |
Average class complexity | 52.67 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 240.00 |
Average method complexity | 4.70 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 98.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 27 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 27 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 377 | |
▷ Static methods | 148 | 39.26% |
▷ Public methods | 377 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 32 | |
▷ Named functions | 32 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 8 | |
▷ Global constants | 8 | 100.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
7 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 |
images/ad_white_on_orange.png | 20.67KB | 15.57KB | ▼ 24.67% |
berocket/assets/images/submenu-icon-a.png | 0.54KB | 0.48KB | ▼ 10.20% |
berocket/assets/css/mail.png | 2.59KB | 1.92KB | ▼ 26.02% |
berocket/libraries/templates/default.png | 3.87KB | 2.63KB | ▼ 31.94% |
berocket/libraries/addons/default.png | 3.87KB | 2.63KB | ▼ 31.94% |