84% email-obfuscate-shortcode

Code Review | Email Obfuscate Shortcode

WordPress plugin Email Obfuscate Shortcode scored84%from 54 tests.

About plugin

  • Plugin page: email-obfuscate-s...
  • Plugin version: 2.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.6
  • WordPress version: 6.3.1
  • First release: Dec 24, 2012
  • Latest release: Jul 29, 2016
  • Number of updates: 26
  • Update frequency: every 50.5 days
  • Top authors: khromov (100%)

Code review

54 tests

User reviews

16 reviews

Install metrics

1,000+ active /11,757 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼5.11ms] Passed 4 tests

An overview of server-side resources used by Email Obfuscate Shortcode
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0243.33 ▼3.05
Dashboard /wp-admin3.32 ▲0.0249.67 ▼7.69
Posts /wp-admin/edit.php3.37 ▲0.0253.56 ▲1.36
Add New Post /wp-admin/post-new.php5.90 ▲0.0293.21 ▼11.04
Media Library /wp-admin/upload.php3.25 ▲0.0240.34 ▲3.64

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-comments
db_upgraded
theysaidso_admin_options
can_compress_scripts
widget_recent-posts

Browser metrics Passed 4 tests

Email Obfuscate Shortcode: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.34 ▼0.011.63 ▼0.2643.18 ▼1.49
Dashboard /wp-admin2,195 ▲155.54 ▼0.1180.73 ▼13.3736.11 ▼3.56
Posts /wp-admin/edit.php2,100 ▲31.98 ▼0.0137.10 ▼1.7832.26 ▼2.63
Add New Post /wp-admin/post-new.php1,526 ▼023.21 ▲0.04697.44 ▼13.6655.35 ▼6.64
Media Library /wp-admin/upload.php1,400 ▼04.18 ▼0.06100.36 ▼9.3044.82 ▼5.31

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
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded

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
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Almost there! Just fix the following items
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/email-obfuscate-shortcode/email-obfuscate-shortcode.php:20

User-side errors Passed 1 test

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

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
4 plugin tags: obfuscator, email, spam stopper, email obfuscator

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

The primary PHP file in "Email Obfuscate Shortcode" version 2.0 is used by WordPress to initiate all plugin functionality
108 characters long description:
No more spam! Example usage: [email-obfuscate email="bob@company.com"] -- See plugin site for more examples.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
No dangerous file extensions were detected99 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1247499

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.38
Average class complexity12.00
▷ Minimum class complexity12.00
▷ Maximum class complexity12.00
Average method complexity3.20
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods5
▷ Static methods5100.00%
▷ Public methods5100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
No PNG files were detected