84% email-customizer

Code Review | Email Customizer

WordPress plugin Email Customizer scored 84% from 54 tests.

About plugin

  • Plugin page: email-customizer
  • Plugin version: 1.0.2
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-5.8
  • WordPress version: 5.8.1
  • First release: Nov 2, 2020
  • Latest release: Sep 2, 2021
  • Number of updates: 5
  • Update frequency: every 61.4 days
  • Top authors: picocodes (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active / 686 total downloads


Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully

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

Server-side resources used by Email Customizer
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.85 ▲0.1327.94 ▲8.47
Dashboard /wp-admin3.08 ▲0.0241.04 ▼3.21
Posts /wp-admin/edit.php3.19 ▲0.0841.34 ▼6.82
Add New Post /wp-admin/post-new.php5.44 ▲0.0083.79 ▼560.16
Media Library /wp-admin/upload.php3.02 ▲0.0232.98 ▲0.18

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 129 new files
Database: no new tables, 2 new options
New WordPress options

Browser metrics Passed 4 tests

Email Customizer: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,708 ▲11215.82 ▼0.047.36 ▼1.2150.36 ▲4.00
Dashboard /wp-admin2,978 ▲445.90 ▲0.00142.16 ▼6.20112.32 ▼5.82
Posts /wp-admin/edit.php2,741 ▲22.68 ▼0.0263.74 ▼9.1991.96 ▲0.16
Add New Post /wp-admin/post-new.php1,675 ▼19718.89 ▼0.31380.77 ▼4.51102.48 ▼10.48
Media Library /wp-admin/upload.php1,815 ▲115.07 ▲0.04150.14 ▲7.90120.94 ▲1.32

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • The uninstall procedure has failed, leaving 2 options in the database
    • email_customizer
    • email-customizer-redirected

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
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 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
Please take a closer look at the following
  • 70× PHP files trigger server errors when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_kses_post() in wp-content/plugins/email-customizer/includes/template/bottom.php:13
    • > PHP Fatal error
      Uncaught Error: Interface 'Symfony\\Component\\CssSelector\\Parser\\Handler\\HandlerInterface' not found in wp-content/plugins/email-customizer/vendor/symfony/css-selector/Parser/Handler/CommentHandler.php:27
    • > PHP Fatal error
      Uncaught Error: Class 'Symfony\\Component\\CssSelector\\Tests\ode\\AbstractNodeTest' not found in wp-content/plugins/email-customizer/vendor/symfony/css-selector/Tests/Node/PseudoNodeTest.php:17
    • > PHP Fatal error
      Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/email-customizer/vendor/symfony/css-selector/Tests/Parser/Shortcut/ElementParserTest.php:21
    • > PHP Fatal error
      Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/email-customizer/vendor/symfony/css-selector/Tests/Parser/ReaderTest.php:17
    • > PHP Fatal error
      Uncaught Error: Class 'Pelago\\Emogrifier\\HtmlProcessor\\AbstractHtmlProcessor' not found in wp-content/plugins/email-customizer/vendor/pelago/emogrifier/src/Emogrifier/HtmlProcessor/HtmlPruner.php:14
    • > PHP Fatal error
      Uncaught Error: Class 'Symfony\\Component\\CssSelector\\Tests\\Parser\\Handler\\AbstractHandlerTest' not found in wp-content/plugins/email-customizer/vendor/symfony/css-selector/Tests/Parser/Handler/CommentHandlerTest.php:19
    • > PHP Fatal error
      Uncaught Error: Interface 'Symfony\\Component\\CssSelector\\Parser\\Handler\\HandlerInterface' not found in wp-content/plugins/email-customizer/vendor/symfony/css-selector/Parser/Handler/IdentifierHandler.php:30
    • > PHP Fatal error
      Uncaught Error: Class 'Symfony\\Component\\CssSelector\\Tests\ode\\AbstractNodeTest' not found in wp-content/plugins/email-customizer/vendor/symfony/css-selector/Tests/Node/NegationNodeTest.php:18
    • > PHP Fatal error
      Uncaught Error: Interface 'Symfony\\Component\\CssSelector\\Parser\\Handler\\HandlerInterface' not found in wp-content/plugins/email-customizer/vendor/symfony/css-selector/Parser/Handler/StringHandler.php:32

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


Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
5 plugin tags: email template, email customizer, html emails, email designer, email

email-customizer/email-customizer.php 92% from 13 tests

The main file in "Email Customizer" v. 1.0.2 serves as a complement to information provided in readme.txt and as the entry point to the plugin
It is important to fix the following:
  • Description: The description should be shorter than 140 characters (currently 146 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin8,366 lines of code in 112 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.27
Average class complexity6.82
▷ Minimum class complexity1.00
▷ Maximum class complexity100.00
Average method complexity1.88
▷ Minimum method complexity1.00
▷ Maximum method complexity27.00
Code structure
▷ Abstract classes55.81%
▷ Concrete classes8194.19%
▷ Final classes00.00%
▷ Static methods457.35%
▷ Public methods47677.78%
▷ Protected methods172.78%
▷ Private methods11919.44%
▷ Named functions743.75%
▷ Anonymous functions956.25%
▷ Global constants00.00%
▷ Class constants35100.00%
▷ Public constants35100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
6 compressed PNG files occupy 0.00MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
includes/assets/facebook-black.png0.35KB0.17KB▼ 49.86%
includes/assets/twitter-white.png0.58KB0.58KB▼ 0.67%