Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.07MB] [CPU: ▼6.93ms] Passed 4 tests
Analyzing server-side resources used by Easy Email Subscription
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.54 ▲0.08 | 40.48 ▲4.47 |
Dashboard /wp-admin | 3.39 ▲0.04 | 46.35 ▼14.02 |
Posts /wp-admin/edit.php | 3.44 ▲0.08 | 44.20 ▼7.73 |
Add New Post /wp-admin/post-new.php | 5.97 ▲0.08 | 87.55 ▼6.45 |
Media Library /wp-admin/upload.php | 3.31 ▲0.08 | 36.87 ▲0.48 |
Edit Selected Subscription /wp-admin/admin.php?page=edit-subscription | 3.26 | 31.84 |
Server storage [IO: ▲0.12MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 26 new files
Database: 1 new table, 9 new options
New tables |
---|
wp_sies_emails |
New WordPress options |
---|
db_upgraded |
can_compress_scripts |
widget_sieswidget |
theysaidso_admin_options |
widget_recent-posts |
sies_db_version |
sies_per_page |
widget_theysaidso_widget |
widget_recent-comments |
Browser metrics Passed 4 tests
An overview of browser requirements for Easy Email Subscription
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,830 ▲84 | 14.63 ▲0.27 | 1.97 ▲0.42 | 42.67 ▼1.20 |
Dashboard /wp-admin | 2,214 ▲34 | 5.58 ▼0.07 | 81.93 ▼3.48 | 36.96 ▼4.78 |
Posts /wp-admin/edit.php | 2,116 ▲16 | 1.98 ▼0.06 | 38.73 ▲2.87 | 35.11 ▼0.91 |
Add New Post /wp-admin/post-new.php | 1,541 ▲15 | 23.03 ▼0.03 | 670.31 ▼3.72 | 58.51 ▼4.07 |
Media Library /wp-admin/upload.php | 1,416 ▲16 | 4.21 ▲0.04 | 95.28 ▼0.92 | 39.54 ▼5.63 |
Edit Selected Subscription /wp-admin/admin.php?page=edit-subscription | 1,458 | 2.41 | 26.00 | 29.41 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
- Zombie tables were found after uninstall: 1 table
- wp_sies_emails
- Zombie WordPress options detected upon uninstall: 9 options
- can_compress_scripts
- db_upgraded
- widget_recent-posts
- widget_recent-comments
- sies_db_version
- sies_per_page
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_sieswidget
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
These errors were triggered by the plugin
- > GET request to /wp-admin/admin.php?page=edit-subscription
- > Notice in wp-content/plugins/email-subscription-with-secure-captcha/simple-email-subscription.php+241
Undefined index: action
- 4 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=edit-subscription
- > Notice in wp-content/plugins/email-subscription-with-secure-captcha/simple-email-subscription.php+293
Undefined offset: 0
- 4 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=edit-subscription
- > Notice in wp-content/plugins/email-subscription-with-secure-captcha/simple-email-subscription.php+293
Trying to access array offset on value of type null
- > GET request to /wp-admin/admin.php?page=edit-subscription
- > User notice in wp-includes/functions.php+5905
Function WP_Scripts::localize was called incorrectly. The $l10n parameter must be an array. To pass arbitrary data to scripts, use the wp_add_inline_script() function instead. Please see Debugging in WordPress for more information. (This message was added in version 5.7.0.)
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Almost there! Just fix the following items
- 2× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/email-subscription-with-secure-captcha/simple-email-subscription.php:38
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/email-subscription-with-secure-captcha/subscriber-form.php:94
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
5 plugin tags: email subscription, email subscribers, email subscription with captcha, simple email subscription, captcha
email-subscription-with-secure-captcha/simple-email-subscription.php 92% from 13 tests
This is the main PHP file of "Easy Email Subscription" version 1.3, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
The following require your attention:
- Main file name: Name the main plugin file the same as the plugin slug ("email-subscription-with-secure-captcha.php" instead of "simple-email-subscription.php")
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
Everything looks great! No dangerous files found in this plugin1,711 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 3 | 35 | 50 | 1,237 |
PHP | 2 | 99 | 57 | 416 |
JavaScript | 3 | 15 | 5 | 58 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.25 |
Average class complexity | 4.00 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 4.00 |
Average method complexity | 1.75 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 2.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 4 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 4 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 11 | |
▷ Named functions | 11 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
16 PNG files occupy 0.06MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/deleteicon.png | 10.04KB | 4.62KB | ▼ 54.02% |
jquery-ui/images/ui-icons_ffffff_256x240.png | 6.15KB | 4.17KB | ▼ 32.13% |
jquery-ui/images/ui-bg_glass_65_ffffff_1x400.png | 0.20KB | 0.09KB | ▼ 57.49% |
jquery-ui/images/ui-bg_gloss-wave_35_f6a828_500x100.png | 5.68KB | 1.83KB | ▼ 67.77% |
jquery-ui/images/ui-icons_ef8c08_256x240.png | 4.44KB | 4.17KB | ▼ 6.02% |