Benchmarks
Plugin footprint 83% 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.01MB] [CPU: ▼5.57ms] Passed 4 tests
Analyzing server-side resources used by EDD Metrics
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 39.18 ▼6.87 |
Dashboard /wp-admin | 3.31 ▲0.01 | 45.01 ▼3.66 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 48.67 ▲0.83 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 82.00 ▼11.98 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 33.83 ▲0.23 |
Server storage [IO: ▲1.43MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 19 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-comments |
can_compress_scripts |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-posts |
Browser metrics Passed 4 tests
Checking browser requirements for EDD Metrics
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,807 ▲61 | 14.47 ▲0.17 | 1.83 ▼0.30 | 44.28 ▲5.82 |
Dashboard /wp-admin | 2,213 ▲22 | 5.83 ▲0.97 | 104.47 ▲4.27 | 36.55 ▼7.24 |
Posts /wp-admin/edit.php | 2,095 ▲3 | 1.97 ▼0.06 | 37.51 ▼5.23 | 36.67 ▼0.72 |
Add New Post /wp-admin/post-new.php | 1,542 ▲9 | 23.32 ▲0.06 | 673.09 ▲77.08 | 54.86 ▲5.80 |
Media Library /wp-admin/upload.php | 1,398 ▲10 | 4.28 ▲0.02 | 94.47 ▼5.34 | 41.86 ▼3.88 |
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
The following items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-comments
- db_upgraded
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-posts
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 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 following issues need your attention
- 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/edd-metrics/includes/view-metrics-details.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/edd-metrics/includes/view-dashboard.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Please fix the following attributes:
- Screenshots: Screenshot #2 (Revenue details) image required
edd-metrics/edd-metrics.php Passed 13 tests
"EDD Metrics" version 1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
94 characters long description:
All the stats, analytics, and metrics you need when selling stuff with Easy Digital Downloads.
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
There were no executable files found in this plugin2,268 lines of code in 16 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 5 | 272 | 48 | 955 |
PHP | 7 | 392 | 503 | 852 |
CSS | 3 | 93 | 4 | 428 |
Markdown | 1 | 18 | 0 | 33 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.21 |
Average class complexity | 16.00 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 48.00 |
Average method complexity | 2.25 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.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 | 48 | |
▷ Static methods | 37 | 77.08% |
▷ Public methods | 44 | 91.67% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 4 | 8.33% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
2 PNG files occupy 1.13MB with 0.70MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/screenshot-1.png | 1,143.54KB | 297.20KB | ▼ 74.01% |
assets/img/chart1.png | 11.86KB | 6.02KB | ▼ 49.29% |