79% captcha-for-contact-form-7

Code Review | Captcha/Honeypot (CF7, Avada, Elementor, Comments, WPForms) - GDPR ready

WordPress plugin Captcha/Honeypot (CF7, Avada, Elementor, Comments, WPForms) - GDPR ready scored79%from 54 tests.

About plugin

  • Plugin page: captcha-for-conta...
  • Plugin version: 1.11.8
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.2-6.4.1
  • WordPress version: 6.3.1
  • First release: Oct 11, 2021
  • Latest release: Dec 1, 2023
  • Number of updates: 92
  • Update frequency: every 8.6 days
  • Top authors: forge12 (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

4,000+ active /41,735 total downloads

Benchmarks

Plugin footprint 65% 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: ▲1.54MB] [CPU: ▲8.34ms] Passed 4 tests

Server-side resources used by Captcha/Honeypot (CF7, Avada, Elementor, Comments, WPForms) - GDPR ready
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /5.02 ▲1.5648.88 ▲9.48
Dashboard /wp-admin4.88 ▲1.5464.40 ▲2.91
Posts /wp-admin/edit.php4.94 ▲1.5862.51 ▲15.81
Add New Post /wp-admin/post-new.php7.42 ▲1.54104.52 ▲5.14
Media Library /wp-admin/upload.php4.75 ▲1.5251.55 ▲18.03
Log Entries /wp-admin/edit.php?post_type=f12_captcha_log4.8549.63
Comments /wp-admin/admin.php?page=f12-cf7-captcha_comments4.7242.87
Captcha /wp-admin/admin.php?page=f12-cf7-captcha_captcha4.7242.18
Gravity Forms /wp-admin/admin.php?page=f12-cf7-captcha_gravity_forms4.7242.49
WooCommerce /wp-admin/admin.php?page=f12-cf7-captcha_woocommerce4.7241.12
WordPress /wp-admin/admin.php?page=f12-cf7-captcha_wordpress4.7241.95
Contact Form 7 /wp-admin/admin.php?page=f12-cf7-captcha_cf74.7241.16
WPForms /wp-admin/admin.php?page=f12-cf7-captcha_wp_forms4.7242.23
Time Protection /wp-admin/admin.php?page=f12-cf7-captcha_timerprotection4.7239.99
Browser Protection /wp-admin/admin.php?page=f12-cf7-captcha_browser_protection4.7243.09

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 148 new files
Database: 5 new tables, 7 new options
New tables
wp_f12_cf7_captcha
wp_f12_cf7_ip
wp_f12_cf7_captcha_timer
wp_f12_cf7_salt
wp_f12_cf7_ip_ban
New WordPress options
db_upgraded
widget_recent-posts
theysaidso_admin_options
can_compress_scripts
widget_recent-comments
widget_theysaidso_widget
f12-cf7-captcha_version

Browser metrics Passed 4 tests

Captcha/Honeypot (CF7, Avada, Elementor, Comments, WPForms) - GDPR ready: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,954 ▲20713.53 ▼0.668.25 ▲6.6936.78 ▼7.44
Dashboard /wp-admin2,270 ▲905.66 ▲0.0295.70 ▲1.3643.12 ▼1.70
Posts /wp-admin/edit.php2,175 ▲722.03 ▲0.0341.40 ▲1.4234.95 ▼1.67
Add New Post /wp-admin/post-new.php1,585 ▲5922.69 ▼0.84588.53 ▼68.6331.55 ▼19.37
Media Library /wp-admin/upload.php1,475 ▲784.23 ▲0.0096.48 ▼5.0541.34 ▼1.95
Log Entries /wp-admin/edit.php?post_type=f12_captcha_log1,1441.9336.0329.83
Comments /wp-admin/admin.php?page=f12-cf7-captcha_comments1,1241.6322.7727.80
Captcha /wp-admin/admin.php?page=f12-cf7-captcha_captcha9501.6626.4022.43
Gravity Forms /wp-admin/admin.php?page=f12-cf7-captcha_gravity_forms1,0461.6523.0325.71
WooCommerce /wp-admin/admin.php?page=f12-cf7-captcha_woocommerce1,1481.6725.7225.62
WordPress /wp-admin/admin.php?page=f12-cf7-captcha_wordpress1,1451.6924.4026.70
Contact Form 7 /wp-admin/admin.php?page=f12-cf7-captcha_cf71,1551.6725.4525.94
WPForms /wp-admin/admin.php?page=f12-cf7-captcha_wp_forms1,0461.6725.3226.40
Time Protection /wp-admin/admin.php?page=f12-cf7-captcha_timerprotection9531.6425.1920.92
Browser Protection /wp-admin/admin.php?page=f12-cf7-captcha_browser_protection9811.6522.2625.77

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • Zombie tables were found after uninstall: 5 tables
    • wp_f12_cf7_captcha
    • wp_f12_cf7_ip_ban
    • wp_f12_cf7_ip
    • wp_f12_cf7_captcha_timer
    • wp_f12_cf7_salt
  • This plugin does not fully uninstall, leaving 7 options in the database
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts
    • f12-cf7-captcha_version

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test

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

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
These attributes need your attention:
  • Tags: You are using too many tags: 16 tag instead of maximum 10
Please take inspiration from this readme.txt

captcha-for-contact-form-7/f12-cf7-captcha.php 92% from 13 tests

The principal PHP file in "Captcha/Honeypot (CF7, Avada, Elementor, Comments, WPForms) - GDPR ready" v. 1.11.8 is loaded by WordPress automatically on each request
Please take the time to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("captcha-for-contact-form-7.php" instead of "f12-cf7-captcha.php")

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
Success! There were no dangerous files found in this plugin12,190 lines of code in 136 files:
LanguageFilesBlank linesComment linesLines of code
PHP1252,2583,07110,230
CSS215061742
PO File1219357602
Sass1680368
JavaScript64364244
SVG1004

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.32
Average class complexity7.97
▷ Minimum class complexity1.00
▷ Maximum class complexity36.00
Average method complexity2.25
▷ Minimum method complexity1.00
▷ Maximum method complexity17.00
Code structure
Namespaces5
Interfaces0
Traits0
Classes123
▷ Abstract classes43.25%
▷ Concrete classes11996.75%
▷ Final classes00.00%
Methods695
▷ Static methods12117.41%
▷ Public methods47368.06%
▷ Protected methods9713.96%
▷ Private methods12517.99%
Functions8
▷ Named functions450.00%
▷ Anonymous functions450.00%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
5 PNG files occupy 0.06MB with 0.03MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
ui/assets/logo-forge12.png10.04KB3.91KB▼ 61.10%
core/assets/logo-forge12.png10.04KB3.91KB▼ 61.10%
core/assets/logo-forge12-dark.png18.66KB6.28KB▼ 66.37%
ui/assets/logo-forge12-dark.png18.66KB6.28KB▼ 66.37%
core/assets/reload-icon.png0.27KB0.25KB▼ 6.45%