78% anti-captcha

Code Review | Anti-Captcha (anti-spam botblocker)

WordPress plugin Anti-Captcha (anti-spam botblocker) scored 78% from 54 tests.

About plugin

  • Plugin page: anti-captcha
  • Plugin version: 20141103...
  • PHP version: 7.4.16
  • WordPress compatibility: 2.8.4-4.0.0
  • WordPress version: 6.3.1
  • First release: Aug 22, 2009
  • Latest release: Nov 3, 2014
  • Number of updates: 35
  • Update frequency: every 54.3 days
  • Top authors: filiw (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

2,000+ active / 85,618 total downloads


Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully

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

Analyzing server-side resources used by Anti-Captcha (anti-spam botblocker)
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0234.38 ▼6.46
Dashboard /wp-admin3.32 ▲0.0242.32 ▼7.25
Posts /wp-admin/edit.php3.37 ▲0.0248.41 ▼1.78
Add New Post /wp-admin/post-new.php5.90 ▲0.0283.70 ▼5.45
Media Library /wp-admin/upload.php3.25 ▲0.0232.61 ▼1.72

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options

Browser metrics Passed 4 tests

A check of browser resources used by Anti-Captcha (anti-spam botblocker)
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,803 ▲6813.66 ▼0.331.66 ▼0.2340.32 ▼8.56
Dashboard /wp-admin2,206 ▲184.85 ▼1.02113.68 ▼9.6543.43 ▼7.63
Posts /wp-admin/edit.php2,089 ▼02.01 ▲0.0241.21 ▲3.1937.87 ▲4.79
Add New Post /wp-admin/post-new.php1,513 ▼117.63 ▲0.13691.43 ▲2.1853.65 ▲1.73
Media Library /wp-admin/upload.php1,382 ▼64.22 ▲0.0696.19 ▼7.1639.94 ▼3.27

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
Please fix the following items
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options

Smoke tests 50% from 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)
Everything seems fine, however this is by no means an exhaustive test

SRP 0% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The following issues need your attention
  • 1× PHP files output text when accessed directly:
    • > /wp-content/plugins/anti-captcha/anti-captcha-0.3.js.php
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/anti-captcha/anti-captcha.php:11

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side


Plugin configuration 93% from 29 tests

readme.txt 94% from 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
These attributes need to be fixed:
  • Tags: You are using too many tags: 13 tag instead of maximum 10
Please take inspiration from this readme.txt

anti-captcha/anti-captcha.php 92% from 13 tests

"Anti-Captcha (anti-spam botblocker)" version 20141103...'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:
  • Version: Use periods and digits only for your plugin's version number (ex. "1.0.3" instead of "20141103...")

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
There were no executable files found in this plugin612 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.30
Average class complexity22.00
▷ Minimum class complexity6.00
▷ Maximum class complexity37.00
Average method complexity2.50
▷ Minimum method complexity1.00
▷ Maximum method complexity15.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods42100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions6100.00%
▷ Anonymous functions00.00%
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/icon-256x256.png2.28KB1.46KB▼ 36.12%