74% pending-email-smtp

Code Review | Pending Email SMTP

WordPress plugin Pending Email SMTP scored74%from 54 tests.

About plugin

  • Plugin page: pending-email-smtp
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 5.7.0-5.7.1
  • WordPress version: 6.3.1
  • First release: Apr 20, 2021
  • Latest release: Apr 20, 2021
  • Number of updates: 3
  • Update frequency: every 0.3 days
  • Top authors: binmaocom (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

90+ active /688 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

Server metrics [RAM: ▲0.04MB] [CPU: ▼7.21ms] Passed 4 tests

This is a short check of server-side resources used by Pending Email SMTP
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0443.39 ▲2.93
Dashboard /wp-admin3.34 ▲0.0446.45 ▼3.73
Posts /wp-admin/edit.php3.39 ▲0.0449.72 ▼13.16
Add New Post /wp-admin/post-new.php5.92 ▲0.0483.06 ▼14.17
Media Library /wp-admin/upload.php3.26 ▲0.0438.75 ▲2.23

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

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

Browser metrics Passed 4 tests

Pending Email SMTP: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.62 ▲0.041.60 ▼0.1639.19 ▼8.06
Dashboard /wp-admin2,195 ▲185.68 ▲0.1189.72 ▼4.9237.19 ▼2.79
Posts /wp-admin/edit.php2,097 ▼32.03 ▲0.1038.45 ▲0.3338.27 ▲1.82
Add New Post /wp-admin/post-new.php1,531 ▲523.23 ▼0.43639.32 ▼49.4557.61 ▲3.22
Media Library /wp-admin/upload.php1,403 ▲34.27 ▲0.0694.29 ▼15.1341.47 ▼4.21

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
  • Zombie tables were found after uninstall: 1 table
    • wp_pending_email
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget

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
The smoke test was a success, however most plugin functionality was not tested

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 take a closer look at the following
  • 2× PHP files output text when accessed directly:
    • > /wp-content/plugins/pending-email-smtp/functions.php
    • > /wp-content/plugins/pending-email-smtp/pending_wp_mail.php

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 96% from 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
9 plugin tags: pending email, wp_mail, mail, email, phpmailer...

pending-email-smtp/pending_wp_mail.php 92% from 13 tests

The main PHP file in "Pending Email SMTP" ver. 1.0.0 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("pending-email-smtp.php" instead of "pending_wp_mail.php")

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
Everything looks great! No dangerous files found in this plugin158 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP21410158

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.22
Average class complexity8.00
▷ Minimum class complexity1.00
▷ Maximum class complexity15.00
Average method complexity2.40
▷ Minimum method complexity1.00
▷ Maximum method complexity11.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods11
▷ Static methods00.00%
▷ Public methods11100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions150.00%
▷ Anonymous functions150.00%
Constants0
▷ Global constants00.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