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.41MB] [CPU: ▼144.21ms] Passed 4 tests
Server-side resources used by Email download link
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.23 ▲0.39 | 33.23 ▲9.16 |
Dashboard /wp-admin | 3.52 ▲0.45 | 38.89 ▼5.30 |
Posts /wp-admin/edit.php | 3.57 ▲0.46 | 36.04 ▲0.34 |
Add New Post /wp-admin/post-new.php | 5.82 ▲0.38 | 77.82 ▼575.74 |
Media Library /wp-admin/upload.php | 3.40 ▲0.40 | 27.71 ▲3.86 |
Security /wp-admin/admin.php?page=ed-security | 3.42 | 25.46 |
History /wp-admin/admin.php?page=ed-downloadhistory | 3.41 | 28.03 |
Settings /wp-admin/admin.php?page=ed-settings | 3.42 | 28.55 |
Downloads /wp-admin/admin.php?page=ed-downloads | 3.42 | 27.94 |
Server storage [IO: ▲0.48MB] [DB: ▲0.01MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 71 new files
Database: 4 new tables, 2 new options
New tables |
---|
wp_ed_pluginconfig |
wp_ed_emaillist |
wp_ed_filter |
wp_ed_downloadform |
New WordPress options |
---|
widget_email-download-link |
email-download-link |
Browser metrics Passed 4 tests
A check of browser resources used by Email download link
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,865 ▲239 | 15.91 ▼0.11 | 9.96 ▲3.10 | 73.92 ▼1.65 |
Dashboard /wp-admin | 2,970 ▲75 | 5.97 ▼0.20 | 114.79 ▼21.44 | 197.05 ▲19.62 |
Posts /wp-admin/edit.php | 2,782 ▲39 | 3.11 ▼0.11 | 65.73 ▼0.19 | 138.63 ▲2.55 |
Add New Post /wp-admin/post-new.php | 2,118 ▼1,625 | 16.14 ▼3.17 | 397.66 ▼15.89 | 189.55 ▲28.44 |
Media Library /wp-admin/upload.php | 1,788 ▲33 | 5.56 ▲0.02 | 125.39 ▼18.08 | 194.22 ▲1.28 |
Security /wp-admin/admin.php?page=ed-security | 1,548 | 2.42 | 52.81 | 127.58 |
History /wp-admin/admin.php?page=ed-downloadhistory | 1,246 | 2.41 | 55.67 | 113.12 |
Settings /wp-admin/admin.php?page=ed-settings | 1,380 | 2.40 | 55.33 | 123.89 |
Downloads /wp-admin/admin.php?page=ed-downloads | 1,422 | 2.41 | 52.64 | 112.81 |
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 were found after uninstall: 1 option
- widget_email-download-link
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Almost there, just fix the following server-side errors
- > GET request to /wp-admin/admin.php?page=ed-security
- > Notice in wp-content/plugins/email-download-link/classes/ed-common.php+103
Undefined index: HTTP_CLIENT_IP
- > GET request to /wp-admin/admin.php?page=ed-security
- > Notice in wp-content/plugins/email-download-link/classes/ed-common.php+104
Undefined index: HTTP_X_FORWARDED_FOR
SRP 0% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following items
- 37× PHP files perform the task of outputting text when accessed with GET requests (only 10 are shown):
- > /wp-content/plugins/email-download-link/query/db_default.php
- > /wp-content/plugins/email-download-link/settings/settings-downloadmail.php
- > /wp-content/plugins/email-download-link/settings/settings-edit.php
- > /wp-content/plugins/email-download-link/subscribers/subscribers-downloads.php
- > /wp-content/plugins/email-download-link/downloads/downloads-add.php
- > /wp-content/plugins/email-download-link/classes/ed-sendemail.php
- > /wp-content/plugins/email-download-link/classes/ed-register.php
- > /wp-content/plugins/email-download-link/settings/settings-sample.php
- > /wp-content/plugins/email-download-link/job/ed-export.php
- > /wp-content/plugins/email-download-link/subscribers/subscribers-email.php
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/email-download-link/base/ed-defined.php:9
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need to be fixed:
- Screenshots: These screenshots lack descriptions #4, #5, #6, #7, #8, #9 in email-download-link/assets to your readme.txt
email-download-link/email-download-link.php 92% from 13 tests
Analyzing the main PHP file in "Email download link" version 3.5
You should first fix the following items:
- Description: Keep the plugin description shorter than 140 characters (currently 256 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin7,271 lines of code in 49 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 40 | 558 | 133 | 5,538 |
PO File | 3 | 610 | 906 | 1,536 |
JavaScript | 5 | 25 | 3 | 196 |
HTML | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
Average class complexity | 20.50 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 46.00 |
Average method complexity | 3.97 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 46.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 14 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 14 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 92 | |
▷ Static methods | 85 | 92.39% |
▷ Public methods | 92 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 15 | |
▷ Named functions | 15 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 16 | |
▷ Global constants | 16 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
4 compressed PNG files occupy 0.01MB
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/download.png | 0.62KB | 0.75KB | 0.00% |
sample/sample.png | 4.97KB | 2.85KB | ▼ 42.58% |
images/mail.png | 0.42KB | 0.36KB | ▼ 15.31% |
images/icon.png | 0.62KB | 0.75KB | 0.00% |