83% cloak-front-end-email

Code Review | Cloak Front End Email

WordPress plugin Cloak Front End Email scored 83% from 54 tests.

About plugin

  • Plugin page: cloak-front-end-e...
  • Plugin version: 1.9.5
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-6.2.2
  • WordPress version: 6.3.1
  • First release: Jul 29, 2015
  • Latest release: Jul 20, 2023
  • Number of updates: 37
  • Update frequency: every 78.8 days
  • Top authors: webbernaut (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

500+ active / 5,563 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.04MB] [CPU: ▼4.39ms] Passed 4 tests

An overview of server-side resources used by Cloak Front End Email
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0541.64 ▼8.28
Dashboard /wp-admin3.35 ▲0.0448.76 ▼3.21
Posts /wp-admin/edit.php3.40 ▲0.0450.52 ▼1.09
Add New Post /wp-admin/post-new.php5.93 ▲0.0497.06 ▼4.99
Media Library /wp-admin/upload.php3.27 ▲0.0436.99 ▲1.43

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

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

Browser metrics Passed 4 tests

Cloak Front End Email: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,921 ▲17513.62 ▼0.766.28 ▲4.0644.17 ▼5.13
Dashboard /wp-admin2,218 ▲334.83 ▼1.05111.72 ▼8.5745.09 ▼0.41
Posts /wp-admin/edit.php2,101 ▲122.01 ▲0.0139.62 ▲0.8337.30 ▲4.63
Add New Post /wp-admin/post-new.php1,543 ▲2323.00 ▼0.14597.34 ▼66.5744.05 ▼12.51
Media Library /wp-admin/upload.php1,403 ▲154.21 ▲0.0296.83 ▼11.2944.14 ▼2.44

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
You still need to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/cloak-front-end-email/index.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration 87% from 29 tests

readme.txt 88% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that need to be fixed:
  • Screenshots: A description for screenshot #1 is required in cloak-front-end-email/assets to your readme.txt
  • Tags: Please reduce the number of tags, currently 26 tag instead of maximum 10
You can take inspiration from this readme.txt

cloak-front-end-email/email.php 85% from 13 tests

The primary PHP file in "Cloak Front End Email" version 1.9.5 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("cloak-front-end-email.php" instead of "email.php")
  • Description: Keep the plugin description shorter than 140 characters (currently 152 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Everything looks great! No dangerous files found in this plugin251 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP21824147
JavaScript21113104

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.42
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions11
▷ Named functions11100.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