84% hiddenbadgerecaptcha

Code Review | Hidden Badge ReCaptcha

WordPress plugin Hidden Badge ReCaptcha scored84%from 54 tests.

About plugin

  • Plugin page: hiddenbadgerecaptcha
  • Plugin version: 1.0
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-5.6.1
  • WordPress version: 6.3.1
  • First release: Feb 20, 2019
  • Latest release: Feb 19, 2021
  • Number of updates: 9
  • Update frequency: every 81.1 days
  • Top authors: benjaminsimier (100%)

Code review

54 tests

User reviews

1 review

Install metrics

60+ active /680 total downloads

Benchmarks

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.00MB] [CPU: ▼2.60ms] Passed 4 tests

Server-side resources used by Hidden Badge ReCaptcha
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0038.65 ▼8.62
Dashboard /wp-admin3.31 ▲0.0044.26 ▼2.30
Posts /wp-admin/edit.php3.36 ▲0.0047.63 ▼0.11
Add New Post /wp-admin/post-new.php5.89 ▲0.0089.63 ▲1.79
Media Library /wp-admin/upload.php3.23 ▲0.0035.72 ▲0.63

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

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

Browser metrics Passed 4 tests

Hidden Badge ReCaptcha: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,828 ▲8213.13 ▼1.274.91 ▲2.7039.58 ▼3.65
Dashboard /wp-admin2,206 ▲154.86 ▼1.04108.19 ▲7.9740.13 ▼3.39
Posts /wp-admin/edit.php2,086 ▼62.04 ▲0.0439.96 ▼4.3934.11 ▼2.75
Add New Post /wp-admin/post-new.php1,538 ▼423.47 ▲5.03576.72 ▼72.6955.98 ▲2.49
Media Library /wp-admin/upload.php1,388 ▼34.20 ▲0.0193.21 ▼4.6340.96 ▼0.96

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
These items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The following issues need your attention
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/hiddenbadgerecaptcha/BSCaptcha.php:34

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)
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 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
3 plugin tags: captcha, google, hidden

hiddenbadgerecaptcha/BSCaptcha.php 92% from 13 tests

Analyzing the main PHP file in "Hidden Badge ReCaptcha" version 1.0
The following require your attention:
  • Main file name: The principal plugin file should be the same as the plugin slug ("hiddenbadgerecaptcha.php" instead of "BSCaptcha.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected15 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP151615

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.00
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
There are no PNG files in this plugin