84% email-encoder-bundle

Code Review | Email Encoder - Protect Email Addresses and Phone Numbers

WordPress plugin Email Encoder - Protect Email Addresses and Phone Numbers scored84%from 54 tests.

About plugin

  • Plugin page: email-encoder-bundle
  • Plugin version: 2.1.9
  • PHP compatiblity: 5.1+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-6.3
  • WordPress version: 6.3.1
  • First release: Feb 10, 2010
  • Latest release: Nov 11, 2023
  • Number of updates: 117
  • Update frequency: every 42.9 days
  • Top authors: freelancephp (72.65%)ironikus (23.08%)WebFactory (5.98%)

Code review

54 tests

User reviews

75 reviews

Install metrics

80,000+ active /893,279 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.44MB] [CPU: ▲0.97ms] Passed 4 tests

A check of server-side resources used by Email Encoder - Protect Email Addresses and Phone Numbers
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /4.04 ▲0.5844.85 ▲3.95
Dashboard /wp-admin3.78 ▲0.4745.52 ▼5.76
Posts /wp-admin/edit.php3.83 ▲0.4752.90 ▲7.40
Add New Post /wp-admin/post-new.php6.30 ▲0.4184.32 ▼0.49
Media Library /wp-admin/upload.php3.64 ▲0.4138.98 ▲6.16
Email Encoder /wp-admin/options-general.php?page=email-encoder-bundle-option-page3.6436.06

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 45 new files
Database: no new tables, 8 new options
New WordPress options
db_upgraded
widget_recent-comments
WP_Email_Encoder_Bundle_options
widget_theysaidso_widget
theysaidso_admin_options
email-encoder-bundle-version
widget_recent-posts
can_compress_scripts

Browser metrics Passed 4 tests

Email Encoder - Protect Email Addresses and Phone Numbers: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,902 ▲15513.61 ▼0.8010.18 ▲8.5142.69 ▼2.71
Dashboard /wp-admin2,199 ▲255.58 ▼0.0191.74 ▼13.2940.29 ▼6.52
Posts /wp-admin/edit.php2,104 ▲42.01 ▲0.0036.45 ▲0.4634.41 ▼1.63
Add New Post /wp-admin/post-new.php1,529 ▼223.70 ▲0.83687.00 ▲5.1459.87 ▲7.77
Media Library /wp-admin/upload.php1,407 ▲74.20 ▼0.0695.65 ▼1.1943.58 ▲1.43
Email Encoder /wp-admin/options-general.php?page=email-encoder-bundle-option-page1,9532.3835.8541.22

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 8 options in the database
    • widget_theysaidso_widget
    • email-encoder-bundle-version
    • db_upgraded
    • WP_Email_Encoder_Bundle_options
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test

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
Almost there! Just fix the following items
  • 6× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function EEB() in wp-content/plugins/email-encoder-bundle/core/includes/partials/widgets/main.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_current_screen() in wp-content/plugins/email-encoder-bundle/core/includes/partials/eeb-page-display.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/email-encoder-bundle/core/includes/partials/widgets/sidebar.php:38
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/email-encoder-bundle/core/includes/partials/help-tabs/template-tags.php:1
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/email-encoder-bundle/core/includes/partials/help-tabs/shortcodes.php:1
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_plugin_data() in wp-content/plugins/email-encoder-bundle/core/includes/partials/help-tabs/general.php:1

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
  • Tags: Please reduce the number of tags, currently 12 tag instead of maximum 10
  • Screenshots: These screenshots need descriptions #2, #3 in email-encoder-bundle/assets to your readme.txt
You can look at the official readme.txt

email-encoder-bundle/email-encoder-bundle.php Passed 13 tests

The entry point to "Email Encoder - Protect Email Addresses and Phone Numbers" version 2.1.9 is a PHP file that has certain tags in its header comment area
89 characters long description:
Protect email addresses on your site and hide them from spambots. Easy to use & flexible.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Good job! No executable or dangerous file extensions detected2,859 lines of code in 30 files:
LanguageFilesBlank linesComment linesLines of code
PHP258301,2982,715
JavaScript34029117
CSS22027

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.44
Average class complexity24.19
▷ Minimum class complexity1.00
▷ Maximum class complexity129.00
Average method complexity3.56
▷ Minimum method complexity1.00
▷ Maximum method complexity27.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes16
▷ Abstract classes00.00%
▷ Concrete classes16100.00%
▷ Final classes16.25%
Methods140
▷ Static methods10.71%
▷ Public methods12891.43%
▷ Protected methods00.00%
▷ Private methods128.57%
Functions15
▷ Named functions853.33%
▷ Anonymous functions746.67%
Constants8
▷ Global constants8100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
7 compressed PNG files occupy 0.11MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
core/includes/assets/img/icon-email-encoder.png7.84KB3.58KB▼ 54.31%
core/includes/assets/img/icon-wp-snow.png1.60KB1.60KB0.00%
core/includes/assets/img/icon-email-encoder-bundle.png0.84KB0.76KB▼ 9.41%
core/includes/assets/img/icon-pluginplate.png2.68KB2.73KB0.00%
core/includes/assets/img/icon-wp-webhooks-500x500-min.png14.89KB13.70KB▼ 7.98%