90% wp-custom-emails

Code Review | WP Custom Emails

WordPress plugin WP Custom Emails scored 90% from 54 tests.

About plugin

  • Plugin page: wp-custom-emails
  • Plugin version: 1.2.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-4.4
  • WordPress version: 5.8.1
  • First release: Aug 3, 2015
  • Latest release: Nov 12, 2016
  • Number of updates: 15
  • Update frequency: every 31.9 days
  • Top authors: damian-gora (86.67%)upsell (20%)

Code review

54 tests

User reviews

4 reviews

Install metrics

300+ active / 3,182 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully

Server metrics [RAM: ▲0.36MB] [CPU: ▼432.12ms] Passed 4 tests

This is a short check of server-side resources used by WP Custom Emails
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.13 ▲0.3037.37 ▲6.16
Dashboard /wp-admin3.48 ▲0.4344.87 ▼7.91
Posts /wp-admin/edit.php3.53 ▲0.4347.01 ▲0.01
Add New Post /wp-admin/post-new.php5.79 ▲0.3596.61 ▼1,716.79
Media Library /wp-admin/upload.php3.37 ▲0.3635.81 ▼3.79
WP Custom Emails /wp-admin/options-general.php?page=wp-custom-emails3.3527.85

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 18 new files
Database: no new tables, 1 new option
New WordPress options
wtbp_ce_settings

Browser metrics Passed 4 tests

Checking browser requirements for WP Custom Emails
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,708 ▲11216.42 ▲0.7511.50 ▲2.6747.85 ▲0.45
Dashboard /wp-admin2,975 ▲445.89 ▼0.15143.65 ▼7.20112.18 ▼18.22
Posts /wp-admin/edit.php2,741 ▲22.84 ▲0.1267.36 ▼1.6888.66 ▲1.44
Add New Post /wp-admin/post-new.php1,503 ▼11218.60 ▼2.75412.49 ▲149.22115.33 ▲11.53
Media Library /wp-admin/upload.php1,812 ▲25.04 ▲0.01161.84 ▲6.94121.13 ▲2.90
WP Custom Emails /wp-admin/options-general.php?page=wp-custom-emails1,1142.3457.7076.49

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
  • This plugin did not uninstall successfully, leaving 1 option in the database
    • wtbp_ce_settings

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
8 plugin tags: trackback, notifications, comment, pingback, customize...

wp-custom-emails/wp-custom-emails.php Passed 13 tests

The main PHP file in "WP Custom Emails" ver. 1.2.2 adds more information about the plugin and also serves as the entry point for this plugin
47 characters long description:
Easily customize WordPress notification emails.

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,733 lines of code in 17 files:
LanguageFilesBlank linesComment linesLines of code
PHP145853241,592
JavaScript1441670
CSS113063
SVG1008

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.32
Average class complexity15.75
▷ Minimum class complexity1.00
▷ Maximum class complexity76.00
Average method complexity2.82
▷ Minimum method complexity1.00
▷ Maximum method complexity16.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes8
▷ Abstract classes00.00%
▷ Concrete classes8100.00%
▷ Final classes00.00%
Methods65
▷ Static methods3046.15%
▷ Public methods5483.08%
▷ Protected methods23.08%
▷ Private methods913.85%
Functions17
▷ Named functions17100.00%
▷ Anonymous functions00.00%
Constants6
▷ Global constants6100.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