Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
It is recommended to fix the following installer errors
- The plugin did not install without errors
- > User notice in wp-includes/functions.php+5905
Function wpdb::prepare was called incorrectly. The query argument of wpdb::prepare() must have a placeholder. Please see Debugging in WordPress for more information. (This message was added in version 3.9.0.)
Server metrics [RAM: ▼0.91MB] [CPU: ▼33.95ms] Passed 4 tests
This is a short check of server-side resources used by WP Promo Emails
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 34.40 ▼4.57 |
Dashboard /wp-admin | 3.03 ▼0.27 | 22.34 ▼29.20 |
Posts /wp-admin/edit.php | 3.03 ▼0.32 | 25.92 ▼19.85 |
Add New Post /wp-admin/post-new.php | 3.03 ▼2.85 | 20.80 ▼75.36 |
Media Library /wp-admin/upload.php | 3.03 ▼0.19 | 23.02 ▼11.38 |
Mailbox /wp-admin/admin.php?page=mmail_options | 3.03 | 19.22 |
Archive Messages /wp-admin/admin.php?page=archive | 3.03 | 23.46 |
Notifications /wp-admin/admin.php?page=notify | 3.03 | 23.32 |
Trash /wp-admin/admin.php?page=trash | 3.03 | 23.20 |
New Messages /wp-admin/admin.php?page=compose | 3.03 | 23.31 |
Sent Messages /wp-admin/admin.php?page=sent | 3.03 | 22.03 |
Server storage [IO: ▲0.21MB] [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: 16 new files
Database: 2 new tables, 7 new options
New tables |
---|
wp_membermailbox |
wp_membermailboxrecords |
New WordPress options |
---|
widget_recent-posts |
recovery_mode_email_last_sent |
widget_recent-comments |
db_upgraded |
can_compress_scripts |
theysaidso_admin_options |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
This is an overview of browser requirements for WP Promo Emails
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,843 ▲72 | 13.19 ▼1.21 | 2.02 ▼0.14 | 39.27 ▼4.56 |
Dashboard /wp-admin | 2,246 ▲58 | 5.86 ▲0.98 | 113.19 ▼6.68 | 43.10 ▼0.50 |
Posts /wp-admin/edit.php | 2,132 ▲43 | 1.98 ▼0.07 | 41.31 ▲5.61 | 36.55 ▲1.09 |
Add New Post /wp-admin/post-new.php | 1,567 ▲53 | 23.12 ▲5.46 | 638.54 ▼40.06 | 59.52 ▲8.38 |
Media Library /wp-admin/upload.php | 1,431 ▲43 | 4.21 ▲0.05 | 94.11 ▼5.28 | 39.26 ▼6.80 |
Mailbox /wp-admin/admin.php?page=mmail_options | 841 | 2.03 | 28.17 | 31.44 |
Archive Messages /wp-admin/admin.php?page=archive | 717 | 1.53 | 6.66 | 21.06 |
Notifications /wp-admin/admin.php?page=notify | 837 | 2.06 | 24.96 | 25.18 |
Trash /wp-admin/admin.php?page=trash | 717 | 1.14 | 6.84 | 21.13 |
New Messages /wp-admin/admin.php?page=compose | 918 | 2.06 | 26.30 | 27.39 |
Sent Messages /wp-admin/admin.php?page=sent | 824 | 2.06 | 23.94 | 22.80 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- This plugin cannot be uninstalled
- > User notice in wp-includes/functions.php+5905
Function add_menu_page was called incorrectly. The seventh parameter passed to add_menu_page() should be numeric representing menu position. Please see Debugging in WordPress for more information. (This message was added in version 6.0.0.)
- This plugin does not fully uninstall, leaving 7 options in the database
- widget_theysaidso_widget
- recovery_mode_email_last_sent
- can_compress_scripts
- widget_recent-comments
- widget_recent-posts
- theysaidso_admin_options
- db_upgraded
Smoke tests 50% 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)
Almost there, just fix the following server-side errors
- 6 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=sent
- > User notice in wp-includes/functions.php+5905
Function add_menu_page was called incorrectly. The seventh parameter passed to add_menu_page() should be numeric representing menu position. Please see Debugging in WordPress for more information. (This message was added in version 6.0.0.)
- 3 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=sent
- > User notice in wp-includes/functions.php+5905
Function wpdb::prepare was called incorrectly. The query argument of wpdb::prepare() must have a placeholder. Please see Debugging in WordPress for more information. (This message was added in version 3.9.0.)
- > GET request to /wp-admin/admin.php?page=archive
- > Warning in wp-content/plugins/member-mailbox/mmail.php+422
require(archive.php): failed to open stream: No such file or directory
- > GET request to /wp-admin/admin.php?page=archive
- > Compile error in wp-content/plugins/member-mailbox/mmail.php+422
require(): Failed opening required 'archive.php' (include_path='.:/usr/share/php')
- > GET request to /wp-admin/admin.php?page=trash
- > Warning in wp-content/plugins/member-mailbox/mmail.php+434
require(trash.php): failed to open stream: No such file or directory
- > GET request to /wp-admin/admin.php?page=trash
- > Compile error in wp-content/plugins/member-mailbox/mmail.php+434
require(): Failed opening required 'trash.php' (include_path='.:/usr/share/php')
- > GET request to /wp-admin/admin.php?page=compose
- > Notice in wp-content/plugins/member-mailbox/compose.php+31
Undefined variable: mailto
- > GET request to /wp-admin/admin.php?page=compose
- > Notice in wp-content/plugins/member-mailbox/compose.php+32
Undefined variable: subject_mail
- > GET request to /wp-admin/admin.php?page=compose
- > Notice in wp-content/plugins/member-mailbox/compose.php+33
Undefined variable: template
SRP 50% 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
Please fix the following items
- 9× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function site_url() in wp-content/plugins/member-mailbox/reply.php:5
- > PHP Notice
Trying to get property 'display_name' of non-object in wp-content/plugins/member-mailbox/view.php on line 4
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/member-mailbox/compose.php:14
- > PHP Notice
Trying to get property 'user_email' of non-object in wp-content/plugins/member-mailbox/view.php on line 5
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/member-mailbox/sent.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/member-mailbox/mmail-options.php:2
- > PHP Notice
Trying to get property 'ID' of non-object in wp-content/plugins/member-mailbox/view.php on line 3
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/member-mailbox/notify.php:2
- > PHP Fatal error
Uncaught Error: Call to a member function get_results() on null in wp-content/plugins/member-mailbox/view.php:7
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Please fix the following attributes:
- Screenshots: These screenshots require images: #1 (The default settings page provided with WP Promo eMails. Tested on many email clients like Gmail, Yahoo!, Live/Hotmail, etc.), #2 (Sample email is provided with WP Promo eMails.), #3 (Sample Dashboard section is provided with WP Promo eMails.), #4 (Send to All or Select Users section is provided with WP Promo eMails.)
member-mailbox/mmail.php 92% from 13 tests
The main file in "WP Promo Emails" v. 2.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please make the necessary changes and fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("member-mailbox.php" instead of "mmail.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
Good job! No executable or dangerous file extensions detected764 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 8 | 191 | 166 | 688 |
JavaScript | 1 | 9 | 4 | 49 |
CSS | 1 | 0 | 0 | 27 |
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.19 |
Average class complexity | 9.00 |
▷ Minimum class complexity | 9.00 |
▷ Maximum class complexity | 9.00 |
Average method complexity | 1.44 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 5.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 | 18 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 18 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 1 | 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
All PNG images should be compressed to minimize bandwidth usage for end users
5 PNG files occupy 0.17MB with 0.08MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 81.53KB | 31.14KB | ▼ 61.81% |
mailbox.png | 0.31KB | 0.38KB | 0.00% |
screenshot-2.png | 27.40KB | 12.67KB | ▼ 53.77% |
screenshot-4.png | 32.97KB | 13.29KB | ▼ 59.69% |
screenshot-3.png | 33.59KB | 14.59KB | ▼ 56.58% |