74% postbox-email-logs

Code Review | WP Email Log - PostBox

WordPress plugin WP Email Log - PostBox scored74%from 54 tests.

About plugin

  • Plugin page: postbox-email-logs
  • Plugin version: 1.0.2
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.8-6.3
  • WordPress version: 6.3.1
  • First release: Oct 27, 2022
  • Latest release: Sep 18, 2023
  • Number of updates: 33
  • Update frequency: every 9.9 days
  • Top authors: wpdebuglog (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

100+ active /751 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
Installer ran successfully

Server metrics [RAM: ▲0.17MB] [CPU: ▼7.23ms] Passed 4 tests

This is a short check of server-side resources used by WP Email Log - PostBox
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.64 ▲0.1854.75 ▲10.01
Dashboard /wp-admin3.47 ▲0.1754.21 ▼5.62
Posts /wp-admin/edit.php3.59 ▲0.2352.55 ▼8.52
Add New Post /wp-admin/post-new.php6.06 ▲0.1788.02 ▼17.79
Media Library /wp-admin/upload.php3.40 ▲0.1742.28 ▲3.01

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 20 new files
Database: 1 new table, 7 new options
New tables
wp_postbox_email_log
New WordPress options
pbeml_postbox_install_date
widget_recent-comments
db_upgraded
can_compress_scripts
widget_recent-posts
theysaidso_admin_options
widget_theysaidso_widget

Browser metrics Passed 4 tests

WP Email Log - PostBox: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,805 ▲4414.72 ▲0.551.58 ▼0.0240.04 ▼4.32
Dashboard /wp-admin2,211 ▲315.51 ▼0.1586.94 ▲0.6538.95 ▼5.23
Posts /wp-admin/edit.php2,116 ▲161.97 ▼0.0140.52 ▲2.0134.87 ▼3.63
Add New Post /wp-admin/post-new.php1,539 ▲1323.16 ▼0.07675.96 ▼33.7851.29 ▼1.99
Media Library /wp-admin/upload.php1,413 ▲134.17 ▲0.0098.16 ▼9.4347.25 ▼0.95

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
  • Zombie tables detected upon uninstall: 1 table
    • wp_postbox_email_log
  • The uninstall procedure has failed, leaving 7 options in the database
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-posts
    • pbeml_postbox_install_date
    • db_upgraded
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Almost there! Just fix the following items
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/postbox-email-logs/postbox-email-logs.php:12

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
4 plugin tags: mail logs, wp mail log, mail logging, email

postbox-email-logs/postbox-email-logs.php Passed 13 tests

"WP Email Log - PostBox" version 1.0.2's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
57 characters long description:
Store WP mail logs. It will capture WP mail SMTP traffic.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
No dangerous file extensions were detected1,017 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
PHP6180131721
CSS3169250
JavaScript11046

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.30
Average class complexity16.25
▷ Minimum class complexity4.00
▷ Maximum class complexity49.00
Average method complexity3.45
▷ Minimum method complexity1.00
▷ Maximum method complexity19.00
Code structure
Namespaces5
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods23
▷ Static methods313.04%
▷ Public methods1982.61%
▷ Protected methods14.35%
▷ Private methods313.04%
Functions15
▷ Named functions1493.33%
▷ Anonymous functions16.67%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
7 compressed PNG files occupy 0.02MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
css/jquery-ui/images/ui-icons_555555_256x240.png3.20KB3.50KB0.00%
css/jquery-ui/images/ui-icons_ffffff_256x240.png3.19KB3.49KB0.00%
css/jquery-ui/images/ui-icons_777620_256x240.png3.19KB3.49KB0.00%
css/jquery-ui/images/ui-icons_cc0000_256x240.png3.19KB3.49KB0.00%
css/jquery-ui/images/ui-bg_flat_0_aaaaaa_40x100.png0.08KB0.08KB0.00%