84% cf7-carecaptcha-extension

Code Review | Contact Form 7 - CareCAPTCHA Extension

WordPress plugin Contact Form 7 - CareCAPTCHA Extension scored84%from 54 tests.

About plugin

  • Plugin page: cf7-carecaptcha-e...
  • Plugin version: 1.0
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-4.9.5
  • WordPress version: 6.3.1
  • First release: Apr 12, 2018
  • Latest release: Apr 13, 2018
  • Number of updates: 22
  • Update frequency: every 0.1 days
  • Top authors: noahev (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active /725 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
Installer ran successfully

Server metrics [RAM: ▲0.05MB] [CPU: ▼5.26ms] Passed 4 tests

A check of server-side resources used by Contact Form 7 - CareCAPTCHA Extension
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0539.86 ▼2.30
Dashboard /wp-admin3.35 ▲0.0547.64 ▼8.98
Posts /wp-admin/edit.php3.40 ▲0.0544.59 ▼7.48
Add New Post /wp-admin/post-new.php5.93 ▲0.0594.17 ▼2.26
Media Library /wp-admin/upload.php3.27 ▲0.0538.10 ▲0.78

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Contact Form 7 - CareCAPTCHA Extension
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,832 ▲8613.26 ▼1.115.16 ▲3.5443.09 ▼7.42
Dashboard /wp-admin2,206 ▲154.86 ▼0.95109.92 ▼6.2747.46 ▲3.41
Posts /wp-admin/edit.php2,092 ▲32.01 ▼0.0039.51 ▲3.1232.78 ▼2.91
Add New Post /wp-admin/post-new.php1,538 ▼422.96 ▲0.02645.87 ▼15.8555.53 ▲1.85
Media Library /wp-admin/upload.php1,385 ▼64.22 ▼0.0397.42 ▼7.7146.50 ▲0.38

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_theysaidso_widget
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

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

SRP 50% 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
Please fix the following
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/cf7-carecaptcha-extension/cf7-carecaptcha-extension.php:29

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
10 plugin tags: care captcha, extension, contact form, contact form 7, form...

cf7-carecaptcha-extension/cf7-carecaptcha-extension.php Passed 13 tests

"Contact Form 7 - CareCAPTCHA Extension" version 1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
71 characters long description:
Provides a customized captcha validation field. Requires Contact Form 7

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
Success! There were no dangerous files found in this plugin828 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
CSS15414382
JavaScript1410228
PHP14720188
PO File181230

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.36
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%
Functions7
▷ Named functions7100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
2 compressed PNG files occupy 0.01MB
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
includes/images/logo-noah.png7.36KB7.78KB0.00%
includes/images/checkmark-sprite.png0.78KB0.82KB0.00%