89% simple-redirect-contact-form-7

Code Review | Simple Redirect - Contact Form 7

WordPress plugin Simple Redirect - Contact Form 7 scored89%from 54 tests.

About plugin

  • Plugin page: simple-redirect-c...
  • Plugin version: 1.0.3
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-6.2.2
  • WordPress version: 6.3.1
  • First release: Mar 18, 2021
  • Latest release: May 26, 2023
  • Number of updates: 8
  • Update frequency: every 101.5 days
  • Top authors: fulesh.shete (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /532 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
Install script ran successfully

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

A check of server-side resources used by Simple Redirect - Contact Form 7
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0139.81 ▲0.32
Dashboard /wp-admin3.32 ▼0.0349.79 ▼14.38
Posts /wp-admin/edit.php3.37 ▲0.0146.88 ▼3.21
Add New Post /wp-admin/post-new.php5.90 ▲0.0184.21 ▼27.43
Media Library /wp-admin/upload.php3.24 ▲0.0136.03 ▼0.30

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
can_compress_scripts
widget_recent-comments
widget_theysaidso_widget
theysaidso_admin_options
db_upgraded

Browser metrics Passed 4 tests

This is an overview of browser requirements for Simple Redirect - Contact Form 7
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,817 ▲7114.38 ▲0.172.17 ▲0.2556.44 ▲12.80
Dashboard /wp-admin2,201 ▲245.69 ▲0.0196.17 ▲7.1944.07 ▲1.25
Posts /wp-admin/edit.php2,100 ▼32.02 ▼0.0236.17 ▼3.4133.95 ▼3.29
Add New Post /wp-admin/post-new.php1,548 ▲323.41 ▲0.32665.10 ▼22.1662.73 ▲6.78
Media Library /wp-admin/upload.php1,397 ▼04.23 ▲0.05102.54 ▼3.7742.25 ▼2.87

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

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
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: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The SRP test was a success

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

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that require attention:
  • Donate link: Please fix this invalid url: ""
You can take inspiration from this readme.txt

simple-redirect-contact-form-7/simple-redirect-contact-form-7.php 92% from 13 tests

The primary PHP file in "Simple Redirect - Contact Form 7" version 1.0.3 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
  • Description: The description should be shorter than 140 characters (currently 240 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable files found in this plugin74 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP2292774

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.43
Average class complexity11.00
▷ Minimum class complexity11.00
▷ Maximum class complexity11.00
Average method complexity4.33
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods3
▷ Static methods00.00%
▷ Public methods3100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
1 PNG file occupies 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/icon-256x256.png15.41KB7.66KB▼ 50.31%