84% antispambot

Code Review | Anti-Spambot

WordPress plugin Anti-Spambot scored84%from 54 tests.

About plugin

  • Plugin page: antispambot
  • Plugin version: 1.1.6
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-5.8
  • WordPress version: 6.3.1
  • First release: Sep 20, 2014
  • Latest release: Jul 13, 2021
  • Number of updates: 19
  • Update frequency: every 131.0 days
  • Top authors: robert.peake (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

800+ active /7,717 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors

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

Server-side resources used by Anti-Spambot
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0040.41 ▼4.36
Dashboard /wp-admin3.32 ▲0.0145.58 ▼4.85
Posts /wp-admin/edit.php3.37 ▲0.0055.78 ▼1.55
Add New Post /wp-admin/post-new.php5.90 ▲0.0091.01 ▼12.45
Media Library /wp-admin/upload.php3.24 ▲0.0037.68 ▲0.31

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-comments
widget_theysaidso_widget
widget_recent-posts
db_upgraded
can_compress_scripts

Browser metrics Passed 4 tests

A check of browser resources used by Anti-Spambot
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲314.10 ▼0.251.78 ▼0.2840.90 ▼3.17
Dashboard /wp-admin2,198 ▲185.60 ▼0.0283.20 ▼14.5941.03 ▲1.95
Posts /wp-admin/edit.php2,097 ▼61.98 ▲0.0140.56 ▼0.3639.11 ▲1.31
Add New Post /wp-admin/post-new.php1,528 ▲223.30 ▲0.22694.27 ▼22.2255.69 ▲3.19
Media Library /wp-admin/upload.php1,400 ▼04.15 ▼0.22112.06 ▲5.7547.69 ▲2.07

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/antispambot/antispambot.php:46

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 Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
2 plugin tags: comments, spam

antispambot/antispambot.php 85% from 13 tests

The entry point to "Anti-Spambot" version 1.1.6 is a PHP file that has certain tags in its header comment area
Please take the time to fix the following:
  • Description: Please don't use more than 140 characters for the plugin description (currently 220 characters long)
  • Domain Path: The domain path folder does not exist ("/languages")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
No dangerous file extensions were detected27 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP111827

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.40
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%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ 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
No PNG images were found in this plugin