84% wp-redirectify

Code Review | Redirectify

WordPress plugin Redirectify scored 84% from 54 tests.

About plugin

  • Plugin page: wp-redirectify
  • Plugin version: 2.2.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-4.8
  • WordPress version: 6.3.1
  • First release: Jun 29, 2014
  • Latest release: Aug 16, 2017
  • Number of updates: 14
  • Update frequency: every 81.7 days
  • Top authors: philiprabbett (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active / 3,176 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully

Server metrics [RAM: ▲0.05MB] [CPU: ▼3.82ms] Passed 4 tests

Server-side resources used by Redirectify
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0439.31 ▼3.02
Dashboard /wp-admin3.35 ▲0.0547.82 ▲0.71
Posts /wp-admin/edit.php3.41 ▲0.0668.94 ▲24.18
Add New Post /wp-admin/post-new.php5.95 ▲0.0786.90 ▼12.05
Media Library /wp-admin/upload.php3.28 ▲0.0536.23 ▼0.91

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Redirectify
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.15 ▼1.241.65 ▼0.2245.54 ▼6.55
Dashboard /wp-admin2,206 ▲155.88 ▲1.03103.29 ▼2.5637.16 ▼10.12
Posts /wp-admin/edit.php2,092 ▲31.97 ▼0.0339.04 ▲2.1736.24 ▲4.69
Add New Post /wp-admin/post-new.php1,530 ▼223.26 ▲0.24607.92 ▲6.0063.95 ▲4.11
Media Library /wp-admin/upload.php1,391 ▲64.18 ▼0.0797.02 ▼8.1643.27 ▼1.89

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options

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 everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/wp-redirectify/wp-redirectify.php:37

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration 96% 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
5 plugin tags: jquery, redirection, permalink, redirect, redirectify

wp-redirectify/wp-redirectify.php 92% from 13 tests

The primary PHP file in "Redirectify" version 2.2.1 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
  • Domain Path: The domain path folder does not exist ("/lang")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
There were no executable files found in this plugin164 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP139114164

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.55
Average class complexity31.00
▷ Minimum class complexity31.00
▷ Maximum class complexity31.00
Average method complexity3.31
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods13
▷ Static methods00.00%
▷ Public methods13100.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

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG images were found in this plugin