89% cf7-invisible-recaptcha

Code Review | CF7 Invisible reCAPTCHA

WordPress plugin CF7 Invisible reCAPTCHA scored89%from 54 tests.

About plugin

  • Plugin page: cf7-invisible-rec...
  • Plugin version: 1.3.4
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5-6.2
  • WordPress version: 6.3.1
  • First release: Aug 9, 2017
  • Latest release: May 16, 2023
  • Number of updates: 19
  • Update frequency: every 111.1 days
  • Top authors: vsourz1td (100%)

Code review

54 tests

User reviews

14 reviews

Install metrics

10,000+ active /66,518 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully

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

Server-side resources used by CF7 Invisible reCAPTCHA
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.56 ▲0.0640.47 ▼8.21
Dashboard /wp-admin3.41 ▲0.0647.94 ▼4.91
Posts /wp-admin/edit.php3.46 ▲0.0650.16 ▲3.50
Add New Post /wp-admin/post-new.php5.99 ▲0.0690.03 ▼6.62
Media Library /wp-admin/upload.php3.33 ▲0.0635.74 ▲0.61

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 15 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-posts
widget_recent-comments
can_compress_scripts

Browser metrics Passed 4 tests

A check of browser resources used by CF7 Invisible reCAPTCHA
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,801 ▲1514.27 ▼0.251.67 ▼0.5646.78 ▲3.56
Dashboard /wp-admin2,207 ▲365.63 ▲0.0185.52 ▼16.7738.33 ▼8.65
Posts /wp-admin/edit.php2,112 ▲152.01 ▼0.0236.33 ▲1.4636.41 ▲3.54
Add New Post /wp-admin/post-new.php1,547 ▲2118.37 ▼5.29655.21 ▼22.1669.34 ▲11.05
Media Library /wp-admin/upload.php1,412 ▲214.24 ▲0.0698.30 ▼11.1844.58 ▲1.81

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

SRP Passed 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
Looking good! No server-side errors or output on direct access of PHP files

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 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
Attributes that require attention: You can look at the official readme.txt

cf7-invisible-recaptcha/cf7-Invisible-recaptcha.php 85% from 13 tests

Analyzing the main PHP file in "CF7 Invisible reCAPTCHA" version 1.3.4
You should first fix the following items:
  • Text Domain: The text domain name should consist of only dashes and lowercase characters
  • Main file name: The principal plugin file should be the same as the plugin slug ("cf7-invisible-recaptcha.php" instead of "cf7-Invisible-recaptcha.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Everything looks great! No dangerous files found in this plugin3,584 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
CSS20102,140
SVG100655
PHP19276579
JavaScript1524188
PO File15922

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.66
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%
Functions8
▷ Named functions8100.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