90% lh-multipart-email

Code Review | LH Multipart Email

WordPress plugin LH Multipart Email scored90%from 54 tests.

About plugin

  • Plugin page: lh-multipart-email
  • Plugin version: 1.12
  • PHP version: 7.4.16
  • WordPress compatibility: 5.5-6.0
  • WordPress version: 6.3.1
  • First release: May 1, 2017
  • Latest release: Jul 30, 2022
  • Number of updates: 9
  • Update frequency: every 212.9 days
  • Top authors: shawfactor (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

700+ active /3,532 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices

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

This is a short check of server-side resources used by LH Multipart Email
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0144.70 ▼2.21
Dashboard /wp-admin3.36 ▼0.0348.37 ▼23.78
Posts /wp-admin/edit.php3.41 ▲0.0145.61 ▼1.73
Add New Post /wp-admin/post-new.php5.94 ▲0.0183.63 ▼25.73
Media Library /wp-admin/upload.php3.28 ▲0.0136.94 ▼4.98

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-posts
can_compress_scripts
widget_recent-comments
db_upgraded
theysaidso_admin_options

Browser metrics Passed 4 tests

Checking browser requirements for LH Multipart Email
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.34 ▲0.201.66 ▼0.0143.75 ▼0.20
Dashboard /wp-admin2,195 ▲215.58 ▲0.0086.26 ▼5.5341.67 ▲4.31
Posts /wp-admin/edit.php2,100 ▲32.01 ▲0.0534.40 ▼3.3735.17 ▼1.99
Add New Post /wp-admin/post-new.php1,534 ▲818.31 ▼4.69613.54 ▼62.3767.29 ▲13.64
Media Library /wp-admin/upload.php1,400 ▼04.18 ▼0.0694.82 ▼20.8140.66 ▼7.07

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
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
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
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
5 plugin tags: html email, spam, multipart, email, text email

lh-multipart-email/lh-multipart-email.php 92% from 13 tests

Analyzing the main PHP file in "LH Multipart Email" version 1.12
It is important to fix the following:
  • Text Domain: The text domain follows the same naming rules as the plugin slug: lowercase characters and dashes

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Success! There were no dangerous files found in this plugin299 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP483172299

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.81
Average class complexity34.00
▷ Minimum class complexity1.00
▷ Maximum class complexity87.00
Average method complexity8.07
▷ Minimum method complexity1.00
▷ Maximum method complexity74.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods14
▷ Static methods964.29%
▷ Public methods1392.86%
▷ Protected methods17.14%
▷ Private methods00.00%
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

PNG files should be compressed to save space and minimize bandwidth usage
There are no PNG files in this plugin