10% bbpress-no-captcha-recaptcha

Code Review | bbPress No CAPTCHA reCAPTCHA

WordPress plugin bbPress No CAPTCHA reCAPTCHA scored 10% from 54 tests.

About plugin

  • Plugin page: bbpress-no-captch...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-5.4
  • WordPress version: 6.3.1
  • First release: Feb 25, 2015
  • Latest release: Apr 3, 2020
  • Number of updates: 71
  • Update frequency: every 26.3 days
  • Top authors: studiohyperset (100%)

Code review

54 tests

User reviews

1 review

Install metrics

300+ active / 6,304 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
These installer errors require your attention
  • The plugin cannot be installed
    • > Deprecated in wp-content/plugins/bbpress-no-captcha-recaptcha/recaptchalib.php+42
    Methods with the same name as their class will not be constructors in a future version of PHP; ReCaptcha has a deprecated constructor

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

This is a short check of server-side resources used by bbPress No CAPTCHA reCAPTCHA
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0141.88 ▼20.82
Dashboard /wp-admin3.32 ▲0.0153.84 ▼5.89
Posts /wp-admin/edit.php3.37 ▲0.0149.48 ▼6.57
Add New Post /wp-admin/post-new.php5.90 ▲0.0198.98 ▼2.43
Media Library /wp-admin/upload.php3.24 ▲0.0141.52 ▲3.93
bbPress No CAPTCHA reCAPTCHA /wp-admin/options-general.php?page=bbpress-newrecaptcha-settings3.1838.12

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-comments
can_compress_scripts
widget_recent-posts
widget_theysaidso_widget
db_upgraded

Browser metrics Passed 4 tests

An overview of browser requirements for bbPress No CAPTCHA reCAPTCHA
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲1513.21 ▲0.044.89 ▲3.0342.37 ▼7.57
Dashboard /wp-admin2,210 ▲44.90 ▲0.02102.56 ▼12.1741.04 ▼2.98
Posts /wp-admin/edit.php2,096 ▲102.05 ▲0.0440.72 ▲4.3534.17 ▼2.36
Add New Post /wp-admin/post-new.php1,537 ▲423.32 ▲0.06746.09 ▲88.4266.87 ▲13.12
Media Library /wp-admin/upload.php1,395 ▲104.29 ▲0.04104.31 ▲0.7648.52 ▼0.10
bbPress No CAPTCHA reCAPTCHA /wp-admin/options-general.php?page=bbpress-newrecaptcha-settings8192.0635.1828.60

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Smoke test failed, please fix the following
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=bbpress-newrecaptcha-settings
    • > Notice in wp-content/plugins/bbpress-no-captcha-recaptcha/bbpress-newrecaptcha.php+106
    Trying to access array offset on value of type bool

SRP 50% 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
Please take a closer look at the following
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/bbpress-no-captcha-recaptcha/bbpress-newrecaptcha.php:40

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
These attributes need your attention:
  • Tags: Please reduce the number of tags, currently 11 tag instead of maximum 10
The official readme.txt might help

bbpress-no-captcha-recaptcha/bbpress-newrecaptcha.php 85% from 13 tests

The principal PHP file in "bbPress No CAPTCHA reCAPTCHA" v. 1.0 is loaded by WordPress automatically on each request
The following require your attention:
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("bbpress-no-captcha-recaptcha.php" instead of "bbpress-newrecaptcha.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
There were no executable files found in this plugin145 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP25184145

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.25
Average class complexity4.00
▷ Minimum class complexity1.00
▷ Maximum class complexity7.00
Average method complexity2.50
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods250.00%
▷ Protected methods00.00%
▷ Private methods250.00%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
There were not PNG files found in your plugin