78% barbas-default-wp-mail-sender

Code Review | Barbas - Default wp mail sender

WordPress plugin Barbas - Default wp mail sender scored78%from 54 tests.

About plugin

  • Plugin page: barbas-default-wp...
  • Plugin version: 2.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9-6.4.1
  • WordPress version: 6.3.1
  • First release: Nov 25, 2019
  • Latest release: Nov 21, 2023
  • Number of updates: 18
  • Update frequency: every 81.2 days
  • Top authors: gsouza (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /797 total downloads


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.00MB] [CPU: ▼6.08ms] Passed 4 tests

An overview of server-side resources used by Barbas - Default wp mail sender
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0137.27 ▼2.19
Dashboard /wp-admin3.32 ▼0.0345.86 ▼15.46
Posts /wp-admin/edit.php3.37 ▲0.0146.68 ▼4.12
Add New Post /wp-admin/post-new.php5.90 ▲0.0189.50 ▼2.56
Media Library /wp-admin/upload.php3.24 ▲0.0136.30 ▲4.71

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options

Browser metrics Passed 4 tests

An overview of browser requirements for Barbas - Default wp mail sender
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,806 ▲4414.54 ▼0.201.76 ▲0.1535.70 ▼11.65
Dashboard /wp-admin2,211 ▲315.60 ▼0.0390.26 ▲1.9843.07 ▲2.31
Posts /wp-admin/edit.php2,116 ▲161.94 ▼0.0338.55 ▼1.7635.50 ▼0.62
Add New Post /wp-admin/post-new.php1,539 ▲1023.03 ▼0.03661.80 ▲0.8944.63 ▼17.98
Media Library /wp-admin/upload.php1,416 ▲164.17 ▼0.0693.28 ▼1.6742.33 ▼1.80

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts

Smoke tests 50% from 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)
Everything seems fine, however this is by no means an exhaustive test

SRP 0% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following
  • 1× PHP files output text when accessed directly:
    • > /wp-content/plugins/barbas-default-wp-mail-sender/includes/barbas-functions.php
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/barbas-default-wp-mail-sender/barbas-dwms.php:17

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected


Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
5 plugin tags: wordpress default mail sender change, change from wordpress email name, change mail sender name, change mail sender email, change from email and name

barbas-default-wp-mail-sender/barbas-dwms.php 85% from 13 tests

The main PHP script in "Barbas - Default wp mail sender" version 2.0 is automatically included on every request by WordPress
You should first fix the following items:
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("barbas-default-wp-mail-sender.php" instead of "barbas-dwms.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin137 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code

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.18
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions11100.00%
▷ Anonymous functions00.00%
▷ Global constants00.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
PNG images were not found in this plugin