74% easy-wp-smtp

Code Review | Easy WP SMTP by SendLayer - WordPress SMTP and Email Log Plugin

WordPress plugin Easy WP SMTP by SendLayer - WordPress SMTP and Email Log Plugin scored74%from 54 tests.

About plugin

  • Plugin page: easy-wp-smtp
  • Plugin version: 2.2.0
  • PHP compatiblity: 5.6.20+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.2-6.3
  • WordPress version: 6.3.1
  • First release: Apr 17, 2013
  • Latest release: Oct 19, 2023
  • Number of updates: 130
  • Update frequency: every 29.5 days
  • Top authors: mra13 (53.08%)wpecommerce (40.77%)capuderg (4.62%)alexandersakal (2.31%)wp.insider (2.31%)

Code review

54 tests

User reviews

588 reviews

Install metrics

600,000+ active /8,891,644 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully

Server metrics [RAM: ▲2.86MB] [CPU: ▲15.49ms] Passed 4 tests

This is a short check of server-side resources used by Easy WP SMTP by SendLayer - WordPress SMTP and Email Log Plugin
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /5.52 ▲2.0653.24 ▲15.28
Dashboard /wp-admin6.46 ▲3.1165.11 ▲9.33
Posts /wp-admin/edit.php6.49 ▲3.1374.15 ▲27.18
Add New Post /wp-admin/post-new.php9.02 ▲3.13104.26 ▲10.18
Media Library /wp-admin/upload.php6.36 ▲3.1362.56 ▲31.87
Email Log /wp-admin/admin.php?page=easy-wp-smtp-logs6.1947.68
/wp-admin/admin.php?page=easy-wp-smtp-setup-wizard6.5352.53
Send a Test /wp-admin/admin.php?page=easy-wp-smtp-tools&tab=test7.1362.39
Email Reports /wp-admin/admin.php?page=easy-wp-smtp-reports6.6857.80
Settings /wp-admin/admin.php?page=easy-wp-smtp6.8164.57
Tools /wp-admin/admin.php?page=easy-wp-smtp-tools7.1359.69

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 557 new files
Database: 6 new tables, 16 new options
New tables
wp_easywpsmtp_debug_events
wp_actionscheduler_groups
wp_actionscheduler_logs
wp_actionscheduler_claims
wp_actionscheduler_actions
wp_easywpsmtp_tasks_meta
New WordPress options
easy_wp_smtp_debug_events_db_version
easy_wp_smtp_user_feedback_notice
schema-ActionScheduler_StoreSchema
action_scheduler_hybrid_store_demarkation
widget_theysaidso_widget
easy_wp_smtp_deprecated_options_migration_version
easy_wp_smtp_migration_version
theysaidso_admin_options
widget_recent-comments
can_compress_scripts
...

Browser metrics Passed 4 tests

Checking browser requirements for Easy WP SMTP by SendLayer - WordPress SMTP and Email Log Plugin
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,263 ▲50216.48 ▲1.933.27 ▲1.7328.25 ▼12.61
Dashboard /wp-admin2,672 ▲4947.53 ▲1.91172.06 ▲67.1961.33 ▲21.16
Posts /wp-admin/edit.php2,167 ▲672.03 ▲0.0534.93 ▼1.2530.32 ▼5.01
Add New Post /wp-admin/post-new.php1,554 ▲2123.30 ▲0.42627.52 ▼13.9863.07 ▲0.22
Media Library /wp-admin/upload.php1,468 ▲654.24 ▲0.0398.43 ▼2.7340.35 ▼6.79
Email Log /wp-admin/admin.php?page=easy-wp-smtp-logs1,0662.0334.0943.90
/wp-admin/admin.php?page=easy-wp-smtp-setup-wizard4222.8650.0214.29
Send a Test /wp-admin/admin.php?page=easy-wp-smtp-tools&tab=test1,0522.1134.4435.94
Email Reports /wp-admin/admin.php?page=easy-wp-smtp-reports9931.8426.9233.28
Settings /wp-admin/admin.php?page=easy-wp-smtp2,4522.1631.2845.26
Tools /wp-admin/admin.php?page=easy-wp-smtp-tools1,0921.9428.8739.61

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • The uninstall procedure failed, leaving 6 tables in the database
    • wp_actionscheduler_actions
    • wp_actionscheduler_claims
    • wp_actionscheduler_logs
    • wp_easywpsmtp_debug_events
    • wp_easywpsmtp_tasks_meta
    • wp_actionscheduler_groups
  • This plugin does not fully uninstall, leaving 16 options in the database
    • action_scheduler_hybrid_store_demarkation
    • widget_recent-comments
    • can_compress_scripts
    • easy_wp_smtp_user_feedback_notice
    • easy_wp_smtp_debug_events_db_version
    • easy_wp_smtp_deprecated_options_migration_version
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options
    • easy_wp_smtp_activated
    • ...

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 50% 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 take a closer look at the following
  • 234× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'EasyWPSMTP\\Vendor\\Monolog\\Handler\\AbstractProcessingHandler' not found in wp-content/plugins/easy-wp-smtp/vendor_prefixed/monolog/monolog/src/Monolog/Handler/GelfHandler.php:25
    • > PHP Fatal error
      Uncaught Error: Class 'CronExpression_AbstractField' not found in wp-content/plugins/easy-wp-smtp/vendor/woocommerce/action-scheduler/lib/cron-expression/CronExpression_YearField.php:8
    • > PHP Fatal error
      Uncaught Error: Class 'EasyWPSMTP\\Vendor\\Monolog\\Handler\\SocketHandler' not found in wp-content/plugins/easy-wp-smtp/vendor_prefixed/monolog/monolog/src/Monolog/Handler/SlackHandler.php:23
    • > PHP Fatal error
      Uncaught Error: Class 'ActionScheduler_Store' not found in wp-content/plugins/easy-wp-smtp/vendor/woocommerce/action-scheduler/classes/data-stores/ActionScheduler_wpPostStore.php:6
    • > PHP Fatal error
      Uncaught Error: Class 'EasyWPSMTP\\Tasks\\Task' not found in wp-content/plugins/easy-wp-smtp/src/UsageTracking/SendUsageTask.php:13
    • > PHP Fatal error
      Uncaught Error: Interface 'ActionScheduler_Schedule' not found in wp-content/plugins/easy-wp-smtp/vendor/woocommerce/action-scheduler/deprecated/ActionScheduler_Schedule_Deprecated.php:6
    • > PHP Fatal error
      Uncaught Error: Class 'ActionScheduler_LogEntry' not found in wp-content/plugins/easy-wp-smtp/vendor/woocommerce/action-scheduler/classes/ActionScheduler_NullLogEntry.php:6
    • > PHP Warning
      Use of undefined constant WPINC - assumed 'WPINC' (this will throw an Error in a future version of PHP) in wp-content/plugins/easy-wp-smtp/src/MailCatcher.php on line 7
    • > PHP Fatal error
      Uncaught Error: Interface 'EasyWPSMTP\\Vendor\\Monolog\\Processor\\ProcessorInterface' not found in wp-content/plugins/easy-wp-smtp/vendor_prefixed/monolog/monolog/src/Monolog/Processor/TagProcessor.php:18
    • > PHP Fatal error
      Uncaught Error: Interface 'EasyWPSMTP\\Admin\\PageInterface' not found in wp-content/plugins/easy-wp-smtp/src/Admin/PageAbstract.php:12

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration 93% 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 need to be fixed:
  • Tags: Please reduce the number of tags, currently 25 tag instead of maximum 10
The official readme.txt might help

easy-wp-smtp/easy-wp-smtp.php 92% from 13 tests

This is the main PHP file of "Easy WP SMTP by SendLayer - WordPress SMTP and Email Log Plugin" version 2.2.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please take the time to fix the following:
  • Requires PHP: Required version must match the one declared in readme.txt ("5.6" instead of "5.6.20")

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 detected40,762 lines of code in 507 files:
LanguageFilesBlank linesComment linesLines of code
PHP4146,86025,65438,864
JavaScript18234499937
CSS1114629700
SVG6400261

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.41
Average class complexity13.86
▷ Minimum class complexity1.00
▷ Maximum class complexity266.00
Average method complexity2.84
▷ Minimum method complexity1.00
▷ Maximum method complexity77.00
Code structure
Namespaces49
Interfaces35
Traits7
Classes348
▷ Abstract classes3911.21%
▷ Concrete classes30988.79%
▷ Final classes237.44%
Methods2,828
▷ Static methods42414.99%
▷ Public methods2,17977.05%
▷ Protected methods37513.26%
▷ Private methods2749.69%
Functions263
▷ Named functions13350.57%
▷ Anonymous functions13049.43%
Constants253
▷ Global constants4818.97%
▷ Class constants20581.03%
▷ Public constants205100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
25 compressed PNG files occupy 0.63MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/reports/email/icon-open.png0.45KB0.44KB0.44%
assets/images/reports/email/icon-check-gray.png0.45KB0.45KB0.00%
assets/images/education/logs/screenshot-02.png98.90KB104.81KB0.00%
assets/images/education/reports/screenshot-01.png87.15KB89.71KB0.00%
assets/images/education/reports/thumbnail-03.png15.45KB15.91KB0.00%