84% custom-email-sender

Code Review | Custom Email Sender

WordPress plugin Custom Email Sender scored84%from 54 tests.

About plugin

  • Plugin page: custom-email-sender
  • Plugin version: 2.5.5
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9-6.3.1
  • WordPress version: 6.3.1
  • First release: Jun 12, 2019
  • Latest release: Sep 8, 2023
  • Number of updates: 185
  • Update frequency: every 8.4 days
  • Top authors: neoslab (100%)

Code review

54 tests

User reviews

1 review

Install metrics

50+ active /3,875 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.06MB] [CPU: ▼0.19ms] Passed 4 tests

Analyzing server-side resources used by Custom Email Sender
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0641.60 ▼6.86
Dashboard /wp-admin3.36 ▲0.0652.30 ▲2.35
Posts /wp-admin/edit.php3.47 ▲0.1252.78 ▲4.41
Add New Post /wp-admin/post-new.php5.94 ▲0.06111.62 ▲17.39
Media Library /wp-admin/upload.php3.28 ▲0.0636.29 ▼0.65
Email Sender /wp-admin/options-general.php?page=custom-email-sender-admin3.2733.68

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 29 new files
Database: no new tables, 7 new options
New WordPress options
db_upgraded
_custom_email_sender
theysaidso_admin_options
widget_recent-comments
widget_theysaidso_widget
can_compress_scripts
widget_recent-posts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Custom Email Sender
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲3313.29 ▼1.014.24 ▲2.0941.93 ▼1.57
Dashboard /wp-admin2,210 ▲225.90 ▲0.04105.90 ▼1.9639.77 ▼5.62
Posts /wp-admin/edit.php2,093 ▲42.00 ▼0.1741.32 ▲0.5434.14 ▼2.14
Add New Post /wp-admin/post-new.php1,536 ▲2223.30 ▲5.51650.38 ▼34.6551.76 ▲0.08
Media Library /wp-admin/upload.php1,386 ▲14.19 ▼0.0398.47 ▼12.9846.90 ▼3.11
Email Sender /wp-admin/options-general.php?page=custom-email-sender-admin8702.0224.3754.57

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test

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
Almost there! Just fix the following items
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/custom-email-sender/admin/partials/custom-email-sender-admin-options.php:26

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 an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
These attributes need your attention:
  • Screenshots: Please add an image for screenshot #1 (A general view of the plugin "options" page.)
You can look at the official readme.txt

custom-email-sender/custom-email-sender.php Passed 13 tests

The primary PHP file in "Custom Email Sender" version 2.5.5 is used by WordPress to initiate all plugin functionality
100 characters long description:
Change the default email address and sender name output for all message sent from your WP dashboard.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Good job! No executable or dangerous file extensions detected1,084 lines of code in 15 files:
LanguageFilesBlank linesComment linesLines of code
CSS311844737
PHP1061360342
JavaScript2005

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.33
Average class complexity4.50
▷ Minimum class complexity1.00
▷ Maximum class complexity17.00
Average method complexity1.81
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes6
▷ Abstract classes00.00%
▷ Concrete classes6100.00%
▷ Final classes00.00%
Methods26
▷ Static methods27.69%
▷ Public methods2284.62%
▷ Protected methods00.00%
▷ Private methods415.38%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 PNG file occupies 0.07MB with 0.05MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png71.10KB22.18KB▼ 68.80%