84% wp-easy-mail-for-ses

Code Review | WP easy mail SES

WordPress plugin WP easy mail SES scored84%from 54 tests.

About plugin

  • Plugin page: wp-easy-mail-for-ses
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.4-4.7.5
  • WordPress version: 6.3.1
  • First release: May 18, 2017
  • Latest release: May 18, 2017
  • Number of updates: 7
  • Update frequency: N/A
  • Top authors: okamos (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /783 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully

Server metrics [RAM: ▲0.31MB] [CPU: ▼0.12ms] Passed 4 tests

Analyzing server-side resources used by WP easy mail SES
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.80 ▲0.3344.17 ▼3.67
Dashboard /wp-admin3.65 ▲0.3448.81 ▼1.68
Posts /wp-admin/edit.php3.70 ▲0.3451.39 ▲2.95
Add New Post /wp-admin/post-new.php6.17 ▲0.2896.58 ▲1.91
Media Library /wp-admin/upload.php3.51 ▲0.2843.57 ▲8.43
WP easy mail SES /wp-admin/options-general.php?page=wpem4s-settings3.4939.50

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 132 new files
Database: no new tables, 7 new options
New WordPress options
can_compress_scripts
widget_recent-comments
widget_theysaidso_widget
widget_recent-posts
wp-easy-mail-ses
db_upgraded
theysaidso_admin_options

Browser metrics Passed 4 tests

A check of browser resources used by WP easy mail SES
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,806 ▲3514.45 ▼0.111.77 ▼0.2643.52 ▲0.19
Dashboard /wp-admin2,209 ▲185.80 ▲0.7596.45 ▼18.1839.00 ▼7.08
Posts /wp-admin/edit.php2,095 ▲61.99 ▲0.0239.51 ▲3.5835.25 ▼4.03
Add New Post /wp-admin/post-new.php1,538 ▲1723.16 ▲0.22641.48 ▼20.3753.14 ▼10.65
Media Library /wp-admin/upload.php1,391 ▲64.19 ▼0.02111.08 ▲9.3945.55 ▲1.12
WP easy mail SES /wp-admin/options-general.php?page=wpem4s-settings9212.0322.3430.33

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • The uninstall procedure has failed, leaving 7 options in the database
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments
    • wp-easy-mail-ses
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following
  • 45× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Interface 'GuzzleHttp\\ClientInterface' not found in wp-content/plugins/wp-easy-mail-for-ses/vendor/guzzlehttp/guzzle/src/Client.php:25
    • > PHP Fatal error
      Uncaught Error: Class 'GuzzleHttp\\Exception\\RequestException' not found in wp-content/plugins/wp-easy-mail-for-ses/vendor/guzzlehttp/guzzle/src/Exception/BadResponseException.php:7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/wp-easy-mail-for-ses/admin/partials/wp-easy-mail-ses-admin-display.php:15
    • > PHP Fatal error
      Uncaught Error: Class 'GuzzleHttp\\Promise\\RejectionException' not found in wp-content/plugins/wp-easy-mail-for-ses/vendor/guzzlehttp/promises/src/CancellationException.php:7
    • > PHP Fatal error
      Uncaught Error: Interface 'GuzzleHttp\\Promise\\PromiseInterface' not found in wp-content/plugins/wp-easy-mail-for-ses/vendor/guzzlehttp/promises/src/RejectedPromise.php:10
    • > PHP Fatal error
      Uncaught Error: Interface 'Psr\\Http\\Message\\StreamInterface' not found in wp-content/plugins/wp-easy-mail-for-ses/vendor/guzzlehttp/psr7/src/InflateStream.php:17
    • > PHP Fatal error
      Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/wp-easy-mail-for-ses/vendor/okamos/php-ses/tests/sesTest.php:17
    • > PHP Fatal error
      Uncaught Error: Interface 'Psr\\Http\\Message\\StreamInterface' not found in wp-content/plugins/wp-easy-mail-for-ses/vendor/guzzlehttp/psr7/src/NoSeekStream.php:9
    • > PHP Fatal error
      Uncaught Error: Interface 'Psr\\Http\\Message\\StreamInterface' not found in wp-content/plugins/wp-easy-mail-for-ses/vendor/guzzlehttp/psr7/src/AppendStream.php:11
    • > PHP Fatal error
      Uncaught Error: Interface 'GuzzleHttp\\Promise\\TaskQueueInterface' not found in wp-content/plugins/wp-easy-mail-for-ses/vendor/guzzlehttp/promises/src/TaskQueue.php:13

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 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
Attributes that need to be fixed:
  • Donate link: Please fix this invalid url: ""
Please take inspiration from this readme.txt

wp-easy-mail-for-ses/wp-easy-mail-ses.php 92% from 13 tests

The main PHP file in "WP easy mail SES" ver. 1.0.1 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("wp-easy-mail-for-ses.php" instead of "wp-easy-mail-ses.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
There were no executable files found in this plugin12,535 lines of code in 119 files:
LanguageFilesBlank linesComment linesLines of code
PHP971,7235,0148,660
Markdown1094703,217
JSON600451
PO File24848124
YAML27051
CSS16023
make1409

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.42
Average class complexity13.67
▷ Minimum class complexity1.00
▷ Maximum class complexity72.00
Average method complexity2.70
▷ Minimum method complexity1.00
▷ Maximum method complexity27.00
Code structure
Namespaces8
Interfaces14
Traits2
Classes68
▷ Abstract classes00.00%
▷ Concrete classes68100.00%
▷ Final classes710.29%
Methods667
▷ Static methods639.45%
▷ Public methods54882.16%
▷ Protected methods40.60%
▷ Private methods11517.24%
Functions144
▷ Named functions5739.58%
▷ Anonymous functions8760.42%
Constants68
▷ Global constants00.00%
▷ Class constants68100.00%
▷ Public constants68100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
There were not PNG files found in your plugin