84% arcaptcha

Code Review | ARCaptcha - Puzzle Captcha | New-generation Captcha and bot protection

WordPress plugin ARCaptcha - Puzzle Captcha | New-generation Captcha and bot protection scored84%from 54 tests.

About plugin

  • Plugin page: arcaptcha
  • Plugin version: 1.6
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-6.3.2
  • WordPress version: 6.3.1
  • First release: Aug 11, 2021
  • Latest release: Oct 13, 2023
  • Number of updates: 36
  • Update frequency: every 22.1 days
  • Top authors: arcaptcha (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

100+ active /2,433 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼3.44ms] Passed 4 tests

A check of server-side resources used by ARCaptcha - Puzzle Captcha | New-generation Captcha and bot protection
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0441.32 ▼1.71
Dashboard /wp-admin3.32 ▲0.0149.98 ▼4.71
Posts /wp-admin/edit.php3.37 ▲0.0149.60 ▼1.49
Add New Post /wp-admin/post-new.php5.90 ▲0.0195.57 ▼3.42
Media Library /wp-admin/upload.php3.24 ▲0.0138.33 ▼3.92
ARCaptcha /wp-admin/options-general.php?page=arcaptcha-options3.2736.73

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 41 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
theysaidso_admin_options
db_upgraded
widget_recent-posts
widget_theysaidso_widget
can_compress_scripts

Browser metrics Passed 4 tests

ARCaptcha - Puzzle Captcha | New-generation Captcha and bot protection: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,844 ▲5813.54 ▼0.997.56 ▲5.6643.37 ▲0.24
Dashboard /wp-admin2,202 ▲255.67 ▼0.0481.80 ▼11.3638.56 ▼4.23
Posts /wp-admin/edit.php2,101 ▼21.98 ▲0.0133.36 ▼4.0635.45 ▼2.45
Add New Post /wp-admin/post-new.php1,531 ▼422.90 ▲4.58649.90 ▲6.1853.79 ▼14.94
Media Library /wp-admin/upload.php1,407 ▲44.22 ▼0.0197.14 ▼3.0642.41 ▼2.35
ARCaptcha /wp-admin/options-general.php?page=arcaptcha-options1,0351.9927.3125.23

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 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
Please fix the following
  • 3× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/arcaptcha/common/functions.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/arcaptcha/digits/digits.php:5
    • > PHP Fatal error
      Uncaught Error: Class 'ElementorPro\\Modules\\Forms\\Fields\\Field_Base' not found in wp-content/plugins/arcaptcha/src/php/ElementorPro/ARCaptchaField.php:7

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Please fix the following attributes:
  • Contributors: The plugin contributors field is missing
Please take inspiration from this readme.txt

arcaptcha/arcaptcha.php 92% from 13 tests

The main PHP script in "ARCaptcha - Puzzle Captcha | New-generation Captcha and bot protection" version 1.6 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
  • Description: Please keep the plugin description shorter than 140 characters (currently 333 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin2,089 lines of code in 36 files:
LanguageFilesBlank linesComment linesLines of code
PHP283587961,744
JavaScript4540201
PO File14342118
JSON20023
CSS1003

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.37
Average class complexity13.14
▷ Minimum class complexity1.00
▷ Maximum class complexity48.00
Average method complexity2.58
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces4
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods55
▷ Static methods1629.09%
▷ Public methods5294.55%
▷ Protected methods00.00%
▷ Private methods35.45%
Functions67
▷ Named functions4465.67%
▷ Anonymous functions2334.33%
Constants6
▷ Global constants583.33%
▷ Class constants116.67%
▷ Public constants1100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG files were detected