74% email-log

Code Review | Email Log

WordPress plugin Email Log scored 74% from 54 tests.

About plugin

  • Plugin page: email-log
  • Plugin version: 2.4.8
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.8
  • WordPress version: 5.8.1
  • First release: Oct 10, 2009
  • Latest release: Nov 6, 2021
  • Number of updates: 146
  • Update frequency: every 30.2 days
  • Top authors: sudar (100%)

Code review

54 tests

User reviews

33 reviews

Install metrics

60,000+ active / 510,909 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully

Server metrics [RAM: ▲0.76MB] [CPU: ▼171.84ms] Passed 4 tests

Server-side resources used by Email Log
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.41 ▲0.5836.39 ▲2.10
Dashboard /wp-admin3.93 ▲0.8844.09 ▼4.82
Posts /wp-admin/edit.php3.98 ▲0.8850.28 ▲6.90
Add New Post /wp-admin/post-new.php6.22 ▲0.79101.35 ▼676.85
Media Library /wp-admin/upload.php3.81 ▲0.8031.65 ▼7.79
Settings /wp-admin/admin.php?page=email-log-settings3.7937.13
System Info /wp-admin/admin.php?page=email-log-system-info3.8047.43
View Logs /wp-admin/admin.php?page=email-log3.8438.21
Add-ons /wp-admin/admin.php?page=email-log-addons3.7936.04

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 71 new files
Database: 1 new table, 1 new option
New tables
wp_email_log
New WordPress options
email-log-db

Browser metrics Passed 4 tests

Email Log: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,813 ▲21715.91 ▼0.0410.73 ▲1.1947.12 ▲1.63
Dashboard /wp-admin3,107 ▲1766.09 ▼0.06134.45 ▼5.77117.53 ▲2.79
Posts /wp-admin/edit.php2,785 ▲462.70 ▲0.0165.22 ▲1.2890.32 ▲6.37
Add New Post /wp-admin/post-new.php1,528 ▼14418.89 ▼0.03374.11 ▲1.69112.88 ▲2.54
Media Library /wp-admin/upload.php1,853 ▲465.02 ▲0.01154.72 ▲7.62126.01 ▲1.53
Settings /wp-admin/admin.php?page=email-log-settings1,3392.3355.5392.77
System Info /wp-admin/admin.php?page=email-log-system-info1,1692.4662.4788.03
View Logs /wp-admin/admin.php?page=email-log1,5352.8565.7167.95
Add-ons /wp-admin/admin.php?page=email-log-addons1,5502.1855.4988.39

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • Zombie tables were found after uninstall: 1 table
    • wp_email_log
  • Zombie WordPress options were found after uninstall: 1 option
    • email-log-db

Smoke tests 75% 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)
Even though no errors were found, this is by no means an exhaustive test

SRP 50% 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
  • 9× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      require_once(): Failed opening required 'ABSPATHWPINC/class-wp-list-table.php' (include_path='.:/usr/share/php') in wp-content/plugins/email-log/include/Core/UI/ListTable/LogListTable.php on line 7
    • > PHP Fatal error
      Uncaught Error: Class 'WP_List_Table' not found in wp-content/plugins/email-log/include/class-email-log-list-table.php:10
    • > PHP Warning
      Use of undefined constant WPINC - assumed 'WPINC' (this will throw an Error in a future version of PHP) in wp-content/plugins/email-log/include/Core/UI/ListTable/LogListTable.php on line 7
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/email-log/include/Core/UI/ListTable/LogListTable.php on line 7
    • > PHP Fatal error
      Uncaught Error: Interface 'EmailLog\\Core\\Loadie' not found in wp-content/plugins/email-log/include/Addon/DependencyEnforcer.php:10
    • > PHP Fatal error
      Uncaught Error: Interface 'EmailLog\\Core\\Loadie' not found in wp-content/plugins/email-log/include/Core/EmailLogger.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/email-log/include/Core/UI/ListTable/LogListTable.php on line 7
    • > PHP Fatal error
      Uncaught Error: Class 'EmailLog\\Core\\UI\\Page\\BasePage' not found in wp-content/plugins/email-log/include/Core/UI/Page/LogListPage.php:11
    • > PHP Fatal error
      Uncaught Error: Interface 'EmailLog\\Core\\Loadie' not found in wp-content/plugins/email-log/include/Core/Request/LogListAction.php:11

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
5 plugin tags: log email, resend email, multisite, email, log

email-log/email-log.php 85% from 13 tests

This is the main PHP file of "Email Log" version 2.4.8, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
  • Domain Path: Note that the domain path follows the same naming rules as the domain name, using only dashes and lowercase characters ("languages/")
  • Domain Path: Please prefix the domain path with a forward slash character ("/languages/")

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 plugin4,760 lines of code in 65 files:
LanguageFilesBlank linesComment linesLines of code
PHP491,2843,0754,032
PO File3166255399
Markdown4390115
CSS324599
JavaScript4171077
JSON20038

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.30
Average class complexity11.63
▷ Minimum class complexity1.00
▷ Maximum class complexity73.00
Average method complexity2.56
▷ Minimum method complexity1.00
▷ Maximum method complexity29.00
Code structure
Namespaces14
Interfaces1
Traits0
Classes42
▷ Abstract classes49.52%
▷ Concrete classes3890.48%
▷ Final classes12.63%
Methods298
▷ Static methods103.36%
▷ Public methods21371.48%
▷ Protected methods7324.50%
▷ Private methods124.03%
Functions26
▷ Named functions2492.31%
▷ Anonymous functions27.69%
Constants18
▷ Global constants00.00%
▷ Class constants18100.00%
▷ Public constants18100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG files were detected