100% easy-anti-spam-bots

Code Review | Easy Anti Spam Bot

WordPress plugin Easy Anti Spam Bot scored 100% from 54 tests.

About plugin

  • Plugin page: easy-anti-spam-bots
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-5.5
  • WordPress version: 5.8.1
  • First release: Aug 21, 2018
  • Latest release: Aug 22, 2020
  • Number of updates: 9
  • Update frequency: every 81.6 days
  • Top authors: cjperes (100%)

Code review

54 tests

User reviews

1 review

Install metrics

70+ active / 559 total downloads


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.00MB] [CPU: ▼141.60ms] Passed 4 tests

An overview of server-side resources used by Easy Anti Spam Bot
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.84 ▲0.1245.46 ▲22.71
Dashboard /wp-admin3.06 ▲0.0143.16 ▼3.10
Posts /wp-admin/edit.php3.11 ▲0.0146.88 ▲4.27
Add New Post /wp-admin/post-new.php5.42 ▼0.0190.39 ▼570.99
Media Library /wp-admin/upload.php3.00 ▲0.0034.38 ▲3.43

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 2 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

A check of browser resources used by Easy Anti Spam Bot
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,679 ▲8315.78 ▼0.2910.28 ▲1.0449.36 ▼2.11
Dashboard /wp-admin2,973 ▲425.88 ▼0.06139.10 ▼10.97112.45 ▼16.75
Posts /wp-admin/edit.php2,739 ▼02.69 ▼0.0068.11 ▼6.0498.13 ▲0.80
Add New Post /wp-admin/post-new.php1,615 ▲11721.29 ▲2.46292.22 ▼96.35110.47 ▼10.21
Media Library /wp-admin/upload.php1,807 ▼35.01 ▼0.01159.74 ▼4.45129.28 ▲5.27

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

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

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Everything seems fine, however this is by no means an exhaustive test

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


Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
5 plugin tags: anti, easy, bot, spam, light

easy-anti-spam-bots/easy-anti-spam-bot.php 92% from 13 tests

The entry point to "Easy Anti Spam Bot" version 1.0.0 is a PHP file that has certain tags in its header comment area
The following require your attention:
  • Main file name: Name the main plugin file the same as the plugin slug ("easy-anti-spam-bots.php" instead of "easy-anti-spam-bot.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable files found in this plugin11 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.50
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
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions1100.00%
▷ Anonymous functions00.00%
▷ Global constants00.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
PNG images were not found in this plugin