89% wppool-turnstile-captcha-spam-filter

Code Review | Easy Cloudflare Turnstile - Privacy-friendly reCAPTCHA alternative for WordPress, Contact Form 7, WPForms, BuddyPress, Elementor

WordPress plugin Easy Cloudflare Turnstile - Privacy-friendly reCAPTCHA alternative for WordPress, Contact Form 7, WPForms, BuddyPress, Elementor scored89%from 54 tests.

About plugin

  • Plugin page: wppool-turnstile-...
  • Plugin version: 2.3.5
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.4-6.3
  • WordPress version: 6.3.1
  • First release: Oct 14, 2022
  • Latest release: Sep 28, 2023
  • Number of updates: 39
  • Update frequency: every 9.0 days
  • Top authors: azizultex (69.23%)mahfuz01 (25.64%)wppool (10.26%)

Code review

54 tests

User reviews

5 reviews

Install metrics

400+ active /6,079 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
This plugin's installer ran successfully

Server metrics [RAM: ▲1.01MB] [CPU: ▲1.83ms] Passed 4 tests

This is a short check of server-side resources used by Easy Cloudflare Turnstile - Privacy-friendly reCAPTCHA alternative for WordPress, Contact Form 7, WPForms, BuddyPress, Elementor
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /4.45 ▲0.9949.19 ▲3.53
Dashboard /wp-admin4.32 ▲1.0257.28 ▲7.69
Posts /wp-admin/edit.php4.42 ▲1.0756.43 ▼3.05
Add New Post /wp-admin/post-new.php6.91 ▲1.0392.31 ▼0.85
Media Library /wp-admin/upload.php4.24 ▲1.0150.90 ▲14.28

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 137 new files
Database: no new tables, 7 new options
New WordPress options
db_upgraded
ect_redirect_to_admin_page
widget_recent-comments
widget_theysaidso_widget
theysaidso_admin_options
can_compress_scripts
widget_recent-posts

Browser metrics Passed 4 tests

A check of browser resources used by Easy Cloudflare Turnstile - Privacy-friendly reCAPTCHA alternative for WordPress, Contact Form 7, WPForms, BuddyPress, Elementor
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,048 ▲26213.42 ▼0.858.88 ▲6.9146.57 ▲3.60
Dashboard /wp-admin2,343 ▲1635.59 ▼0.0892.13 ▲0.5080.83 ▲35.27
Posts /wp-admin/edit.php2,246 ▲1462.11 ▲0.1435.36 ▼11.9032.07 ▼6.52
Add New Post /wp-admin/post-new.php1,665 ▲13822.82 ▼0.05760.47 ▲141.8053.09 ▲2.42
Media Library /wp-admin/upload.php1,545 ▲1484.15 ▼0.13116.95 ▲15.9069.04 ▲23.11

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
These items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 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
9 plugin tags: anti-spam, recaptcha, spam protection, invisible recaptcha, cloudflare...

wppool-turnstile-captcha-spam-filter/easy-cloudflare-turnstile.php 85% from 13 tests

The main PHP file in "Easy Cloudflare Turnstile - Privacy-friendly reCAPTCHA alternative for WordPress, Contact Form 7, WPForms, BuddyPress, Elementor" ver. 2.3.5 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("wppool-turnstile-captcha-spam-filter.php" instead of "easy-cloudflare-turnstile.php")

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
No dangerous file extensions were detected38,926 lines of code in 101 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript43,6252,50922,438
PHP351,3732,6885,092
TypeScript32390124,957
CSS355593,099
Sass13535233,016
SVG1011150
XML13952129
JSON30045

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.40
Average class complexity23.44
▷ Minimum class complexity1.00
▷ Maximum class complexity90.00
Average method complexity3.43
▷ Minimum method complexity1.00
▷ Maximum method complexity22.00
Code structure
Namespaces6
Interfaces0
Traits0
Classes27
▷ Abstract classes00.00%
▷ Concrete classes27100.00%
▷ Final classes13.70%
Methods251
▷ Static methods218.37%
▷ Public methods20983.27%
▷ Protected methods72.79%
▷ Private methods3513.94%
Functions8
▷ Named functions225.00%
▷ Anonymous functions675.00%
Constants7
▷ Global constants7100.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
30 PNG files occupy 0.43MB with 0.24MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
src/images/wpuf.png35.15KB19.43KB▼ 44.72%
build/images/secretkey_infotip.c5da0514.png15.95KB6.84KB▼ 57.13%
src/images/tooltip/secretkey_infotip.png15.95KB6.84KB▼ 57.13%
src/images/video_cover.png67.69KB29.56KB▼ 56.32%
build/images/sitekey_infotip.d0ed94ce.png26.92KB10.21KB▼ 62.07%