84% eacsimplesmtp

Code Review | {eac}Doojigger Simple SMTP Extension for WordPress

WordPress plugin {eac}Doojigger Simple SMTP Extension for WordPress scored84%from 54 tests.

About plugin

  • Plugin page: eacsimplesmtp
  • Plugin version: 1.0.11
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.5.0-6.4
  • WordPress version: 6.3.1
  • First release: Aug 2, 2022
  • Latest release: Nov 1, 2023
  • Number of updates: 42
  • Update frequency: every 10.9 days
  • Top authors: kevinburkholder (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,186 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼8.19ms] Passed 4 tests

An overview of server-side resources used by {eac}Doojigger Simple SMTP Extension for WordPress
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0141.79 ▲3.18
Dashboard /wp-admin3.32 ▼0.0346.77 ▼15.39
Posts /wp-admin/edit.php3.37 ▲0.0148.77 ▼0.47
Add New Post /wp-admin/post-new.php5.90 ▲0.0187.60 ▼17.73
Media Library /wp-admin/upload.php3.24 ▲0.0135.47 ▲0.85

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
can_compress_scripts
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-posts
db_upgraded

Browser metrics Passed 4 tests

An overview of browser requirements for {eac}Doojigger Simple SMTP Extension for WordPress
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲4314.22 ▼0.131.74 ▼0.1041.70 ▼2.62
Dashboard /wp-admin2,192 ▲115.61 ▼0.0185.67 ▼16.8340.15 ▲2.46
Posts /wp-admin/edit.php2,100 ▼02.02 ▲0.0052.62 ▲13.2236.70 ▼0.16
Add New Post /wp-admin/post-new.php1,526 ▼022.96 ▼0.22675.16 ▲1.7659.71 ▼0.09
Media Library /wp-admin/upload.php1,397 ▼34.17 ▲0.0297.44 ▼4.9439.69 ▼4.23

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
Please fix the following items
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested

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 fix the following items
  • 2× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Class 'EarthAsylumConsulting\\abstract_extension' not found in wp-content/plugins/eacsimplesmtp/Extensions/class.simple_smtp.extension.php:18
    • > PHP Fatal error
      Uncaught Error: Call to undefined function EarthAsylumConsulting\\add_filter() in wp-content/plugins/eacsimplesmtp/eacSimpleSMTP.php:42

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)
No browser issues were found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
5 plugin tags: smtp, phpmailer, email, eacdoojigger, wp_mail

eacsimplesmtp/eacSimpleSMTP.php 92% from 13 tests

The main PHP script in "{eac}Doojigger Simple SMTP Extension for WordPress" version 1.0.11 is automatically included on every request by WordPress
You should first fix the following items:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("eacsimplesmtp.php" instead of "eacSimpleSMTP.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Everything looks great! No dangerous files found in this plugin876 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
Markdown11110564
PHP547154312

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.43
Average class complexity10.50
▷ Minimum class complexity2.00
▷ Maximum class complexity19.00
Average method complexity2.62
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces2
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods10
▷ Static methods00.00%
▷ Public methods10100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions6
▷ Named functions00.00%
▷ Anonymous functions6100.00%
Constants1
▷ Global constants00.00%
▷ Class constants1100.00%
▷ Public constants1100.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
No PNG images were found in this plugin