78% elemailer-lite

Code Review | Elemailer Lite - Elementor email template & campaign builder

WordPress plugin Elemailer Lite - Elementor email template & campaign builder scored78%from 54 tests.

About plugin

  • Plugin page: elemailer-lite
  • Plugin version: 2.0
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5-6.3
  • WordPress version: 6.3.1
  • First release: Dec 22, 2020
  • Latest release: Aug 24, 2023
  • Number of updates: 58
  • Update frequency: every 16.8 days
  • Top authors: elemailer (100%)

Code review

54 tests

User reviews

21 reviews

Install metrics

6,000+ active /49,048 total downloads

Benchmarks

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
This plugin's installer ran successfully

Server metrics [RAM: ▲0.39MB] [CPU: ▼2.54ms] Passed 4 tests

A check of server-side resources used by Elemailer Lite - Elementor email template & campaign builder
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.94 ▲0.4843.05 ▲0.73
Dashboard /wp-admin3.78 ▲0.4847.35 ▼4.36
Posts /wp-admin/edit.php3.83 ▲0.4847.07 ▼1.49
Add New Post /wp-admin/post-new.php6.09 ▲0.2087.39 ▼5.03
Media Library /wp-admin/upload.php3.64 ▲0.4139.02 ▲1.98
Settings /wp-admin/admin.php?page=em-form-template-settings3.6235.23
Form Templates /wp-admin/edit.php?post_type=em-form-template3.7542.29

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 342 new files
Database: no new tables, 7 new options
New WordPress options
elemailer_lite_info
widget_theysaidso_widget
can_compress_scripts
widget_recent-comments
theysaidso_admin_options
widget_recent-posts
db_upgraded

Browser metrics Passed 4 tests

A check of browser resources used by Elemailer Lite - Elementor email template & campaign builder
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,827 ▲6614.26 ▲0.011.64 ▼0.1837.17 ▼11.13
Dashboard /wp-admin2,236 ▲625.58 ▼0.0490.47 ▼16.0089.03 ▲46.02
Posts /wp-admin/edit.php2,139 ▲392.03 ▲0.0536.68 ▼2.4631.37 ▼3.62
Add New Post /wp-admin/post-new.php1,577 ▲5117.15 ▼6.45561.60 ▼57.27160.48 ▲99.95
Media Library /wp-admin/upload.php1,435 ▲444.29 ▲0.12102.50 ▼3.4792.71 ▲48.93
Settings /wp-admin/admin.php?page=em-form-template-settings9011.8226.1532.92
Form Templates /wp-admin/edit.php?post_type=em-form-template1,2122.0041.0233.50

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
These items require your attention
  • Zombie WordPress options were found after uninstall: 7 options
    • elemailer_lite_info
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected

SRP 0% 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
The following issues need your attention
  • 3× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/elemailer-lite/helpers/notice.php
    • > /wp-content/plugins/elemailer-lite/integrations/elementor/library.php
    • > /wp-content/plugins/elemailer-lite/app/form-template/view/default-elementor-style.php
  • 35× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'Symfony\\Component\\CssSelector\ode\\AbstractNode' not found in wp-content/plugins/elemailer-lite/helpers/vendor/symfony/css-selector/Node/ClassNode.php:24
    • > PHP Fatal error
      Uncaught Error: Class 'Symfony\\Component\\CssSelector\\Exception\\ParseException' not found in wp-content/plugins/elemailer-lite/helpers/vendor/symfony/css-selector/Exception/ExpressionErrorException.php:22
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/elemailer-lite/public/views/em-form-template-settings.php:2
    • > PHP Fatal error
      Uncaught Error: Interface 'Symfony\\Component\\CssSelector\ode\odeInterface' not found in wp-content/plugins/elemailer-lite/helpers/vendor/symfony/css-selector/Node/AbstractNode.php:24
    • > PHP Fatal error
      Uncaught Error: Class 'Symfony\\Component\\CssSelector\\Exception\\ParseException' not found in wp-content/plugins/elemailer-lite/helpers/vendor/symfony/css-selector/Exception/InternalErrorException.php:22
    • > PHP Fatal error
      Uncaught Error: Class 'Symfony\\Component\\CssSelector\ode\\AbstractNode' not found in wp-content/plugins/elemailer-lite/helpers/vendor/symfony/css-selector/Node/AttributeNode.php:24
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/elemailer-lite/core/global.php:9
    • > PHP Fatal error
      Uncaught Error: Class 'Symfony\\Component\\CssSelector\\XPath\\Extension\\AbstractExtension' not found in wp-content/plugins/elemailer-lite/helpers/vendor/symfony/css-selector/XPath/Extension/NodeExtension.php:28
    • > PHP Fatal error
      Uncaught Error: Interface 'Symfony\\Component\\CssSelector\\Parser\\ParserInterface' not found in wp-content/plugins/elemailer-lite/helpers/vendor/symfony/css-selector/Parser/Shortcut/HashParser.php:29
    • > PHP Fatal error
      Uncaught Error: Class 'Symfony\\Component\\CssSelector\\XPath\\Extension\\AbstractExtension' not found in wp-content/plugins/elemailer-lite/helpers/vendor/symfony/css-selector/XPath/Extension/CombinationExtension.php:26

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that require attention:
  • Tags: Too many tags (12 tag instead of maximum 10); only the first 5 tags are used in your directory listing
Please take inspiration from this readme.txt

elemailer-lite/elemailer-lite.php Passed 13 tests

The primary PHP file in "Elemailer Lite - Elementor email template & campaign builder" version 2.0 is used by WordPress to initiate all plugin functionality
57 characters long description:
Elementor Email template & campaign builder for WordPress

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Good job! No executable or dangerous file extensions detected50,072 lines of code in 141 files:
LanguageFilesBlank linesComment linesLines of code
JSON60035,983
PHP1152,1563,1119,916
CSS64441002,901
JavaScript6231194996
XML100145
Markdown418067
YAML16041
SVG20123

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.37
Average class complexity9.49
▷ Minimum class complexity1.00
▷ Maximum class complexity69.00
Average method complexity2.61
▷ Minimum method complexity1.00
▷ Maximum method complexity69.00
Code structure
Namespaces26
Interfaces7
Traits1
Classes98
▷ Abstract classes55.10%
▷ Concrete classes9394.90%
▷ Final classes77.53%
Methods574
▷ Static methods559.58%
▷ Public methods51689.90%
▷ Protected methods345.92%
▷ Private methods244.18%
Functions24
▷ Named functions1250.00%
▷ Anonymous functions1250.00%
Constants28
▷ Global constants725.00%
▷ Class constants2175.00%
▷ Public constants21100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
148 PNG files occupy 0.37MB with 0.14MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
integrations/elementor/widgets/social/assets/social-icons/outline/outline-light-spotify-48.png0.79KB0.54KB▼ 31.64%
integrations/elementor/widgets/social/assets/social-icons/outline/outline-dark-medium-48.png0.78KB0.57KB▼ 27.15%
integrations/elementor/widgets/social/assets/social-icons/outline/outline-light-forwardtofriend-48.png0.86KB0.57KB▼ 34.01%
integrations/elementor/widgets/social/assets/social-icons/outline/outline-color-medium-48.png1.07KB0.57KB▼ 46.58%
integrations/elementor/widgets/social/assets/social-icons/outline/outline-color-twitter-48.png1.03KB0.53KB▼ 48.38%