78% logger-for-wp-mail-smtp

Code Review | Logger for WP Mail SMTP (3rd Party)

WordPress plugin Logger for WP Mail SMTP (3rd Party) scored 78% from 54 tests.

About plugin

  • Plugin page: logger-for-wp-mai...
  • Plugin version: 1.0
  • PHP compatiblity: 7.2.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.8-5.9
  • WordPress version: 6.3.1
  • First release: May 2, 2022
  • Latest release: May 2, 2022
  • Number of updates: 2
  • Update frequency: every 1.0 days
  • Top authors: PhilHilton (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 313 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: ▲1.12MB] [CPU: ▲7.03ms] Passed 4 tests

Analyzing server-side resources used by Logger for WP Mail SMTP (3rd Party)
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /4.54 ▲1.0847.24 ▲5.27
Dashboard /wp-admin4.47 ▲1.1761.33 ▲13.60
Posts /wp-admin/edit.php4.50 ▲1.1453.83 ▲2.20
Add New Post /wp-admin/post-new.php7.05 ▲1.17102.67 ▲12.29
Media Library /wp-admin/upload.php4.33 ▲1.1042.58 ▲8.36

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 392 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
db_upgraded
theysaidso_admin_options
can_compress_scripts
widget_recent-posts
widget_theysaidso_widget

Browser metrics Passed 4 tests

This is an overview of browser requirements for Logger for WP Mail SMTP (3rd Party)
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,831 ▲8514.67 ▲0.011.88 ▲0.0944.47 ▼15.28
Dashboard /wp-admin2,237 ▲554.92 ▼0.90116.18 ▲10.5842.76 ▼0.68
Posts /wp-admin/edit.php2,112 ▲232.19 ▲0.1437.77 ▼4.1832.38 ▼3.45
Add New Post /wp-admin/post-new.php1,540 ▲2618.57 ▲0.90630.57 ▼61.6047.61 ▼9.52
Media Library /wp-admin/upload.php1,414 ▲264.26 ▲0.11102.63 ▼9.5742.99 ▼5.75

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments

Smoke tests 50% 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 0% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The following issues need your attention
  • 2× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/logger-for-wp-mail-smtp/src/Main.php
    • > /wp-content/plugins/logger-for-wp-mail-smtp/wp-mail-smtp-logger.php
  • 44× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_Hookup' not found in wp-content/plugins/logger-for-wp-mail-smtp/vendor/cmb2/cmb2/includes/CMB2_Options_Hookup.php:14
    • > PHP Fatal error
      Uncaught Error: Class 'Extended_Rewrite_Testing' not found in wp-content/plugins/logger-for-wp-mail-smtp/vendor/johnbillion/extended-cpts/src/class-extended-cpt-rewrite-testing.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_Type_Taxonomy_Select' not found in wp-content/plugins/logger-for-wp-mail-smtp/vendor/cmb2/cmb2/includes/types/CMB2_Type_Taxonomy_Select_Hierarchical.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_Type_Text' not found in wp-content/plugins/logger-for-wp-mail-smtp/vendor/cmb2/cmb2/includes/types/CMB2_Type_Checkbox.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_Type_Counter_Base' not found in wp-content/plugins/logger-for-wp-mail-smtp/vendor/cmb2/cmb2/includes/types/CMB2_Type_Textarea.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_Type_Taxonomy_Base' not found in wp-content/plugins/logger-for-wp-mail-smtp/vendor/cmb2/cmb2/includes/types/CMB2_Type_Taxonomy_Multicheck.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_Type_Textarea' not found in wp-content/plugins/logger-for-wp-mail-smtp/vendor/cmb2/cmb2/includes/types/CMB2_Type_Textarea_Code.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_Type_Counter_Base' not found in wp-content/plugins/logger-for-wp-mail-smtp/vendor/cmb2/cmb2/includes/types/CMB2_Type_Text.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_Type_Text_Date' not found in wp-content/plugins/logger-for-wp-mail-smtp/vendor/cmb2/cmb2/includes/types/CMB2_Type_Text_Time.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_REST_Controller_Boxes' not found in wp-content/plugins/logger-for-wp-mail-smtp/vendor/cmb2/cmb2/includes/rest-api/CMB2_REST_Controller_Fields.php:17

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
4 plugin tags: mail, log, smtp, logging

logger-for-wp-mail-smtp/wp-mail-smtp-logger.php 77% from 13 tests

The principal PHP file in "Logger for WP Mail SMTP (3rd Party)" v. 1.0 is loaded by WordPress automatically on each request
The following require your attention:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("logger-for-wp-mail-smtp.php" instead of "wp-mail-smtp-logger.php")
  • Requires PHP: Required version must be the same as the one declared in readme.txt ("7.2" instead of "7.2.0")
  • Description: Keep the plugin description shorter than 140 characters (currently 170 characters long)

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
Success! There were no dangerous files found in this plugin57,825 lines of code in 244 files:
LanguageFilesBlank linesComment linesLines of code
PO File12014,31518,50232,323
PHP792,8377,69310,056
JSON5007,136
CSS122501,1904,554
JavaScript73615831,431
Sass17306291,411
Markdown42980914

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.49
Average class complexity21.57
▷ Minimum class complexity1.00
▷ Maximum class complexity200.00
Average method complexity3.65
▷ Minimum method complexity1.00
▷ Maximum method complexity38.00
Code structure
Namespaces3
Interfaces0
Traits0
Classes83
▷ Abstract classes1012.05%
▷ Concrete classes7387.95%
▷ Final classes00.00%
Methods652
▷ Static methods10315.80%
▷ Public methods55284.66%
▷ Protected methods9514.57%
▷ Private methods50.77%
Functions48
▷ Named functions3981.25%
▷ Anonymous functions918.75%
Constants13
▷ Global constants430.77%
▷ Class constants969.23%
▷ Public constants9100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
14 compressed PNG files occupy 0.02MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
vendor/cmb2/cmb2/images/ui-bg_glass_95_fef1ec_1x400.png0.12KB0.14KB0.00%
vendor/cmb2/cmb2/images/ui-bg_glass_55_fbf9ee_1x400.png0.12KB0.14KB0.00%
vendor/cmb2/cmb2/images/ui-bg_glass_65_ffffff_1x400.png0.10KB0.10KB▼ 5.71%
vendor/cmb2/cmb2/images/ui-bg_glass_75_dadada_1x400.png0.11KB0.16KB0.00%
vendor/cmb2/cmb2/images/ui-icons_454545_256x240.png4.27KB4.11KB▼ 3.78%