Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.02MB] [CPU: ▼287.37ms] Passed 4 tests
This is a short check of server-side resources used by Sales Report Email for WooCommerce
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.56 ▲0.05 | 51.50 ▲1.86 |
Dashboard /wp-admin | 3.45 ▲0.04 | 33.56 ▲0.86 |
Posts /wp-admin/edit.php | 3.68 ▲0.04 | 38.13 ▲2.12 |
Add New Post /wp-admin/post-new.php | 6.92 ▼0.05 | 91.54 ▼1,152.32 |
Media Library /wp-admin/upload.php | 3.33 ▲0.04 | 24.89 ▲0.13 |
Server storage [IO: ▲1.07MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 55 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
This is an overview of browser requirements for Sales Report Email for WooCommerce
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,778 ▲24 | 15.66 ▲0.13 | 5.83 ▼0.78 | 2.33 ▼0.48 |
Dashboard /wp-admin | 2,910 ▲56 | 6.14 ▼0.04 | 117.14 ▼16.96 | 155.88 ▼2.59 |
Posts /wp-admin/edit.php | 2,709 ▲15 | 3.24 ▼0.00 | 63.64 ▼0.00 | 138.93 ▼2.62 |
Add New Post /wp-admin/post-new.php | 1,761 ▲9 | 21.62 ▲0.62 | 435.55 ▼16.35 | 156.94 ▲1.73 |
Media Library /wp-admin/upload.php | 1,713 ▲15 | 5.52 ▲0.01 | 144.60 ▲12.88 | 186.89 ▼1.03 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Uninstaller ran successfully
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 0% 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 take a closer look at the following
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/woo-advanced-sales-report-email/classes/views/asre_reports_tab.php
- 5× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Notice
Undefined variable: tab in wp-content/plugins/woo-advanced-sales-report-email/classes/views/asre_reports_tab.php on line 110
- > PHP Notice
Undefined variable: tab in wp-content/plugins/woo-advanced-sales-report-email/classes/views/asre_reports_tab.php on line 1
- > PHP Notice
Undefined variable: tab in wp-content/plugins/woo-advanced-sales-report-email/classes/views/asre_reports_tab.php on line 3
- > PHP Notice
Undefined variable: tab in wp-content/plugins/woo-advanced-sales-report-email/classes/views/asre_reports_tab.php on line 257
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_kses_post() in wp-content/plugins/woo-advanced-sales-report-email/classes/views/asre_addons_tab.php:62
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
Optimizations
Plugin configuration 86% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Please fix the following attributes:
- Screenshots: No descriptions were found for these screenshots #1, #2, #3 in woo-advanced-sales-report-email/assets to your readme.txt
woo-advanced-sales-report-email/woocommerce-advanced-sales-report-email.php 77% from 13 tests
"Sales Report Email for WooCommerce" version 2.7.5's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
- Description: The description should be shorter than 140 characters (currently 173 characters long)
- Main file name: The principal plugin file should be the same as the plugin slug ("woo-advanced-sales-report-email.php" instead of "woocommerce-advanced-sales-report-email.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 plugin12,085 lines of code in 32 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 3 | 853 | 5,532 | 6,441 |
PHP | 18 | 545 | 806 | 3,753 |
PO File | 5 | 445 | 480 | 1,455 |
JavaScript | 3 | 42 | 22 | 380 |
SVG | 3 | 1 | 3 | 56 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 22.88 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 247.00 |
Average method complexity | 4.18 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 81.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 1 | |
Traits | 0 | |
Classes | 15 | |
▷ Abstract classes | 1 | 6.67% |
▷ Concrete classes | 14 | 93.33% |
▷ Final classes | 0 | 0.00% |
Methods | 111 | |
▷ Static methods | 13 | 11.71% |
▷ Public methods | 105 | 94.59% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 6 | 5.41% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 2 | 100.00% |
▷ Public constants | 2 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
13 PNG files occupy 0.19MB with 0.15MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/cbr-icon.png | 29.03KB | 4.35KB | ▼ 85.02% |
assets/images/alp-icon.png | 26.99KB | 3.52KB | ▼ 86.96% |
assets/images/sre-logo.png | 6.12KB | 3.26KB | ▼ 46.76% |
classes/preview/image/arrow-red.png | 14.76KB | 0.45KB | ▼ 96.96% |
assets/images/cev-icon.png | 18.66KB | 2.33KB | ▼ 87.50% |