Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▼0.93MB] [CPU: ▼37.72ms] Passed 4 tests
A check of server-side resources used by WP Subscriber Form
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 42.43 ▼1.90 |
Dashboard /wp-admin | 3.01 ▼0.29 | 29.20 ▼23.65 |
Posts /wp-admin/edit.php | 3.01 ▼0.34 | 24.59 ▼26.47 |
Add New Post /wp-admin/post-new.php | 3.01 ▼2.88 | 23.61 ▼84.59 |
Media Library /wp-admin/upload.php | 3.01 ▼0.22 | 22.48 ▼16.15 |
Server storage [IO: ▲0.15MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 9 new files
Database: no new tables, 9 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-comments |
db_upgraded |
widget_recent-posts |
sc_subscriber_form_btncss |
sc_subscriber_form |
theysaidso_admin_options |
sc_subscriber_form_heading |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
A check of browser resources used by WP Subscriber Form
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,798 ▲37 | 14.35 ▼0.05 | 1.95 ▼1.06 | 40.88 ▼3.37 |
Dashboard /wp-admin | 2,203 ▲26 | 5.63 ▲0.01 | 84.39 ▼11.73 | 38.73 ▼2.40 |
Posts /wp-admin/edit.php | 2,108 ▲8 | 1.96 ▼0.07 | 40.30 ▲0.93 | 36.92 ▼0.52 |
Add New Post /wp-admin/post-new.php | 1,533 ▲7 | 23.89 ▲0.81 | 686.01 ▼0.38 | 51.97 ▼0.12 |
Media Library /wp-admin/upload.php | 1,402 ▲5 | 4.18 ▲0.02 | 103.34 ▲1.83 | 43.41 ▼2.94 |
WP Subsriber Form /wp-admin/subscriber-form.php | 26 | 0.42 | 0.09 | 14.28 |
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
- Uninstall procedure had uncaught errors
- > User deprecated in wp-includes/functions.php+5737
Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.
- Zombie WordPress options were found after uninstall: 9 options
- can_compress_scripts
- widget_recent-posts
- widget_theysaidso_widget
- widget_recent-comments
- sc_subscriber_form_heading
- sc_subscriber_form_btncss
- db_upgraded
- theysaidso_admin_options
- sc_subscriber_form
Smoke tests 25% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test
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
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/wp-subscriber-form/subscriber-form.php
- 2× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_nonce_field() in wp-content/plugins/wp-subscriber-form/wp-subscriber-options.php:12
- > PHP Notice
Undefined variable: action_url in wp-content/plugins/wp-subscriber-form/wp-subscriber-options.php on line 10
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Please take a look at the following user-side issues
- > GET request to /wp-admin/subscriber-form.php
- > Network (severe)
wp-admin/subscriber-form.php - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 93% 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:
- Screenshots: These screenshots require images: #1 (Admin Panel Setting), #2 (WP Subscriber Form)
wp-subscriber-form/subscriber-form.php 92% from 13 tests
The principal PHP file in "WP Subscriber Form" v. 1.1 is loaded by WordPress automatically on each request
It is important to fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("wp-subscriber-form.php" instead of "subscriber-form.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Success! There were no dangerous files found in this plugin216 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 12 | 12 | 135 |
CSS | 1 | 0 | 0 | 81 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.16 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 7 | |
▷ Named functions | 7 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
5 PNG files occupy 0.14MB with 0.06MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/user_icon.png | 0.64KB | 0.57KB | ▼ 11.33% |
screenshot-2.png | 19.26KB | 7.14KB | ▼ 62.94% |
images/email_big_icon.png | 9.40KB | 3.52KB | ▼ 62.59% |
screenshot-1.png | 114.06KB | 36.77KB | ▼ 67.76% |
images/email_icon.png | 0.51KB | 0.59KB | 0.00% |