89% email-encryption

Code Review | Email Encryption

WordPress plugin Email Encryption scored89%from 54 tests.

About plugin

  • Plugin page: email-encryption
  • Plugin version: 1.4
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.1-5.2
  • WordPress version: 6.3.1
  • First release: Jun 23, 2020
  • Latest release: Jun 23, 2020
  • Number of updates: 12
  • Update frequency: N/A
  • Top authors: sumit1786 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /771 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
This plugin's installer ran successfully

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

Server-side resources used by Email Encryption
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0041.27 ▲1.95
Dashboard /wp-admin3.31 ▼0.0351.07 ▼11.39
Posts /wp-admin/edit.php3.36 ▲0.0049.59 ▼4.03
Add New Post /wp-admin/post-new.php5.89 ▲0.0187.99 ▼9.72
Media Library /wp-admin/upload.php3.23 ▲0.0039.89 ▲6.93

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-posts
widget_recent-comments
db_upgraded
theysaidso_admin_options
widget_theysaidso_widget

Browser metrics Passed 4 tests

A check of browser resources used by Email Encryption
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲4314.10 ▼0.182.10 ▲0.3944.00 ▲1.85
Dashboard /wp-admin2,192 ▲125.63 ▼0.0397.00 ▲12.2544.42 ▲0.41
Posts /wp-admin/edit.php2,100 ▼32.01 ▲0.0035.08 ▼5.9236.65 ▼4.15
Add New Post /wp-admin/post-new.php1,526 ▼923.76 ▲5.57656.63 ▲29.8358.84 ▲1.40
Media Library /wp-admin/upload.php1,400 ▼04.24 ▲0.0196.35 ▼11.9442.50 ▼5.74

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
No output text or server-side errors detected 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 on the user side

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need to be fixed:
  • Screenshots: These screenshots have no corresponding images in /assets: #1 (Plugin shortcode use page), #3 (Email encrypted form on view source)
You can take inspiration from this readme.txt

email-encryption/class-email-encryption.php 85% from 13 tests

"Email Encryption" version 1.4's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please take the time to fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("email-encryption.php" instead of "class-email-encryption.php")
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 144 characters long)

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
No dangerous file extensions were detected46 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP192732
JavaScript11014

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.25
Average class complexity3.00
▷ Minimum class complexity3.00
▷ Maximum class complexity3.00
Average method complexity1.50
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ 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

Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG images were found in this plugin