84% redirect-link-format

Code Review | Redirect Link Format

WordPress plugin Redirect Link Format scored84%from 54 tests.

About plugin

  • Plugin page: redirect-link-format
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.1.0-4.7.0
  • WordPress version: 6.3.1
  • First release: Apr 21, 2015
  • Latest release: Dec 9, 2016
  • Number of updates: 6
  • Update frequency: every 99.7 days
  • Top authors: DrewAPicture (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active /2,123 total downloads

Benchmarks

Plugin footprint 83% from 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.00MB] [CPU: ▼1.89ms] Passed 4 tests

Analyzing server-side resources used by Redirect Link Format
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0138.49 ▼0.13
Dashboard /wp-admin3.31 ▼0.0353.91 ▼4.58
Posts /wp-admin/edit.php3.36 ▲0.0145.23 ▼1.51
Add New Post /wp-admin/post-new.php5.89 ▲0.0182.65 ▼1.33
Media Library /wp-admin/upload.php3.23 ▲0.0136.05 ▲3.49

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_theysaidso_widget
db_upgraded
can_compress_scripts
theysaidso_admin_options
widget_recent-comments

Browser metrics Passed 4 tests

An overview of browser requirements for Redirect Link Format
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5414.40 ▲0.031.79 ▼0.1144.27 ▲3.99
Dashboard /wp-admin2,209 ▲215.87 ▼0.0399.58 ▼8.6838.87 ▼3.63
Posts /wp-admin/edit.php2,086 ▼31.99 ▼0.0035.35 ▼0.5630.49 ▼6.98
Add New Post /wp-admin/post-new.php1,514 ▼617.63 ▼5.68687.04 ▼33.3758.77 ▼6.68
Media Library /wp-admin/upload.php1,391 ▼04.24 ▲0.08108.50 ▲7.8449.24 ▲2.81

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/redirect-link-format/redirect-link-format.php:24

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
4 plugin tags: redirect, formats, link, post

redirect-link-format/redirect-link-format.php Passed 13 tests

The main PHP script in "Redirect Link Format" version 1.0 is automatically included on every request by WordPress
72 characters long description:
Auto-redirects link format posts to a URL specified in the content area.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Success! There were no dangerous files found in this plugin24 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP182424

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code1.00
Average class complexity8.00
▷ Minimum class complexity8.00
▷ Maximum class complexity8.00
Average method complexity4.50
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods2
▷ Static methods00.00%
▷ Public methods2100.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

PNG files should be compressed to save space and minimize bandwidth usage
There are no PNG files in this plugin