Benchmarks
Plugin footprint 23% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
You still need to fix the following installer errors
- The plugin cannot be installed
- > Notice in wp-content/plugins/wp-mailer/wpm.php+135
Only variables should be passed by reference
Server metrics [RAM: ▼1.88MB] [CPU: ▼186.19ms] Passed 4 tests
An overview of server-side resources used by WP Easy Post Mailer
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 1.75 ▼1.09 | 5.21 ▼28.87 |
Dashboard /wp-admin | 1.77 ▼1.29 | 5.81 ▼32.09 |
Posts /wp-admin/edit.php | 1.77 ▼1.34 | 5.51 ▼39.38 |
Add New Post /wp-admin/post-new.php | 1.77 ▼3.66 | 4.95 ▼644.42 |
Media Library /wp-admin/upload.php | 1.77 ▼1.23 | 5.78 ▼27.22 |
WP Mailer /wp-admin/admin.php?page=wp-mailer/tab-forms-addedit.php | 1.77 | 4.69 |
Subscribers /wp-admin/admin.php?page=wp-mailer/tab-subscribers.php | 1.77 | 5.31 |
Credits /wp-admin/admin.php?page=wp-mailer/tab-credits.php | 1.77 | 6.25 |
Import Export /wp-admin/admin.php?page=wp-mailer/tab-importexport.php | 1.77 | 5.46 |
Campaigns /wp-admin/admin.php?page=wp-mailer/tab-jobs.php | 1.77 | 4.55 |
Unsubscribed /wp-admin/admin.php?page=wp-mailer/tab-unsubscribed.php | 1.77 | 5.75 |
Settings /wp-admin/admin.php?page=wp-mailer/tab-settings.php | 1.77 | 5.17 |
Forms /wp-admin/admin.php?page=wp-mailer/tab-forms.php | 1.77 | 4.71 |
Templates /wp-admin/admin.php?page=wp-mailer/tab-templates.php | 1.77 | 5.75 |
Server storage [IO: ▲0.16MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 31 new files
Database: 3 new tables, 9 new options
New tables |
---|
wp_wpm_forms |
wp_wpm_jobs |
wp_wpm_subscribers |
New WordPress options |
---|
wpm_sendername |
wpm_version |
wpm_batchpause |
wpm_mail_template |
wpm_unsubscribemsg |
wpm_batchsize |
wpm_autosend |
wpm_senderemail |
widget_wpm_subscribe_widget |
Browser metrics Passed 4 tests
Checking browser requirements for WP Easy Post Mailer
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,742 ▲146 | 15.95 ▲0.41 | 9.63 ▲0.33 | 46.63 ▼2.05 |
Dashboard /wp-admin | 3,026 ▲95 | 5.91 ▼0.22 | 132.53 ▼6.95 | 136.28 ▲25.67 |
Posts /wp-admin/edit.php | 2,803 ▲64 | 2.60 ▼0.10 | 62.13 ▼4.58 | 94.12 ▲0.34 |
Add New Post /wp-admin/post-new.php | 1,540 ▼336 | 18.56 ▼0.56 | 358.19 ▼16.06 | 109.78 ▲2.05 |
Media Library /wp-admin/upload.php | 1,814 ▲4 | 5.04 ▲0.02 | 138.66 ▼10.34 | 140.18 ▲8.46 |
WP Mailer /wp-admin/admin.php?page=wp-mailer/tab-forms-addedit.php | 1,413 | 2.24 | 52.52 | 92.07 |
Subscribers /wp-admin/admin.php?page=wp-mailer/tab-subscribers.php | 1,318 | 2.10 | 53.97 | 78.43 |
Credits /wp-admin/admin.php?page=wp-mailer/tab-credits.php | 1,258 | 2.21 | 54.50 | 97.39 |
Import Export /wp-admin/admin.php?page=wp-mailer/tab-importexport.php | 1,155 | 2.22 | 55.67 | 91.29 |
Campaigns /wp-admin/admin.php?page=wp-mailer/tab-jobs.php | 1,330 | 2.09 | 50.45 | 74.20 |
Unsubscribed /wp-admin/admin.php?page=wp-mailer/tab-unsubscribed.php | 1,303 | 2.09 | 55.07 | 71.90 |
Settings /wp-admin/admin.php?page=wp-mailer/tab-settings.php | 1,377 | 2.11 | 51.12 | 93.65 |
Forms /wp-admin/admin.php?page=wp-mailer/tab-forms.php | 1,281 | 2.10 | 52.44 | 70.23 |
Templates /wp-admin/admin.php?page=wp-mailer/tab-templates.php | 1,272 | 2.10 | 53.40 | 75.49 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 25% 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
- > Notice in wp-content/plugins/wp-mailer/wpm.php+135
Only variables should be passed by reference
- Zombie tables were found after uninstall: 3 tables
- wp_wpm_forms
- wp_wpm_jobs
- wp_wpm_subscribers
- The uninstall procedure has failed, leaving 9 options in the database
- wpm_autosend
- wpm_batchsize
- wpm_mail_template
- wpm_batchpause
- widget_wpm_subscribe_widget
- wpm_sendername
- wpm_version
- wpm_senderemail
- wpm_unsubscribemsg
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Please fix the following server-side errors
- 27 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=wp-mailer/tab-templates.php
- > Notice in wp-content/plugins/wp-mailer/wpm.php+109
Only variables should be passed by reference
- 9 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=wp-mailer/tab-templates.php
- > User deprecated in wp-includes/functions.php+5304
The called constructor method for WP_Widget in WPM_Subscribe_Widget is deprecated since version 4.3.0! Use __construct() instead.
- 8 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=wp-mailer/tab-forms-addedit.php
- > Notice in wp-content/plugins/wp-mailer/wpmh.php+11
Undefined variable: current_tab
- > GET request to /wp-admin/admin.php?page=wp-mailer/tab-forms-addedit.php
- > Notice in wp-content/plugins/wp-mailer/tab-forms-addedit.php+50
Undefined index: form_name
- > GET request to /wp-admin/admin.php?page=wp-mailer/tab-forms-addedit.php
- > Notice in wp-content/plugins/wp-mailer/tab-forms-addedit.php+51
Undefined index: form_prepend
- > GET request to /wp-admin/admin.php?page=wp-mailer/tab-forms-addedit.php
- > Notice in wp-content/plugins/wp-mailer/tab-forms-addedit.php+52
Undefined index: form_nameshow
- > GET request to /wp-admin/admin.php?page=wp-mailer/tab-forms-addedit.php
- > Notice in wp-content/plugins/wp-mailer/tab-forms-addedit.php+53
Undefined index: form_namelbl
- > GET request to /wp-admin/admin.php?page=wp-mailer/tab-forms-addedit.php
- > Notice in wp-content/plugins/wp-mailer/tab-forms-addedit.php+54
Undefined index: form_nameph
- > GET request to /wp-admin/admin.php?page=wp-mailer/tab-forms-addedit.php
- > Notice in wp-content/plugins/wp-mailer/tab-forms-addedit.php+55
Undefined index: form_emaillbl
- > GET request to /wp-admin/admin.php?page=wp-mailer/tab-forms-addedit.php
- > Notice in wp-content/plugins/wp-mailer/tab-forms-addedit.php+56
Undefined index: form_emailph
- > GET request to /wp-admin/admin.php?page=wp-mailer/tab-forms-addedit.php
- > Notice in wp-content/plugins/wp-mailer/tab-forms-addedit.php+57
Undefined index: form_submitshow
- > GET request to /wp-admin/admin.php?page=wp-mailer/tab-forms-addedit.php
- > Notice in wp-content/plugins/wp-mailer/tab-forms-addedit.php+58
Undefined index: form_submittxt
- > GET request to /wp-admin/admin.php?page=wp-mailer/tab-forms-addedit.php
- > Notice in wp-content/plugins/wp-mailer/tab-forms-addedit.php+59
Undefined index: form_thankyou
- > GET request to /wp-admin/admin.php?page=wp-mailer/tab-forms-addedit.php
- > Notice in wp-content/plugins/wp-mailer/tab-forms-addedit.php+60
Undefined index: form_thanksmsg
- > GET request to /wp-admin/admin.php?page=wp-mailer/tab-forms-addedit.php
- > Notice in wp-content/plugins/wp-mailer/tab-forms-addedit.php+68
Trying to get property 'form_name' of non-object
- > GET request to /wp-admin/admin.php?page=wp-mailer/tab-forms-addedit.php
- > Warning in wp-content/plugins/wp-mailer/tab-forms-addedit.php+97
Use of undefined constant form_layout - assumed 'form_layout' (this will throw an Error in a future version of PHP)
- > GET request to /wp-admin/admin.php?page=wp-mailer/tab-forms-addedit.php
- > Notice in wp-content/plugins/wp-mailer/tab-forms-addedit.php+98
Undefined variable: form_layout
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
Almost there! Just fix the following items
- 21× PHP files output text when accessed directly (only 10 are shown):
- > /wp-content/plugins/wp-mailer/mailer/job.php
- > /wp-content/plugins/wp-mailer/wpmh.php
- > /wp-content/plugins/wp-mailer/tab-unsubscribed.php
- > /wp-content/plugins/wp-mailer/tab-subscribers.php
- > /wp-content/plugins/wp-mailer/tab-credits.php
- > /wp-content/plugins/wp-mailer/wpm-upgrade.php
- > /wp-content/plugins/wp-mailer/mailer/template.php
- > /wp-content/plugins/wp-mailer/mailer/cron.php
- > /wp-content/plugins/wp-mailer/tab-templates.php
- > /wp-content/plugins/wp-mailer/templates/wpm-responsivegreen.php
- 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/wp-mailer/wpm.php:96
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/wp-mailer/mailer/widget.php:5
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that require attention:
- Tags: Please reduce the number of tags, currently 33 tag instead of maximum 10
wp-mailer/wpm.php 92% from 13 tests
"WP Easy Post Mailer" version 0.64's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
It is important to fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("wp-mailer.php" instead of "wpm.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Everything looks great! No dangerous files found in this plugin2,342 lines of code in 25 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 25 | 494 | 476 | 2,342 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
Average class complexity | 20.67 |
▷ Minimum class complexity | 5.00 |
▷ Maximum class complexity | 56.00 |
Average method complexity | 2.76 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 6 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 69 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 47 | 68.12% |
▷ Protected methods | 1 | 1.45% |
▷ Private methods | 21 | 30.43% |
Functions | 48 | |
▷ Named functions | 44 | 91.67% |
▷ Anonymous functions | 4 | 8.33% |
Constants | 12 | |
▷ Global constants | 3 | 25.00% |
▷ Class constants | 9 | 75.00% |
▷ Public constants | 9 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
3 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
templates/wpm-default.png | 7.59KB | 6.79KB | ▼ 10.49% |
templates/wpm-responsivegreen.png | 5.69KB | 4.82KB | ▼ 15.19% |
assets/wpm-admin-icon.png | 1.21KB | 0.29KB | ▼ 76.15% |