84% fix-multiple-recaptchas

Code Review | Fix Multiple ReCaptchas

WordPress plugin Fix Multiple ReCaptchas scored 84% from 54 tests.

About plugin

  • Plugin page: fix-multiple-reca...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.7
  • WordPress version: 6.3.1
  • First release: Nov 11, 2016
  • Latest release: Nov 11, 2016
  • Number of updates: 2
  • Update frequency: every 18.5 days
  • Top authors: hitittome873 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 583 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
The plugin installed gracefully, with no errors

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

This is a short check of server-side resources used by Fix Multiple ReCaptchas
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0238.40 ▼6.46
Dashboard /wp-admin3.32 ▲0.0244.48 ▼7.91
Posts /wp-admin/edit.php3.37 ▲0.0149.64 ▼0.00
Add New Post /wp-admin/post-new.php5.90 ▲0.0196.46 ▲3.24
Media Library /wp-admin/upload.php3.24 ▲0.0135.60 ▲1.55

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Fix Multiple ReCaptchas
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.19 ▼1.074.78 ▲2.8239.22 ▼6.65
Dashboard /wp-admin2,206 ▲154.84 ▼0.0696.52 ▼18.3839.77 ▼8.46
Posts /wp-admin/edit.php2,089 ▼02.02 ▲0.0039.84 ▲2.9637.03 ▲1.39
Add New Post /wp-admin/post-new.php1,514 ▼3017.48 ▼1.01625.06 ▲11.7352.21 ▼2.64
Media Library /wp-admin/upload.php1,388 ▼04.18 ▼0.0594.61 ▼14.9641.24 ▼4.19

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • widget_recent-posts
    • 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 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following
  • 4× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Warning
      include_once(ABSPATHwp-admin/includes/plugin.php): failed to open stream: No such file or directory in wp-content/plugins/fix-multiple-recaptchas/fix-multiple-recaptchas.php on line 15
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_plugin_active() in wp-content/plugins/fix-multiple-recaptchas/fix-multiple-recaptchas.php:16
    • > PHP Warning
      include_once(): Failed opening 'ABSPATHwp-admin/includes/plugin.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/fix-multiple-recaptchas/fix-multiple-recaptchas.php on line 15
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/fix-multiple-recaptchas/fix-multiple-recaptchas.php on line 15

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 Passed 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
4 plugin tags: captcha, ninja-forms, recaptcha, multiple-forms

fix-multiple-recaptchas/fix-multiple-recaptchas.php Passed 13 tests

The main PHP script in "Fix Multiple ReCaptchas" version 1.0 is automatically included on every request by WordPress
112 characters long description:
Fixes error when trying to insert multiple Google ReCaptchas on a single page. Only works with Ninja Forms 2.9.x

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
No dangerous file extensions were detected98 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP181080
JavaScript12018

PHP code Passed 2 tests

Analyzing 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.24
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%
Functions4
▷ Named functions375.00%
▷ Anonymous functions125.00%
Constants1
▷ Global constants1100.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
PNG images were not found in this plugin