72% email-users-on-update-of-download-for-easy-digital-downloads

Code Review | Email Users on Update of Download for Easy Digital Downloads

WordPress plugin Email Users on Update of Download for Easy Digital Downloads scored 72% from 54 tests.

About plugin

  • Plugin page: email-users-on-up...
  • Plugin version: 1.1.1
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.1-6.3
  • WordPress version: 6.3.1
  • First release: Sep 9, 2022
  • Latest release: Aug 7, 2023
  • Number of updates: 8
  • Update frequency: every 41.5 days
  • Top authors: mpol (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 591 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.04MB] [CPU: ▼10.22ms] Passed 4 tests

Server-side resources used by Email Users on Update of Download for Easy Digital Downloads
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0036.32 ▼5.89
Dashboard /wp-admin3.36 ▲0.0646.68 ▼22.80
Posts /wp-admin/edit.php3.41 ▲0.0650.05 ▲4.04
Add New Post /wp-admin/post-new.php5.94 ▲0.0685.80 ▼14.65
Media Library /wp-admin/upload.php3.28 ▲0.0636.55 ▲2.45

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-comments
db_upgraded
widget_recent-posts
widget_theysaidso_widget
can_compress_scripts

Browser metrics Passed 4 tests

A check of browser resources used by Email Users on Update of Download for Easy Digital Downloads
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲6913.55 ▼1.201.79 ▼0.4437.37 ▼9.52
Dashboard /wp-admin2,204 ▲165.81 ▼0.00105.32 ▼22.6840.30 ▼3.30
Posts /wp-admin/edit.php2,093 ▲41.97 ▼0.0539.49 ▼0.3135.79 ▲0.09
Add New Post /wp-admin/post-new.php1,517 ▼2117.64 ▼5.74676.29 ▲32.6954.47 ▼0.61
Media Library /wp-admin/upload.php1,389 ▼24.28 ▲0.0499.20 ▲1.6244.08 ▲2.01
EDD Email Users /wp-admin/edd-email-users.php260.440.0914.60

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments

Smoke tests 25% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Good news, no errors were detected

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
Please fix the following
  • 3× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/email-users-on-update-of-download-for-easy-digital-downloads/edd-email-user-admin-ajax.php
    • > /wp-content/plugins/email-users-on-update-of-download-for-easy-digital-downloads/edd-email-user-email.php
    • > /wp-content/plugins/email-users-on-update-of-download-for-easy-digital-downloads/edd-email-user-settingspage.php
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/email-users-on-update-of-download-for-easy-digital-downloads/edd-email-user.php:47

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Please fix the following browser errors
    • > GET request to /wp-admin/edd-email-users.php
    • > Network (severe)
    wp-admin/edd-email-users.php - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Please fix the following attributes:
  • Screenshots: Screenshot #1 (Test...) image missing
The official readme.txt is a good inspiration

email-users-on-update-of-download-for-easy-digital-downloads/edd-email-user.php 85% from 13 tests

"Email Users on Update of Download for Easy Digital Downloads" version 1.1.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("email-users-on-update-of-download-for-easy-digital-downloads.php" instead of "edd-email-user.php")
  • Domain Path: The domain path is invalid: folder "/lang/" does not exist

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin347 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP4155130347

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.32
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions12
▷ Named functions12100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.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
No PNG files were detected