84% cf7-thank-you-page

Code Review | CF7 Thank You Page

WordPress plugin CF7 Thank You Page scored84%from 54 tests.

About plugin

  • Plugin page: cf7-thank-you-page
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.1
  • WordPress version: 6.3.1
  • First release: Jan 11, 2022
  • Latest release: Dec 30, 2022
  • Number of updates: 5
  • Update frequency: every 71.2 days
  • Top authors: krishaweb (80%)praful2111 (40%)

Code review

54 tests

User reviews

1 review

Install metrics

90+ active /828 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully

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

A check of server-side resources used by CF7 Thank You Page
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0141.13 ▼6.00
Dashboard /wp-admin3.31 ▲0.0148.45 ▼6.40
Posts /wp-admin/edit.php3.36 ▲0.0149.80 ▲1.22
Add New Post /wp-admin/post-new.php5.89 ▲0.0192.18 ▼1.67
Media Library /wp-admin/upload.php3.23 ▲0.0141.87 ▲5.29

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

Browser metrics Passed 4 tests

Checking browser requirements for CF7 Thank You Page
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,809 ▲6313.36 ▼0.861.90 ▲0.0440.67 ▼5.06
Dashboard /wp-admin2,215 ▲275.82 ▲0.91100.26 ▼20.7339.25 ▼7.01
Posts /wp-admin/edit.php2,098 ▲122.02 ▲0.0037.04 ▲0.6632.80 ▼1.85
Add New Post /wp-admin/post-new.php1,523 ▼1017.63 ▼5.59685.14 ▲10.7662.33 ▲9.89
Media Library /wp-admin/upload.php1,397 ▲94.25 ▲0.1299.62 ▼16.7144.84 ▼7.22

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
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not 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
Almost there! Just fix the following items
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_post_meta() in wp-content/plugins/cf7-thank-you-page/templates/redirect-setting-page.php:11

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
4 plugin tags: contact-form-redirect, contact-form-7-redirect, redirect-to-thank-you, cf7-redirect

cf7-thank-you-page/cf7-thank-you-page.php 92% from 13 tests

Analyzing the main PHP file in "CF7 Thank You Page" version 1.0
It is important to fix the following:
  • Domain Path: The domain path is invalid: folder "/languages" does not exist

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin313 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP43998256
JavaScript12238
CSS15019

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.32
Average class complexity22.00
▷ Minimum class complexity22.00
▷ Maximum class complexity22.00
Average method complexity3.10
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods10
▷ Static methods00.00%
▷ Public methods990.00%
▷ Protected methods00.00%
▷ Private methods110.00%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There are no PNG files in this plugin