89% add-email-signature

Code Review | Add Email Signature

WordPress plugin Add Email Signature scored 89% from 54 tests.

About plugin

  • Plugin page: add-email-signature
  • Plugin version: 1.0.4
  • PHP version: 7.4.16
  • WordPress compatibility: 3.2-5.9
  • WordPress version: 5.9.2
  • First release: Nov 7, 2012
  • Latest release: Jan 5, 2022
  • Number of updates: 35
  • Update frequency: every 95.7 days
  • Top authors: DavidAnderson (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

200+ active / 6,276 total downloads


Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.00MB] [CPU: ▼295.35ms] Passed 4 tests

This is a short check of server-side resources used by Add Email Signature
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0164.07 ▲13.50
Dashboard /wp-admin3.44 ▲0.0435.26 ▲2.96
Posts /wp-admin/edit.php3.67 ▲0.0338.88 ▼0.20
Add New Post /wp-admin/post-new.php6.91 ▼0.0698.96 ▼1,182.33
Media Library /wp-admin/upload.php3.32 ▲0.0225.53 ▼1.84
Add Email Signature /wp-admin/options-general.php?page=add_email_signature3.2621.91

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 3 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

An overview of browser requirements for Add Email Signature
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,800 ▲4615.82 ▲0.046.60 ▲0.662.77 ▲0.42
Dashboard /wp-admin2,897 ▲366.08 ▼0.08116.10 ▼15.11161.57 ▲1.37
Posts /wp-admin/edit.php2,693 ▼13.24 ▲0.0164.27 ▲0.56157.02 ▲16.13
Add New Post /wp-admin/post-new.php1,755 ▲8721.57 ▲2.73434.83 ▲48.60156.64 ▲3.16
Media Library /wp-admin/upload.php1,703 ▲25.50 ▼0.03141.52 ▲10.65187.88 ▼0.62
Add Email Signature /wp-admin/options-general.php?page=add_email_signature1,0932.4255.02123.89

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The plugin uninstalled completely, with no zombie files or tables

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Almost there, just fix the following server-side errors
    • > GET request to /wp-admin/options-general.php?page=add_email_signature
    • > Notice in wp-content/plugins/add-email-signature/options.php+43
    Trying to access array offset on value of type bool

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
The following issues need your attention
  • 2× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/add-email-signature/options.php
    • > /wp-content/plugins/add-email-signature/add-email-signature.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test


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: email, mail, add signature, signature

add-email-signature/add-email-signature.php Passed 13 tests

The primary PHP file in "Add Email Signature" version 1.0.4 is used by WordPress to initiate all plugin functionality
86 characters long description:
This plugin adds a configurable signature to every outgoing email that WordPress sends

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected93 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.32
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions9100.00%
▷ Anonymous functions00.00%
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
PNG images were not found in this plugin