Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully
Server metrics [RAM: ▲0.14MB] [CPU: ▼1.58ms] Passed 4 tests
This is a short check of server-side resources used by EDD Download Info
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.63 ▲0.17 | 47.96 ▲5.77 |
Dashboard /wp-admin | 3.45 ▲0.11 | 59.55 ▼6.75 |
Posts /wp-admin/edit.php | 3.57 ▲0.21 | 59.18 ▲13.12 |
Add New Post /wp-admin/post-new.php | 6.04 ▲0.15 | 106.95 ▼7.24 |
Media Library /wp-admin/upload.php | 3.38 ▲0.15 | 38.81 ▲1.92 |
Server storage [IO: ▲0.09MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 21 new files
Database: no new tables, 8 new options
New WordPress options |
---|
db_upgraded |
widget_recent-comments |
widget_recent-posts |
widget_theysaidso_widget |
can_compress_scripts |
widget_edd-download-info |
widget_edd-download-info-features |
theysaidso_admin_options |
Browser metrics Passed 4 tests
An overview of browser requirements for EDD Download Info
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲43 | 14.31 ▼0.04 | 1.72 ▼0.16 | 43.86 ▲2.46 |
Dashboard /wp-admin | 2,195 ▲18 | 5.53 ▼0.08 | 85.76 ▼8.53 | 40.33 ▼5.59 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 1.96 ▼0.07 | 38.87 ▲1.60 | 34.97 ▲2.17 |
Add New Post /wp-admin/post-new.php | 1,527 ▲123 | 23.59 ▲5.66 | 595.44 ▼50.12 | 42.40 ▼3.14 |
Media Library /wp-admin/upload.php | 1,403 ▲3 | 4.18 ▼0.05 | 96.33 ▼11.38 | 46.03 ▲0.86 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- The uninstall procedure has failed, leaving 8 options in the database
- widget_recent-posts
- widget_recent-comments
- widget_theysaidso_widget
- db_upgraded
- can_compress_scripts
- widget_edd-download-info
- widget_edd-download-info-features
- theysaidso_admin_options
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected
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
Everything seems fine, however this is by no means an exhaustive test
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
6 plugin tags: easy, edd, digital, add-on, download...
edd-download-info/edd-download-info.php Passed 13 tests
This is the main PHP file of "EDD Download Info" version 1.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
64 characters long description:
Adds download info metabox and widget to Easy Digital Downloads.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Good job! No executable or dangerous file extensions detected1,090 lines of code in 14 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PO File | 5 | 245 | 270 | 595 |
PHP | 8 | 242 | 310 | 490 |
JavaScript | 1 | 1 | 2 | 5 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 15.33 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 37.00 |
Average method complexity | 4.31 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 37.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 1 | 33.33% |
Methods | 13 | |
▷ Static methods | 1 | 7.69% |
▷ Public methods | 13 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 13 | |
▷ Named functions | 13 | 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 Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
There are no PNG files in this plugin