84% cf7-google-captcha-load-after-page

Code Review | CF7 Google Captcha Load After Page

WordPress plugin CF7 Google Captcha Load After Page scored84%from 54 tests.

About plugin

  • Plugin page: cf7-google-captch...
  • Plugin version: 3.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-5.8
  • WordPress version: 6.3.1
  • First release: Feb 15, 2019
  • Latest release: Aug 9, 2021
  • Number of updates: 14
  • Update frequency: every 64.7 days
  • Top authors: amit648 (100%)

Code review

54 tests

User reviews

6 reviews

Install metrics

3,000+ active /18,622 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
Install script ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼3.78ms] Passed 4 tests

A check of server-side resources used by CF7 Google Captcha Load After Page
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0139.64 ▼2.21
Dashboard /wp-admin3.32 ▲0.0147.42 ▼1.36
Posts /wp-admin/edit.php3.37 ▲0.0147.52 ▼4.89
Add New Post /wp-admin/post-new.php5.90 ▲0.0181.61 ▼6.67
Media Library /wp-admin/upload.php3.24 ▲0.0136.45 ▲2.66

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
db_upgraded
widget_recent-posts
widget_recent-comments
widget_theysaidso_widget
theysaidso_admin_options

Browser metrics Passed 4 tests

This is an overview of browser requirements for CF7 Google Captcha Load After Page
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲5413.25 ▼1.125.13 ▲3.1543.94 ▼1.33
Dashboard /wp-admin2,206 ▲154.84 ▼1.0695.21 ▼9.5137.37 ▼6.77
Posts /wp-admin/edit.php2,086 ▼32.03 ▼0.0235.01 ▼12.3934.76 ▼0.50
Add New Post /wp-admin/post-new.php1,538 ▲523.42 ▲0.17677.43 ▲66.8556.48 ▲3.90
Media Library /wp-admin/upload.php1,388 ▼34.21 ▼0.02100.84 ▲2.8342.31 ▼3.57

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
The following items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget

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
Good news, no errors were detected

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-google-captcha-load-after-page/cf7-google-captcha-load-after-page.php:16

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Please fix the following attributes:
  • Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line ( === cf7-google-captcha-load-after-page === )
The official readme.txt is a good inspiration

cf7-google-captcha-load-after-page/cf7-google-captcha-load-after-page.php Passed 13 tests

"CF7 Google Captcha Load After Page" version 3.0.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
114 characters long description:
Get google captcha code after the page is completed loaded. This is best for your website speed improvement score.

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
No dangerous file extensions were detected96 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1301896

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.41
Average class complexity8.00
▷ Minimum class complexity8.00
▷ Maximum class complexity8.00
Average method complexity2.17
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods6
▷ Static methods00.00%
▷ Public methods6100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
PNG images were not found in this plugin