79% add-email-signature

Code Review | Add Email Signature

WordPress plugin Add Email Signature scored79%from 54 tests.

About plugin

  • Plugin page: add-email-signature
  • Plugin version: 1.0.4
  • PHP version: 7.4.16
  • WordPress compatibility: 3.2-6.4
  • WordPress version: 6.3.1
  • First release: Nov 7, 2012
  • Latest release: Oct 18, 2023
  • Number of updates: 40
  • Update frequency: every 100.1 days
  • Top authors: DavidAnderson (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

200+ active /8,337 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼10.09ms] Passed 4 tests

A check of server-side resources used by Add Email Signature
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0134.62 ▼6.48
Dashboard /wp-admin3.33 ▼0.0149.67 ▼14.60
Posts /wp-admin/edit.php3.38 ▲0.0346.88 ▼2.22
Add New Post /wp-admin/post-new.php5.91 ▲0.0282.94 ▼17.05
Media Library /wp-admin/upload.php3.25 ▲0.0234.49 ▲2.38
Add Email Signature /wp-admin/options-general.php?page=add_email_signature3.2031.32

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
db_upgraded
widget_recent-comments
widget_theysaidso_widget
can_compress_scripts
widget_recent-posts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Add Email Signature
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲3214.38 ▼0.181.67 ▲0.0940.69 ▼2.61
Dashboard /wp-admin2,199 ▲225.54 ▼0.0885.49 ▼3.2139.09 ▼2.82
Posts /wp-admin/edit.php2,104 ▲41.94 ▼0.0935.12 ▼0.2632.64 ▼4.44
Add New Post /wp-admin/post-new.php1,534 ▲823.37 ▼0.33647.40 ▲37.3057.63 ▼2.92
Media Library /wp-admin/upload.php1,401 ▲14.19 ▼0.0594.08 ▼1.1340.56 ▼2.62
Add Email Signature /wp-admin/options-general.php?page=add_email_signature8701.9922.2627.09

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
These server-side errors were triggered
    • > 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 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following items
  • 2× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /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
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
4 plugin tags: signature, add signature, email, mail

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

The main PHP file in "Add Email Signature" ver. 1.0.4 adds more information about the plugin and also serves as the entry point for this plugin
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 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
No dangerous file extensions were detected93 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP2565193

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
All good! No complexity issues found
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
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions9
▷ Named functions9100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.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 were not PNG files found in your plugin