Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▲0.28MB] [CPU: ▼324.51ms] Passed 4 tests
An overview of server-side resources used by MailUp for Wordpress - Email and Newsletter Subscription Form
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.85 ▲0.71 | 52.05 ▼119.25 |
Dashboard /wp-admin | 3.68 ▲0.27 | 35.29 ▲0.74 |
Posts /wp-admin/edit.php | 3.91 ▲0.26 | 39.05 ▼2.99 |
Add New Post /wp-admin/post-new.php | 7.21 ▲0.24 | 97.35 ▼1,176.54 |
Media Library /wp-admin/upload.php | 3.63 ▲0.33 | 26.24 ▲3.18 |
MailUP Login Page /wp-admin/admin.php?page=mailup-login-platform | 3.51 | 24.42 |
Server storage [IO: ▲1.56MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 184 new files
Database: no new tables, 2 new options
New WordPress options |
---|
mailup_version |
widget_mailup-widget |
Browser metrics Passed 4 tests
This is an overview of browser requirements for MailUp for Wordpress - Email and Newsletter Subscription Form
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,907 ▲165 | 16.08 ▲0.30 | 9.98 ▲2.68 | 2.27 ▲0.04 |
Dashboard /wp-admin | 2,900 ▲39 | 6.05 ▼0.14 | 117.67 ▼19.31 | 157.69 ▼18.77 |
Posts /wp-admin/edit.php | 2,710 ▲25 | 3.24 ▲0.00 | 62.58 ▼4.25 | 137.57 ▼14.66 |
Add New Post /wp-admin/post-new.php | 1,767 ▲106 | 21.09 ▲5.05 | 456.93 ▲25.55 | 159.27 ▲4.28 |
Media Library /wp-admin/upload.php | 1,720 ▲22 | 5.54 ▲0.07 | 139.52 ▲1.90 | 190.25 ▲1.54 |
MailUP Login Page /wp-admin/admin.php?page=mailup-login-platform | 973 | 2.54 | 52.77 | 71.65 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
- Zombie WordPress options were found after uninstall: 1 option
- widget_mailup-widget
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
These errors were triggered by the plugin
- > GET request to /wp-admin/admin.php?page=mailup-login-platform
- > Warning in wp-includes/class-wp-hook.php+307
call_user_func_array() expects parameter 1 to be a valid callback, class 'Mailup_Admin' does not have a method 'login_platform_contents'
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
- 11× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/mailup-email-and-newsletter-subscription-form/admin/partials/mailup-admin-advanced-settings.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr_e() in wp-content/plugins/mailup-email-and-newsletter-subscription-form/admin/partials/mailup-admin-fields.php:16
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr_e() in wp-content/plugins/mailup-email-and-newsletter-subscription-form/admin/partials/mailup-admin-fields.php:16
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/mailup-email-and-newsletter-subscription-form/admin/partials/mailup-admin-terms.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/mailup-email-and-newsletter-subscription-form/admin/partials/mailup-admin-display.php:20
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr_e() in wp-content/plugins/mailup-email-and-newsletter-subscription-form/public/partials/mailup-public-display.php:21
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr_e() in wp-content/plugins/mailup-email-and-newsletter-subscription-form/admin/partials/mailup-admin-form.php:28
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/mailup-email-and-newsletter-subscription-form/admin/partials/mailup-login-platform.php:21
- > PHP Notice
Undefined variable: api_list in wp-content/plugins/mailup-email-and-newsletter-subscription-form/admin/partials/mailup-admin-form.php on line 3
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/mailup-email-and-newsletter-subscription-form/widgets/class-mailup-widget.php:10
- > 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 86% from 29 tests
readme.txt 94% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed:
- Tags: Please reduce the number of tags, currently 35 tag instead of maximum 10
mailup-email-and-newsletter-subscription-form/mailup.php 77% from 13 tests
"MailUp for Wordpress - Email and Newsletter Subscription Form" version 1.2.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
- Main file name: Name the main plugin file the same as the plugin slug ("mailup-email-and-newsletter-subscription-form.php" instead of "mailup.php")
- Description: Keep the plugin description shorter than 140 characters (currently 302 characters long)
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
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
There were no executable files found in this plugin5,519 lines of code in 162 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 127 | 113 | 486 | 2,439 |
PHP | 29 | 402 | 708 | 2,041 |
PO File | 3 | 234 | 321 | 576 |
CSS | 2 | 106 | 40 | 462 |
SVG | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.25 |
Average class complexity | 10.29 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 50.00 |
Average method complexity | 2.21 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 6.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 17 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 17 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 120 | |
▷ Static methods | 19 | 15.83% |
▷ Public methods | 87 | 72.50% |
▷ Protected methods | 21 | 17.50% |
▷ Private methods | 12 | 10.00% |
Functions | 13 | |
▷ Named functions | 3 | 23.08% |
▷ Anonymous functions | 10 | 76.92% |
Constants | 19 | |
▷ Global constants | 5 | 26.32% |
▷ Class constants | 14 | 73.68% |
▷ Public constants | 14 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
7 PNG files occupy 0.59MB with 0.32MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/screenshot-5.png | 106.96KB | 39.07KB | ▼ 63.47% |
assets/screenshot-3.png | 99.29KB | 35.42KB | ▼ 64.33% |
assets/screenshot-4.png | 121.34KB | 45.69KB | ▼ 62.35% |
assets/screenshot-2.png | 107.48KB | 45.67KB | ▼ 57.51% |
admin/images/logo_vector.png | 5.53KB | 4.09KB | ▼ 26.02% |