84% invisible-recaptcha

Code Review | Invisible reCaptcha for WordPress

WordPress plugin Invisible reCaptcha for WordPress scored84%from 54 tests.

About plugin

  • Plugin page: invisible-recaptcha
  • Plugin version: 1.2.3
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.4
  • WordPress version: 6.3.1
  • First release: Dec 15, 2016
  • Latest release: Apr 7, 2020
  • Number of updates: 58
  • Update frequency: every 20.7 days
  • Top authors: mihche (100%)

Code review

54 tests

User reviews

131 reviews

Install metrics

100,000+ active /765,222 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.65MB] [CPU: ▼1.97ms] Passed 4 tests

An overview of server-side resources used by Invisible reCaptcha for WordPress
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /4.12 ▲0.6646.93 ▲9.11
Dashboard /wp-admin3.97 ▲0.6352.69 ▼10.39
Posts /wp-admin/edit.php4.08 ▲0.7349.61 ▲0.67
Add New Post /wp-admin/post-new.php6.55 ▲0.6687.79 ▼7.27
Media Library /wp-admin/upload.php3.89 ▲0.6645.65 ▲13.68
Invisible reCaptcha /wp-admin/options-general.php?page=invisible-recaptcha-settings3.9037.09

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 58 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-comments
db_upgraded
widget_recent-posts
can_compress_scripts
widget_theysaidso_widget
ic-settings
theysaidso_admin_options

Browser metrics Passed 4 tests

An overview of browser requirements for Invisible reCaptcha for WordPress
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,822 ▲7614.36 ▼0.278.57 ▲6.8742.35 ▼4.70
Dashboard /wp-admin2,213 ▲254.85 ▼1.05107.91 ▼9.8343.09 ▼1.78
Posts /wp-admin/edit.php2,093 ▲42.01 ▼0.0340.24 ▲4.9737.67 ▼1.40
Add New Post /wp-admin/post-new.php1,545 ▲2623.14 ▲0.05661.32 ▲13.0951.32 ▼5.09
Media Library /wp-admin/upload.php1,392 ▲44.13 ▼0.08111.27 ▲13.8247.29 ▲5.00
Invisible reCaptcha /wp-admin/options-general.php?page=invisible-recaptcha-settings1,3764.9052.1156.35

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
  • Zombie WordPress options were found after uninstall: 7 options
    • theysaidso_admin_options
    • ic-settings
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded
    • 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)
Good news, no errors were detected

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
  • 23× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'InvisibleReCaptcha\\MchLib\\Plugin\\MchBaseAdminPage' not found in wp-content/plugins/invisible-recaptcha/engine/Admin/Pages/BaseAdminPage.php:6
    • > PHP Fatal error
      Uncaught Error: Class 'InvisibleReCaptcha\\MchLib\\Plugin\\MchBaseAdminPlugin' not found in wp-content/plugins/invisible-recaptcha/engine/AdminEngine.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'InvisibleReCaptcha\\MchLib\\Modules\\MchBaseModule' not found in wp-content/plugins/invisible-recaptcha/includes/modules/MchBaseAdminModule.php:10
    • > PHP Fatal error
      Uncaught Error: Class 'InvisibleReCaptcha\\Modules\\BaseAdminModule' not found in wp-content/plugins/invisible-recaptcha/engine/Modules/Settings/SettingsAdminModule.php:11
    • > PHP Fatal error
      Uncaught Error: Class 'InvisibleReCaptcha\\Modules\\BasePublicModule' not found in wp-content/plugins/invisible-recaptcha/engine/Modules/WordPress/WordPressPublicModule.php:9
    • > PHP Fatal error
      Uncaught Error: Class 'InvisibleReCaptcha\\MchLib\\Modules\\MchBaseAdminModule' not found in wp-content/plugins/invisible-recaptcha/engine/Modules/BaseAdminModule.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'InvisibleReCaptcha\\Modules\\BaseAdminModule' not found in wp-content/plugins/invisible-recaptcha/engine/Modules/ContactForms/ContactFormsAdminModule.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'InvisibleReCaptcha\\Modules\\BasePublicModule' not found in wp-content/plugins/invisible-recaptcha/engine/Modules/Membership/BuddyPress/BuddyPressPublicModule.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'InvisibleReCaptcha\\Modules\\BaseAdminModule' not found in wp-content/plugins/invisible-recaptcha/engine/Modules/Membership/BuddyPress/BuddyPressAdminModule.php:10
    • > PHP Fatal error
      Uncaught Error: Class 'InvisibleReCaptcha\\MchLib\\Plugin\\MchBasePlugin' not found in wp-content/plugins/invisible-recaptcha/includes/plugin/MchBasePublicPlugin.php:8

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
3 plugin tags: invisible recaptcha, woocommerce invisible recaptcha, contact form 7 invisible recaptcha

invisible-recaptcha/invisible-recaptcha.php 92% from 13 tests

The main PHP script in "Invisible reCaptcha for WordPress" version 1.2.3 is automatically included on every request by WordPress
The following require your attention:
  • Domain Path: The domain path is invalid: folder "/languages" does not exist

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Everything looks great! No dangerous files found in this plugin14,433 lines of code in 54 files:
LanguageFilesBlank linesComment linesLines of code
PHP532,07968214,383
CSS19150

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.50
Average class complexity21.31
▷ Minimum class complexity1.00
▷ Maximum class complexity272.00
Average method complexity3.11
▷ Minimum method complexity1.00
▷ Maximum method complexity33.00
Code structure
Namespaces19
Interfaces1
Traits0
Classes53
▷ Abstract classes1324.53%
▷ Concrete classes4075.47%
▷ Final classes1332.50%
Methods514
▷ Static methods23245.14%
▷ Public methods38274.32%
▷ Protected methods8316.15%
▷ Private methods499.53%
Functions36
▷ Named functions00.00%
▷ Anonymous functions36100.00%
Constants62
▷ Global constants00.00%
▷ Class constants62100.00%
▷ Public constants62100.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
3 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/admin/images/ultracommunity-favicon.png1.49KB0.55KB▼ 63.27%
assets/admin/images/woocommerce-favicon.png0.74KB0.74KB0.00%
assets/admin/images/buddypress-favicon.png1.86KB1.42KB▼ 23.32%