84% wp-email-delivery

Code Review | WP Email Delivery

WordPress plugin WP Email Delivery scored84%from 54 tests.

About plugin

  • Plugin page: wp-email-delivery
  • Plugin version: 1.20.11.23
  • PHP version: 7.4.16
  • WordPress compatibility: 3.7-5.6
  • WordPress version: 6.3.1
  • First release: Nov 3, 2015
  • Latest release: Nov 24, 2020
  • Number of updates: 29
  • Update frequency: every 63.7 days
  • Top authors: brewlabs (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

200+ active /4,376 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▼5.58ms] Passed 4 tests

Analyzing server-side resources used by WP Email Delivery
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0341.08 ▼7.88
Dashboard /wp-admin3.33 ▲0.0352.29 ▼5.22
Posts /wp-admin/edit.php3.39 ▲0.0350.70 ▼1.00
Add New Post /wp-admin/post-new.php5.92 ▲0.0391.33 ▼8.22
Media Library /wp-admin/upload.php3.26 ▲0.0339.04 ▲1.81
WP Email Delivery /wp-admin/options-general.php?page=wp_email_delivery_settings3.2841.30

Server storage [IO: ▲0.14MB] [DB: ▲0.00MB] Passed 3 tests

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 29 new files
Database: no new tables, 7 new options
New WordPress options
theysaidso_admin_options
wp_email_delivery_version
widget_recent-posts
widget_theysaidso_widget
widget_recent-comments
can_compress_scripts
db_upgraded

Browser metrics Passed 4 tests

An overview of browser requirements for WP Email Delivery
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,818 ▲3214.28 ▲0.071.95 ▼0.2742.22 ▼0.27
Dashboard /wp-admin2,199 ▲195.63 ▼0.0689.80 ▼8.4337.48 ▼5.73
Posts /wp-admin/edit.php2,104 ▲42.02 ▲0.0239.06 ▲3.2838.86 ▲1.55
Add New Post /wp-admin/post-new.php1,531 ▲523.08 ▼0.36669.09 ▲22.9356.48 ▼1.78
Media Library /wp-admin/upload.php1,404 ▲44.21 ▲0.07100.87 ▼2.7245.39 ▼0.00
WP Email Delivery /wp-admin/options-general.php?page=wp_email_delivery_settings1,0473.1556.5335.69

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • widget_recent-comments
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded
    • wp_email_delivery_version

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

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 fix the following items
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/wp-email-delivery/includes/legacy/wped.wp-mail.php:3

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need to be fixed:
  • Tags: There are too many tags (15 tag instead of maximum 10)
Please take inspiration from this readme.txt

wp-email-delivery/wp-email-delivery.php Passed 13 tests

The main PHP script in "WP Email Delivery" version 1.20.11.23 is automatically included on every request by WordPress
36 characters long description:
Managed Email Delivery for WordPress

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
There were no executable files found in this plugin2,015 lines of code in 23 files:
LanguageFilesBlank linesComment linesLines of code
PHP124406511,588
JavaScript77764352
LESS13033
HTML14822
JSON10019
CSS1001

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.46
Average class complexity31.43
▷ Minimum class complexity1.00
▷ Maximum class complexity77.00
Average method complexity4.58
▷ Minimum method complexity1.00
▷ Maximum method complexity54.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods60
▷ Static methods46.67%
▷ Public methods5693.33%
▷ Protected methods00.00%
▷ Private methods46.67%
Functions9
▷ Named functions9100.00%
▷ Anonymous functions00.00%
Constants9
▷ Global constants666.67%
▷ Class constants333.33%
▷ Public constants3100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There were not PNG files found in your plugin