68% email-reminders

Code Review | Email Reminders

WordPress plugin Email Reminders scored68%from 54 tests.

About plugin

  • Plugin page: email-reminders
  • Plugin version: 2.0.4
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.4
  • WordPress version: 6.3.1
  • First release: Aug 4, 2020
  • Latest release: Nov 12, 2023
  • Number of updates: 34
  • Update frequency: every 35.2 days
  • Top authors: wpdevelop (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

100+ active /3,884 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲2.86MB] [CPU: ▲16.85ms] Passed 4 tests

This is a short check of server-side resources used by Email Reminders
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /6.30 ▲2.8359.04 ▲19.07
Dashboard /wp-admin6.22 ▲2.9163.47 ▲13.23
Posts /wp-admin/edit.php6.27 ▲2.9169.44 ▲22.74
Add New Post /wp-admin/post-new.php8.74 ▲2.85102.53 ▲17.52
Media Library /wp-admin/upload.php6.08 ▲2.8552.19 ▲17.57
Rules /wp-admin/admin.php?page=oper-rules6.2062.94
Contacts /wp-admin/admin.php?page=oper-contacts6.1253.27
Reminders /wp-admin/admin.php?page=oper-reminders6.1149.12
Settings /wp-admin/admin.php?page=oper-settings6.2259.13

Server storage [IO: ▲2.77MB] [DB: ▲0.01MB] Passed 3 tests

Filesystem and database footprint
This plugin installed successfully
Filesystem: 170 new files
Database: 5 new tables, 25 new options
New tables
wp_o_er_reminders
wp_o_er_rules
wp_o_er_contacts
wp_o_er_log
wp_o_er_contacts_meta
New WordPress options
oper_force_xls2csv_import
oper_user_role_reminders
oper_contact_form__custom_forms
oper_reminders_email_field_name
widget_recent-comments
oper_contacts_editing_via
theysaidso_admin_options
oper_date_format
oper_activation_process
oper_protected_directory_name_level1
...

Browser metrics Passed 4 tests

A check of browser resources used by Email Reminders
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,008 ▲26113.46 ▼0.898.31 ▲6.5236.74 ▼7.54
Dashboard /wp-admin2,270 ▲905.56 ▼0.0985.08 ▼18.9838.51 ▼14.20
Posts /wp-admin/edit.php2,175 ▲721.99 ▲0.0137.90 ▲0.5033.41 ▲1.47
Add New Post /wp-admin/post-new.php1,574 ▲4822.87 ▼0.14687.99 ▼37.6358.41 ▲10.62
Media Library /wp-admin/upload.php1,476 ▲764.21 ▲0.07102.85 ▼0.0140.47 ▼3.25
Rules /wp-admin/admin.php?page=oper-rules1,7196.07118.1079.37
Contacts /wp-admin/admin.php?page=oper-contacts1,8715.93105.4059.03
Reminders /wp-admin/admin.php?page=oper-reminders1,8445.8780.1659.58
Settings /wp-admin/admin.php?page=oper-settings1,9935.6064.6556.84

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
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 5 tables in the database
    • wp_o_er_contacts
    • wp_o_er_rules
    • wp_o_er_reminders
    • wp_o_er_contacts_meta
    • wp_o_er_log
  • The uninstall procedure has failed, leaving 25 options in the database
    • oper_is_delete_if_deactive
    • oper_force_xls2csv_import
    • theysaidso_admin_options
    • oper_user_role_contacts
    • oper_activation_process
    • widget_recent-comments
    • oper_reminders_email_field_name
    • oper_protected_directory_name_level1
    • oper_contacts_labels
    • widget_theysaidso_widget
    • ...

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
These server-side errors were triggered
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=oper-reminders
    • > Notice in wp-content/plugins/email-reminders/includes/cron/includes/opera-view-reminders.php+208
    Undefined index: opera_cron_hook__reminders_send
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=oper-reminders
    • > Notice in wp-content/plugins/email-reminders/includes/cron/includes/opera-view-reminders.php+208
    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
  • 3× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Class 'OPER_JS_CSS' not found in wp-content/plugins/email-reminders/includes/load-js.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'OPER_JS_CSS' not found in wp-content/plugins/email-reminders/includes/load-css.php:13
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/email-reminders/includes/csv-parser/csv_css_js.php:11

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need to be fixed:
  • Tags: Please delete some tags, you are using 11 tag instead of maximum 10
The official readme.txt might help

email-reminders/email-reminders.php Passed 13 tests

This is the main PHP file of "Email Reminders" version 2.0.4, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
75 characters long description:
Sending friendly email reminders or follow-up emails based on custom rules.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin33,577 lines of code in 148 files:
LanguageFilesBlank linesComment linesLines of code
PHP675,7809,53315,282
CSS5057664712,818
JavaScript291,1361,4735,170
SVG100288
Markdown14019

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.33
Average class complexity20.20
▷ Minimum class complexity3.00
▷ Maximum class complexity142.00
Average method complexity3.17
▷ Minimum method complexity1.00
▷ Maximum method complexity27.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes41
▷ Abstract classes512.20%
▷ Concrete classes3687.80%
▷ Final classes411.11%
Methods372
▷ Static methods266.99%
▷ Public methods30281.18%
▷ Protected methods20.54%
▷ Private methods6818.28%
Functions253
▷ Named functions253100.00%
▷ Anonymous functions00.00%
Constants21
▷ Global constants21100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
7 compressed PNG files occupy 0.01MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/img/arrows.png0.24KB0.24KB0.00%
assets/img/icon-16x16.png0.61KB0.75KB0.00%
assets/vendors/chosen/chzn-sprite@2x.png0.72KB0.83KB0.00%
assets/vendors/chosen/chzn-sprite.png0.53KB0.88KB0.00%
assets/img/arrows-2x.png0.84KB0.88KB0.00%