Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
These installer errors require your attention
- This plugin did not install gracefully
- > Warning in wp-content/plugins/wp-email-newsletter/wpm_functions.php+135
Use of undefined constant mail_plugin_url - assumed 'mail_plugin_url' (this will throw an Error in a future version of PHP)
Server metrics [RAM: ▼0.09MB] [CPU: ▼14.52ms] Passed 4 tests
This is a short check of server-side resources used by Wordpress Email Newsletter
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.55 ▲0.09 | 44.32 ▲0.50 |
Dashboard /wp-admin | 3.25 ▼0.05 | 33.53 ▼16.58 |
Posts /wp-admin/edit.php | 3.34 ▼0.02 | 36.35 ▼27.73 |
Add New Post /wp-admin/post-new.php | 5.54 ▼0.35 | 83.44 ▼9.69 |
Media Library /wp-admin/upload.php | 3.27 ▲0.05 | 30.53 ▼4.07 |
Compose Mail /wp-admin/admin.php?page=compose-email | 3.19 | 25.63 |
Mail to Subscriber /wp-admin/admin.php?page=sendmail-subscriber | 3.19 | 28.29 |
View Subscriber /wp-admin/admin.php?page=view-subscriber | 3.19 | 29.20 |
Setup Unsubscribe /wp-admin/admin.php?page=unsubscribe-setting | 3.19 | 29.87 |
Setup Widget /wp-admin/admin.php?page=widget-setting | 3.19 | 27.33 |
Setup Email /wp-admin/admin.php?page=email-setting | 3.19 | 26.40 |
General Information /wp-admin/admin.php?page=general-information | 3.19 | 26.35 |
Server storage [IO: ▲0.28MB] [DB: ▲0.01MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 30 new files
Database: 2 new tables, 38 new options
New tables |
---|
wp_wmail_newsletter_list |
wp_wmail_newsletter |
New WordPress options |
---|
wmail_msgdis_1 |
wmail_widget_but_cap |
wmail_title |
wmail_un_option |
wmail_on_search |
theysaidso_admin_options |
wmail_opt_subject |
wmail_admin_email_option |
wmail_from_email |
wmail_bcc |
... |
Browser metrics Passed 4 tests
An overview of browser requirements for Wordpress Email Newsletter
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,874 ▲113 | 15.37 ▲0.81 | 1.73 ▼0.03 | 45.88 ▼2.76 |
Dashboard /wp-admin | 2,283 ▲80 | 6.57 ▲1.71 | 129.14 ▲9.19 | 44.31 ▼4.11 |
Posts /wp-admin/edit.php | 2,310 ▲210 | 3.34 ▲1.35 | 48.95 ▲9.60 | 34.84 ▼1.85 |
Add New Post /wp-admin/post-new.php | 1,584 ▲39 | 22.26 ▼0.79 | 663.54 ▼27.32 | 53.86 ▼3.74 |
Media Library /wp-admin/upload.php | 1,610 ▲210 | 5.02 ▲0.81 | 111.76 ▲6.97 | 44.44 ▲0.03 |
Compose Mail /wp-admin/admin.php?page=compose-email | 1,126 | 2.97 | 40.03 | 27.63 |
Mail to Subscriber /wp-admin/admin.php?page=sendmail-subscriber | 1,110 | 2.98 | 38.35 | 27.41 |
View Subscriber /wp-admin/admin.php?page=view-subscriber | 1,149 | 2.97 | 39.71 | 26.23 |
Setup Unsubscribe /wp-admin/admin.php?page=unsubscribe-setting | 2,571 | 10.62 | 211.08 | 112.28 |
Setup Widget /wp-admin/admin.php?page=widget-setting | 1,087 | 3.01 | 40.34 | 26.69 |
Setup Email /wp-admin/admin.php?page=email-setting | 1,208 | 3.07 | 42.66 | 28.43 |
General Information /wp-admin/admin.php?page=general-information | 1,159 | 3.11 | 41.51 | 35.80 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- Zombie tables were found after uninstall: 2 tables
- wp_wmail_newsletter
- wp_wmail_newsletter_list
- This plugin does not fully uninstall, leaving 38 options in the database
- wmail_admin_email_option
- wmail_on_homepage
- wmail_from_email
- wmail_un_link
- wmail_opt_subject
- wmail_msgdis_6
- wmail_title
- wmail_msgdis_5
- wmail_widget_txt_cap
- wmail_on_posts
- ...
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
These errors were triggered by the plugin
- 7 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=general-information
- > User deprecated in wp-includes/functions.php+5453
Function wp_tiny_mce is deprecated since version 3.3.0! Use wp_editor() instead.
- > GET request to /wp-admin/admin.php?page=sendmail-subscriber
- > Notice in wp-content/plugins/wp-email-newsletter/sendemail/sendmail-subscriber.php+141
Undefined variable: wmail_subject_drop_val
- 3 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=email-setting
- > Notice in wp-content/plugins/wp-email-newsletter/pages/email-setting.php+22
Undefined index: wmail_submit
SRP 0% 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
- 13× PHP files output non-empty strings when accessed directly via GET requests (only 10 are shown):
- > /wp-content/plugins/wp-email-newsletter/pages/widget-setting.php
- > /wp-content/plugins/wp-email-newsletter/subscriber/view-subscriber-show.php
- > /wp-content/plugins/wp-email-newsletter/subscriber/view-subscriber-edit.php
- > /wp-content/plugins/wp-email-newsletter/sendemail/steps.php
- > /wp-content/plugins/wp-email-newsletter/pages/unsubscribe-setting.php
- > /wp-content/plugins/wp-email-newsletter/subscriber/view-subscriber-add.php
- > /wp-content/plugins/wp-email-newsletter/pages/email-setting.php
- > /wp-content/plugins/wp-email-newsletter/compose/compose-email-edit.php
- > /wp-content/plugins/wp-email-newsletter/pages/welcome-page.php
- > /wp-content/plugins/wp-email-newsletter/widget/wmail_subscribe.php
- 4× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function mail_plugin_url() in wp-content/plugins/wp-email-newsletter/widget/widget.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/wp-email-newsletter/wpm_functions.php:13
- > PHP Warning
require_once(wp-content/plugins/wp-email-newsletter/unsubscribe..\\..\\..\\..\\..\\wp-config.php): failed to open stream: No such file or directory in wp-content/plugins/wp-email-newsletter/unsubscribe/unsubscribe.php on line 5
- > PHP Fatal error
require_once(): Failed opening required 'wp-content/plugins/wp-email-newsletter/unsubscribe..\\..\\..\\..\\..\\wp-config.php' (include_path='.:/usr/share/php') in wp-content/plugins/wp-email-newsletter/unsubscribe/unsubscribe.php on line 5
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
Optimizations
Plugin configuration 87% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes:
- Screenshots: Add images for these screenshots: #1 (Create Custom Body for sent email to subscribe user), #2 (custom widget Name ,Label Name ,Button Name for display on site), #3 (Email Setting for send email to user.), #4 (create unsubscribe email body or message)
- Tags: Please reduce the number of tags, currently 16 tag instead of maximum 10
wp-email-newsletter/wpm_functions.php 85% from 13 tests
The principal PHP file in "Wordpress Email Newsletter" v. 1.1 is loaded by WordPress automatically on each request
It is important to fix the following:
- Text Domain: The text domain name must use dashes instead of underscores, and it must be lowercase
- Main file name: The principal plugin file should be the same as the plugin slug ("wp-email-newsletter.php" instead of "wpm_functions.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
There were no executable files found in this plugin2,693 lines of code in 25 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 16 | 176 | 76 | 1,907 |
JavaScript | 6 | 48 | 17 | 478 |
CSS | 3 | 10 | 10 | 308 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.24 |
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 | 22 | |
▷ Named functions | 22 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 5 | |
▷ Global constants | 5 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
4 PNG files occupy 0.17MB with 0.07MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-3.png | 53.72KB | 32.59KB | ▼ 39.33% |
screenshot-2.png | 26.41KB | 16.43KB | ▼ 37.78% |
screenshot-4.png | 72.43KB | 41.45KB | ▼ 42.77% |
screenshot-1.png | 25.70KB | 15.21KB | ▼ 40.82% |