84% redirect-with-shortcode

Code Review | Shortcode Redirect

WordPress plugin Shortcode Redirect scored84%from 54 tests.

About plugin

  • Plugin page: redirect-with-sho...
  • Plugin version: 1.0
  • PHP compatiblity: 5.0.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.9
  • WordPress version: 6.3.1
  • First release: Jul 9, 2018
  • Latest release: Jul 9, 2018
  • Number of updates: 6
  • Update frequency: every 0.5 days
  • Top authors: tonsnoei (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /734 total downloads


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
Installer ran successfully

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

Server-side resources used by Shortcode Redirect
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0138.42 ▼1.46
Dashboard /wp-admin3.31 ▼0.0345.66 ▼18.15
Posts /wp-admin/edit.php3.37 ▲0.0141.41 ▼7.42
Add New Post /wp-admin/post-new.php5.90 ▲0.0179.00 ▼24.75
Media Library /wp-admin/upload.php3.24 ▲0.0135.34 ▲5.29

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Shortcode Redirect
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.19 ▼1.181.75 ▼0.0543.53 ▼0.67
Dashboard /wp-admin2,209 ▲214.82 ▼1.04108.31 ▼10.4240.94 ▼1.97
Posts /wp-admin/edit.php2,089 ▼02.00 ▼0.0334.33 ▼2.3731.30 ▼2.91
Add New Post /wp-admin/post-new.php1,524 ▼1923.28 ▲5.10599.24 ▼52.0264.56 ▲15.24
Media Library /wp-admin/upload.php1,379 ▼124.22 ▲0.0399.26 ▲1.7143.94 ▼2.11

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
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
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: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please take a closer look at the following
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/redirect-with-shortcode/main.php:84

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found


Plugin configuration 93% 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
9 plugin tags: post redirect, 307, 301, page redirect, shortcode...

redirect-with-shortcode/main.php 85% from 13 tests

The principal PHP file in "Shortcode Redirect" v. 1.0 is loaded by WordPress automatically on each request
Please take the time to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("redirect-with-shortcode.php" instead of "main.php")
  • Description: The description should be shorter than 140 characters (currently 213 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin50 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.40
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
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions4100.00%
▷ Anonymous functions00.00%
▷ Global constants00.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
No PNG files were detected