84% dessky-recaptcha

Code Review | Dessky reCAPTCHA

WordPress plugin Dessky reCAPTCHA scored 84% from 54 tests.

About plugin

  • Plugin page: dessky-recaptcha
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.2.0-6.0.0
  • WordPress version: 6.3.1
  • First release: Mar 22, 2017
  • Latest release: Jun 3, 2022
  • Number of updates: 6
  • Update frequency: every 316.0 days
  • Top authors: dessky (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 651 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 gracefully, with no errors

Server metrics [RAM: ▲0.06MB] [CPU: ▼1.66ms] Passed 4 tests

This is a short check of server-side resources used by Dessky reCAPTCHA
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0638.52 ▼0.69
Dashboard /wp-admin3.36 ▲0.0647.16 ▼0.89
Posts /wp-admin/edit.php3.41 ▲0.0649.40 ▲1.92
Add New Post /wp-admin/post-new.php5.94 ▲0.0685.66 ▼6.99
Media Library /wp-admin/upload.php3.29 ▲0.0639.22 ▲3.04
Dessky reCAPTCHA /wp-admin/options-general.php?page=drcp-options3.2533.77

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
theysaidso_admin_options
can_compress_scripts
db_upgraded
widget_recent-posts
widget_theysaidso_widget

Browser metrics Passed 4 tests

Dessky reCAPTCHA: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,820 ▲8514.25 ▼0.117.53 ▲5.6440.43 ▼8.70
Dashboard /wp-admin2,210 ▲184.87 ▼0.0696.36 ▼21.0540.61 ▼0.07
Posts /wp-admin/edit.php2,093 ▲42.00 ▲0.0138.56 ▼1.3033.90 ▼1.61
Add New Post /wp-admin/post-new.php1,517 ▲10517.73 ▼0.10689.10 ▲70.0667.01 ▲19.28
Media Library /wp-admin/upload.php1,389 ▲14.19 ▲0.0193.86 ▼13.3641.03 ▼5.89
Dessky reCAPTCHA /wp-admin/options-general.php?page=drcp-options8392.0322.6821.79

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 detected upon uninstall: 6 options
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
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
The following issues need your attention
  • 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/dessky-recaptcha/dessky-recaptcha.php:15

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 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that require attention:
  • Tags: Too many tags (11 tag instead of maximum 10); only the first 5 tags are used in your directory listing
Please take inspiration from this readme.txt

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

"Dessky reCAPTCHA" version 1.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please take the time to fix the following:
  • 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 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin156 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP13418149
CSS1007

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
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%
Functions18
▷ Named functions18100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG files were detected