84% redirect-list

Code Review | Redirect List

WordPress plugin Redirect List scored84%from 54 tests.

About plugin

  • Plugin page: redirect-list
  • Plugin version: 1.8
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-6.0
  • WordPress version: 6.3.1
  • First release: Apr 12, 2013
  • Latest release: May 30, 2022
  • Number of updates: 26
  • Update frequency: every 128.3 days
  • Top authors: sourcefound (100%)

Code review

54 tests

User reviews

8 reviews

Install metrics

3,000+ active /29,317 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

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

A check of server-side resources used by Redirect List
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0441.59 ▼0.68
Dashboard /wp-admin3.35 ▲0.0551.98 ▼2.07
Posts /wp-admin/edit.php3.40 ▲0.0554.80 ▲3.31
Add New Post /wp-admin/post-new.php5.93 ▲0.0587.53 ▼9.53
Media Library /wp-admin/upload.php3.28 ▲0.0538.80 ▲0.98
Redirects /wp-admin/options-general.php?page=sf_red_options3.2434.45

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
theysaidso_admin_options
widget_recent-comments
widget_theysaidso_widget
db_upgraded
can_compress_scripts

Browser metrics Passed 4 tests

An overview of browser requirements for Redirect List
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲3214.25 ▼0.101.77 ▼0.1944.51 ▼1.55
Dashboard /wp-admin2,202 ▲255.62 ▲0.0987.91 ▼3.3339.45 ▼0.63
Posts /wp-admin/edit.php2,101 ▲11.95 ▼0.0435.48 ▼0.6233.53 ▼6.21
Add New Post /wp-admin/post-new.php1,529 ▲323.01 ▼0.05677.08 ▼12.7350.56 ▼8.44
Media Library /wp-admin/upload.php1,407 ▲74.15 ▼0.0295.72 ▼19.9941.16 ▼10.18
Redirects /wp-admin/options-general.php?page=sf_red_options8362.0023.3126.34

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
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded

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
The smoke test was a success, however most plugin functionality was not tested

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
Almost there! Just fix the following items
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/redirect-list/redirectlist.php:29

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 issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that need to be fixed:
  • Plugin Name: You should set the name of your plugin on the first line ( === redirect-list === )
Please take inspiration from this readme.txt

redirect-list/redirectlist.php 92% from 13 tests

The main file in "Redirect List" v. 1.8 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please take the time to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("redirect-list.php" instead of "redirectlist.php")

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
Good job! No executable or dangerous file extensions detected177 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP11122129
PO File1161848

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.77
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%
Functions5
▷ Named functions5100.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