Benchmarks
Plugin footprint 23% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The following installer errors require your attention
- The plugin did not install without errors
- > Notice in wp-content/plugins/emails-no-spam/EmailsNoSpam_OptionsManager.php+23
Undefined index: OptionName
Server metrics [RAM: ▼1.74MB] [CPU: ▼59.79ms] Passed 4 tests
A check of server-side resources used by Emails No Spam
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.26 ▼1.21 | 5.82 ▼41.05 |
Dashboard /wp-admin | 2.28 ▼1.07 | 6.42 ▼58.65 |
Posts /wp-admin/edit.php | 2.28 ▼1.08 | 6.77 ▼45.04 |
Add New Post /wp-admin/post-new.php | 2.28 ▼3.61 | 6.84 ▼94.43 |
Media Library /wp-admin/upload.php | 2.28 ▼0.95 | 7.22 ▼31.22 |
Emails No Spam /wp-admin/plugins.php?page=EmailsNoSpam_PluginSettings | 2.28 | 6.42 |
Server storage [IO: ▲1.01MB] [DB: ▲0.02MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 153 new files
Database: 3 new tables, 15 new options
New tables |
---|
wp_my_lists |
wp_my_recipients |
wp_my_servers |
New WordPress options |
---|
db_upgraded |
theysaidso_admin_options |
widget_recent-comments |
my_token_ens |
widget_theysaidso_widget |
widget_recent-posts |
EmailsNoSpam_Plugin_WebServervice |
my_licence_begin_ens |
EmailsNoSpam_Plugin__version |
EmailsNoSpam_Plugin__installed |
... |
Browser metrics Passed 4 tests
Emails No Spam: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,979 ▲218 | 13.49 ▼1.04 | 7.89 ▲6.04 | 41.24 ▼3.41 |
Dashboard /wp-admin | 2,203 ▲23 | 5.59 ▼0.02 | 88.27 ▼12.82 | 39.42 ▼3.70 |
Posts /wp-admin/edit.php | 2,381 ▲281 | 1.97 ▼0.04 | 39.68 ▼0.00 | 37.99 ▲1.79 |
Add New Post /wp-admin/post-new.php | 1,536 ▲3 | 22.88 ▲0.23 | 685.99 ▲15.67 | 58.11 ▲3.17 |
Media Library /wp-admin/upload.php | 1,414 ▲14 | 4.20 ▼0.01 | 101.01 ▼9.66 | 44.11 ▼3.36 |
Emails No Spam /wp-admin/plugins.php?page=EmailsNoSpam_PluginSettings | 1,212 | 2.05 | 26.92 | 33.43 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.02MB] 25% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- Uninstall procedure validation failed for this plugin
- > Notice in wp-content/plugins/emails-no-spam/EmailsNoSpam_OptionsManager.php+23
Undefined index: OptionName
- The uninstall procedure failed, leaving 3 tables in the database
- wp_my_servers
- wp_my_lists
- wp_my_recipients
- Zombie WordPress options were found after uninstall: 15 options
- widget_recent-posts
- can_compress_scripts
- theysaidso_admin_options
- EmailsNoSpam_Plugin_SelectService
- EmailsNoSpam_Plugin__version
- my_token_ens
- my_licence_type_ens
- widget_theysaidso_widget
- EmailsNoSpam_Plugin__installed
- db_upgraded
- ...
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Smoke test failed, please fix the following
- > GET request to /wp-admin/plugins.php?page=EmailsNoSpam_PluginSettings
- > Notice in wp-content/plugins/emails-no-spam/EmailsNoSpam_OptionsManager.php+23
Undefined index: OptionName
- > GET request to /wp-admin/plugins.php?page=EmailsNoSpam_PluginSettings
- > Notice in wp-content/plugins/emails-no-spam/EmailsNoSpam_OptionsManager.php+28
Undefined index: Value
- > GET request to /wp-admin/plugins.php?page=EmailsNoSpam_PluginSettings
- > User notice in wp-includes/functions.php+5905
Function wp_enqueue_style was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the email-no-spam-style-unic handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
- > GET request to /wp-admin/plugins.php?page=EmailsNoSpam_PluginSettings
- > User notice in wp-includes/functions.php+5905
Function wp_enqueue_script was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the my-ajax-handle handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
SRP 0% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The following issues need your attention
- 22× PHP files perform the action of outputting non-empty strings when accessed directly (only 10 are shown):
- > /wp-content/plugins/emails-no-spam/scripts/my-lists/reset-list-form.php
- > /wp-content/plugins/emails-no-spam/scripts/tables/manager-fields.php
- > /wp-content/plugins/emails-no-spam/scripts/my-lists/clear-list-done.php
- > /wp-content/plugins/emails-no-spam/scripts/list-recipients/list-unsubscribe.php
- > /wp-content/plugins/emails-no-spam/scripts/my-lists/schedule-list-done.php
- > /wp-content/plugins/emails-no-spam/scripts/common/format.php
- > /wp-content/plugins/emails-no-spam/scripts/my-lists/clear-list-form.php
- > /wp-content/plugins/emails-no-spam/scripts/list-recipients/list-recipients.php
- > /wp-content/plugins/emails-no-spam/scripts/send-list/cron.php
- > /wp-content/plugins/emails-no-spam/scripts/my-lists/cron.php
- 67× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to a member function get_var() on null in wp-content/plugins/emails-no-spam/create_pages/EmailsNoSpam_Tables_Manager_Fields.php:3
- > PHP Fatal error
Uncaught Error: Class 'EmailsNoSpam_ShortCodeLoader' not found in wp-content/plugins/emails-no-spam/shortcodes/EmailsNoSpam_Servers_Include_Servers_ShortCode.php:2
- > PHP Notice
Undefined index: OptionName in wp-content/plugins/emails-no-spam/EmailsNoSpam_OptionsManager.php on line 23
- > PHP Fatal error
Uncaught Error: Call to a member function get_var() on null in wp-content/plugins/emails-no-spam/create_pages/EmailsNoSpam_Servers_List_Servers.php:3
- > PHP Fatal error
Uncaught Error: Class 'EmailsNoSpam_ShortCodeLoader' not found in wp-content/plugins/emails-no-spam/shortcodes/EmailsNoSpam_Servers_Reset_Servers_ShortCode.php:2
- > PHP Fatal error
Uncaught Error: Class 'EmailsNoSpam_ShortCodeLoader' not found in wp-content/plugins/emails-no-spam/shortcodes/EmailsNoSpam_List_Csv_Example_ShortCode.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/emails-no-spam/pages/about.php:19
- > PHP Fatal error
Uncaught Error: Class 'EmailsNoSpam_ShortCodeLoader' not found in wp-content/plugins/emails-no-spam/shortcodes/EmailsNoSpam_New_List_New_List_ShortCode.php:2
- > PHP Fatal error
Uncaught Error: Class 'EmailsNoSpam_ShortCodeLoader' not found in wp-content/plugins/emails-no-spam/shortcodes/EmailsNoSpam_Login_Checkout_ShortCode.php:2
- > PHP Fatal error
Uncaught Error: Call to a member function get_var() on null in wp-content/plugins/emails-no-spam/create_pages/EmailsNoSpam_New_List_New_List.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Please fix the following attributes:
- Screenshots: These screenshots require images: #1 (Enable the ENS Menu created during the plugin installation.), #2 (Build your list of recipients. Something like Campaign # 1 ...), #3 (Upload the csv file containing the recipients. If you need to download the example recipients.csv.), #4 (Select the post you want to send to your list recipients. Remember the post you wrote on your Worpress and saved it with Private status. Done! Now it's just you shoot the messages ... Ah! Do not forget to configure the Server.)
- Tags: Too many tags (17 tag instead of maximum 10); only the first 5 tags are used in your directory listing
emails-no-spam/emails-no-spam.php 92% from 13 tests
The main PHP script in "Emails No Spam" version 2.7 is automatically included on every request by WordPress
It is important to fix the following:
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 145 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected8,297 lines of code in 136 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 133 | 2,463 | 1,177 | 7,642 |
JavaScript | 2 | 100 | 13 | 602 |
CSS | 1 | 6 | 2 | 53 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.15 |
Average class complexity | 3.04 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 45.00 |
Average method complexity | 1.58 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 13.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 27 | |
▷ Abstract classes | 2 | 7.41% |
▷ Concrete classes | 25 | 92.59% |
▷ Final classes | 0 | 0.00% |
Methods | 93 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 65 | 69.89% |
▷ Protected methods | 28 | 30.11% |
▷ Private methods | 0 | 0.00% |
Functions | 32 | |
▷ Named functions | 27 | 84.38% |
▷ Anonymous functions | 5 | 15.62% |
Constants | 9 | |
▷ Global constants | 7 | 77.78% |
▷ Class constants | 2 | 22.22% |
▷ Public constants | 2 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
10 PNG files occupy 0.63MB with 0.45MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/banner-772x250.png | 25.11KB | 9.48KB | ▼ 62.23% |
imagens/opcoes-csv-libre-office.PNG | 12.18KB | 6.33KB | ▼ 48.04% |
imagens/recipients-csv-libre-office.PNG | 96.14KB | 33.78KB | ▼ 64.87% |
assets/icon-128x128.png | 42.89KB | 3.70KB | ▼ 91.37% |
assets/icon-256x256.png | 59.38KB | 7.00KB | ▼ 88.21% |