10% css-email-obfuscator

Code Review | CSS Email Obfuscator

WordPress plugin CSS Email Obfuscator scored10%from 54 tests.

About plugin

  • Plugin page: css-email-obfuscator
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.5
  • WordPress version: 6.3.1
  • First release: Mar 15, 2016
  • Latest release: May 25, 2016
  • Number of updates: 6
  • Update frequency: every 11.8 days
  • Top authors: nurtext (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

20+ active /1,033 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
It is recommended to fix the following installer errors
  • The plugin cannot be installed
    • > Deprecated in wp-content/plugins/css-email-obfuscator/public/class-css-email-obfuscator-public.php+207
    Array and string offset access syntax with curly braces is deprecated

Server metrics [RAM: ▼16.06MB] [CPU: ▼2,933,333.51ms] Passed 4 tests

Server-side resources used by CSS Email Obfuscator
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.10 ▼57.887.45 ▼11,733,124.76
Dashboard /wp-admin2.12 ▼1.277.12 ▼63.47
Posts /wp-admin/edit.php2.12 ▼1.286.22 ▼50.07
Add New Post /wp-admin/post-new.php2.12 ▼3.826.82 ▼95.75
Media Library /wp-admin/upload.php2.12 ▼1.166.07 ▼33.57

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 16 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
theysaidso_admin_options
can_compress_scripts
db_upgraded
widget_theysaidso_widget
widget_recent-posts

Browser metrics Passed 4 tests

Checking browser requirements for CSS Email Obfuscator
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,791 ▲3014.69 ▲0.331.72 ▼0.0645.97 ▲1.13
Dashboard /wp-admin2,198 ▲185.62 ▼0.0693.81 ▲2.1644.07 ▲1.74
Posts /wp-admin/edit.php2,100 ▼01.97 ▼0.0236.67 ▼4.5735.67 ▼1.05
Add New Post /wp-admin/post-new.php1,526 ▼023.18 ▲0.11660.22 ▼57.4348.57 ▼14.99
Media Library /wp-admin/upload.php1,394 ▼64.19 ▼0.06102.59 ▼9.3745.25 ▼5.78

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • Uninstall procedure had uncaught errors
    • > Deprecated in wp-content/plugins/css-email-obfuscator/public/class-css-email-obfuscator-public.php+207
    Array and string offset access syntax with curly braces is deprecated
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

SRP Passed 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
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% 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:
  • Screenshots: These screenshots have no corresponding images in /assets: #1 (Email address only), #2 (Clickable email address), #3 (Clickable email address with custom link text)
The official readme.txt might help

css-email-obfuscator/css-email-obfuscator.php 92% from 13 tests

The principal PHP file in "CSS Email Obfuscator" v. 1.0.0 is loaded by WordPress automatically on each request
You should first fix the following items:
  • Domain Path: The domain path folder was not found ("/languages")

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 detected173 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
PHP8105450169
CSS1004

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.29
Average class complexity4.80
▷ Minimum class complexity1.00
▷ Maximum class complexity17.00
Average method complexity1.86
▷ Minimum method complexity1.00
▷ Maximum method complexity10.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes00.00%
Methods22
▷ Static methods29.09%
▷ Public methods1672.73%
▷ Protected methods00.00%
▷ Private methods627.27%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
3 PNG files occupy 0.15MB with 0.06MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-3.png50.67KB28.96KB▼ 42.84%
screenshot-2.png49.76KB27.96KB▼ 43.82%
screenshot-1.png48.36KB26.52KB▼ 45.16%