Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.51MB] [CPU: ▼2.57ms] Passed 4 tests
A check of server-side resources used by Newsletter - Send awesome emails from WordPress
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.79 ▲0.32 | 41.85 ▼0.69 |
Dashboard /wp-admin | 3.90 ▲0.55 | 56.04 ▼2.78 |
Posts /wp-admin/edit.php | 3.93 ▲0.57 | 51.25 ▲7.97 |
Add New Post /wp-admin/post-new.php | 6.48 ▲0.59 | 96.86 ▼10.70 |
Media Library /wp-admin/upload.php | 3.85 ▲0.62 | 37.48 ▲3.89 |
Presets /wp-admin/admin.php?page=newsletter_emails_presets-edit | 3.85 | 35.02 |
Presets /wp-admin/admin.php?page=newsletter_emails_presets | 3.90 | 190.90 |
Newsletters /wp-admin/admin.php?page=newsletter_emails_index | 3.87 | 41.91 |
Email List /wp-admin/admin.php?page=newsletter_emails_list | 3.86 | 43.06 |
Subscribers /wp-admin/admin.php?page=newsletter_users_index | 3.93 | 44.12 |
Forms /wp-admin/admin.php?page=newsletter_subscription_forms | 3.86 | 43.17 |
Status /wp-admin/admin.php?page=newsletter_system_status | 4.18 | 227.70 |
Statistics /wp-admin/admin.php?page=newsletter_statistics_view | 3.86 | 38.78 |
Statistics /wp-admin/admin.php?page=newsletter_users_statistics | 3.92 | 49.23 |
Export /wp-admin/admin.php?page=newsletter_users_export | 3.86 | 43.69 |
Server storage [IO: ▲9.18MB] [DB: ▲0.12MB] 67% from 3 tests
Input-output and database impact of this plugin
Just a few items left to fix
- There were 2 files (1.06KB) illegally modified outside of "wp-content/plugins/newsletter/" and "wp-content/uploads/"
- (new file) wp-content/logs/newsletter/index.html
- (new file) wp-content/logs/newsletter/upgrade-2023-11-3ff5d190.txt
Filesystem: 598 new files
Database: 6 new tables, 14 new options
New tables |
---|
wp_newsletter |
wp_newsletter_user_logs |
wp_newsletter_user_meta |
wp_newsletter_stats |
wp_newsletter_emails |
wp_newsletter_sent |
New WordPress options |
---|
recovery_mode_email_last_sent |
newsletter_version |
newsletter_statistics |
widget_newsletterwidgetminimal |
newsletter_news_updated |
db_upgraded |
widget_recent-posts |
newsletter_logger_secret |
widget_recent-comments |
widget_newsletterwidget |
... |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Newsletter - Send awesome emails from WordPress
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,843 ▲96 | 14.27 ▼0.07 | 1.87 ▲0.00 | 35.80 ▼8.63 |
Dashboard /wp-admin | 2,231 ▲56 | 5.55 ▼0.04 | 93.67 ▼23.44 | 84.99 ▲41.55 |
Posts /wp-admin/edit.php | 2,148 ▲48 | 1.97 ▼0.06 | 34.03 ▼2.99 | 37.09 ▲2.20 |
Add New Post /wp-admin/post-new.php | 6,404 ▲4,878 | 27.61 ▲4.53 | 889.37 ▲244.55 | 38.41 ▼11.58 |
Media Library /wp-admin/upload.php | 1,451 ▲51 | 4.21 ▲0.01 | 103.71 ▲4.74 | 81.20 ▲39.61 |
Presets /wp-admin/admin.php?page=newsletter_emails_presets-edit | 1,028 | 3.68 | 60.90 | 28.17 |
Presets /wp-admin/admin.php?page=newsletter_emails_presets | 1,385 | 3.75 | 53.53 | 112.36 |
Newsletters /wp-admin/admin.php?page=newsletter_emails_index | 1,430 | 3.79 | 43.89 | 41.39 |
Email List /wp-admin/admin.php?page=newsletter_emails_list | 769 | 1.88 | 17.91 | 32.25 |
Subscribers /wp-admin/admin.php?page=newsletter_users_index | 1,522 | 3.69 | 48.41 | 48.68 |
Forms /wp-admin/admin.php?page=newsletter_subscription_forms | 1,606 | 3.48 | 50.07 | 100.24 |
Status /wp-admin/admin.php?page=newsletter_system_status | 2,331 | 4.12 | 49.54 | 100.49 |
Statistics /wp-admin/admin.php?page=newsletter_statistics_view | 1,475 | 4.15 | 47.90 | 103.41 |
Statistics /wp-admin/admin.php?page=newsletter_users_statistics | 1,878 | 7.75 | 151.17 | 103.83 |
Export /wp-admin/admin.php?page=newsletter_users_export | 1,414 | 3.70 | 45.24 | 87.01 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.12MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- Zombie tables were found after uninstall: 6 tables
- wp_newsletter_emails
- wp_newsletter_stats
- wp_newsletter
- wp_newsletter_sent
- wp_newsletter_user_meta
- wp_newsletter_user_logs
- This plugin does not fully uninstall, leaving 14 options in the database
- widget_recent-posts
- newsletter_statistics
- newsletter_logger_secret
- newsletter_news
- widget_newsletterwidget
- can_compress_scripts
- theysaidso_admin_options
- newsletter_news_updated
- widget_newsletterwidgetminimal
- widget_recent-comments
- ...
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Smoke test failed, please fix the following
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=newsletter_statistics_view
- > Notice in wp-content/plugins/newsletter/statistics/view.php+9
Undefined index: id
- > GET request to /wp-admin/admin.php?page=newsletter_emails_list
- > Warning in wp-content/plugins/newsletter/includes/module-admin.php+178
require(wp-content/plugins/newsletter/emails/list.php): failed to open stream: No such file or directory
- > GET request to /wp-admin/admin.php?page=newsletter_emails_list
- > Compile error in wp-content/plugins/newsletter/includes/module-admin.php+178
require(): Failed opening required 'wp-content/plugins/newsletter/emails/list.php' (include_path='.:/usr/share/php')
- 6 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=newsletter_statistics_view
- > Notice in wp-content/plugins/newsletter/statistics/nav.php+12
Trying to get property 'id' of non-object
- 3 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=newsletter_statistics_view
- > Notice in wp-content/plugins/newsletter/statistics/view.php+14
Trying to get property 'status' of non-object
- > GET request to /wp-admin/admin.php?page=newsletter_statistics_view
- > Notice in wp-content/plugins/newsletter/statistics/view.php+27
Trying to get property 'subject' of non-object
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
The following issues need your attention
- 10× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/newsletter/emails/blocks/html/block.php
- > /wp-content/plugins/newsletter/emails/blocks/header/block.php
- > /wp-content/plugins/newsletter/emails/themes/default/social_main.php
- > /wp-content/plugins/newsletter/emails/blocks/giphy/block.php
- > /wp-content/plugins/newsletter/emails/themes/default/social.php
- > /wp-content/plugins/newsletter/emails/blocks/preheader/block.php
- > /wp-content/plugins/newsletter/emails/blocks/header/layout-logo.php
- > /wp-content/plugins/newsletter/emails/blocks/separator/block.php
- > /wp-content/plugins/newsletter/users/statistics-countries.php
- > /wp-content/plugins/newsletter/subscription/nav.php
- 196× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'TNP_Composer' not found in wp-content/plugins/newsletter/emails/blocks/header/layout-titlemotto.php:2
- > PHP Notice
Undefined index: page in wp-content/plugins/newsletter/subscription/nav.php on line 6
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/newsletter/emails/blocks/giphy/block.php on line 35
- > PHP Notice
Undefined variable: fields in wp-content/plugins/newsletter/emails/blocks/posts/options.php on line 55
- > PHP Notice
Undefined variable: fields in wp-content/plugins/newsletter/emails/blocks/separator/options.php on line 5
- > PHP Fatal error
Uncaught Error: Class 'TNP_Composer' not found in wp-content/plugins/newsletter/emails/blocks/posts/layout-two.php:6
- > PHP Fatal error
Uncaught Error: Class 'TNP_Composer' not found in wp-content/plugins/newsletter/emails/blocks/posts/layout-one.php:6
- > PHP Notice
Undefined variable: controls in wp-content/plugins/newsletter/emails/blocks/cta/options.php on line 22
- > PHP Notice
Undefined variable: user in wp-content/plugins/newsletter/users/edit-nav.php on line 5
- > PHP Notice
Undefined variable: options in wp-content/plugins/newsletter/emails/blocks/social/block.php on line 20
- > 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 issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
6 plugin tags: marketing automation, lead generation, signup forms, email marketing, newsletter...
newsletter/plugin.php 85% from 13 tests
"Newsletter - Send awesome emails from WordPress" version 8.0.4's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please make the necessary changes and fix the following:
- Description: The description should be shorter than 140 characters (currently 255 characters long)
- Main file name: The principal plugin file should be the same as the plugin slug ("newsletter.php" instead of "plugin.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
No dangerous file extensions were detected106,887 lines of code in 402 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 173 | 3,529 | 1,962 | 75,550 |
PHP | 164 | 5,319 | 3,399 | 23,801 |
CSS | 34 | 890 | 446 | 4,696 |
JSON | 13 | 1 | 0 | 1,551 |
HTML | 14 | 174 | 23 | 1,072 |
SVG | 2 | 0 | 0 | 195 |
Markdown | 2 | 8 | 0 | 22 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
Average class complexity | 37.09 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 302.00 |
Average method complexity | 3.42 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 74.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 58 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 58 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 862 | |
▷ Static methods | 137 | 15.89% |
▷ Public methods | 838 | 97.22% |
▷ Protected methods | 3 | 0.35% |
▷ Private methods | 21 | 2.44% |
Functions | 50 | |
▷ Named functions | 37 | 74.00% |
▷ Anonymous functions | 13 | 26.00% |
Constants | 64 | |
▷ Global constants | 20 | 31.25% |
▷ Class constants | 44 | 68.75% |
▷ Public constants | 44 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
125 PNG files occupy 1.67MB with 0.66MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/social-1/youtube.png | 0.71KB | 0.43KB | ▼ 39.09% |
images/social-2/vk.png | 1.21KB | 1.63KB | 0.00% |
emails/blocks/separator/icon.png | 4.87KB | 2.19KB | ▼ 55.09% |
emails/presets/black-friday-2/icon.png | 68.92KB | 30.76KB | ▼ 55.37% |
emails/images/automated.png | 1.99KB | 1.02KB | ▼ 48.58% |