Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▲0.37MB] [CPU: ▼3.62ms] Passed 4 tests
Analyzing server-side resources used by WP Subscription Forms - The Ultimate WordPress Subscription Form Plugin
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.73 ▲0.27 | 38.53 ▼7.35 |
Dashboard /wp-admin | 3.76 ▲0.46 | 52.44 ▲0.71 |
Posts /wp-admin/edit.php | 3.81 ▲0.45 | 55.24 ▲7.37 |
Add New Post /wp-admin/post-new.php | 6.27 ▲0.38 | 82.01 ▼9.90 |
Media Library /wp-admin/upload.php | 3.59 ▲0.36 | 37.85 ▲2.05 |
Subscribers /wp-admin/admin.php?page=wpsf-subscribers | 3.61 | 41.64 |
Add Subscription Form /wp-admin/admin.php?page=add-subscription-form | 3.64 | 38.62 |
Subscription Forms /wp-admin/admin.php?page=wp-subscription-forms | 3.61 | 41.44 |
About /wp-admin/admin.php?page=wpsf-about | 3.60 | 38.03 |
Help /wp-admin/admin.php?page=wpsf-help | 3.60 | 36.47 |
Server storage [IO: ▲10.98MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 116 new files
Database: 2 new tables, 8 new options
New tables |
---|
wp_wpsf_forms |
wp_wpsf_subscribers |
New WordPress options |
---|
widget_recent-comments |
widget_theysaidso_widget |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-posts |
db_upgraded |
widget_wpsf_widget |
wpsf_plugin_install_date |
Browser metrics Passed 4 tests
Checking browser requirements for WP Subscription Forms - The Ultimate WordPress Subscription Form Plugin
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,111 ▲360 | 15.09 ▲0.74 | 6.36 ▲4.76 | 37.01 ▼5.25 |
Dashboard /wp-admin | 2,392 ▲215 | 6.45 ▲0.79 | 120.40 ▲12.42 | 45.06 ▼5.62 |
Posts /wp-admin/edit.php | 2,329 ▲232 | 3.69 ▲1.69 | 55.85 ▲17.87 | 36.16 ▼1.79 |
Add New Post /wp-admin/post-new.php | 1,582 ▲56 | 21.23 ▼1.81 | 678.34 ▼6.76 | 36.42 ▼31.34 |
Media Library /wp-admin/upload.php | 1,463 ▲60 | 4.43 ▲0.26 | 80.28 ▼26.52 | 43.04 ▼3.22 |
Subscribers /wp-admin/admin.php?page=wpsf-subscribers | 1,135 | 3.35 | 45.78 | 70.77 |
Add Subscription Form /wp-admin/admin.php?page=add-subscription-form | 1,749 | 3.52 | 46.46 | 88.47 |
Subscription Forms /wp-admin/admin.php?page=wp-subscription-forms | 1,108 | 3.40 | 46.29 | 49.50 |
About /wp-admin/admin.php?page=wpsf-about | 1,151 | 3.31 | 43.76 | 53.32 |
Help /wp-admin/admin.php?page=wpsf-help | 1,135 | 3.37 | 43.02 | 68.66 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
- Zombie tables were found after uninstall: 2 tables
- wp_wpsf_forms
- wp_wpsf_subscribers
- Zombie WordPress options detected upon uninstall: 8 options
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-posts
- theysaidso_admin_options
- widget_wpsf_widget
- widget_recent-comments
- wpsf_plugin_install_date
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following
- 19× PHP files perform the task of outputting text when accessed with GET requests (only 10 are shown):
- > /wp-content/plugins/wp-subscription-forms/inc/views/backend/forms/subscription-form-add.php
- > /wp-content/plugins/wp-subscription-forms/inc/classes/class-wpsf-ajax-admin.php
- > /wp-content/plugins/wp-subscription-forms/inc/classes/class-wpsf-review.php
- > /wp-content/plugins/wp-subscription-forms/inc/classes/class-wpsf-hooks.php
- > /wp-content/plugins/wp-subscription-forms/inc/classes/class-wpsf-activation.php
- > /wp-content/plugins/wp-subscription-forms/inc/classes/class-wpsf-init.php
- > /wp-content/plugins/wp-subscription-forms/inc/views/backend/forms/subscription-forms-list.php
- > /wp-content/plugins/wp-subscription-forms/inc/classes/class-wpsf-mobile-detect.php
- > /wp-content/plugins/wp-subscription-forms/inc/views/frontend/form-preview.php
- > /wp-content/plugins/wp-subscription-forms/inc/views/backend/subscribers/list-subscribers.php
- 56× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Notice
Undefined variable: sub_heading_show in wp-content/plugins/wp-subscription-forms/inc/views/frontend/form-templates/template-8.php on line 13
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/wp-subscription-forms/inc/views/frontend/form-templates/template-5.php:33
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/wp-subscription-forms/inc/views/backend/upgrade-to-pro.php:6
- > PHP Notice
Undefined variable: name_show in wp-content/plugins/wp-subscription-forms/inc/views/frontend/form-templates/template-6.php on line 26
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/wp-subscription-forms/inc/views/frontend/form-templates/template-2.php:31
- > PHP Fatal error
Uncaught Error: Call to undefined function maybe_unserialize() in wp-content/plugins/wp-subscription-forms/inc/views/frontend/wpsf-shortcode.php:2
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/wp-subscription-forms/inc/classes/class-wpsf-widget.php:4
- > PHP Notice
Undefined variable: name_show in wp-content/plugins/wp-subscription-forms/inc/views/frontend/form-templates/template-4.php on line 21
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/wp-subscription-forms/inc/views/backend/form-sections/form-settings.php:5
- > PHP Notice
Undefined variable: name_show in wp-content/plugins/wp-subscription-forms/inc/views/frontend/form-templates/template-9.php on line 22
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need to be fixed:
- Screenshots: These screenshots lack descriptions #10, #11, #12, #13, #14, #15, #16 in wp-subscription-forms/assets to your readme.txt
wp-subscription-forms/wp-subscription-forms.php Passed 13 tests
The main PHP script in "WP Subscription Forms - The Ultimate WordPress Subscription Form Plugin" version 1.2.1 is automatically included on every request by WordPress
89 characters long description:
A simple plugin to create subscription forms and use it to collect subscribers from site.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Success! There were no dangerous files found in this plugin22,892 lines of code in 65 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 18 | 3,975 | 73 | 10,852 |
SVG | 3 | 0 | 12 | 8,777 |
PHP | 42 | 432 | 1,083 | 2,829 |
JavaScript | 2 | 55 | 137 | 434 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.44 |
Average class complexity | 18.54 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 134.00 |
Average method complexity | 3.28 |
▷ 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 | 101 | |
▷ Static methods | 10 | 9.90% |
▷ Public methods | 99 | 98.02% |
▷ Protected methods | 2 | 1.98% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 1 | 100.00% |
Constants | 20 | |
▷ Global constants | 11 | 55.00% |
▷ Class constants | 9 | 45.00% |
▷ Public constants | 9 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
15 PNG files occupy 0.59MB with 0.31MB 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/template-8-icon.png | 7.06KB | 3.42KB | ▼ 51.54% |
images/assistance.png | 18.81KB | 8.15KB | ▼ 56.65% |
images/upgradeToPro-40per.png | 131.10KB | 52.19KB | ▼ 60.19% |
images/upgradeToPro1.png | 79.64KB | 35.92KB | ▼ 54.90% |