94% email-javascript-cloaker

Code Review | Email JavaScript Cloak

WordPress plugin Email JavaScript Cloak scored 94% from 54 tests.

About plugin

  • Plugin page: email-javascript-...
  • Plugin version: 1.03
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5.0-5.0
  • WordPress version: 5.8.1
  • First release: Aug 19, 2013
  • Latest release: Dec 8, 2018
  • Number of updates: 28
  • Update frequency: every 69.2 days
  • Top authors: cgarvey (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

900+ active / 4,093 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.01MB] [CPU: ▼145.16ms] Passed 4 tests

An overview of server-side resources used by Email JavaScript Cloak
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.85 ▲0.1339.84 ▲18.62
Dashboard /wp-admin3.07 ▲0.0139.54 ▼10.55
Posts /wp-admin/edit.php3.12 ▲0.0146.84 ▲3.67
Add New Post /wp-admin/post-new.php5.43 ▼0.0193.31 ▼572.69
Media Library /wp-admin/upload.php3.01 ▲0.0133.32 ▼1.07

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 4 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Checking browser requirements for Email JavaScript Cloak
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,813 ▲21816.16 ▲0.5411.90 ▲3.6249.13 ▼2.57
Dashboard /wp-admin2,970 ▲366.07 ▲0.10143.54 ▼18.29112.26 ▼4.64
Posts /wp-admin/edit.php2,739 ▼02.69 ▼0.0074.91 ▲5.71101.69 ▲3.58
Add New Post /wp-admin/post-new.php1,604 ▼7918.92 ▲0.48382.96 ▼11.37108.84 ▲4.30
Media Library /wp-admin/upload.php1,810 ▲34.99 ▼0.02164.59 ▼3.92127.91 ▲8.56

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Uninstall script ran successfully

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
Please fix the following items
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/email-javascript-cloaker/email-js-cloak.php:38

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 96% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
5 plugin tags: cloaking, spam, harvest, email cloak, email address

email-javascript-cloaker/email-js-cloak.php 92% from 13 tests

This is the main PHP file of "Email JavaScript Cloak" version 1.03, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please make the necessary changes and fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("email-javascript-cloaker.php" instead of "email-js-cloak.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected36 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP1113830
JavaScript1106

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.29
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%
Functions3
▷ Named functions3100.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
There are no PNG files in this plugin