Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▲0.08MB] [CPU: ▼2.72ms] Passed 4 tests
This is a short check of server-side resources used by EDD Enhanced Sales Reports
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.55 ▲0.08 | 40.61 ▼0.19 |
Dashboard /wp-admin | 3.39 ▲0.09 | 63.36 ▲11.66 |
Posts /wp-admin/edit.php | 3.50 ▲0.15 | 52.30 ▼14.50 |
Add New Post /wp-admin/post-new.php | 5.97 ▲0.08 | 97.06 ▼2.03 |
Media Library /wp-admin/upload.php | 3.31 ▲0.08 | 40.09 ▲5.86 |
Server storage [IO: ▲22.78MB] [DB: ▲0.00MB] 67% from 3 tests
A short overview of filesystem and database impact
These are issues you should consider
- Illegal file modification found: 1 file (4.00KB) outside of "wp-content/plugins/edd-enhanced-sales-reports/" and "wp-content/uploads/"
- (new file) wp-content/mgd_mirror/mgd_maximinodotpy-gitdown-test-repository
Filesystem: 753 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
db_upgraded |
widget_theysaidso_widget |
widget_recent-comments |
widget_recent-posts |
can_compress_scripts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for EDD Enhanced Sales Reports
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,817 ▲56 | 13.23 ▼1.06 | 1.57 ▼0.16 | 42.13 ▼1.74 |
Dashboard /wp-admin | 2,223 ▲20 | 4.88 ▼0.01 | 110.34 ▲4.10 | 40.50 ▲0.25 |
Posts /wp-admin/edit.php | 2,102 ▼1 | 2.00 ▼0.05 | 39.18 ▼2.10 | 36.31 ▲1.77 |
Add New Post /wp-admin/post-new.php | 1,547 ▲21 | 23.19 ▲5.67 | 642.85 ▼25.56 | 61.18 ▲5.06 |
Media Library /wp-admin/upload.php | 1,402 ▲2 | 4.20 ▼0.05 | 104.88 ▲2.47 | 46.05 ▲1.09 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- widget_theysaidso_widget
- theysaidso_admin_options
- can_compress_scripts
- db_upgraded
- widget_recent-comments
- widget_recent-posts
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test
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
The SRP test was a success
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 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
These attributes need your attention:
- Tags: There are too many tags (23 tag instead of maximum 10)
edd-enhanced-sales-reports/edd-enhanced-sales-reports.php 92% from 13 tests
The main PHP script in "EDD Enhanced Sales Reports" version 1.1.7 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 551 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected102,454 lines of code in 731 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 351 | 6,700 | 11,086 | 63,265 |
HTML | 258 | 12 | 0 | 28,838 |
PHP | 31 | 941 | 942 | 4,875 |
TypeScript | 61 | 576 | 2,039 | 2,860 |
CSS | 15 | 250 | 61 | 2,397 |
JSON | 4 | 0 | 0 | 137 |
Markdown | 6 | 13 | 0 | 45 |
YAML | 2 | 4 | 4 | 19 |
SVG | 3 | 0 | 0 | 18 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.37 |
Average class complexity | 66.20 |
▷ Minimum class complexity | 5.00 |
▷ Maximum class complexity | 203.00 |
Average method complexity | 6.05 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 47.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 62 | |
▷ Static methods | 16 | 25.81% |
▷ Public methods | 54 | 87.10% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 8 | 12.90% |
Functions | 21 | |
▷ Named functions | 19 | 90.48% |
▷ Anonymous functions | 2 | 9.52% |
Constants | 18 | |
▷ Global constants | 18 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
13 PNG files occupy 0.82MB with 0.38MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/vendor/chartjs/dist/docs/assets/img/init_flowchart.ee5be600.png | 24.57KB | 5.09KB | ▼ 79.29% |
assets/vendor/chartjs/dist/docs/assets/img/render_flowchart.41a98316.png | 99.96KB | 22.18KB | ▼ 77.81% |
assets/images/promotions/plugin-edd-landing-pages.png | 261.98KB | 286.63KB | 0.00% |
assets/images/promotions/plugin-edd-advanced-shortcodes.png | 137.51KB | 137.55KB | 0.00% |
assets/vendor/chartjs/dist/docs/assets/img/scale_flowchart.fa1ab63e.png | 57.18KB | 13.13KB | ▼ 77.03% |