68% wp-mail-debugger

Code Review | WP Mail Debugger

WordPress plugin WP Mail Debugger scored68%from 54 tests.

About plugin

  • Plugin page: wp-mail-debugger
  • Plugin version: 1.0
  • PHP compatiblity: 7.2.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.3.0-5.7
  • WordPress version: 6.3.1
  • First release: Jan 27, 2020
  • Latest release: Jan 19, 2021
  • Number of updates: 4
  • Update frequency: every 90.8 days
  • Top authors: TimothyBlynJacobs (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

400+ active /5,837 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.07MB] [CPU: ▼1.23ms] Passed 4 tests

Server-side resources used by WP Mail Debugger
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0645.16 ▲0.22
Dashboard /wp-admin3.42 ▲0.1160.22 ▲5.94
Posts /wp-admin/edit.php3.47 ▲0.1151.23 ▼2.71
Add New Post /wp-admin/post-new.php5.97 ▲0.08100.59 ▼8.35
Media Library /wp-admin/upload.php3.28 ▲0.0542.10 ▲6.79
WP Mail Debugger /wp-admin/tools.php?page=wp-mail-debugger3.2534.13

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 107 new files
Database: 1 new table, 6 new options
New tables
wp_wp_mail_debug_emails
New WordPress options
theysaidso_admin_options
widget_theysaidso_widget
can_compress_scripts
widget_recent-posts
db_upgraded
widget_recent-comments

Browser metrics Passed 4 tests

A check of browser resources used by WP Mail Debugger
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,818 ▲3214.27 ▼0.342.26 ▲0.3045.93 ▲4.22
Dashboard /wp-admin2,199 ▲225.61 ▼0.0591.42 ▼1.2439.29 ▼4.82
Posts /wp-admin/edit.php2,107 ▲71.98 ▼0.0437.90 ▼1.9535.26 ▲1.50
Add New Post /wp-admin/post-new.php1,532 ▲423.31 ▼0.06651.39 ▼37.4449.91 ▼8.97
Media Library /wp-admin/upload.php1,404 ▲44.16 ▼0.08100.51 ▼1.1247.15 ▲2.14
WP Mail Debugger /wp-admin/tools.php?page=wp-mail-debugger8928.00185.5327.68

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • Zombie tables were found after uninstall: 1 table
    • wp_wp_mail_debug_emails
  • Zombie WordPress options were found after uninstall: 6 options
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts

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 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
The following issues need your attention
  • 20× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function TimothyBJacobs\\WPMailDebugger\\add_action() in wp-content/plugins/wp-mail-debugger/wp-mail-debugger.php:49
    • > PHP Fatal error
      Uncaught Error: Interface 'TimothyBJacobs\\WPMailDebugger\\Infrastructure\\AssetManager\\AssetManager' not found in wp-content/plugins/wp-mail-debugger/src/Infrastructure/AssetManager/WPAssetManager.php:17
    • > PHP Fatal error
      Uncaught Error: Interface 'TimothyBJacobs\\WPMailDebugger\\Domain\\Email\\EmailsRepository' not found in wp-content/plugins/wp-mail-debugger/src/Infrastructure/Email/DBTableEmailsRepository.php:25
    • > PHP Fatal error
      Uncaught Error: Interface 'TimothyBJacobs\\WPMailDebugger\\Infrastructure\\VersionManager\\VersionManager' not found in wp-content/plugins/wp-mail-debugger/src/Infrastructure/VersionManager/WPOptionVersionManager.php:18
    • > PHP Fatal error
      Uncaught Error: Interface 'TimothyBJacobs\\WPMailDebugger\\Infrastructure\\Runner\\Runner' not found in wp-content/plugins/wp-mail-debugger/src/Infrastructure/Runner/SimpleRunner.php:17
    • > PHP Fatal error
      Uncaught Error: Interface 'TimothyBJacobs\\WPMailDebugger\\Infrastructure\\Exception\\Exception' not found in wp-content/plugins/wp-mail-debugger/src/Infrastructure/Exception/EntityNotFound.php:14
    • > PHP Fatal error
      Uncaught Error: Class 'WP_REST_Controller' not found in wp-content/plugins/wp-mail-debugger/src/App/REST/EmailsController.php:26
    • > PHP Fatal error
      Uncaught Error: Interface 'TimothyBJacobs\\WPMailDebugger\\Infrastructure\\Exception\\Exception' not found in wp-content/plugins/wp-mail-debugger/src/Domain/Email/InvalidUuid.php:16
    • > PHP Fatal error
      Uncaught Error: Interface 'TimothyBJacobs\\WPMailDebugger\\Infrastructure\\Runnable' not found in wp-content/plugins/wp-mail-debugger/src/App/AdminPage.php:17
    • > PHP Fatal error
      Uncaught Error: Interface 'TimothyBJacobs\\WPMailDebugger\\Infrastructure\\Runnable' not found in wp-content/plugins/wp-mail-debugger/src/App/SettingsRegistry.php:16

User-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Please fix the following browser errors
    • > GET request to /wp-admin/tools.php?page=wp-mail-debugger
    • > Console-api (warning) in wp-includes/js/dist/deprecated.min.js?ver=73ad3591e7bc95f4777a+1:627
    wp.components.IconButton is deprecated since version 5.4 and will be removed in version 6.2. Please use wp.components.Button instead.
    • > GET request to /wp-admin/tools.php?page=wp-mail-debugger
    • > Console-api (warning) in wp-includes/js/dist/deprecated.min.js?ver=73ad3591e7bc95f4777a+1:627
    `dispatch` control in `@wordpress/data-controls` is deprecated since version 5.7. Please use built-in `dispatch` control in `@wordpress/data` instead.

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
6 plugin tags: wp-mail, email log, email, troubleshooting, log...

wp-mail-debugger/wp-mail-debugger.php 92% from 13 tests

"WP Mail Debugger" version 1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
  • Requires at least: The required version number must match the one declared in readme.txt ("5.3" instead of "5.3.0")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Success! There were no dangerous files found in this plugin3,533 lines of code in 102 files:
LanguageFilesBlank linesComment linesLines of code
PHP494751,1381,741
JavaScript371733101,041
CSS141010549
JSON100105
reStructuredText19413597

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.30
Average class complexity4.62
▷ Minimum class complexity1.00
▷ Maximum class complexity44.00
Average method complexity1.99
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces15
Interfaces13
Traits0
Classes26
▷ Abstract classes00.00%
▷ Concrete classes26100.00%
▷ Final classes1557.69%
Methods141
▷ Static methods53.55%
▷ Public methods12790.07%
▷ Protected methods00.00%
▷ Private methods149.93%
Functions23
▷ Named functions313.04%
▷ Anonymous functions2086.96%
Constants5
▷ Global constants00.00%
▷ Class constants5100.00%
▷ Public constants240.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
No PNG images were found in this plugin