84% wp-redirect-link

Code Review | WP Redirect Link

WordPress plugin WP Redirect Link scored84%from 54 tests.

About plugin

  • Plugin page: wp-redirect-link
  • Plugin version: 1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.1
  • WordPress version: 6.3.1
  • First release: Jan 2, 2015
  • Latest release: Jan 2, 2015
  • Number of updates: 3
  • Update frequency: N/A
  • Top authors: dinhquochan.kayz (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active /1,465 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

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

Analyzing server-side resources used by WP Redirect Link
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0142.85 ▼3.35
Dashboard /wp-admin3.31 ▼0.0350.97 ▼11.93
Posts /wp-admin/edit.php3.36 ▲0.0148.78 ▼0.88
Add New Post /wp-admin/post-new.php5.89 ▲0.0183.52 ▼28.33
Media Library /wp-admin/upload.php3.24 ▲0.0143.43 ▲5.25

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for WP Redirect Link
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲314.33 ▼0.331.67 ▼0.1741.35 ▲1.96
Dashboard /wp-admin2,192 ▲125.55 ▼0.0888.16 ▼1.6837.03 ▼4.68
Posts /wp-admin/edit.php2,103 ▲32.00 ▼0.0240.84 ▲4.7736.50 ▲0.77
Add New Post /wp-admin/post-new.php1,526 ▼023.32 ▲0.11684.70 ▼15.1857.16 ▲6.72
Media Library /wp-admin/upload.php1,403 ▲34.22 ▲0.0795.68 ▼15.0844.41 ▼1.49

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
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 6 options
    • db_upgraded
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

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 fix the following
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/wp-redirect-link/wp-redirect-link.php:46

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
3 plugin tags: redirect, content, url

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

The main file in "WP Redirect Link" v. 1.2 serves as a complement to information provided in readme.txt and as the entry point to the plugin
50 characters long description:
Change Link on content your post to redirect link.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin25 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1132225

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.23
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%
Functions2
▷ Named functions2100.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
There are no PNG files in this plugin