100% add-plain-text-email

Code Review | Add Plain Text Email

WordPress plugin Add Plain Text Email scored 100% from 54 tests.

About plugin

  • Plugin page: add-plain-text-email
  • Plugin version: 1.1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.1-4.3
  • WordPress version: 5.9.2
  • First release: Oct 23, 2013
  • Latest release: Sep 1, 2015
  • Number of updates: 8
  • Update frequency: every 84.8 days
  • Top authors: DvanKooten (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

200+ active / 2,138 total downloads

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.01MB] [CPU: ▼298.74ms] Passed 4 tests

This is a short check of server-side resources used by Add Plain Text Email
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.56 ▲0.0254.12 ▲3.06
Dashboard /wp-admin3.45 ▲0.0133.53 ▼3.98
Posts /wp-admin/edit.php3.68 ▲0.0137.89 ▼0.11
Add New Post /wp-admin/post-new.php6.92 ▼0.0894.62 ▼1,193.39
Media Library /wp-admin/upload.php3.34 ▲0.0127.64 ▲2.51

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 2 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Checking browser requirements for Add Plain Text Email
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,795 ▲4115.89 ▲0.236.33 ▼0.492.76 ▼0.30
Dashboard /wp-admin2,895 ▲376.19 ▼0.00116.44 ▼16.14155.37 ▼1.07
Posts /wp-admin/edit.php2,694 ▼03.24 ▲0.1665.49 ▲0.18142.79 ▼4.83
Add New Post /wp-admin/post-new.php1,725 ▲3522.45 ▲1.76417.00 ▼28.84164.07 ▲2.90
Media Library /wp-admin/upload.php1,701 ▲35.51 ▼0.02143.76 ▲6.71179.63 ▼7.97

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
This plugin's uninstaller ran successfully

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 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
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Attributes that require attention:
  • Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line ( === add-plain-text-email === )
You can take inspiration from this readme.txt

add-plain-text-email/add-plain-text-email.php Passed 13 tests

The entry point to "Add Plain Text Email" version 1.1.2 is a PHP file that has certain tags in its header comment area
98 characters long description:
Adds a text/plain email to text/html emails to decrease the chance of emails being tagged as spam.

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 detected52 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1163152

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.25
Average class complexity4.00
▷ Minimum class complexity4.00
▷ Maximum class complexity4.00
Average method complexity2.00
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods3
▷ Static methods00.00%
▷ Public methods266.67%
▷ Protected methods00.00%
▷ Private methods133.33%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There were not PNG files found in your plugin