10% are-you-robot-recaptcha

Code Review | Are you robot google recaptcha for wordpress

WordPress plugin Are you robot google recaptcha for wordpress scored10%from 54 tests.

About plugin

  • Plugin page: are-you-robot-rec...
  • Plugin version: 2.2
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.1
  • WordPress version: 6.3.1
  • First release: Dec 6, 2014
  • Latest release: Feb 25, 2015
  • Number of updates: 20
  • Update frequency: every 4.1 days
  • Top authors: sureshdsk (100%)

Code review

54 tests

User reviews

16 reviews

Install metrics

1,000+ active /12,727 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Please fix the following installer errors
  • Install procedure validation failed for this plugin
    • > Notice in wp-content/plugins/are-you-robot-recaptcha/google-new-recaptcha.php+141
    Trying to access array offset on value of type bool

Server metrics [RAM: ▼1.83MB] [CPU: ▼53.06ms] Passed 4 tests

A check of server-side resources used by Are you robot google recaptcha for wordpress
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.16 ▼1.305.14 ▼35.00
Dashboard /wp-admin2.18 ▼1.136.01 ▼43.54
Posts /wp-admin/edit.php2.18 ▼1.187.68 ▼40.29
Add New Post /wp-admin/post-new.php2.18 ▼3.716.44 ▼93.42
Media Library /wp-admin/upload.php2.18 ▼1.055.89 ▼27.16
reCAPTCHA /wp-admin/options-general.php?page=re-captcha-config2.186.32

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_recent-comments
theysaidso_admin_options
db_upgraded
widget_theysaidso_widget
can_compress_scripts

Browser metrics Passed 4 tests

Checking browser requirements for Are you robot google recaptcha for wordpress
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲6913.60 ▼0.764.36 ▲2.3240.36 ▼3.96
Dashboard /wp-admin2,204 ▲195.83 ▼0.18103.15 ▼0.4740.65 ▼2.40
Posts /wp-admin/edit.php2,096 ▲102.17 ▲0.1539.56 ▲0.1135.29 ▲0.43
Add New Post /wp-admin/post-new.php1,517 ▼1617.66 ▼5.65661.22 ▼34.2951.42 ▼7.66
Media Library /wp-admin/upload.php1,395 ▲134.24 ▲0.0595.19 ▼13.0843.96 ▼0.74
reCAPTCHA /wp-admin/options-general.php?page=re-captcha-config1,0756.89102.1857.95

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
  • This plugin cannot be uninstalled
    • > Notice in wp-content/plugins/are-you-robot-recaptcha/google-new-recaptcha.php+141
    Trying to access array offset on value of type bool
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
These errors were triggered by the plugin
  • 17 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=re-captcha-config
    • > Notice in wp-content/plugins/are-you-robot-recaptcha/google-new-recaptcha.php+83
    Trying to access array offset on value of type bool

SRP Passed 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
Everything seems fine, however this is by no means an exhaustive test

User-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Please take a look at the following user-side issues
    • > GET request to /wp-admin/options-general.php?page=re-captcha-config
    • > Security (warning) in unknown
    security - Error with Permissions-Policy header: Unrecognized feature: 'ambient-light-sensor'.
    • > GET request to /wp-admin/options-general.php?page=re-captcha-config
    • > Security (warning) in unknown
    security - Error with Permissions-Policy header: Unrecognized feature: 'bluetooth'.

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes:
  • Tags: There are too many tags (12 tag instead of maximum 10)
  • Screenshots: These screenshots have no corresponding images in /assets: #1 (screenshot-1.png), #2 (screenshot-2.png)
You can look at the official readme.txt

are-you-robot-recaptcha/google-new-recaptcha.php 92% from 13 tests

"Are you robot google recaptcha for wordpress" version 2.2's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please make the necessary changes and fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("are-you-robot-recaptcha.php" instead of "google-new-recaptcha.php")

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
Good job! No executable or dangerous file extensions detected349 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP19412349

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.54
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%
Functions17
▷ Named functions17100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
2 PNG files occupy 0.10MB with 0.07MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/screenshot-2.png73.85KB25.05KB▼ 66.08%
assets/screenshot-1.png31.79KB9.46KB▼ 70.25%