88% advanced-captcha-for-contact-form-7

Code Review | Advanced Captcha For Contact Form 7

WordPress plugin Advanced Captcha For Contact Form 7 scored 88% from 54 tests.

About plugin

  • Plugin page: advanced-captcha-...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-5.8
  • WordPress version: 5.8.1
  • First release: Jun 27, 2020
  • Latest release: Aug 13, 2021
  • Number of updates: 5
  • Update frequency: every 85.8 days
  • Top authors: idengod (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 267 total downloads

Benchmarks

Plugin footprint Passed 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 successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.04MB] [CPU: ▼143.07ms] Passed 4 tests

This is a short check of server-side resources used by Advanced Captcha For Contact Form 7
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.88 ▲0.0439.80 ▲4.39
Dashboard /wp-admin3.10 ▲0.0551.74 ▲3.50
Posts /wp-admin/edit.php3.16 ▲0.0549.74 ▼0.20
Add New Post /wp-admin/post-new.php5.46 ▲0.0395.70 ▼572.50
Media Library /wp-admin/upload.php3.05 ▲0.0435.92 ▼3.06
Advanced Captcha For Contact Form 7 /wp-admin/options-general.php?page=acfcf7_edit3.0234.72

Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] 67% from 3 tests

Analyzing filesystem and database footprints of this plugin
Please try to fix the following items
  • You have illegally modified 1 file (13.56KB) outside of "wp-content/plugins/advanced-captcha-for-contact-form-7/" and "wp-content/uploads/"
    • (new file) siteguarding_tools.php
Filesystem: 5 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Checking browser requirements for Advanced Captcha For Contact Form 7
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,778 ▲20615.88 ▲0.4411.71 ▲2.8651.94 ▲4.53
Dashboard /wp-admin3,038 ▲1045.98 ▲0.06141.68 ▼23.70137.24 ▲17.11
Posts /wp-admin/edit.php2,744 ▲52.69 ▼0.0069.67 ▲3.5787.30 ▼12.29
Add New Post /wp-admin/post-new.php1,686 ▲9218.64 ▼0.17391.17 ▼22.89111.35 ▼8.64
Media Library /wp-admin/upload.php1,812 ▲55.02 ▲0.00163.32 ▲1.98133.32 ▲1.49
Advanced Captcha For Contact Form 7 /wp-admin/options-general.php?page=acfcf7_edit9932.0560.9264.50

Uninstaller [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The plugin uninstalled successfully, without leaving any zombie files or tables

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 0% 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 output text when accessed directly:
    • > /wp-content/plugins/advanced-captcha-for-contact-form-7/siteguarding_tools.php
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/advanced-captcha-for-contact-form-7/advanced-captcha-for-contact-form-7.php:10

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 Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
5 plugin tags: contact form captcha, contact form 7, spam, captcha, recaptcha

advanced-captcha-for-contact-form-7/advanced-captcha-for-contact-form-7.php Passed 13 tests

The entry point to "Advanced Captcha For Contact Form 7" version 1.0 is a PHP file that has certain tags in its header comment area
78 characters long description:
Adds anti-spam functionality to CF7 forms. Stops bots and scripts. Stops SPAM.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin609 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP213342609

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.43
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%
Functions24
▷ Named functions24100.00%
▷ Anonymous functions00.00%
Constants6
▷ Global constants6100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
No PNG files were detected