90% cf7-redirects

Code Review | Contact Form 7 Redirects

WordPress plugin Contact Form 7 Redirects scored90%from 54 tests.

About plugin

  • Plugin page: cf7-redirects
  • Plugin version: 1.6
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-6.2.2
  • WordPress version: 6.3.1
  • First release: Oct 23, 2018
  • Latest release: Jul 7, 2023
  • Number of updates: 18
  • Update frequency: every 95.5 days
  • Top authors: rajkakadiya (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

1,000+ active /8,849 total downloads


Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

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

Server-side resources used by Contact Form 7 Redirects
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0045.99 ▲5.23
Dashboard /wp-admin3.31 ▲0.0046.05 ▲0.70
Posts /wp-admin/edit.php3.36 ▲0.0043.16 ▼10.29
Add New Post /wp-admin/post-new.php5.89 ▲0.0083.32 ▼12.29
Media Library /wp-admin/upload.php3.23 ▲0.0033.67 ▼1.28

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 11 new files
Database: no new tables, 6 new options
New WordPress options

Browser metrics Passed 4 tests

A check of browser resources used by Contact Form 7 Redirects
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.21 ▼1.371.77 ▼0.2045.70 ▲1.34
Dashboard /wp-admin2,206 ▲155.81 ▲0.91102.66 ▲3.7839.73 ▼0.97
Posts /wp-admin/edit.php2,092 ▲32.02 ▲0.0135.65 ▼1.7732.23 ▼4.64
Add New Post /wp-admin/post-new.php1,514 ▼1417.72 ▼5.61663.21 ▼45.8450.38 ▼7.43
Media Library /wp-admin/upload.php1,391 ▼04.17 ▼0.0194.77 ▼5.7043.45 ▼4.04

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget

Smoke tests Passed 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 Passed 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side


Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
4 plugin tags: redirect contact form 7, contact form 7 thank you page, redirect cf7, contact form 7 redirect

cf7-redirects/contact-form-7-redirects.php 92% from 13 tests

The main file in "Contact Form 7 Redirects" v. 1.6 serves as a complement to information provided in readme.txt and as the entry point to the plugin
The following require your attention:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("cf7-redirects.php" instead of "contact-form-7-redirects.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Success! There were no dangerous files found in this plugin5,591 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.55
Average class complexity42.00
▷ Minimum class complexity16.00
▷ Maximum class complexity68.00
Average method complexity8.45
▷ Minimum method complexity1.00
▷ Maximum method complexity48.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
▷ Static methods1090.91%
▷ Public methods11100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions4100.00%
▷ Anonymous functions00.00%
▷ Global constants4100.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
There were not PNG files found in your plugin