94% quick-301-redirects

Code Review | Quick 301 Redirects for WordPress

WordPress plugin Quick 301 Redirects for WordPress scored 94% from 54 tests.

About plugin

  • Plugin page: quick-301-redirects
  • Plugin version: 1.1.6
  • PHP version: 7.4.16
  • WordPress compatibility: 3.1-5.8
  • WordPress version: 5.8.1
  • First release: Feb 22, 2019
  • Latest release: Jul 19, 2021
  • Number of updates: 31
  • Update frequency: every 28.3 days
  • Top authors: galdub (100%)

Code review

54 tests

User reviews

8 reviews

Install metrics

4,000+ active / 14,412 total downloads

Benchmarks

Plugin footprint Passed 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.06MB] [CPU: ▼141.06ms] Passed 4 tests

An overview of server-side resources used by Quick 301 Redirects for WordPress
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.89 ▲0.1742.61 ▲21.89
Dashboard /wp-admin3.12 ▲0.0747.39 ▼1.07
Posts /wp-admin/edit.php3.17 ▲0.0641.89 ▼5.67
Add New Post /wp-admin/post-new.php5.48 ▲0.0489.75 ▼558.92
Media Library /wp-admin/upload.php3.06 ▲0.0635.49 ▲1.43
Quick 301 Redirects /wp-admin/options-general.php?page=quick-301-redirects3.0330.86

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 7 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Checking browser requirements for Quick 301 Redirects for WordPress
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,728 ▲13216.63 ▲1.0212.34 ▲0.3945.51 ▼1.67
Dashboard /wp-admin2,995 ▲586.95 ▲0.98189.80 ▲45.90107.24 ▼7.61
Posts /wp-admin/edit.php2,767 ▲282.78 ▲0.0679.77 ▲8.4098.36 ▲9.56
Add New Post /wp-admin/post-new.php1,689 ▲618.86 ▲0.59409.07 ▼3.18124.29 ▲20.43
Media Library /wp-admin/upload.php1,835 ▲285.21 ▲0.19138.61 ▼15.66114.07 ▼2.45
Quick 301 Redirects /wp-admin/options-general.php?page=quick-301-redirects1,2752.5264.14109.46

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Uninstall script ran successfully

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
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
The following issues need your attention
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/quick-301-redirects/quick-301-redirects.php:14

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
10 plugin tags: 301 redirect, htaccess, seo redirects, redirects, url redirects...

quick-301-redirects/quick-301-redirects.php Passed 13 tests

The main PHP script in "Quick 301 Redirects for WordPress" version 1.1.6 is automatically included on every request by WordPress
48 characters long description:
The fastest and easiest way to do 301 redirects.

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
No dangerous file extensions were detected497 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP267100388
JavaScript1231108
SVG1001

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.36
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%
Functions12
▷ Named functions12100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
images/external-link-16.png0.33KB0.38KB0.00%