99% shortcode-for-redirection

Code Review | Redirecter

WordPress plugin Redirecter scored 99% from 54 tests.

About plugin

  • Plugin page: shortcode-for-red...
  • Plugin version: 1.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5-5.6
  • WordPress version: 5.8.1
  • First release: Jan 12, 2021
  • Latest release: Jan 12, 2021
  • Number of updates: 4
  • Update frequency: N/A
  • Top authors: dipakparmar443 (75%)productineer (50%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 166 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

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

Server-side resources used by Redirecter
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.84 ▲0.0131.68 ▼3.89
Dashboard /wp-admin3.07 ▲0.0141.50 ▼1.38
Posts /wp-admin/edit.php3.12 ▲0.0144.25 ▲2.25
Add New Post /wp-admin/post-new.php5.43 ▲0.0093.54 ▼556.74
Media Library /wp-admin/upload.php3.01 ▲0.0130.91 ▲1.49

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 4 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

An overview of browser requirements for Redirecter
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,703 ▲10715.86 ▲0.3210.19 ▲0.2445.52 ▼4.48
Dashboard /wp-admin2,970 ▲366.05 ▲0.12135.65 ▼19.40109.99 ▲1.70
Posts /wp-admin/edit.php2,739 ▼02.72 ▲0.0057.95 ▼5.0894.42 ▲4.09
Add New Post /wp-admin/post-new.php1,678 ▲618.72 ▼0.17349.46 ▼26.84106.29 ▼12.53
Media Library /wp-admin/upload.php1,807 ▼05.01 ▼0.02160.06 ▼2.53115.86 ▼12.44

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Uninstall script ran successfully

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

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
Looking good! No server-side errors or output on direct access of PHP files

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

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
  • Screenshots: Screenshot #1 (This screen shot description corresponds to screenshot-1.(png|jpg|jpeg|gif).) image missing
The official readme.txt is a good inspiration

shortcode-for-redirection/shortcode-for-redirection.php 92% from 13 tests

The principal PHP file in "Redirecter" v. 1.0 is loaded by WordPress automatically on each request
Please take the time to fix the following:
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6

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 plugin40 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP273040

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.54
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%
Functions4
▷ Named functions4100.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
No PNG images were found in this plugin