61% ether-mailer

Code Review | Ether Mailer WordPress Plugin

WordPress plugin Ether Mailer WordPress Plugin scored61%from 54 tests.

About plugin

  • Plugin page: ether-mailer
  • Plugin version: 1.0.9
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-4.7.4
  • WordPress version: 6.3.1
  • First release: May 3, 2017
  • Latest release: May 18, 2017
  • Number of updates: 6
  • Update frequency: every 4.0 days
  • Top authors: ethermailer (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active /1,400 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▼1.21MB] [CPU: ▼51.12ms] Passed 4 tests

An overview of server-side resources used by Ether Mailer WordPress Plugin
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.75 ▼0.7114.72 ▼27.64
Dashboard /wp-admin2.80 ▼0.5016.00 ▼50.42
Posts /wp-admin/edit.php2.80 ▼0.5517.23 ▼36.14
Add New Post /wp-admin/post-new.php2.80 ▼3.0815.94 ▼90.27
Media Library /wp-admin/upload.php2.80 ▼0.4319.59 ▼15.96
Ether Mailer plugin settings /wp-admin/options-general.php?page=ethermailerwp2.8021.61
Add New /wp-admin/post-new.php?post_type=ethermailerwp-form2.8018.35
All Ether Mailer Forms /wp-admin/edit.php?post_type=ethermailerwp-form2.8116.01

Server storage [IO: ▲1.03MB] [DB: ▲0.07MB] Passed 3 tests

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 261 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
can_compress_scripts
widget_recent-comments
db_upgraded
theysaidso_admin_options
widget_recent-posts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Ether Mailer WordPress Plugin
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,930 ▲16913.60 ▼0.639.47 ▲7.8036.99 ▼5.35
Dashboard /wp-admin2,233 ▲595.65 ▲0.1187.59 ▲0.6339.22 ▼5.78
Posts /wp-admin/edit.php2,132 ▲322.02 ▲0.0136.05 ▼6.8434.15 ▼6.90
Add New Post /wp-admin/post-new.php1,555 ▲2021.09 ▼2.26614.23 ▼49.5055.18 ▲1.56
Media Library /wp-admin/upload.php1,435 ▲384.08 ▼0.0795.95 ▼6.6440.99 ▼3.01
Ether Mailer plugin settings /wp-admin/options-general.php?page=ethermailerwp8962.0223.5827.43
Add New /wp-admin/post-new.php?post_type=ethermailerwp-form2,1496.28138.1868.45
All Ether Mailer Forms /wp-admin/edit.php?post_type=ethermailerwp-form1,0992.0031.3531.24

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
  • The plugin did not uninstall gracefully
    • > Notice in wp-content/plugins/ether-mailer/admin/class-ethermailerwp-admin.php+289
    Trying to access array offset on value of type bool
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-posts

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Smoke test failed, please fix the following
  • 6 occurences, only the last one shown
    • > GET request to /wp-admin/edit.php?post_type=ethermailerwp-form
    • > POST request to /wp-admin/admin-ajax.php
    • > Notice in wp-content/plugins/ether-mailer/admin/class-ethermailerwp-admin.php+289
    Trying to access array offset on value of type bool
  • 5 occurences, only the last one shown
    • > GET request to /wp-admin/edit.php?post_type=ethermailerwp-form
    • > POST request to /wp-admin/admin-ajax.php
    • > Notice in wp-content/plugins/ether-mailer/admin/class-ethermailerwp-admin.php+352
    Undefined index: post

SRP 0% 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
Please fix the following
  • 4× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/ether-mailer/admin/meta-box/inc/templates/media.php
    • > /wp-content/plugins/ether-mailer/admin/meta-box/inc/templates/upload.php
    • > /wp-content/plugins/ether-mailer/admin/meta-box/inc/templates/image-advanced.php
    • > /wp-content/plugins/ether-mailer/public/partials/ethermailerwp-public-display.php
  • 51× PHP files trigger server errors when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'RWMB_Field' not found in wp-content/plugins/ether-mailer/admin/meta-box/inc/fields/map.php:5
    • > PHP Fatal error
      Uncaught Error: Class 'RWMB_Field' not found in wp-content/plugins/ether-mailer/admin/meta-box/inc/fields/input.php:6
    • > PHP Fatal error
      Uncaught Error: Class 'RWMB_Text_Field' not found in wp-content/plugins/ether-mailer/admin/meta-box/inc/fields/datetime.php:6
    • > PHP Fatal error
      Uncaught Error: Class 'RWMB_Field' not found in wp-content/plugins/ether-mailer/admin/meta-box/inc/fields/divider.php:5
    • > PHP Fatal error
      Uncaught Error: Class 'Walker' not found in wp-content/plugins/ether-mailer/admin/meta-box/inc/walkers/base.php:6
    • > PHP Fatal error
      Uncaught Error: Class 'RWMB_Number_Field' not found in wp-content/plugins/ether-mailer/admin/meta-box/inc/fields/range.php:5
    • > PHP Fatal error
      Uncaught Error: Class 'RWMB_Input_Field' not found in wp-content/plugins/ether-mailer/admin/meta-box/inc/fields/text.php:5
    • > PHP Fatal error
      Uncaught Error: Class 'RWMB_Field' not found in wp-content/plugins/ether-mailer/admin/meta-box/inc/fields/multiple-values.php:11
    • > PHP Fatal error
      Uncaught Error: Class 'RWMB_Taxonomy_Field' not found in wp-content/plugins/ether-mailer/admin/meta-box/inc/fields/taxonomy-advanced.php:5
    • > PHP Fatal error
      Uncaught Error: Class 'RWMB_Choice_Field' not found in wp-content/plugins/ether-mailer/admin/meta-box/inc/fields/input-list.php:5

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration 83% from 29 tests

readme.txt 88% 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
Attributes that need to be fixed:
  • Donate link: Please fix this invalid URI: ""
  • Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line ( === ether-mailer === )
You can take inspiration from this readme.txt

ether-mailer/ethermailerwp.php 77% from 13 tests

The main PHP script in "Ether Mailer WordPress Plugin" version 1.0.9 is automatically included on every request by WordPress
You should first fix the following items:
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
  • Main file name: The principal plugin file should be the same as the plugin slug ("ether-mailer.php" instead of "ethermailerwp.php")
  • Description: Please keep the plugin description shorter than 140 characters (currently 316 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected11,824 lines of code in 223 files:
LanguageFilesBlank linesComment linesLines of code
PHP961,0273,0734,248
JavaScript803914504,188
PO File146837551,790
CSS311361291,587
Markdown19010
SVG1001

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.27
Average class complexity5.76
▷ Minimum class complexity1.00
▷ Maximum class complexity50.00
Average method complexity2.23
▷ Minimum method complexity1.00
▷ Maximum method complexity13.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes83
▷ Abstract classes78.43%
▷ Concrete classes7691.57%
▷ Final classes00.00%
Methods321
▷ Static methods23272.27%
▷ Public methods29892.83%
▷ Protected methods185.61%
▷ Private methods51.56%
Functions9
▷ Named functions9100.00%
▷ Anonymous functions00.00%
Constants23
▷ Global constants626.09%
▷ Class constants1773.91%
▷ Public constants17100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
13 compressed PNG files occupy 0.02MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
admin/meta-box/img/jqueryui/ui-bg_highlight-soft_75_cccccc_1x100.png0.10KB0.17KB0.00%
admin/meta-box/img/jqueryui/ui-icons_888888_256x240.png4.27KB4.11KB▼ 3.78%
admin/meta-box/img/jqueryui/ui-bg_glass_75_dadada_1x400.png0.11KB0.16KB0.00%
admin/meta-box/img/jqueryui/ui-bg_glass_65_ffffff_1x400.png0.10KB0.10KB▼ 5.71%
admin/meta-box/img/jqueryui/ui-bg_flat_0_aaaaaa_40x100.png0.18KB0.08KB▼ 51.67%