52% wpmailer

Code Review | WPMailer - The best mail builder, No More Core for your emails support Elementor, CF7 forms etc...

WordPress plugin WPMailer - The best mail builder, No More Core for your emails support Elementor, CF7 forms etc... scored 52% from 54 tests.

About plugin

  • Plugin page: wpmailer
  • Plugin version: 0.0.7
  • PHP compatiblity: 7.0.1+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-5.2
  • WordPress version: 5.9.2
  • First release: Feb 16, 2020
  • Latest release: Feb 20, 2020
  • Number of updates: 11
  • Update frequency: every 13.9 days
  • Top authors: giladtakoni (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 493 total downloads

Benchmarks

Plugin footprint 47% 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: ▲4.59MB] [CPU: ▼278.42ms] Passed 4 tests

Server-side resources used by WPMailer - The best mail builder, No More Core for your emails support Elementor, CF7 forms etc...
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /8.43 ▲4.9273.82 ▲23.78
Dashboard /wp-admin8.45 ▲5.0454.72 ▲21.41
Posts /wp-admin/edit.php8.45 ▲4.8155.20 ▲17.37
Add New Post /wp-admin/post-new.php10.55 ▲3.57108.88 ▼1,172.95
Media Library /wp-admin/upload.php8.45 ▲5.1545.13 ▲20.48
Freemius Debug [v.2.3.2] /wp-admin/admin.php?page=freemius8.4542.80

Server storage [IO: ▲29.96MB] [DB: ▲0.01MB] 67% from 3 tests

Filesystem and database footprint
Just a few items left to fix
  • Total filesystem usage should be limited to 25MB (currently using 29.96MB)
Filesystem: 228 new files
Database: 2 new tables, 4 new options
New tables
wpmailer_templates
wpmailer_plugin_integrations_cf7
New WordPress options
fs_debug_mode
fs_active_plugins
fs_gdpr
fs_accounts

Browser metrics Passed 4 tests

A check of browser resources used by WPMailer - The best mail builder, No More Core for your emails support Elementor, CF7 forms etc...
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,980 ▲22616.29 ▲0.718.93 ▲3.262.34 ▼0.07
Dashboard /wp-admin2,962 ▲1116.23 ▲0.17119.26 ▼28.17189.09 ▲25.76
Posts /wp-admin/edit.php2,767 ▲733.27 ▲0.0361.46 ▼0.22157.26 ▲13.66
Add New Post /wp-admin/post-new.php1,665 ▲417.17 ▲1.57453.14 ▲26.60180.53 ▲26.16
Media Library /wp-admin/upload.php1,774 ▲735.73 ▲0.20127.63 ▼15.11220.05 ▲32.16
Freemius Debug [v.2.3.2] /wp-admin/admin.php?page=freemius1,4552.7453.86123.82

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
  • Uninstall procedure validation failed for this plugin
    • > Notice in wp-content/plugins/wpmailer/libs/freemius-sdk/includes/class-freemius.php+8218
    Undefined property: stdClass::$plugins
  • Zombie tables were found after uninstall: 2 tables
    • wpmailer_plugin_integrations_cf7
    • wpmailer_templates
  • The uninstall procedure has failed, leaving 4 options in the database
    • fs_debug_mode
    • fs_accounts
    • fs_gdpr
    • fs_active_plugins

Smoke tests 25% from 4 tests

Server-side errors Passed 1 test

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

SRP 0% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Almost there! Just fix the following items
  • 3× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/wpmailer/libs/freemius-sdk/templates/ajax-loader.php
    • > /wp-content/plugins/wpmailer/public/partials/wpmailer-public-display.php
    • > /wp-content/plugins/wpmailer/admin/partials/wpmailer-admin-display.php
  • 8× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/wpmailer/libs/freemius-sdk/templates/account/partials/addon.php on line 7
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/wpmailer/libs/freemius-sdk/templates/account/partials/addon.php on line 8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function freemius() in wp-content/plugins/wpmailer/libs/freemius-sdk/templates/partials/network-activation.php:6
    • > PHP Notice
      Undefined variable: VARS in wp-content/plugins/wpmailer/libs/freemius-sdk/templates/account/partials/addon.php on line 7
    • > PHP Fatal error
      Uncaught Error: Call to a member function get_slug() on null in wp-content/plugins/wpmailer/libs/freemius-sdk/templates/account/partials/addon.php:9
    • > PHP Notice
      Undefined variable: VARS in wp-content/plugins/wpmailer/libs/freemius-sdk/templates/account/partials/addon.php on line 6
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/wpmailer/libs/freemius-sdk/templates/account/partials/addon.php on line 6
    • > PHP Notice
      Undefined variable: VARS in wp-content/plugins/wpmailer/libs/freemius-sdk/templates/account/partials/addon.php on line 8

User-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Please fix the following browser errors
    • > GET request to /wp-admin/admin.php?page=freemius
    • > Network (severe)
    wp-content/plugins/wpmailer/assets/wpmailer-icon.png - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that need to be fixed:
  • Screenshots: Please add descriptions for these screenshots #1, #2, #3, #4 in wpmailer/assets to your readme.txt
Please take inspiration from this readme.txt

wpmailer/wpmailer.php Passed 13 tests

The entry point to "WPMailer - The best mail builder, No More Core for your emails support Elementor, CF7 forms etc..." version 0.0.7 is a PHP file that has certain tags in its header comment area
85 characters long description:
The best mail builder, No More Core for your emails support Elementor, CF7 forms etc.

Code Analysis 97% from 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
Success! There were no dangerous files found in this plugin45,794 lines of code in 161 files:
LanguageFilesBlank linesComment linesLines of code
PHP1187,27016,44430,208
PO File126,9608,45515,240
JavaScript1045135252
JSON20051
SVG31125
CSS1501717
HTML1001

PHP code 50% from 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
The following items need your attention
  • Class cyclomatic complexity should be reduced to less than 1000 (currently 2,772)
Cyclomatic complexity
Average complexity per logical line of code0.61
Average class complexity75.11
▷ Minimum class complexity1.00
▷ Maximum class complexity2,772.00
Average method complexity4.45
▷ Minimum method complexity1.00
▷ Maximum method complexity86.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes53
▷ Abstract classes23.77%
▷ Concrete classes5196.23%
▷ Final classes00.00%
Methods1,170
▷ Static methods17615.04%
▷ Public methods82070.09%
▷ Protected methods151.28%
▷ Private methods33528.63%
Functions98
▷ Named functions98100.00%
▷ Anonymous functions00.00%
Constants122
▷ Global constants9779.51%
▷ Class constants2520.49%
▷ Public constants25100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
9 PNG files occupy 0.10MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
admin/build/logo512.png9.44KB10.35KB0.00%
admin/build/svgs/elementor-site-logo.png2.08KB2.17KB0.00%
admin/build/logo192.png5.22KB5.57KB0.00%
libs/freemius-sdk/assets/img/wpmailer.png9.16KB5.26KB▼ 42.58%
libs/freemius-sdk/assets/img/theme-icon.png10.97KB5.78KB▼ 47.37%