Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The following installer errors require your attention
- Install procedure had errors
- > Notice in wp-content/plugins/wp-promo-emails/wppe.php+166
Undefined index: member_0_0_0_0
Server metrics [RAM: ▼1.96MB] [CPU: ▼55.81ms] Passed 4 tests
An overview of server-side resources used by WP Promo Emails
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.03 ▼1.43 | 4.20 ▼43.15 |
Dashboard /wp-admin | 2.05 ▼1.25 | 6.02 ▼46.78 |
Posts /wp-admin/edit.php | 2.05 ▼1.31 | 6.08 ▼43.38 |
Add New Post /wp-admin/post-new.php | 2.05 ▼3.84 | 5.08 ▼89.93 |
Media Library /wp-admin/upload.php | 2.05 ▼1.18 | 4.86 ▼32.66 |
WP Promo Emails /wp-admin/options-general.php?page=wppe_options | 2.05 | 5.36 |
Server storage [IO: ▲0.63MB] [DB: ▲0.01MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 57 new files
Database: 2 new tables, 7 new options
New tables |
---|
wp_wppenewsletter |
wp_wpperecords |
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-posts |
can_compress_scripts |
widget_recent-comments |
theysaidso_admin_options |
db_upgraded |
wppe_options |
Browser metrics Passed 4 tests
Checking browser requirements for WP Promo Emails
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,848 ▲87 | 14.35 ▼0.10 | 1.68 ▲0.09 | 38.41 ▼5.19 |
Dashboard /wp-admin | 2,254 ▲77 | 5.69 ▲0.09 | 87.49 ▼2.69 | 40.03 ▼4.05 |
Posts /wp-admin/edit.php | 2,113 ▲13 | 1.98 ▼0.11 | 44.38 ▲2.59 | 33.84 ▼6.13 |
Add New Post /wp-admin/post-new.php | 1,535 ▲9 | 23.43 ▲0.14 | 694.69 ▲8.91 | 58.31 ▲7.77 |
Media Library /wp-admin/upload.php | 1,404 ▲4 | 4.27 ▲0.02 | 98.14 ▲1.13 | 44.34 ▼0.12 |
WP Promo Emails /wp-admin/options-general.php?page=wppe_options | 1,750 | 7.88 | 153.44 | 76.47 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- The plugin did not uninstall gracefully
- > Notice in wp-content/plugins/wp-promo-emails/wppe.php+166
Undefined index: member_0_0_0_0
- Zombie WordPress options detected upon uninstall: 6 options
- db_upgraded
- widget_recent-posts
- theysaidso_admin_options
- widget_recent-comments
- can_compress_scripts
- widget_theysaidso_widget
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Please fix the following server-side errors
- > GET request to /wp-admin/options-general.php?page=wppe_options
- > Notice in wp-content/plugins/wp-promo-emails/wppe.php+166
Undefined index: member_0_0_0_0
- > GET request to /wp-admin/options-general.php?page=wppe_options
- > Notice in wp-content/plugins/wp-promo-emails/wppe-options.php+166
Undefined variable: nid2
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
The following issues need your attention
- 2× PHP files output text when accessed directly:
- > /wp-content/plugins/wp-promo-emails/unsubscribe/unsubscribe.php
- > /wp-content/plugins/wp-promo-emails/records/success.php
- 6× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Notice
Trying to get property 'prefix' of non-object in wp-content/plugins/wp-promo-emails/wppe.php on line 43
- > PHP Notice
Trying to get property 'prefix' of non-object in wp-content/plugins/wp-promo-emails/wppe.php on line 41
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/wp-promo-emails/wppe-options.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/wp-promo-emails/templates/template-1.php:5
- > PHP Notice
Trying to get property 'prefix' of non-object in wp-content/plugins/wp-promo-emails/wppe.php on line 42
- > PHP Fatal error
Uncaught Error: Call to undefined function site_url() in wp-content/plugins/wp-promo-emails/wppe.php:97
- > PHP Notice
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 93% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that require attention:
- Screenshots: These screenshots do not have 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.)
wp-promo-emails/wppe.php 92% from 13 tests
Analyzing the main PHP file in "WP Promo Emails" version 6.0
The following require your attention:
- Main file name: Name the main plugin file the same as the plugin slug ("wp-promo-emails.php" instead of "wppe.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected6,866 lines of code in 48 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 22 | 620 | 452 | 4,600 |
HTML | 10 | 105 | 10 | 1,113 |
PHP | 6 | 157 | 213 | 658 |
CSS | 9 | 103 | 10 | 490 |
Markdown | 1 | 1 | 0 | 5 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.23 |
Average class complexity | 20.00 |
▷ Minimum class complexity | 20.00 |
▷ Maximum class complexity | 20.00 |
Average method complexity | 1.95 |
▷ 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 | 20 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 20 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 3 | |
▷ Named functions | 3 | 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
3 PNG files occupy 0.28MB with 0.17MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 121.86KB | 41.75KB | ▼ 65.74% |
screenshot-3.png | 22.97KB | 11.52KB | ▼ 49.86% |
screenshot-2.png | 138.68KB | 39.35KB | ▼ 71.63% |