94% emailscrambler

Code Review | EmailScrambler

WordPress plugin EmailScrambler scored 94% from 53 tests.

About plugin

  • Plugin page: emailscrambler
  • Plugin version: 1.4
  • PHP compatiblity: 7.1+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-5.7.2
  • WordPress version: 5.8.1
  • First release: Jul 14, 2017
  • Latest release: Jul 16, 2021
  • Number of updates: 19
  • Update frequency: every 77.1 days
  • Top authors: Daschmi (100%)

Code review

53 tests

User reviews

1 review

Install metrics

70+ active / 947 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully

Server metrics [RAM: ▼0.00MB] [CPU: ▼273.01ms] Passed 4 tests

This is a short check of server-side resources used by EmailScrambler
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.85 ▲0.1334.44 ▲16.00
Dashboard /wp-admin3.06 ▲0.0146.85 ▲5.36
Posts /wp-admin/edit.php3.11 ▲0.0044.21 ▲0.56
Add New Post /wp-admin/post-new.php5.42 ▼0.0189.66 ▼1,090.60
Media Library /wp-admin/upload.php3.00 ▼0.0032.32 ▼7.36

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 5 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

A check of browser resources used by EmailScrambler
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,652 ▲4616.02 ▲0.467.73 ▼0.3652.27 ▲1.15
Dashboard /wp-admin2,931 ▲785.92 ▲0.11130.84 ▼2.74108.19 ▲5.87
Posts /wp-admin/edit.php2,703 ▼32.69 ▼0.0062.95 ▼8.9992.29 ▼2.51
Add New Post /wp-admin/post-new.php1,851 ▲37017.76 ▼0.80351.90 ▼28.90108.17 ▲0.83
Media Library /wp-admin/upload.php1,772 ▼04.99 ▼0.00151.90 ▲7.07109.71 ▼3.49

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
This plugin's uninstaller ran successfully

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check 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
Almost there! Just fix the following items
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wpes\\add_action() in wp-content/plugins/emailscrambler/emailscrambler.php:22

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
9 plugin tags: encrypt, mail, spam, daschmi, filter...

emailscrambler/emailscrambler.php 92% from 13 tests

"EmailScrambler" version 1.4's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
You should first fix the following items:
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug

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
No dangerous file extensions were detected64 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP3482551
JavaScript111013

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.29
Average class complexity4.50
▷ Minimum class complexity1.00
▷ Maximum class complexity8.00
Average method complexity2.17
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes2
▷ Abstract classes2100.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods6
▷ Static methods6100.00%
▷ Public methods6100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 1 test

Image compression Passed 1 test

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There are no PNG files in this plugin