Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.01MB] [CPU: ▼5.09ms] Passed 4 tests
A check of server-side resources used by Sales Metrics for Easy Digital Downloads
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 37.72 ▼10.58 |
Dashboard /wp-admin | 3.31 ▲0.01 | 46.13 ▼5.02 |
Posts /wp-admin/edit.php | 3.36 ▲0.01 | 44.66 ▲1.12 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.01 | 90.55 ▼5.89 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 34.22 ▲2.55 |
Server storage [IO: ▲2.57MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 190 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-comments |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-posts |
db_upgraded |
Browser metrics Passed 4 tests
Sales Metrics for Easy Digital Downloads: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,807 ▲61 | 14.46 ▲0.03 | 1.81 ▼0.51 | 42.85 ▼1.25 |
Dashboard /wp-admin | 2,213 ▲25 | 5.85 ▲0.95 | 98.82 ▼20.32 | 39.55 ▼6.09 |
Posts /wp-admin/edit.php | 2,092 ▲3 | 2.01 ▼0.03 | 36.44 ▲3.39 | 33.05 ▼0.85 |
Add New Post /wp-admin/post-new.php | 1,530 ▼3 | 23.53 ▲0.37 | 581.90 ▼52.95 | 53.57 ▼1.49 |
Media Library /wp-admin/upload.php | 1,398 ▲13 | 4.28 ▲0.07 | 96.66 ▼9.16 | 44.13 ▼0.96 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- theysaidso_admin_options
- widget_theysaidso_widget
- can_compress_scripts
- db_upgraded
- widget_recent-posts
- widget_recent-comments
Smoke tests Passed 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 Passed 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The SRP test was a success
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
6 plugin tags: sales report, easy digital downloads, edd report, edd, sales matrics...
sales-metrics-for-easy-digital-downloads/edd-sales-metrics.php 85% from 13 tests
The entry point to "Sales Metrics for Easy Digital Downloads" version 0.0.1 is a PHP file that has certain tags in its header comment area
The following require your attention:
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
- Main file name: Name the main plugin file the same as the plugin slug ("sales-metrics-for-easy-digital-downloads.php" instead of "edd-sales-metrics.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected23,523 lines of code in 160 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 131 | 1,585 | 4,282 | 19,729 |
CSS | 21 | 336 | 319 | 2,463 |
PHP | 8 | 502 | 430 | 1,331 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.36 |
Average class complexity | 22.00 |
▷ Minimum class complexity | 5.00 |
▷ Maximum class complexity | 46.00 |
Average method complexity | 5.20 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 44.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 20 | |
▷ Static methods | 7 | 35.00% |
▷ Public methods | 17 | 85.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 3 | 15.00% |
Functions | 15 | |
▷ Named functions | 14 | 93.33% |
▷ Anonymous functions | 1 | 6.67% |
Constants | 3 | |
▷ Global constants | 3 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
19 compressed PNG files occupy 0.83MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
includes/libraries/jqplot/css/cupertino/images/ui-bg_highlight-hard_70_000000_1x100.png | 0.12KB | 0.15KB | 0.00% |
includes/libraries/jqplot/css/cupertino/images/ui-bg_glass_100_e4f1fb_1x400.png | 0.12KB | 0.15KB | 0.00% |
includes/libraries/jqplot/css/cupertino/images/ui-icons_2e83ff_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |
includes/libraries/jqplot/css/cupertino/images/ui-icons_72a7cf_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |
assets/screenshot-2.png | 288.56KB | 102.99KB | ▼ 64.31% |