89% advanced-nocaptcha-recaptcha

Code Review | CAPTCHA 4WP - Antispam CAPTCHA solution for WordPress

WordPress plugin CAPTCHA 4WP - Antispam CAPTCHA solution for WordPress scored89%from 54 tests.

About plugin

  • Plugin page: advanced-nocaptch...
  • Plugin version: 7.3.1
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.3.1
  • WordPress version: 6.3.1
  • First release: Apr 27, 2015
  • Latest release: Oct 5, 2023
  • Number of updates: 160
  • Update frequency: every 19.3 days
  • Top authors: shamim51 (60%)WPWhiteSecurity (40%)melapress (1.25%)

Code review

54 tests

User reviews

248 reviews

Install metrics

100,000+ active /3,028,672 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

Server metrics [RAM: ▲0.65MB] [CPU: ▲5.64ms] Passed 4 tests

Server-side resources used by CAPTCHA 4WP - Antispam CAPTCHA solution for WordPress
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /4.10 ▲0.6444.84 ▼0.10
Dashboard /wp-admin3.99 ▲0.6961.39 ▲10.19
Posts /wp-admin/edit.php4.04 ▲0.6856.40 ▲10.92
Add New Post /wp-admin/post-new.php6.53 ▲0.6492.41 ▲3.23
Media Library /wp-admin/upload.php3.85 ▲0.6245.51 ▲9.23
CAPTCHA Configuration /wp-admin/admin.php?page=c4wp-admin-captcha3.8548.20
Settings & Placements /wp-admin/admin.php?page=c4wp-admin-settings3.8241.54
Help & Contact Us /wp-admin/admin.php?page=c4wp-admin-help3.8438.33
Premium Features ➤ /wp-admin/admin.php?page=c4wp-admin-upgrade3.8538.64

Server storage [IO: ▲0.45MB] [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: 53 new files
Database: no new tables, 7 new options
New WordPress options
can_compress_scripts
widget_recent-posts
db_upgraded
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-comments
c4wp_admin_options

Browser metrics Passed 4 tests

Checking browser requirements for CAPTCHA 4WP - Antispam CAPTCHA solution for WordPress
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,863 ▲9213.20 ▼1.196.32 ▲4.1344.89 ▼2.86
Dashboard /wp-admin2,230 ▲454.90 ▼0.95107.12 ▼1.7768.28 ▲22.60
Posts /wp-admin/edit.php2,131 ▲422.08 ▲0.0640.67 ▲1.9337.52 ▲0.77
Add New Post /wp-admin/post-new.php1,549 ▲1623.16 ▼0.32741.23 ▲58.6562.28 ▲2.76
Media Library /wp-admin/upload.php1,427 ▲394.27 ▲0.03103.04 ▼1.9981.13 ▲36.88
CAPTCHA Configuration /wp-admin/admin.php?page=c4wp-admin-captcha1,6692.4036.9739.32
Settings & Placements /wp-admin/admin.php?page=c4wp-admin-settings1,0903.1350.2936.09
Help & Contact Us /wp-admin/admin.php?page=c4wp-admin-help1,1652.9944.0639.62
Premium Features ➤ /wp-admin/admin.php?page=c4wp-admin-upgrade1,7332.9137.9552.25

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 7 options
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options
    • c4wp_admin_options
    • widget_recent-posts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

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

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
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: captcha for woocommerce, nocaptcha, recaptcha, spam protection, forms captcha...

advanced-nocaptcha-recaptcha/advanced-nocaptcha-recaptcha.php 85% from 13 tests

"CAPTCHA 4WP - Antispam CAPTCHA solution for WordPress" version 7.3.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
  • Description: The description should be shorter than 140 characters (currently 287 characters long)
  • Requires PHP: The required version number did not match the one declared in readme.txt ("7.2.0" instead of "7.2")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin5,255 lines of code in 26 files:
LanguageFilesBlank linesComment linesLines of code
PHP216421,0273,956
JavaScript210832783
CSS25612515
JSON1001

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.51
Average class complexity44.27
▷ Minimum class complexity1.00
▷ Maximum class complexity162.00
Average method complexity4.56
▷ Minimum method complexity1.00
▷ Maximum method complexity31.00
Code structure
Namespaces3
Interfaces0
Traits0
Classes11
▷ Abstract classes00.00%
▷ Concrete classes11100.00%
▷ Final classes00.00%
Methods135
▷ Static methods10779.26%
▷ Public methods12995.56%
▷ Protected methods00.00%
▷ Private methods64.44%
Functions9
▷ Named functions555.56%
▷ Anonymous functions444.44%
Constants5
▷ Global constants5100.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
9 PNG files occupy 0.13MB with 0.05MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/img/third-party-logos.png13.48KB14.13KB0.00%
assets/img/features-image.png53.76KB16.88KB▼ 68.60%
assets/img/c4wp-logo-full.png14.92KB5.01KB▼ 66.40%
assets/img/password-policy-manager.png8.19KB3.95KB▼ 51.79%
assets/img/20x20-icon-inverse.png0.77KB0.89KB0.00%