79% cbxwpemaillogger

Code Review | CBX Email SMTP & Logger

WordPress plugin CBX Email SMTP & Logger scored79%from 54 tests.

About plugin

  • Plugin page: cbxwpemaillogger
  • Plugin version: 2.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.9-6.3.1
  • WordPress version: 6.3.1
  • First release: Sep 4, 2019
  • Latest release: Sep 26, 2023
  • Number of updates: 27
  • Update frequency: every 55.0 days
  • Top authors: manchumahara (100%)

Code review

54 tests

User reviews

1 review

Install metrics

40+ active /1,401 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲0.70MB] [CPU: ▼0.11ms] 75% from 4 tests

This is a short check of server-side resources used by CBX Email SMTP & Logger
Please have a look at the following items
  • CPU: Total CPU usage must kept under 500.00ms (currently 1,920.59ms on /wp-admin/admin.php?page=cbxwpemaillogger-help-support)
PageMemory (MB)CPU Time (ms)
Home /4.14 ▲0.6847.07 ▲0.63
Dashboard /wp-admin4.06 ▲0.7154.71 ▼8.72
Posts /wp-admin/edit.php4.11 ▲0.7555.30 ▲7.37
Add New Post /wp-admin/post-new.php6.59 ▲0.7193.31 ▲0.26
Media Library /wp-admin/upload.php3.92 ▲0.6947.07 ▲10.77
Global Setting /wp-admin/admin.php?page=cbxwpemailloggersettings3.9246.47
Email Testing /wp-admin/admin.php?page=cbxwpemailloggeremailtesting3.9043.49
Helps & Updates /wp-admin/admin.php?page=cbxwpemaillogger-help-support5.801,920.59
Email Logs /wp-admin/admin.php?page=cbxwpemaillogger3.9042.45

Server storage [IO: ▲1.15MB] [DB: ▲0.16MB] Passed 3 tests

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 134 new files
Database: 1 new table, 10 new options
New tables
wp_cbxwpemaillogger_log
New WordPress options
widget_recent-comments
cbxwpemaillogger_email
cbxwpemaillogger_smtps
theysaidso_admin_options
cbxwpemaillogger_log
widget_recent-posts
can_compress_scripts
cbxwpemaillogger_tools
widget_theysaidso_widget
db_upgraded

Browser metrics Passed 4 tests

A check of browser resources used by CBX Email SMTP & Logger
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,961 ▲21513.32 ▼1.021.98 ▼0.6732.56 ▼15.73
Dashboard /wp-admin2,329 ▲1384.97 ▼0.91103.34 ▼20.2778.59 ▲34.86
Posts /wp-admin/edit.php2,125 ▲361.98 ▼0.0438.81 ▲1.9536.04 ▲0.72
Add New Post /wp-admin/post-new.php1,544 ▲1123.09 ▼0.02777.44 ▲85.9361.09 ▼1.46
Media Library /wp-admin/upload.php1,421 ▲364.10 ▼0.1298.81 ▼19.0674.83 ▲26.52
Global Setting /wp-admin/admin.php?page=cbxwpemailloggersettings1,8173.8272.7082.62
Email Testing /wp-admin/admin.php?page=cbxwpemailloggeremailtesting9811.9931.2733.14
Helps & Updates /wp-admin/admin.php?page=cbxwpemaillogger-help-support1,7452.0424.6937.12
Email Logs /wp-admin/admin.php?page=cbxwpemaillogger1,3692.0934.9038.16

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
  • Zombie tables were found after uninstall: 1 table
    • wp_cbxwpemaillogger_log
  • The uninstall procedure has failed, leaving 10 options in the database
    • cbxwpemaillogger_smtps
    • widget_recent-posts
    • cbxwpemaillogger_email
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded
    • cbxwpemaillogger_tools
    • widget_theysaidso_widget
    • cbxwpemaillogger_log

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though everything seems fine, this is not an exhaustive test

SRP Passed 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
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need your attention:
  • Screenshots: No descriptions were found for these screenshots #1, #10, #11, #12, #2, #3, #4, #5, #6, #7, #8, #9 in cbxwpemaillogger/assets to your readme.txt
You can take inspiration from this readme.txt

cbxwpemaillogger/cbxwpemaillogger.php Passed 13 tests

"CBX Email SMTP & Logger" version 2.0.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
73 characters long description:
Various SMTP protocol, Logs email, tracks sent or failed status and more.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin18,627 lines of code in 110 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript733,3441,50012,623
PHP181,1311,4103,566
Sass424461,302
CSS916271,015
SVG606121

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.42
Average class complexity54.40
▷ Minimum class complexity1.00
▷ Maximum class complexity207.00
Average method complexity4.77
▷ Minimum method complexity1.00
▷ Maximum method complexity50.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes10
▷ Abstract classes00.00%
▷ Concrete classes10100.00%
▷ Final classes00.00%
Methods136
▷ Static methods2719.85%
▷ Public methods12994.85%
▷ Protected methods21.47%
▷ Private methods53.68%
Functions9
▷ Named functions888.89%
▷ Anonymous functions111.11%
Constants5
▷ Global constants5100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
14 compressed PNG files occupy 0.01MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/icon_24.png0.41KB0.45KB0.00%
assets/js/hideshowpassword/wink.png0.39KB0.42KB0.00%
assets/images/delete_brand.png0.43KB0.37KB▼ 13.07%
assets/images/sort_white.png0.30KB0.31KB0.00%
assets/images/sort_brand.png0.37KB0.33KB▼ 12.79%