Benchmarks
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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.01 | 64.07 ▲13.50 |
Dashboard /wp-admin | 3.44 ▲0.04 | 35.26 ▲2.96 |
Posts /wp-admin/edit.php | 3.67 ▲0.03 | 38.88 ▼0.20 |
Add New Post /wp-admin/post-new.php | 6.91 ▼0.06 | 98.96 ▼1,182.33 |
Media Library /wp-admin/upload.php | 3.32 ▲0.02 | 25.53 ▼1.84 |
Add Email Signature /wp-admin/options-general.php?page=add_email_signature | 3.26 | 21.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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,800 ▲46 | 15.82 ▲0.04 | 6.60 ▲0.66 | 2.77 ▲0.42 |
Dashboard /wp-admin | 2,897 ▲36 | 6.08 ▼0.08 | 116.10 ▼15.11 | 161.57 ▲1.37 |
Posts /wp-admin/edit.php | 2,693 ▼1 | 3.24 ▲0.01 | 64.27 ▲0.56 | 157.02 ▲16.13 |
Add New Post /wp-admin/post-new.php | 1,755 ▲87 | 21.57 ▲2.73 | 434.83 ▲48.60 | 156.64 ▲3.16 |
Media Library /wp-admin/upload.php | 1,703 ▲2 | 5.50 ▼0.03 | 141.52 ▲10.65 | 187.88 ▼0.62 |
Add Email Signature /wp-admin/options-general.php?page=add_email_signature | 1,093 | 2.42 | 55.02 | 123.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
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: 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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 56 | 51 | 93 |
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 code | 0.32 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 9 | |
▷ Named functions | 9 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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