Benchmarks
Plugin footprint 40% 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
- Install procedure had errors
- > Deprecated in wp-content/plugins/ultimate-newsletter/widgets/subscription-form/subscription-form.php+265
Function create_function() is deprecated
Server metrics [RAM: ▼1.13MB] [CPU: ▼189.59ms] Passed 4 tests
This is a short check of server-side resources used by Ultimate Newsletter
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.50 ▼0.22 | 10.73 ▼16.90 |
Dashboard /wp-admin | 2.52 ▼0.54 | 8.97 ▼33.77 |
Posts /wp-admin/edit.php | 2.52 ▼0.59 | 9.23 ▼38.56 |
Add New Post /wp-admin/post-new.php | 2.52 ▼2.92 | 10.51 ▼653.32 |
Media Library /wp-admin/upload.php | 2.52 ▼0.48 | 8.69 ▼32.71 |
Subscribers /wp-admin/admin.php?page=un_subscribers | 2.51 | 8.54 |
All Newsletters /wp-admin/admin.php?page=ultimate_newsletters | 2.51 | 10.08 |
Email Groups /wp-admin/edit-tags.php?taxonomy=un_email_groups&post_type=ultimate_newsletters | 2.52 | 8.71 |
Settings /wp-admin/admin.php?page=un_settings | 2.51 | 10.52 |
Server storage [IO: ▲0.55MB] [DB: ▲0.04MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 77 new files
Database: no new tables, 8 new options
New WordPress options |
---|
un_signup_confirmation_settings |
widget_ultimate-newsletter-widget-subscription-form |
un_subscriber_wp_users |
un_email_smtp_settings |
un_version |
un_general_settings |
un_email_throttling_settings |
un_email_settings |
Browser metrics Passed 4 tests
Ultimate Newsletter: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,954 ▲358 | 17.90 ▲2.40 | 7.98 ▲0.32 | 47.77 ▼0.39 |
Dashboard /wp-admin | 3,245 ▲314 | 7.49 ▲1.55 | 174.27 ▲17.30 | 118.83 ▼5.42 |
Posts /wp-admin/edit.php | 3,043 ▲304 | 4.08 ▲1.39 | 100.00 ▲26.56 | 91.52 ▼1.84 |
Add New Post /wp-admin/post-new.php | 1,557 ▼24 | 18.47 ▼2.10 | 352.49 ▼33.08 | 120.87 ▲5.65 |
Media Library /wp-admin/upload.php | 1,889 ▲82 | 5.07 ▲0.06 | 126.91 ▼22.79 | 131.21 ▲0.11 |
Subscribers /wp-admin/admin.php?page=un_subscribers | 1,802 | 4.36 | 104.10 | 74.27 |
All Newsletters /wp-admin/admin.php?page=ultimate_newsletters | 1,844 | 4.36 | 84.98 | 77.60 |
Email Groups /wp-admin/edit-tags.php?taxonomy=un_email_groups&post_type=ultimate_newsletters | 2,037 | 4.61 | 87.21 | 93.73 |
Settings /wp-admin/admin.php?page=un_settings | 1,600 | 4.10 | 103.76 | 89.83 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- This plugin cannot be uninstalled
- > Deprecated in wp-content/plugins/ultimate-newsletter/widgets/subscription-form/subscription-form.php+265
Function create_function() is deprecated
- This plugin does not fully uninstall, leaving 1 option in the database
- widget_ultimate-newsletter-widget-subscription-form
Smoke tests 25% 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)
These errors were triggered by the plugin
- 4 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=un_settings
- > Deprecated in wp-content/plugins/ultimate-newsletter/widgets/subscription-form/subscription-form.php+265
Function create_function() is deprecated
- 4 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=un_settings
- > Notice in wp-includes/class.wp-scripts.php+343
Array to string conversion
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
- 2× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/ultimate-newsletter/admin/partials/newsletters/ultimate-newsletter-builder-elements.php
- > /wp-content/plugins/ultimate-newsletter/widgets/subscription-form/views/widget.php
- 29× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/ultimate-newsletter/admin/partials/subscribers/ultimate-newsletter-subscriber-form.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/ultimate-newsletter/admin/partials/newsletters/ultimate-newsletter-builder.php:11
- > PHP Notice
Undefined variable: widget_id in wp-content/plugins/ultimate-newsletter/widgets/subscription-form/views/widget.php on line 24
- > PHP Notice
Undefined variable: email_label in wp-content/plugins/ultimate-newsletter/widgets/subscription-form/views/widget.php on line 17
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/ultimate-newsletter/public/partials/ultimate-newsletter-subscriber-profile.php:16
- > PHP Warning
Use of undefined constant ULTIMATE_NEWSLETTER_PLUGIN_URL - assumed 'ULTIMATE_NEWSLETTER_PLUGIN_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/ultimate-newsletter/admin/partials/newsletters/ultimate-newsletter-builder-elements.php on line 293
- > PHP Notice
Undefined variable: has_name in wp-content/plugins/ultimate-newsletter/widgets/subscription-form/views/widget.php on line 9
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/ultimate-newsletter/public/partials/ultimate-newsletter-unsubscribe-confirm.php:9
- > PHP Warning
implode(): Invalid arguments passed in wp-content/plugins/ultimate-newsletter/widgets/subscription-form/views/widget.php on line 23
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/ultimate-newsletter/admin/partials/subscribers/ultimate-newsletter-import-list.php:10
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that require attention:
- Tags: Please delete some tags, you are using 12 tag instead of maximum 10
ultimate-newsletter/ultimate-newsletter.php Passed 13 tests
The entry point to "Ultimate Newsletter" version 1.2.0 is a PHP file that has certain tags in its header comment area
113 characters long description:
Easy to use WordPress newsletter plugin. Send professional email newsletters and manage subscribers in WordPress.
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
Success! There were no dangerous files found in this plugin8,258 lines of code in 43 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 35 | 1,808 | 2,076 | 6,235 |
JavaScript | 2 | 472 | 115 | 939 |
CSS | 4 | 162 | 30 | 789 |
HTML | 1 | 17 | 130 | 285 |
JSON | 1 | 1 | 0 | 10 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.27 |
Average class complexity | 33.59 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 108.00 |
Average method complexity | 4.04 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 30.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 | 184 | |
▷ Static methods | 15 | 8.15% |
▷ Public methods | 140 | 76.09% |
▷ Protected methods | 4 | 2.17% |
▷ Private methods | 40 | 21.74% |
Functions | 21 | |
▷ Named functions | 17 | 80.95% |
▷ Anonymous functions | 4 | 19.05% |
Constants | 16 | |
▷ Global constants | 5 | 31.25% |
▷ Class constants | 11 | 68.75% |
▷ Public constants | 11 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
7 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
public/images/facebook.png | 0.94KB | 0.61KB | ▼ 34.76% |
public/images/twitter.png | 1.06KB | 0.74KB | ▼ 30.18% |
public/images/gplus.png | 1.25KB | 1.06KB | ▼ 15.01% |
templates/one-column/screenshot.png | 0.43KB | 0.43KB | 0.00% |
public/images/image-placeholder.png | 3.41KB | 1.73KB | ▼ 49.21% |