Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.30MB] [CPU: ▲1.24ms] Passed 4 tests
Server-side resources used by Subscribe to Download - Download after Email Subscription Form WordPress Plugin
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.70 ▲0.23 | 35.21 ▼6.30 |
Dashboard /wp-admin | 3.68 ▲0.38 | 57.53 ▲5.70 |
Posts /wp-admin/edit.php | 3.73 ▲0.38 | 53.38 ▲7.00 |
Add New Post /wp-admin/post-new.php | 6.20 ▲0.31 | 96.92 ▼1.04 |
Media Library /wp-admin/upload.php | 3.52 ▲0.29 | 37.27 ▲6.60 |
All Forms /wp-admin/admin.php?page=stdl-settings | 3.52 | 37.91 |
About /wp-admin/admin.php?page=stdl-about | 3.53 | 35.14 |
Upgrade to PRO /wp-admin/admin.php?page=stdl-upgrade-to-pro | 3.53 | 38.17 |
Subscribers /wp-admin/admin.php?page=stdl-subscribers | 3.53 | 35.00 |
Help /wp-admin/admin.php?page=stdl-help | 3.53 | 35.99 |
Server storage [IO: ▲11.62MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 108 new files
Database: 1 new table, 7 new options
New tables |
---|
wp_std_subscribers |
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-posts |
stdl_plugin_install_date |
can_compress_scripts |
db_upgraded |
theysaidso_admin_options |
widget_recent-comments |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Subscribe to Download - Download after Email Subscription Form WordPress Plugin
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,109 ▲347 | 15.46 ▲1.12 | 6.03 ▲4.42 | 37.00 ▼6.28 |
Dashboard /wp-admin | 2,392 ▲215 | 6.44 ▲0.81 | 118.59 ▲13.39 | 41.96 ▼6.86 |
Posts /wp-admin/edit.php | 2,335 ▲235 | 3.58 ▲1.61 | 56.05 ▲19.54 | 35.78 ▲0.64 |
Add New Post /wp-admin/post-new.php | 1,582 ▲47 | 23.53 ▲0.86 | 639.93 ▼5.22 | 36.74 ▼19.17 |
Media Library /wp-admin/upload.php | 1,466 ▲63 | 4.41 ▲0.21 | 80.23 ▼17.76 | 41.26 ▼1.61 |
All Forms /wp-admin/admin.php?page=stdl-settings | 1,106 | 3.26 | 40.75 | 86.95 |
About /wp-admin/admin.php?page=stdl-about | 1,143 | 3.36 | 40.61 | 70.69 |
Upgrade to PRO /wp-admin/admin.php?page=stdl-upgrade-to-pro | 1,267 | 3.34 | 40.67 | 80.94 |
Subscribers /wp-admin/admin.php?page=stdl-subscribers | 1,106 | 3.32 | 40.28 | 61.19 |
Help /wp-admin/admin.php?page=stdl-help | 1,126 | 3.29 | 41.65 | 54.00 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
- The uninstall procedure failed, leaving 1 table in the database
- wp_std_subscribers
- The uninstall procedure has failed, leaving 7 options in the database
- widget_recent-comments
- db_upgraded
- can_compress_scripts
- widget_recent-posts
- widget_theysaidso_widget
- stdl_plugin_install_date
- theysaidso_admin_options
Smoke tests 25% from 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 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The following issues need your attention
- 19× PHP files perform the action of outputting non-empty strings when accessed directly (only 10 are shown):
- > /wp-content/plugins/subscribe-to-download-lite/inc/classes/class-stdl-library.php
- > /wp-content/plugins/subscribe-to-download-lite/inc/classes/class-stdl-downloader.php
- > /wp-content/plugins/subscribe-to-download-lite/inc/classes/class-stdl-mobile-detect.php
- > /wp-content/plugins/subscribe-to-download-lite/inc/classes/class-stdl-ajax-admin.php
- > /wp-content/plugins/subscribe-to-download-lite/inc/views/backend/stdl-settings.php
- > /wp-content/plugins/subscribe-to-download-lite/inc/classes/class-stdl-init.php
- > /wp-content/plugins/subscribe-to-download-lite/inc/views/frontend/form-preview.php
- > /wp-content/plugins/subscribe-to-download-lite/inc/views/backend/stdl-all-forms.php
- > /wp-content/plugins/subscribe-to-download-lite/inc/views/backend/subscribers/list-subscribers.php
- > /wp-content/plugins/subscribe-to-download-lite/inc/classes/class-stdl-activation.php
- 35× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Warning
Use of undefined constant STDL_URL - assumed 'STDL_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/subscribe-to-download-lite/inc/views/backend/upgrade.php on line 2
- > PHP Notice
Undefined variable: sub_heading_show in wp-content/plugins/subscribe-to-download-lite/inc/views/frontend/form-templates/template-1.php on line 11
- > PHP Notice
Undefined variable: heading_show in wp-content/plugins/subscribe-to-download-lite/inc/views/frontend/form-templates/template-3.php on line 3
- > PHP Notice
Undefined variable: heading_show in wp-content/plugins/subscribe-to-download-lite/inc/views/frontend/form-templates/template-2.php on line 3
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/subscribe-to-download-lite/inc/views/frontend/form-templates/template-2.php:31
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/subscribe-to-download-lite/inc/views/backend/form-sections/form-settings.php:6
- > PHP Notice
Undefined variable: sub_heading_show in wp-content/plugins/subscribe-to-download-lite/inc/views/frontend/form-templates/template-4.php on line 11
- > PHP Fatal error
Uncaught Error: Call to undefined function site_url() in wp-content/plugins/subscribe-to-download-lite/inc/views/frontend/download-button.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/subscribe-to-download-lite/inc/views/frontend/stdl-shortcode.php:2
- > PHP Notice
Undefined variable: heading_show in wp-content/plugins/subscribe-to-download-lite/inc/views/frontend/form-templates/template-1.php on line 3
- > PHP Warning
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
These are user-side errors you should fix
- > GET request to /wp-admin/admin.php?page=stdl-settings
- > Network (severe)
wp-content/plugins/subscribe-to-download-lite//images/pro.svg - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
6 plugin tags: subscribe, email, download, subscription, form...
subscribe-to-download-lite/subscribe-to-download-lite.php Passed 13 tests
The main PHP file in "Subscribe to Download - Download after Email Subscription Form WordPress Plugin" ver. 1.2.5 adds more information about the plugin and also serves as the entry point for this plugin
98 characters long description:
A plugin to collect email using an email subscribing form by providing the free downloadable items
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
No dangerous file extensions were detected20,386 lines of code in 63 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
SVG | 5 | 0 | 12 | 8,798 |
CSS | 17 | 3,552 | 77 | 8,665 |
PHP | 39 | 398 | 1,019 | 2,705 |
JavaScript | 2 | 60 | 88 | 218 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.44 |
Average class complexity | 15.14 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 134.00 |
Average method complexity | 2.96 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 77.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 | 101 | |
▷ Static methods | 9 | 8.91% |
▷ Public methods | 99 | 98.02% |
▷ Protected methods | 2 | 1.98% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 19 | |
▷ Global constants | 10 | 52.63% |
▷ Class constants | 9 | 47.37% |
▷ Public constants | 9 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
15 PNG files occupy 1.38MB with 0.73MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/cloud-bg.png | 4.44KB | 2.57KB | ▼ 42.13% |
images/assistance.png | 19.12KB | 8.23KB | ▼ 56.95% |
images/white-arrow.png | 4.86KB | 3.31KB | ▼ 31.93% |
images/flower-bg.png | 172.20KB | 49.90KB | ▼ 71.02% |
images/upgrade-to-pro-banner.png | 85.85KB | 32.07KB | ▼ 62.65% |