90% kp-fastest-cf7-recaptcha

Code Review | KP Fastest Contact Form 7 Recaptcha V3

WordPress plugin KP Fastest Contact Form 7 Recaptcha V3 scored90%from 54 tests.

About plugin

  • Plugin page: kp-fastest-cf7-re...
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.2-5.5.3
  • WordPress version: 6.3.1
  • First release: Aug 12, 2020
  • Latest release: Nov 4, 2020
  • Number of updates: 4
  • Update frequency: every 21.0 days
  • Top authors: kreativopro (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /1,396 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

Server metrics [RAM: ▼0.00MB] [CPU: ▼13.72ms] Passed 4 tests

Analyzing server-side resources used by KP Fastest Contact Form 7 Recaptcha V3
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0133.79 ▼8.18
Dashboard /wp-admin3.31 ▼0.0344.35 ▼22.98
Posts /wp-admin/edit.php3.36 ▲0.0144.94 ▼0.25
Add New Post /wp-admin/post-new.php5.89 ▲0.0174.59 ▼23.45
Media Library /wp-admin/upload.php3.24 ▲0.0134.33 ▲2.56

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-posts
widget_theysaidso_widget
theysaidso_admin_options
can_compress_scripts
widget_recent-comments

Browser metrics Passed 4 tests

A check of browser resources used by KP Fastest Contact Form 7 Recaptcha V3
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,792 ▲5713.64 ▼0.971.08 ▼0.6944.37 ▼0.42
Dashboard /wp-admin2,206 ▲185.86 ▲0.99109.70 ▼1.1743.65 ▼4.20
Posts /wp-admin/edit.php2,089 ▼01.97 ▼0.0738.74 ▲3.3534.12 ▼0.33
Add New Post /wp-admin/post-new.php1,523 ▼2123.20 ▲4.88642.35 ▲22.6959.86 ▼13.40
Media Library /wp-admin/upload.php1,388 ▲64.24 ▲0.0195.73 ▼3.0942.02 ▼3.16

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
You still need to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, 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
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
4 plugin tags: contact-form-7-recaptcha, spam, contact-form-7, recaptcha

kp-fastest-cf7-recaptcha/kp-fastest-cf7-recaptcha.php 92% from 13 tests

Analyzing the main PHP file in "KP Fastest Contact Form 7 Recaptcha V3" version 1.0.0
Please take the time to fix the following:
  • Domain Path: The domain path folder was not found ("/languages")

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 detected45 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1151745

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.21
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%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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