84% email-address-encoder

Code Review | Email Address Encoder

WordPress plugin Email Address Encoder scored84%from 54 tests.

About plugin

  • Plugin page: email-address-enc...
  • Plugin version: 1.0.23
  • PHP compatiblity: 5.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 2.0-6.4
  • WordPress version: 6.3.1
  • First release: Nov 21, 2011
  • Latest release: Nov 27, 2023
  • Number of updates: 114
  • Update frequency: every 38.5 days
  • Top authors: tillkruess (100%)

Code review

54 tests

User reviews

152 reviews

Install metrics

100,000+ active /1,296,613 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.09MB] [CPU: ▼2.97ms] Passed 4 tests

This is a short check of server-side resources used by Email Address Encoder
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.57 ▲0.1036.71 ▼0.12
Dashboard /wp-admin3.40 ▲0.0945.53 ▼3.99
Posts /wp-admin/edit.php3.51 ▲0.1545.68 ▼4.65
Add New Post /wp-admin/post-new.php5.98 ▲0.0893.74 ▼3.13
Media Library /wp-admin/upload.php3.32 ▲0.0838.90 ▲5.53
Email Encoder /wp-admin/options-general.php?page=eae3.3430.69

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Email Address Encoder
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,823 ▲3614.27 ▼0.462.61 ▲0.8040.92 ▲2.53
Dashboard /wp-admin2,220 ▲425.61 ▲0.0187.29 ▼26.1543.74 ▼2.91
Posts /wp-admin/edit.php2,107 ▲71.94 ▼0.0637.39 ▼1.5435.76 ▼0.45
Add New Post /wp-admin/post-new.php1,532 ▲623.12 ▼0.04642.84 ▲8.8149.89 ▼20.99
Media Library /wp-admin/upload.php1,407 ▲104.19 ▼0.0196.83 ▲0.5641.21 ▼4.19
Email Encoder /wp-admin/options-general.php?page=eae1,0472.1724.4139.33

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

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The following issues need your attention
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/email-address-encoder/includes/ui.php:4

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need to be fixed:
  • Tags: There are too many tags (21 tag instead of maximum 10)
Please take inspiration from this readme.txt

email-address-encoder/email-address-encoder.php 92% from 13 tests

The entry point to "Email Address Encoder" version 1.0.23 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
  • Domain Path: The domain path points to an invalid folder, "/languages" does not exist

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 plugin640 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP3132212544
JavaScript219196

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.45
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%
Functions23
▷ Named functions2191.30%
▷ Anonymous functions28.70%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG images were found in this plugin