84% googles-no-captcha-recaptcha

Code Review | Google's No Captcha reCaptcha

WordPress plugin Google's No Captcha reCaptcha scored84%from 54 tests.

About plugin

  • Plugin page: googles-no-captch...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.0.1
  • WordPress version: 6.3.1
  • First release: Dec 8, 2014
  • Latest release: Jan 23, 2015
  • Number of updates: 15
  • Update frequency: every 3.1 days
  • Top authors: narayanprusty (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

30+ active /2,202 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
Installer ran successfully

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

A check of server-side resources used by Google's No Captcha reCaptcha
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0234.61 ▼5.21
Dashboard /wp-admin3.32 ▼0.0241.15 ▼16.08
Posts /wp-admin/edit.php3.38 ▲0.0242.83 ▼0.70
Add New Post /wp-admin/post-new.php5.90 ▲0.0282.98 ▲0.15
Media Library /wp-admin/upload.php3.25 ▲0.0231.55 ▼2.32

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
can_compress_scripts
widget_theysaidso_widget
widget_recent-comments
db_upgraded
widget_recent-posts

Browser metrics Passed 4 tests

A check of browser resources used by Google's No Captcha reCaptcha
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,805 ▲5914.17 ▼0.181.73 ▼0.0336.22 ▼9.04
Dashboard /wp-admin2,208 ▲335.52 ▼0.1581.88 ▼18.2136.99 ▼4.30
Posts /wp-admin/edit.php2,116 ▲162.00 ▲0.0037.60 ▲2.3433.02 ▼5.42
Add New Post /wp-admin/post-new.php1,542 ▲1623.49 ▲0.38645.99 ▼23.4250.18 ▼8.64
Media Library /wp-admin/upload.php1,419 ▲224.21 ▼0.0095.90 ▲1.0141.90 ▼3.27

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts
    • 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)
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/googles-no-captcha-recaptcha/google-no-captcha-recaptcha.php:43

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
2 plugin tags: spam, recaptcha

googles-no-captcha-recaptcha/google-no-captcha-recaptcha.php 85% from 13 tests

"Google's No Captcha reCaptcha" version 1.0'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:
  • Main file name: The principal plugin file should be the same as the plugin slug ("googles-no-captcha-recaptcha.php" instead of "google-no-captcha-recaptcha.php")
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Success! There were no dangerous files found in this plugin224 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP23818224

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.39
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%
Functions15
▷ Named functions15100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
PNG images were not found in this plugin