84% userswp-recaptcha

Code Review | UsersWP - ReCaptcha

WordPress plugin UsersWP - ReCaptcha scored84%from 54 tests.

About plugin

  • Plugin page: userswp-recaptcha
  • Plugin version: 1.3.19
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9-6.4
  • WordPress version: 6.3.1
  • First release: Feb 3, 2020
  • Latest release: Nov 9, 2023
  • Number of updates: 20
  • Update frequency: every 68.9 days
  • Top authors: stiofansisland (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

3,000+ active /85,467 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▼0.13MB] [CPU: ▼8.64ms] Passed 4 tests

This is a short check of server-side resources used by UsersWP - ReCaptcha
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▼0.0446.62 ▼1.35
Dashboard /wp-admin3.31 ▲0.0049.19 ▼6.08
Posts /wp-admin/edit.php3.36 ▼0.4947.37 ▼10.76
Add New Post /wp-admin/post-new.php5.89 ▼0.0090.06 ▼16.35
Media Library /wp-admin/upload.php3.23 ▼0.0034.15 ▲2.73

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 13 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-posts
can_compress_scripts
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-comments

Browser metrics Passed 4 tests

This is an overview of browser requirements for UsersWP - ReCaptcha
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,790 ▲2814.57 ▲0.441.62 ▼0.6744.61 ▼4.45
Dashboard /wp-admin2,192 ▲155.58 ▼0.0789.67 ▼0.2138.94 ▼1.48
Posts /wp-admin/edit.php2,100 ▼01.94 ▲0.0038.47 ▼0.7835.33 ▼0.60
Add New Post /wp-admin/post-new.php1,526 ▼923.16 ▼2.14650.27 ▲29.8255.05 ▲1.48
Media Library /wp-admin/upload.php1,403 ▲34.19 ▼0.0296.34 ▲0.5139.71 ▼3.28

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget

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
The smoke test was a success, however most plugin functionality was not tested

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 fix the following items
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/userswp-recaptcha/admin/settings.php:2

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
8 plugin tags: users, login, register, account, userswp...

userswp-recaptcha/uwp-recaptcha.php 85% from 13 tests

The main PHP file in "UsersWP - ReCaptcha" ver. 1.3.19 adds more information about the plugin and also serves as the entry point for this plugin
Please make the necessary changes and fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("userswp-recaptcha.php" instead of "uwp-recaptcha.php")
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
There were no executable files found in this plugin931 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
PHP716181799
PO File14343132

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.55
Average class complexity34.00
▷ Minimum class complexity11.00
▷ Maximum class complexity57.00
Average method complexity4.14
▷ Minimum method complexity1.00
▷ Maximum method complexity14.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods21
▷ Static methods314.29%
▷ Public methods1780.95%
▷ Protected methods00.00%
▷ Private methods419.05%
Functions13
▷ Named functions13100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.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