Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully
Server metrics [RAM: ▲0.77MB] [CPU: ▲1.27ms] 75% from 4 tests
Server-side resources used by Subscribe Forms - Beautiful Email Forms, Embedded Newsletter Forms & MailChimp Form
Please have a look at the following items
- CPU: The total CPU usage must kept under 500.00ms (currently 2,011.09ms on /wp-admin/edit.php?post_type=sfba_subscribe_form&page=sfba-recommended-plugins)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.15 ▲0.69 | 39.48 ▼3.87 |
Dashboard /wp-admin | 4.10 ▲0.79 | 52.26 ▼0.41 |
Posts /wp-admin/edit.php | 4.21 ▲0.85 | 67.57 ▲23.64 |
Add New Post /wp-admin/post-new.php | 6.70 ▲0.82 | 94.16 ▲5.00 |
Media Library /wp-admin/upload.php | 4.02 ▲0.79 | 40.27 ▲4.35 |
Upgrade To Pro /wp-admin/edit.php?post_type=sfba_subscribe_form&page=upgrade_to_pro | 4.07 | 51.27 |
Add New /wp-admin/post-new.php?post_type=sfba_subscribe_form | 4.10 | 63.63 |
Recommended Plugins /wp-admin/edit.php?post_type=sfba_subscribe_form&page=sfba-recommended-plugins | 4.45 | 2,011.09 |
All Subscribe Forms /wp-admin/edit.php?post_type=sfba_subscribe_form | 4.10 | 54.81 |
Subscribers List /wp-admin/edit.php?post_type=sfba_subscribe_form&page=sfba_subscribers_list | 4.05 | 49.23 |
Integrations /wp-admin/edit.php?post_type=sfba_subscribe_form&page=sfba_subscription_settings | 4.14 | 57.26 |
Server storage [IO: ▲1.94MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 96 new files
Database: 2 new tables, 10 new options
New tables |
---|
wp_sfba_subscribers_lists |
wp_sfba_subscription_lists |
New WordPress options |
---|
widget_recent-posts |
db_upgraded |
widget_theysaidso_widget |
subscribe-forms_show_review_box_after |
widget_recent-comments |
theysaidso_admin_options |
subscribe-forms_show_affiliate_box_after |
sfba_db_version |
can_compress_scripts |
subscribe_forms_redirect_status |
Browser metrics Passed 4 tests
A check of browser resources used by Subscribe Forms - Beautiful Email Forms, Embedded Newsletter Forms & MailChimp Form
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,996 ▲261 | 14.29 ▼0.08 | 6.68 ▲4.88 | 42.02 ▼7.88 |
Dashboard /wp-admin | 2,284 ▲96 | 5.40 ▼0.50 | 104.55 ▼10.21 | 39.39 ▼5.58 |
Posts /wp-admin/edit.php | 2,169 ▲80 | 2.48 ▲0.49 | 42.70 ▲7.19 | 33.63 ▼1.90 |
Add New Post /wp-admin/post-new.php | 1,570 ▲37 | 23.48 ▲0.54 | 671.81 ▲15.98 | 48.11 ▼3.94 |
Media Library /wp-admin/upload.php | 1,457 ▲72 | 4.67 ▲0.51 | 102.84 ▲0.33 | 43.21 ▼3.13 |
Upgrade To Pro /wp-admin/edit.php?post_type=sfba_subscribe_form&page=upgrade_to_pro | 1,799 | 3.78 | 71.86 | 132.32 |
Add New /wp-admin/post-new.php?post_type=sfba_subscribe_form | 2,078 | 4.29 | 70.28 | 98.68 |
Recommended Plugins /wp-admin/edit.php?post_type=sfba_subscribe_form&page=sfba-recommended-plugins | 1,437 | 3.67 | 50.54 | 76.50 |
All Subscribe Forms /wp-admin/edit.php?post_type=sfba_subscribe_form | 1,441 | 3.88 | 49.13 | 87.27 |
Subscribers List /wp-admin/edit.php?post_type=sfba_subscribe_form&page=sfba_subscribers_list | 1,141 | 3.58 | 44.08 | 80.19 |
Integrations /wp-admin/edit.php?post_type=sfba_subscribe_form&page=sfba_subscription_settings | 1,911 | 3.71 | 47.25 | 98.30 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- This plugin does not fully uninstall, leaving 2 tables in the database
- wp_sfba_subscription_lists
- wp_sfba_subscribers_lists
- Zombie WordPress options detected upon uninstall: 10 options
- can_compress_scripts
- theysaidso_admin_options
- subscribe-forms_show_affiliate_box_after
- sfba_db_version
- widget_recent-comments
- widget_theysaidso_widget
- db_upgraded
- subscribe-forms_show_review_box_after
- widget_recent-posts
- subscribe_forms_redirect_status
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
Please take a closer look at the following
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/wp-subscribe-form/includes/upgrade-to-pro.php
- 13× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function get_post_meta() in wp-content/plugins/wp-subscribe-form/forms/subscribeform1-settings.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/wp-subscribe-form/index.php:16
- > PHP Fatal error
Uncaught Error: Call to undefined function get_post_meta() in wp-content/plugins/wp-subscribe-form/forms/subscribeform1-settings.php:2
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/wp-subscribe-form/includes/recommended-plugins.php on line 3
- > PHP Fatal error
Uncaught Error: Call to undefined function get_post_meta() in wp-content/plugins/wp-subscribe-form/forms/subscribeform1-settings.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function admin_url() in wp-content/plugins/wp-subscribe-form/help.php:160
- > PHP Warning
require_once(ABSPATHwp-admin/includes/plugin-install.php): failed to open stream: No such file or directory in wp-content/plugins/wp-subscribe-form/includes/recommended-plugins.php on line 3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-subscribe-form/class-affiliate.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr_e() in wp-content/plugins/wp-subscribe-form/includes/deactivate-form.php:119
- > PHP Fatal error
Uncaught Error: Call to undefined function get_post_meta() in wp-content/plugins/wp-subscribe-form/forms/subscribeform1-settings.php:2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side
Optimizations
Plugin configuration 86% from 29 tests
readme.txt 94% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Please fix the following attributes:
- Tags: Too many tags (13 tag instead of maximum 10); only the first 5 tags are used in your directory listing
wp-subscribe-form/index.php 77% from 13 tests
The principal PHP file in "Subscribe Forms - Beautiful Email Forms, Embedded Newsletter Forms & MailChimp Form" v. 1.6 is loaded by WordPress automatically on each request
Please take the time to fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("wp-subscribe-form.php" instead of "index.php")
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
- Git Repository: Please remove the Git repository from this plugin
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
There were no executable files found in this plugin12,269 lines of code in 56 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 31 | 1,145 | 2,600 | 11,071 |
JavaScript | 8 | 79 | 74 | 552 |
SVG | 9 | 3 | 3 | 540 |
YAML | 3 | 1 | 0 | 68 |
CSS | 4 | 6 | 2 | 33 |
JSON | 1 | 0 | 0 | 5 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.27 |
Average class complexity | 16.40 |
▷ Minimum class complexity | 8.00 |
▷ Maximum class complexity | 21.00 |
Average method complexity | 1.55 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 19.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 138 | |
▷ Static methods | 1 | 0.72% |
▷ Public methods | 133 | 96.38% |
▷ Protected methods | 3 | 2.17% |
▷ Private methods | 2 | 1.45% |
Functions | 35 | |
▷ Named functions | 35 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 10 | |
▷ Global constants | 10 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
32 PNG files occupy 0.62MB with 0.12MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
includes/images/form5.png | 5.36KB | 6.09KB | 0.00% |
includes/images/form4.png | 43.65KB | 46.84KB | 0.00% |
includes/images/plus-price.png | 27.95KB | 14.13KB | ▼ 49.44% |
includes/images/form12.png | 62.13KB | 66.53KB | 0.00% |
images/plus-price.png | 27.95KB | 14.13KB | ▼ 49.44% |