Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▼0.17MB] [CPU: ▼10.84ms] Passed 4 tests
Server-side resources used by Email to Download
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.56 ▲0.10 | 51.99 ▲7.66 |
Dashboard /wp-admin | 3.38 ▲0.07 | 53.02 ▼12.10 |
Posts /wp-admin/edit.php | 3.49 ▲0.13 | 61.17 ▲1.38 |
Add New Post /wp-admin/post-new.php | 4.96 ▼0.93 | 62.74 ▼36.78 |
Media Library /wp-admin/upload.php | 3.30 ▲0.07 | 41.76 ▲4.13 |
All Downloads /wp-admin/edit.php?post_type=ed_download | 3.35 | 44.57 |
Help /wp-admin/edit.php?post_type=ed_download&page=etd-help | 3.25 | 34.51 |
Add New /wp-admin/post-new.php?post_type=ed_download | 4.92 | 58.93 |
Subscribers /wp-admin/edit.php?post_type=ed_download&page=email-to-download-subscribers | 3.33 | 36.63 |
Settings /wp-admin/edit.php?post_type=ed_download&page=email-to-download-settings | 3.34 | 38.96 |
Server storage [IO: ▲0.12MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 35 new files
Database: 1 new table, 6 new options
New tables |
---|
wp_etd_manager |
New WordPress options |
---|
widget_recent-comments |
widget_theysaidso_widget |
db_upgraded |
can_compress_scripts |
widget_recent-posts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Email to Download
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,026 ▲226 | 13.71 ▼0.76 | 10.63 ▲8.54 | 44.57 ▲1.15 |
Dashboard /wp-admin | 2,277 ▲71 | 5.90 ▲1.04 | 99.28 ▼10.72 | 45.00 ▲1.96 |
Posts /wp-admin/edit.php | 2,171 ▲82 | 2.12 ▲0.11 | 38.30 ▲1.61 | 34.75 ▲3.04 |
Add New Post /wp-admin/post-new.php | 6,474 ▲4,960 | 20.58 ▲3.02 | 1,018.08 ▲359.85 | 76.82 ▲23.39 |
Media Library /wp-admin/upload.php | 1,470 ▲82 | 4.31 ▲0.08 | 99.32 ▼13.94 | 42.49 ▼3.79 |
All Downloads /wp-admin/edit.php?post_type=ed_download | 1,132 | 2.04 | 36.74 | 33.23 |
Help /wp-admin/edit.php?post_type=ed_download&page=etd-help | 929 | 1.83 | 26.71 | 29.00 |
Add New /wp-admin/post-new.php?post_type=ed_download | 1,552 | 16.72 | 1,196.72 | 34.96 |
Subscribers /wp-admin/edit.php?post_type=ed_download&page=email-to-download-subscribers | 859 | 1.90 | 30.87 | 27.49 |
Settings /wp-admin/edit.php?post_type=ed_download&page=email-to-download-settings | 990 | 2.02 | 26.64 | 27.99 |
Uninstaller [IO: ✅] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 1 table in the database
- wp_etd_manager
- This plugin did not uninstall successfully, leaving 6 options in the database
- db_upgraded
- theysaidso_admin_options
- widget_recent-posts
- widget_recent-comments
- can_compress_scripts
- widget_theysaidso_widget
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Almost there, just fix the following server-side errors
- > GET request to /wp-admin/edit.php?post_type=ed_download&page=etd-help
- > Notice in wp-content/plugins/email-to-download/app/controllers/help_controller.php+37
Undefined variable: data
- > GET request to /wp-admin/edit.php?post_type=ed_download&page=etd-help
- > Warning in wp-content/plugins/email-to-download/app/lib/dg-builder/builder_controller.php+36
extract() expects parameter 1 to be array, null given
- 2 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=ed_download
- > User deprecated in wp-includes/functions.php+5828
Hook block_categories is deprecated since version 5.8.0! Use block_categories_all instead.
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
- 2× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/email-to-download/app/lib/dg-builder/builder_form.php
- > /wp-content/plugins/email-to-download/app/lib/dg-builder/builder_options.php
- 22× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/email-to-download/app/views/shortcodes/popup.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/email-to-download/app/views/shortcodes/normal.php:17
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/email-to-download/app/views/shortcodes/slide.php:2
- > PHP Notice
Undefined variable: content in wp-content/plugins/email-to-download/app/views/shortcodes/normal.php on line 5
- > PHP Notice
Trying to get property 'post_content' of non-object in wp-content/plugins/email-to-download/app/views/shortcodes/normal.php on line 7
- > PHP Fatal error
Uncaught Error: Class 'Builder_Controller' not found in wp-content/plugins/email-to-download/app/controllers/shortcodes_controller.php:9
- > PHP Fatal error
Uncaught Error: Class 'Builder_Controller' not found in wp-content/plugins/email-to-download/app/controllers/settings_controller.php:5
- > PHP Notice
Undefined variable: tagline in wp-content/plugins/email-to-download/app/views/shortcodes/normal.php on line 14
- > PHP Notice
Undefined variable: post in wp-content/plugins/email-to-download/app/views/shortcodes/normal.php on line 3
- > PHP Notice
Undefined variable: post in wp-content/plugins/email-to-download/app/views/shortcodes/normal.php on line 7
- > 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 Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
5 plugin tags: email, download, email to download, get email before download, email before download
email-to-download/email-to-download.php Passed 13 tests
The main file in "Email to Download" v. 3.1.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
56 characters long description:
A plugin that helps you to collect email before download
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
There were no executable files found in this plugin1,892 lines of code in 28 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 19 | 353 | 88 | 1,606 |
CSS | 5 | 26 | 16 | 147 |
JavaScript | 4 | 60 | 17 | 139 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.31 |
Average class complexity | 11.91 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 40.00 |
Average method complexity | 2.29 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 10.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 11 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 11 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 93 | |
▷ Static methods | 17 | 18.28% |
▷ Public methods | 81 | 87.10% |
▷ Protected methods | 2 | 2.15% |
▷ Private methods | 10 | 10.75% |
Functions | 4 | |
▷ Named functions | 4 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 17 | |
▷ Global constants | 8 | 47.06% |
▷ Class constants | 9 | 52.94% |
▷ Public constants | 9 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
4 compressed PNG files occupy 0.00MB
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
app/assets/colorbox/images/controls.png | 1.23KB | 1.28KB | 0.00% |
app/assets/colorbox/images/loading_background.png | 0.13KB | 0.15KB | 0.00% |
app/assets/colorbox/images/overlay.png | 0.11KB | 0.15KB | 0.00% |
app/assets/colorbox/images/border.png | 0.07KB | 0.10KB | 0.00% |