83% hizzle-recaptcha

Code Review | Google reCAPTCHA by Hizzle

WordPress plugin Google reCAPTCHA by Hizzle scored83%from 54 tests.

About plugin

  • Plugin page: hizzle-recaptcha
  • Plugin version: 1.0.3
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.1
  • WordPress version: 6.3.1
  • First release: Jul 8, 2021
  • Latest release: Feb 13, 2023
  • Number of updates: 4
  • Update frequency: every 146.5 days
  • Top authors: picocodes (100%)

Code review

54 tests

User reviews

1 review

Install metrics

200+ active /1,755 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully

Server metrics [RAM: ▲0.05MB] [CPU: ▼2.71ms] Passed 4 tests

Server-side resources used by Google reCAPTCHA by Hizzle
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0544.27 ▲8.15
Dashboard /wp-admin3.36 ▲0.0547.09 ▼5.25
Posts /wp-admin/edit.php3.41 ▲0.0543.14 ▼1.73
Add New Post /wp-admin/post-new.php5.94 ▲0.0582.92 ▼4.80
Media Library /wp-admin/upload.php3.28 ▲0.0535.39 ▲0.95
reCAPTCHA by Hizzle /wp-admin/options-general.php?page=hizzle-recaptcha3.2631.33

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 25 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_theysaidso_widget
db_upgraded
can_compress_scripts
widget_recent-comments
theysaidso_admin_options

Browser metrics Passed 4 tests

A check of browser resources used by Google reCAPTCHA by Hizzle
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲3214.35 ▲0.011.93 ▲0.1343.30 ▼3.45
Dashboard /wp-admin2,202 ▲255.64 ▲0.0682.40 ▼5.0636.77 ▼6.56
Posts /wp-admin/edit.php2,104 ▲41.97 ▼0.0134.00 ▼2.8132.21 ▼1.34
Add New Post /wp-admin/post-new.php1,529 ▼223.60 ▲0.48689.63 ▲77.7557.48 ▲5.51
Media Library /wp-admin/upload.php1,398 ▼54.21 ▼0.01101.95 ▲5.9144.65 ▲0.53
reCAPTCHA by Hizzle /wp-admin/options-general.php?page=hizzle-recaptcha9261.9922.0124.00

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget

Smoke tests 75% 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 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please take a closer look at the following
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/hizzle-recaptcha/includes/settings.php:8

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 90% from 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
4 plugin tags: google, spam, captcha, recaptcha

hizzle-recaptcha/plugin.php 77% from 13 tests

"Google reCAPTCHA by Hizzle" version 1.0.3's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
It is important to fix the following:
  • Requires at least: Required version must be the same as the one declared in readme.txt ("4.9" instead of "5.0")
  • Requires PHP: Required version must be the same as the one declared in readme.txt ("5.3" instead of "5.6")
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("hizzle-recaptcha.php" instead of "plugin.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin757 lines of code in 19 files:
LanguageFilesBlank linesComment linesLines of code
PHP19230542757

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.36
Average class complexity4.12
▷ Minimum class complexity1.00
▷ Maximum class complexity19.00
Average method complexity1.95
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes17
▷ Abstract classes00.00%
▷ Concrete classes17100.00%
▷ Final classes00.00%
Methods56
▷ Static methods00.00%
▷ Public methods5292.86%
▷ Protected methods47.14%
▷ Private methods00.00%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
There are no PNG files in this plugin