84% shortcode-redirect

Code Review | Shortcode Redirect

WordPress plugin Shortcode Redirect scored84%from 54 tests.

About plugin

  • Plugin page: shortcode-redirect
  • Plugin version: 1.0.02
  • PHP version: 7.4.16
  • WordPress compatibility: 2.7-6.1
  • WordPress version: 6.3.1
  • First release: Sep 22, 2011
  • Latest release: Oct 27, 2022
  • Number of updates: 23
  • Update frequency: every 176.3 days
  • Top authors: cartpauj (100%)

Code review

54 tests

User reviews

30 reviews

Install metrics

10,000+ active /69,136 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

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

This is a short check of server-side resources used by Shortcode Redirect
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0039.42 ▲2.46
Dashboard /wp-admin3.31 ▲0.0043.82 ▼3.61
Posts /wp-admin/edit.php3.36 ▲0.0047.55 ▼3.46
Add New Post /wp-admin/post-new.php5.89 ▲0.0082.33 ▼26.66
Media Library /wp-admin/upload.php3.23 ▲0.0037.09 ▲4.06

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-posts
widget_recent-comments
can_compress_scripts
db_upgraded
theysaidso_admin_options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Shortcode Redirect
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.17 ▼1.204.76 ▲2.7043.66 ▲0.83
Dashboard /wp-admin2,206 ▲154.87 ▼0.04108.27 ▲6.5737.40 ▼8.01
Posts /wp-admin/edit.php2,086 ▼62.02 ▼0.0333.16 ▼12.1834.64 ▼2.52
Add New Post /wp-admin/post-new.php1,523 ▼723.39 ▲5.35665.91 ▲37.8457.00 ▼1.33
Media Library /wp-admin/upload.php1,391 ▲124.16 ▼0.0296.98 ▼4.5941.79 ▼2.61

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please take a closer look at the following
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/shortcode-redirect/scr.php:26

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
10 plugin tags: permanant, 301, 307, page redirect, shortcode...

shortcode-redirect/scr.php 85% from 13 tests

"Shortcode Redirect" version 1.0.02's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
  • Main file name: Name the main plugin file the same as the plugin slug ("shortcode-redirect.php" instead of "scr.php")
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 200 characters long)

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
Good job! No executable or dangerous file extensions detected17 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP152017

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.62
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%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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 were not PNG files found in your plugin