83% uber-nocaptcha-recaptcha

Code Review | Uber reCaptcha

WordPress plugin Uber reCaptcha scored83%from 54 tests.

About plugin

  • Plugin page: uber-nocaptcha-re...
  • Plugin version: 1.1.4
  • PHP version: 7.4.16
  • WordPress compatibility: 3.9-6.3
  • WordPress version: 6.3.1
  • First release: Mar 3, 2015
  • Latest release: Oct 29, 2023
  • Number of updates: 76
  • Update frequency: every 41.6 days
  • Top authors: cristian.raiber (72.37%)machothemes (15.79%)raldea89 (10.53%)giucu91 (5.26%)

Code review

54 tests

User reviews

9 reviews

Install metrics

2,000+ active /72,002 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.15MB] [CPU: ▼10.42ms] Passed 4 tests

An overview of server-side resources used by Uber reCaptcha
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.63 ▲0.1641.44 ▼0.07
Dashboard /wp-admin3.46 ▲0.1246.84 ▼14.17
Posts /wp-admin/edit.php3.58 ▲0.2245.07 ▼4.18
Add New Post /wp-admin/post-new.php6.04 ▲0.1681.99 ▼23.26
Media Library /wp-admin/upload.php3.39 ▲0.1640.22 ▲3.54

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 21 new files
Database: no new tables, 7 new options
New WordPress options
theysaidso_admin_options
widget_recent-posts
widget_recent-comments
db_upgraded
uncr_settings
can_compress_scripts
widget_theysaidso_widget

Browser metrics Passed 4 tests

Checking browser requirements for Uber reCaptcha
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,846 ▲8514.26 ▼0.092.07 ▲0.3643.25 ▼0.94
Dashboard /wp-admin2,230 ▲535.64 ▼0.0290.71 ▼5.3037.41 ▼5.64
Posts /wp-admin/edit.php2,132 ▲322.00 ▲0.0142.76 ▲9.1937.28 ▼0.07
Add New Post /wp-admin/post-new.php1,550 ▲2423.13 ▼0.44672.45 ▼14.4051.70 ▼6.13
Media Library /wp-admin/upload.php1,432 ▲294.20 ▲0.0897.20 ▼13.9143.24 ▼8.74

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

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

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, 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 fix the following
  • 6× 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/uber-nocaptcha-recaptcha/includes/class-ncr-captcha-on-comment-form.php:52
    • > PHP Fatal error
      Uncaught Error: Class 'NCR_render_engine' not found in wp-content/plugins/uber-nocaptcha-recaptcha/admin/settings.php:12
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/uber-nocaptcha-recaptcha/includes/class-ncr-captcha-on-login.php:38
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/uber-nocaptcha-recaptcha/includes/class-ncr-captcha-on-register.php:36
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/uber-nocaptcha-recaptcha/includes/class-ncr-captcha-recover-password-form.php:39
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/uber-nocaptcha-recaptcha/includes/helpers/class-ncr-admin-notices.php:31

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need to be fixed:
  • Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line ( === uber-nocaptcha-recaptcha === )
The official readme.txt is a good inspiration

uber-nocaptcha-recaptcha/recaptcha.php 85% from 13 tests

This is the main PHP file of "Uber reCaptcha" version 1.1.4, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please take the time to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("uber-nocaptcha-recaptcha.php" instead of "recaptcha.php")
  • Text Domain: The text domain should only use lowercase characters and dashes

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
Good job! No executable or dangerous file extensions detected1,209 lines of code in 16 files:
LanguageFilesBlank linesComment linesLines of code
PHP12308507669
CSS23446268
PO File1106114241
JavaScript113031

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.39
Average class complexity8.38
▷ Minimum class complexity2.00
▷ Maximum class complexity18.00
Average method complexity2.69
▷ Minimum method complexity1.00
▷ Maximum method complexity10.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes8
▷ Abstract classes00.00%
▷ Concrete classes8100.00%
▷ Final classes00.00%
Methods35
▷ Static methods25.71%
▷ Public methods35100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions6
▷ Named functions6100.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
No PNG files were detected