84% wp-email-debug

Code Review | WP Email Debug

WordPress plugin WP Email Debug scored 84% from 54 tests.

About plugin

  • Plugin page: wp-email-debug
  • Plugin version: 1.1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.3.1
  • WordPress version: 6.3.1
  • First release: Jul 23, 2015
  • Latest release: Oct 1, 2015
  • Number of updates: 7
  • Update frequency: every 10.1 days
  • Top authors: Dr_Scythe (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

50+ active / 3,612 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼8.51ms] Passed 4 tests

Server-side resources used by WP Email Debug
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0134.10 ▼9.58
Dashboard /wp-admin3.31 ▲0.0143.60 ▼16.68
Posts /wp-admin/edit.php3.36 ▲0.0144.72 ▼5.49
Add New Post /wp-admin/post-new.php5.89 ▲0.0191.03 ▼2.29
Media Library /wp-admin/upload.php3.23 ▲0.0134.77 ▲0.41
E-Mail Debugger /wp-admin/options-general.php?page=wpmdbug3.2431.60

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

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

Browser metrics Passed 4 tests

A check of browser resources used by WP Email Debug
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,807 ▲5014.44 ▲0.061.58 ▼0.4238.12 ▼6.52
Dashboard /wp-admin2,216 ▲284.87 ▼0.02101.17 ▼5.0342.79 ▼5.52
Posts /wp-admin/edit.php2,096 ▲72.05 ▲0.0435.27 ▲0.7829.83 ▼6.39
Add New Post /wp-admin/post-new.php1,534 ▼023.14 ▼0.17640.77 ▼45.2054.50 ▼4.24
Media Library /wp-admin/upload.php1,398 ▲104.25 ▲0.0694.39 ▼2.1540.33 ▼4.47
E-Mail Debugger /wp-admin/options-general.php?page=wpmdbug8691.8425.2326.22

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
These items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts

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
Good news, no errors were detected

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
  • 2× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/wp-email-debug/settings.php:2
    • > PHP Fatal error
      Uncaught Error: Class 'WPMailDebugger' not found in wp-content/plugins/wp-email-debug/hooks.php:3

User-side errors Passed 1 test

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

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
4 plugin tags: email, mail, debug, debugging

wp-email-debug/wp-email-debug.php Passed 13 tests

The main file in "WP Email Debug" v. 1.1.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
67 characters long description:
Never accidentally send users emails from your testing sites again!

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
No dangerous file extensions were detected229 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP33551229

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.55
Average class complexity13.00
▷ Minimum class complexity13.00
▷ Maximum class complexity13.00
Average method complexity3.40
▷ Minimum method complexity2.00
▷ Maximum method complexity8.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes1100.00%
Methods5
▷ Static methods480.00%
▷ Public methods5100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions7
▷ Named functions7100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
There are no PNG files in this plugin