62% ultimate-wp-mail

Code Review | Ultimate WP Mail

WordPress plugin Ultimate WP Mail scored62%from 54 tests.

About plugin

  • Plugin page: ultimate-wp-mail
  • Plugin version: 1.2.4
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.4
  • WordPress version: 6.3.1
  • First release: Oct 19, 2017
  • Latest release: Nov 7, 2023
  • Number of updates: 80
  • Update frequency: every 27.9 days
  • Top authors: Rustaurius (100%)

Code review

54 tests

User reviews

21 reviews

Install metrics

1,000+ active /50,853 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲1.82MB] [CPU: ▲11.35ms] Passed 4 tests

Analyzing server-side resources used by Ultimate WP Mail
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /5.21 ▲1.7555.87 ▲13.81
Dashboard /wp-admin5.14 ▲1.8461.14 ▲8.54
Posts /wp-admin/edit.php5.18 ▲1.8268.87 ▲16.98
Add New Post /wp-admin/post-new.php7.95 ▲2.06106.20 ▲6.05
Media Library /wp-admin/upload.php5.08 ▲1.8556.63 ▲22.03
Dashboard /wp-admin/edit.php?post_type=uwpm_mail_template&page=ewd-uwpm-dashboard5.0051.18
Lists /wp-admin/edit.php?post_type=uwpm_mail_template&page=ewd-uwpm-email-lists4.9948.58
All Emails /wp-admin/edit.php?post_type=uwpm_mail_template5.1053.43
All Email Logs /wp-admin/edit.php?post_type=uwpm_email_log5.1053.26
Add New /wp-admin/post-new.php?post_type=uwpm_mail_template5.2259.37
User Stat Details /wp-admin/edit.php?post_type=uwpm_mail_template&page=ewd-uwpm-user-stat-details4.9960.73
User Stats /wp-admin/edit.php?post_type=uwpm_mail_template&page=ewd-uwpm-user-stats5.1748.53
Ultimate WP Mail - Welcome! /wp-admin/index.php?page=ewd-uwpm-getting-started4.9848.44
Email Categories /wp-admin/edit-tags.php?taxonomy=uwpm-category&post_type=uwpm_mail_template5.0568.58
Settings /wp-admin/edit.php?post_type=uwpm_mail_template&page=ewd-uwpm-settings5.1047.53

Server storage [IO: ▲3.79MB] [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: 219 new files
Database: 4 new tables, 10 new options
New tables
wp_ewd_uwpm_email_only_users
wp_ewd_uwpm_email_open_events
wp_ewd_uwpm_email_send_events
wp_ewd_uwpm_email_links_clicked_events
New WordPress options
can_compress_scripts
EWD_UWPM_Scheduled_Emails
widget_theysaidso_widget
widget_recent-comments
widget_ewd_uwpm_interests_widget
ewd-uwpm-permission-level
theysaidso_admin_options
widget_recent-posts
ewd-uwpm-installation-time
db_upgraded

Browser metrics Passed 4 tests

An overview of browser requirements for Ultimate WP Mail
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,877 ▲9014.67 ▲0.391.70 ▼0.2439.32 ▼7.52
Dashboard /wp-admin2,248 ▲685.53 ▼0.0988.60 ▼8.4641.72 ▲1.61
Posts /wp-admin/edit.php2,153 ▲531.96 ▼0.0239.58 ▼1.7935.11 ▼1.72
Add New Post /wp-admin/post-new.php6,409 ▲4,88427.53 ▲3.89879.80 ▲263.2935.93 ▼10.65
Media Library /wp-admin/upload.php1,453 ▲564.17 ▼0.0898.92 ▼6.7643.63 ▲1.06
Dashboard /wp-admin/edit.php?post_type=uwpm_mail_template&page=ewd-uwpm-dashboard1,2212.0733.1071.17
Lists /wp-admin/edit.php?post_type=uwpm_mail_template&page=ewd-uwpm-email-lists1,0562.2032.6137.02
All Emails /wp-admin/edit.php?post_type=uwpm_mail_template1,2012.3340.9135.44
All Email Logs /wp-admin/edit.php?post_type=uwpm_email_log1,2502.3437.7436.42
Add New /wp-admin/post-new.php?post_type=uwpm_mail_template3,0498.02176.58128.57
User Stat Details /wp-admin/edit.php?post_type=uwpm_mail_template&page=ewd-uwpm-user-stat-details9702.1030.1032.98
User Stats /wp-admin/edit.php?post_type=uwpm_mail_template&page=ewd-uwpm-user-stats1,2702.1330.4832.77
Ultimate WP Mail - Welcome! /wp-admin/index.php?page=ewd-uwpm-getting-started1,4139.13274.8973.84
Email Categories /wp-admin/edit-tags.php?taxonomy=uwpm-category&post_type=uwpm_mail_template1,3212.2035.9329.22
Settings /wp-admin/edit.php?post_type=uwpm_mail_template&page=ewd-uwpm-settings1,4383.7055.8034.32

Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 50% 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
  • This plugin does not fully uninstall, leaving 4 tables in the database
    • wp_ewd_uwpm_email_only_users
    • wp_ewd_uwpm_email_open_events
    • wp_ewd_uwpm_email_links_clicked_events
    • wp_ewd_uwpm_email_send_events
  • The uninstall procedure has failed, leaving 10 options in the database
    • widget_recent-comments
    • ewd-uwpm-permission-level
    • widget_recent-posts
    • can_compress_scripts
    • EWD_UWPM_Scheduled_Emails
    • ewd-uwpm-installation-time
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget
    • widget_ewd_uwpm_interests_widget

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)
Please fix the following server-side errors
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/post-new.php?post_type=uwpm_mail_template
    • > Notice in wp-content/plugins/ultimate-wp-mail/ewd-uwpm-templates/admin-send-mail.php+176
    Trying to get property 'term_id' of non-object
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/post-new.php?post_type=uwpm_mail_template
    • > Notice in wp-content/plugins/ultimate-wp-mail/ewd-uwpm-templates/admin-send-mail.php+176
    Trying to get property 'name' of non-object
    • > GET request to /wp-admin/edit.php?post_type=uwpm_mail_template&page=ewd-uwpm-user-stats
    • > Notice in wp-content/plugins/ultimate-wp-mail/includes/WP_List_Table.UserStatsTable.class.php+629
    Trying to access array offset on value of type null

SRP 50% 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
Please fix the following items
  • 53× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'sapAdminPageSetting_2_6_17' not found in wp-content/plugins/ultimate-wp-mail/lib/simple-admin-pages/classes/AdminPageSetting.FileUpload.class.php:18
    • > PHP Fatal error
      Uncaught Error: Class 'sapAdminPageSetting_2_6_17' not found in wp-content/plugins/ultimate-wp-mail/lib/simple-admin-pages/classes/AdminPageSetting.Scheduler.class.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'sapAdminPageSetting_2_6_17' not found in wp-content/plugins/ultimate-wp-mail/lib/simple-admin-pages/classes/AdminPageSetting.Editor.class.php:10
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/ultimate-wp-mail/includes/Widgets.class.php:16
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/ultimate-wp-mail/ewd-uwpm-templates/subscription-interest-woocommerce-categories.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'sapAdminPageSetting_2_6_17' not found in wp-content/plugins/ultimate-wp-mail/lib/simple-admin-pages/classes/AdminPageSetting.Ordering.class.php:21
    • > PHP Fatal error
      Uncaught Error: Call to undefined function ewd_format_classes() in wp-content/plugins/ultimate-wp-mail/ewd-uwpm-templates/subscription-interests.php:1
    • > PHP Warning
      require_once(EWD_UWPM_PLUGIN_DIR/views/View.class.php): failed to open stream: No such file or directory in wp-content/plugins/ultimate-wp-mail/views/Base.class.php on line 10
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/ultimate-wp-mail/ewd-uwpm-templates/admin-email-preview.php:4
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/ultimate-wp-mail/ewd-uwpm-templates/admin-email-builder.php:3

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There are user-side issues you should fix
    • > GET request to /wp-admin/index.php?page=ewd-uwpm-getting-started
    • > Network (severe)
    wp-content/plugins/ultimate-wp-mail/assets/css/admin.css?ver=1.2.4 - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Attributes that require attention:
  • Tags: There are too many tags (13 tag instead of maximum 10)
Please take inspiration from this readme.txt

ultimate-wp-mail/ultimate-wp-mail.php 92% from 13 tests

The primary PHP file in "Ultimate WP Mail" version 1.2.4 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
  • Description: Keep the plugin description shorter than 140 characters (currently 150 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected16,824 lines of code in 175 files:
LanguageFilesBlank linesComment linesLines of code
PHP843,5033,2808,962
CSS192621723,810
JavaScript698593783,716
Markdown31260336

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.42
Average class complexity20.54
▷ Minimum class complexity1.00
▷ Maximum class complexity278.00
Average method complexity3.95
▷ Minimum method complexity1.00
▷ Maximum method complexity36.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes67
▷ Abstract classes34.48%
▷ Concrete classes6495.52%
▷ Final classes00.00%
Methods447
▷ Static methods30.67%
▷ Public methods40289.93%
▷ Protected methods306.71%
▷ Private methods153.36%
Functions28
▷ Named functions2485.71%
▷ Anonymous functions414.29%
Constants12
▷ Global constants1083.33%
▷ Class constants216.67%
▷ Public constants2100.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
39 PNG files occupy 2.83MB with 1.76MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/img/Icon_WP_Grey.png36.76KB12.11KB▼ 67.05%
assets/img/ewd-support-icon-youtube.png1.75KB0.66KB▼ 62.56%
assets/img/options-asset-info.png0.84KB0.42KB▼ 49.53%
assets/img/Logo_Image.png7.18KB2.89KB▼ 59.68%
assets/img/templates/Newsletter.png309.07KB89.37KB▼ 71.09%