79% obfuscate-email

Code Review | Obfuscate Email

WordPress plugin Obfuscate Email scored79%from 54 tests.

About plugin

  • Plugin page: obfuscate-email
  • Plugin version: 3.8.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9-5.7
  • WordPress version: 6.3.1
  • First release: Apr 14, 2005
  • Latest release: Apr 14, 2021
  • Number of updates: 14
  • Update frequency: every 417.4 days
  • Top authors: coffee2code (100%)matt (14.29%)

Code review

54 tests

User reviews

13 reviews

Install metrics

10,000+ active /93,917 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 gracefully, with no errors

Server metrics [RAM: ▲0.19MB] [CPU: ▲0.20ms] Passed 4 tests

Analyzing server-side resources used by Obfuscate Email
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.67 ▲0.2142.49 ▲2.34
Dashboard /wp-admin3.49 ▲0.1944.91 ▼1.36
Posts /wp-admin/edit.php3.60 ▲0.2549.85 ▲2.14
Add New Post /wp-admin/post-new.php6.07 ▲0.1893.60 ▲6.53
Media Library /wp-admin/upload.php3.41 ▲0.1838.75 ▼2.31
Obfuscate Email /wp-admin/options-general.php?page=obfuscate-email/obfuscate-email.php3.4033.39

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 14 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-comments
widget_recent-posts
can_compress_scripts

Browser metrics Passed 4 tests

An overview of browser requirements for Obfuscate Email
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,807 ▲7213.18 ▼1.571.61 ▼0.6139.99 ▼2.80
Dashboard /wp-admin2,210 ▲194.85 ▼0.02107.31 ▲5.5039.80 ▼4.84
Posts /wp-admin/edit.php2,093 ▲12.02 ▼0.0339.29 ▲0.3034.75 ▼3.95
Add New Post /wp-admin/post-new.php1,536 ▼123.31 ▲0.23660.55 ▼2.7255.87 ▼5.31
Media Library /wp-admin/upload.php1,389 ▼24.19 ▼0.0197.23 ▼5.7641.44 ▼3.14
Obfuscate Email /wp-admin/options-general.php?page=obfuscate-email/obfuscate-email.php9251.7127.3745.33

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts

Smoke tests 50% 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)
Even though everything seems fine, this is not an exhaustive test

SRP 0% 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
Please take a closer look at the following
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/obfuscate-email/phpunit/bootstrap.php
  • 2× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      require_once(): Failed opening required '/tmp/wordpress-tests-lib/tests/phpunit/includes/functions.php' (include_path='.:/usr/share/php') in wp-content/plugins/obfuscate-email/phpunit/bootstrap.php on line 17
    • > PHP Warning
      require_once(/tmp/wordpress-tests-lib/tests/phpunit/includes/functions.php): failed to open stream: No such file or directory in wp-content/plugins/obfuscate-email/phpunit/bootstrap.php on line 17

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)
There were no browser issues found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
6 plugin tags: email, spam, coffee2code, obfuscate, obfuscation...

obfuscate-email/obfuscate-email.php Passed 13 tests

The main PHP script in "Obfuscate Email" version 3.8.1 is automatically included on every request by WordPress
61 characters long description:
Obfuscate email addresses to deter email-harvesting spammers.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected1,519 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code
PHP62855951,176
Markdown3490308
Bourne Shell16221
XML10014

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.44
Average class complexity44.75
▷ Minimum class complexity3.00
▷ Maximum class complexity140.00
Average method complexity2.88
▷ Minimum method complexity1.00
▷ Maximum method complexity38.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes125.00%
▷ Concrete classes375.00%
▷ Final classes133.33%
Methods95
▷ Static methods77.37%
▷ Public methods8286.32%
▷ Protected methods1212.63%
▷ Private methods11.05%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants150.00%
▷ Class constants150.00%
▷ Public constants1100.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
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
c2c_minilogo.png3.49KB1.91KB▼ 45.43%