Benchmarks
Plugin footprint 83% 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.28MB] [CPU: ▼144.75ms] Passed 4 tests
Server-side resources used by Subscribe to Download - An opt in to download plugin
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.07 ▲0.23 | 33.43 ▲8.29 |
Dashboard /wp-admin | 3.42 ▲0.36 | 45.68 ▲6.36 |
Posts /wp-admin/edit.php | 3.47 ▲0.36 | 42.40 ▲8.85 |
Add New Post /wp-admin/post-new.php | 5.70 ▲0.26 | 71.64 ▼593.35 |
Media Library /wp-admin/upload.php | 3.28 ▲0.27 | 26.25 ▼0.31 |
Subscribers /wp-admin/admin.php?page=stdl-subscribers | 3.28 | 29.11 |
About /wp-admin/admin.php?page=stdl-about | 3.28 | 27.20 |
Help /wp-admin/admin.php?page=stdl-help | 3.28 | 25.34 |
Settings /wp-admin/admin.php?page=stdl-settings | 3.38 | 31.48 |
Server storage [IO: ▲10.48MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 94 new files
Database: 1 new table, no new options
New tables |
---|
wp_std_subscribers |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Subscribe to Download - An opt in to download plugin
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 4,092 ▲491 | 18.51 ▲2.95 | 9.73 ▲4.85 | 77.07 ▼5.67 |
Dashboard /wp-admin | 3,191 ▲296 | 8.41 ▲2.27 | 141.82 ▲10.73 | 171.16 ▼2.02 |
Posts /wp-admin/edit.php | 3,028 ▲288 | 4.90 ▲1.67 | 83.01 ▲18.78 | 138.57 ▼26.43 |
Add New Post /wp-admin/post-new.php | 2,547 ▼1,194 | 16.55 ▼2.44 | 379.01 ▼100.03 | 174.84 ▲6.96 |
Media Library /wp-admin/upload.php | 1,816 ▲64 | 5.88 ▲0.38 | 111.88 ▼49.10 | 192.76 ▼5.25 |
Subscribers /wp-admin/admin.php?page=stdl-subscribers | 1,449 | 4.83 | 73.99 | 162.70 |
About /wp-admin/admin.php?page=stdl-about | 1,512 | 4.82 | 70.84 | 177.01 |
Help /wp-admin/admin.php?page=stdl-help | 1,502 | 4.81 | 99.13 | 199.18 |
Settings /wp-admin/admin.php?page=stdl-settings | 2,695 | 4.81 | 80.29 | 220.08 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% 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
Smoke tests 50% 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
- 17× 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/cores/subscription-process.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-enqueue.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-hooks.php
- > /wp-content/plugins/subscribe-to-download-lite/inc/classes/class-stdl-activation.php
- > /wp-content/plugins/subscribe-to-download-lite/inc/classes/class-stdl-init.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-library.php
- > /wp-content/plugins/subscribe-to-download-lite/inc/classes/class-stdl-metabox.php
- 32× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > 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:5
- > 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 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 Notice
Undefined variable: sub_heading_show in wp-content/plugins/subscribe-to-download-lite/inc/views/frontend/form-templates/template-2.php on line 11
- > 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/stdl-about.php on line 4
- > 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/layout-settings.php:5
- > PHP Notice
Undefined variable: sub_heading_show in wp-content/plugins/subscribe-to-download-lite/inc/views/frontend/form-templates/template-3.php on line 11
- > 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 Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/subscribe-to-download-lite/inc/views/frontend/form-templates/template-1.php:31
- > 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 Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were 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: download, email, subscription plugin, subscribe, subscription...
subscribe-to-download-lite/subscribe-to-download-lite.php Passed 13 tests
The main PHP file in "Subscribe to Download - An opt in to download plugin" ver. 1.1.7 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 detected19,670 lines of code in 57 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
SVG | 3 | 0 | 12 | 8,777 |
CSS | 17 | 3,541 | 64 | 8,273 |
PHP | 35 | 355 | 1,006 | 2,402 |
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.45 |
Average class complexity | 15.54 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 134.00 |
Average method complexity | 2.99 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 77.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 13 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 13 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 95 | |
▷ Static methods | 9 | 9.47% |
▷ Public methods | 93 | 97.89% |
▷ Protected methods | 2 | 2.11% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 18 | |
▷ Global constants | 9 | 50.00% |
▷ Class constants | 9 | 50.00% |
▷ Public constants | 9 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
7 PNG files occupy 0.27MB with 0.14MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/flower-bg.png | 172.20KB | 49.90KB | ▼ 71.02% |
images/logo.png | 7.20KB | 3.40KB | ▼ 52.75% |
images/white-arrow.png | 4.86KB | 3.31KB | ▼ 31.93% |
images/icon3.png | 5.55KB | 2.54KB | ▼ 54.32% |
images/upgradeImg.png | 75.84KB | 31.22KB | ▼ 58.83% |