89% email-no-bot

Code Review | Email No Bot - Prevent bots from detecting emails

WordPress plugin Email No Bot - Prevent bots from detecting emails scored89%from 54 tests.

About plugin

  • Plugin page: email-no-bot
  • Plugin version: 0.0.2
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-6.3
  • WordPress version: 6.3.1
  • First release: Jan 19, 2022
  • Latest release: Aug 9, 2023
  • Number of updates: 25
  • Update frequency: every 22.7 days
  • Top authors: giuse (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /2,038 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
Installer ran successfully

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

An overview of server-side resources used by Email No Bot - Prevent bots from detecting emails
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0340.85 ▲3.59
Dashboard /wp-admin3.33 ▲0.0348.68 ▼2.40
Posts /wp-admin/edit.php3.38 ▲0.0243.78 ▼2.79
Add New Post /wp-admin/post-new.php5.91 ▲0.0285.19 ▼8.05
Media Library /wp-admin/upload.php3.26 ▲0.0235.19 ▲0.57

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: 3 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
theysaidso_admin_options
db_upgraded
widget_recent-comments
widget_theysaidso_widget
widget_recent-posts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Email No Bot - Prevent bots from detecting emails
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲9014.74 ▲0.352.07 ▲0.3444.69 ▲4.23
Dashboard /wp-admin2,209 ▲305.91 ▲0.9899.41 ▼9.0240.13 ▲1.96
Posts /wp-admin/edit.php2,089 ▼02.02 ▲0.0136.13 ▼3.2936.38 ▼0.57
Add New Post /wp-admin/post-new.php1,514 ▼2017.63 ▼5.59686.69 ▲56.3457.00 ▲5.55
Media Library /wp-admin/upload.php1,388 ▲34.24 ▲0.0995.33 ▼21.0340.25 ▼5.94

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded

Smoke tests Passed 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 no errors were found, this is by no means an exhaustive test

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 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need to be fixed:
  • Donate link: Invalid url: "buymeacoffee.com/josem"
You can take inspiration from this readme.txt

email-no-bot/email-no-bot.php 92% from 13 tests

The main PHP script in "Email No Bot - Prevent bots from detecting emails" version 0.0.2 is automatically included on every request by WordPress
You should first fix the following items:
  • Domain Path: The domain path points to a folder that does not exist ("/languages/")

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
Everything looks great! No dangerous files found in this plugin52 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP252252

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.35
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%
Functions2
▷ Named functions150.00%
▷ Anonymous functions150.00%
Constants3
▷ Global constants3100.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
There are no PNG files in this plugin