83% mail-crypter

Code Review | Email Protect

WordPress plugin Email Protect scored 83% from 54 tests.

About plugin

  • Plugin page: mail-crypter
  • Plugin version: 4.0.3
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4.1-6.2.2
  • WordPress version: 6.3.1
  • First release: Jan 25, 2016
  • Latest release: Jul 31, 2023
  • Number of updates: 45
  • Update frequency: every 61.0 days
  • Top authors: wilka_2000 (66.67%)mc17uulm (24.44%)codeleaf (13.33%)

Code review

54 tests

User reviews

2 reviews

Install metrics

300+ active / 3,994 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

Server metrics [RAM: ▲0.07MB] [CPU: ▼5.67ms] Passed 4 tests

A check of server-side resources used by Email Protect
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0742.29 ▲0.71
Dashboard /wp-admin3.37 ▲0.0754.00 ▲4.94
Posts /wp-admin/edit.php3.49 ▲0.1350.32 ▲3.67
Add New Post /wp-admin/post-new.php5.96 ▲0.0785.80 ▼14.74
Media Library /wp-admin/upload.php3.30 ▲0.0734.90 ▼12.30

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Email Protect
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,808 ▲7313.31 ▼1.282.29 ▲0.5436.90 ▼11.46
Dashboard /wp-admin2,209 ▲214.86 ▼0.0799.77 ▼18.9738.64 ▼9.65
Posts /wp-admin/edit.php2,092 ▲242.02 ▲0.0134.57 ▼0.5531.55 ▼1.69
Add New Post /wp-admin/post-new.php1,543 ▲2418.34 ▼4.83664.69 ▼14.0953.89 ▲4.47
Media Library /wp-admin/upload.php1,391 ▲34.17 ▼0.0595.82 ▼8.2839.74 ▼5.19

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments

Smoke tests 75% from 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 50% from 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
Please fix the following
  • 3× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/mail-crypter/mail-crypt.php
    • > /wp-content/plugins/mail-crypter/mail-protect.php
    • > /wp-content/plugins/mail-crypter/email-protect.php

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that require attention:
  • Tags: You are using too many tags: 12 tag instead of maximum 10
Please take inspiration from this readme.txt

mail-crypter/email-protect.php 85% from 13 tests

The entry point to "Email Protect" version 4.0.3 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
  • Main file name: The principal plugin file should be the same as the plugin slug ("mail-crypter.php" instead of "email-protect.php")
  • Description: Please don't use more than 140 characters for the plugin description (currently 159 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected6,610 lines of code in 20 files:
LanguageFilesBlank linesComment linesLines of code
JSON3005,797
PHP15172491725
Markdown137087
JavaScript1111

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.46
Average class complexity17.17
▷ Minimum class complexity1.00
▷ Maximum class complexity48.00
Average method complexity3.14
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces3
Interfaces0
Traits0
Classes6
▷ Abstract classes00.00%
▷ Concrete classes6100.00%
▷ Final classes233.33%
Methods49
▷ Static methods2244.90%
▷ Public methods4693.88%
▷ Protected methods00.00%
▷ Private methods36.12%
Functions7
▷ Named functions00.00%
▷ Anonymous functions7100.00%
Constants8
▷ Global constants8100.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 are no PNG files in this plugin