84% contact-form-7-success-page-redirects

Code Review | Contact Form 7 - Success Page Redirects

WordPress plugin Contact Form 7 - Success Page Redirects scored84%from 54 tests.

About plugin

  • Plugin page: contact-form-7-su...
  • Plugin version: 1.2.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8.2-4.2
  • WordPress version: 6.3.1
  • First release: Oct 3, 2014
  • Latest release: Jun 9, 2015
  • Number of updates: 21
  • Update frequency: every 11.9 days
  • Top authors: rnevius (100%)

Code review

54 tests

User reviews

27 reviews

Install metrics

10,000+ active /92,295 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

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

An overview of server-side resources used by Contact Form 7 - Success Page Redirects
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0241.00 ▲1.60
Dashboard /wp-admin3.31 ▲0.0154.16 ▲0.22
Posts /wp-admin/edit.php3.36 ▲0.0150.30 ▲0.28
Add New Post /wp-admin/post-new.php5.89 ▲0.0189.21 ▼14.07
Media Library /wp-admin/upload.php3.24 ▲0.0135.14 ▼9.19

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

Browser metrics Passed 4 tests

A check of browser resources used by Contact Form 7 - Success Page Redirects
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,792 ▲3114.19 ▼0.162.00 ▲0.3244.52 ▲5.58
Dashboard /wp-admin2,198 ▲205.52 ▼0.1585.46 ▼19.8443.04 ▼3.17
Posts /wp-admin/edit.php2,103 ▲31.96 ▲0.0234.32 ▼2.8535.00 ▼0.44
Add New Post /wp-admin/post-new.php1,532 ▲123.30 ▲0.32636.04 ▼47.2759.80 ▲5.53
Media Library /wp-admin/upload.php1,403 ▲124.23 ▲0.0599.74 ▲1.8242.83 ▼0.67

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 6 options
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded

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
The smoke test was a success, however most plugin functionality was not tested

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 server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/contact-form-7-success-page-redirects/cf7-success-page-redirects.php:35

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 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that need to be fixed:
  • Tags: You are using too many tags: 15 tag instead of maximum 10
You can take inspiration from this readme.txt

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

The main PHP file in "Contact Form 7 - Success Page Redirects" ver. 1.2.0 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("contact-form-7-success-page-redirects.php" instead of "cf7-success-page-redirects.php")

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

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.29
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%
Functions8
▷ Named functions8100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There are no PNG files in this plugin