68% check-email

Code Review | Check & Log Email

WordPress plugin Check & Log Email scored68%from 54 tests.

About plugin

  • Plugin page: check-email
  • Plugin version: 1.0.8
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.3
  • WordPress version: 6.3.1
  • First release: Sep 7, 2010
  • Latest release: Oct 17, 2023
  • Number of updates: 42
  • Update frequency: every 114.1 days
  • Top authors: MrWiblog (45.24%)giucu91 (30.95%)raldea89 (19.05%)machothemes (7.14%)Jack Kitterhing (4.76%)

Code review

54 tests

User reviews

230 reviews

Install metrics

100,000+ active /1,282,435 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.51MB] [CPU: ▼0.82ms] Passed 4 tests

This is a short check of server-side resources used by Check & Log Email
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.98 ▲0.5243.68 ▲2.08
Dashboard /wp-admin3.83 ▲0.4851.06 ▼7.27
Posts /wp-admin/edit.php3.89 ▲0.5351.43 ▲7.57
Add New Post /wp-admin/post-new.php6.43 ▲0.5486.19 ▼3.41
Media Library /wp-admin/upload.php3.75 ▲0.5239.45 ▲5.33
Status /wp-admin/admin.php?page=check-email-status3.7133.73
Settings /wp-admin/admin.php?page=check-email-settings3.6636.87

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 39 new files
Database: 1 new table, 8 new options
New tables
wp_check_email_log
New WordPress options
db_upgraded
theysaidso_admin_options
widget_recent-comments
check-email-rate-time
widget_recent-posts
widget_theysaidso_widget
check_email-log-db
can_compress_scripts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Check & Log Email
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,838 ▲7713.20 ▼1.071.75 ▲0.0747.11 ▲5.37
Dashboard /wp-admin2,241 ▲614.99 ▼0.6585.72 ▲1.0340.22 ▼4.07
Posts /wp-admin/edit.php2,163 ▲632.46 ▲0.4445.52 ▲8.5232.06 ▼4.63
Add New Post /wp-admin/post-new.php1,573 ▲4523.35 ▲0.19638.36 ▼2.8156.57 ▼2.00
Media Library /wp-admin/upload.php1,459 ▲654.62 ▲0.4597.37 ▲0.2141.28 ▼0.74
Status /wp-admin/admin.php?page=check-email-status1,0102.2029.7033.81
Settings /wp-admin/admin.php?page=check-email-settings1,0122.2432.3740.39

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • The uninstall procedure failed, leaving 1 table in the database
    • wp_check_email_log
  • Zombie WordPress options detected upon uninstall: 8 options
    • check_email-log-db
    • widget_theysaidso_widget
    • check-email-rate-time
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested

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 take a closer look at the following
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/check-email/include/install.php
  • 9× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Warning
      Use of undefined constant WPINC - assumed 'WPINC' (this will throw an Error in a future version of PHP) in wp-content/plugins/check-email/include/Core/UI/list_table/Check_Email_Log_List_Table.php on line 6
    • > PHP Fatal error
      require_once(): Failed opening required 'ABSPATHWPINC/class-wp-list-table.php' (include_path='.:/usr/share/php') in wp-content/plugins/check-email/include/Core/UI/list_table/Check_Email_Log_List_Table.php on line 6
    • > PHP Fatal error
      Uncaught Error: Class 'CheckEmail\\Core\\UI\\Page\\Check_Email_BasePage' not found in wp-content/plugins/check-email/include/Core/UI/Page/Check_Email_Log_List_Page.php:9
    • > PHP Warning
      require_once(ABSPATHWPINC/class-wp-list-table.php): failed to open stream: No such file or directory in wp-content/plugins/check-email/include/Core/UI/list_table/Check_Email_Log_List_Table.php on line 6
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/check-email/include/Core/UI/list_table/Check_Email_Log_List_Table.php on line 6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/check-email/include/Core/UI/Page/partials/check-email-admin-status-display.php:29
    • > PHP Notice
      Undefined variable: from_email in wp-content/plugins/check-email/include/Core/UI/Page/partials/check-email-admin-status-display.php on line 9
    • > PHP Fatal error
      Uncaught Error: Interface 'CheckEmail\\Core\\Loadie' not found in wp-content/plugins/check-email/include/Core/Request/Check_Email_Log_List_Action.php:9
    • > PHP Fatal error
      Uncaught Error: Interface 'CheckEmail\\Core\\Loadie' not found in wp-content/plugins/check-email/include/Core/Check_Email_Logger.php:6

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
7 plugin tags: pop, check, smtp, test, email...

check-email/check-email.php Passed 13 tests

The main file in "Check & Log Email" v. 1.0.8 serves as a complement to information provided in readme.txt and as the entry point to the plugin
117 characters long description:
Check & Log email allows you to test if your WordPress installation is sending emails correctly and logs every email.

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
There were no executable files found in this plugin2,864 lines of code in 36 files:
LanguageFilesBlank linesComment linesLines of code
PHP297302992,417
PO File194114236
JavaScript3199124
CSS318587

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.35
Average class complexity11.80
▷ Minimum class complexity1.00
▷ Maximum class complexity51.00
Average method complexity2.76
▷ Minimum method complexity1.00
▷ Maximum method complexity27.00
Code structure
Namespaces10
Interfaces1
Traits0
Classes24
▷ Abstract classes28.33%
▷ Concrete classes2291.67%
▷ Final classes00.00%
Methods156
▷ Static methods42.56%
▷ Public methods12076.92%
▷ Protected methods2516.03%
▷ Private methods117.05%
Functions20
▷ Named functions20100.00%
▷ Anonymous functions00.00%
Constants10
▷ Global constants00.00%
▷ Class constants10100.00%
▷ Public constants10100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG files were detected