79% 404-to-301

Code Review | 404 to 301 - Redirect, Log and Notify 404 Errors

WordPress plugin 404 to 301 - Redirect, Log and Notify 404 Errors scored79%from 54 tests.

About plugin

  • Plugin page: 404-to-301
  • Plugin version: 3.1.4
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-6.1
  • WordPress version: 6.3.1
  • First release: Jul 24, 2014
  • Latest release: Oct 28, 2022
  • Number of updates: 152
  • Update frequency: every 20.5 days
  • Top authors: joelcj91 (100%)

Code review

54 tests

User reviews

280 reviews

Install metrics

100,000+ active /1,847,043 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully

Server metrics [RAM: ▲0.23MB] [CPU: ▼6.01ms] Passed 4 tests

Analyzing server-side resources used by 404 to 301 - Redirect, Log and Notify 404 Errors
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.57 ▲0.1047.04 ▲5.17
Dashboard /wp-admin3.55 ▲0.2552.15 ▼3.22
Posts /wp-admin/edit.php3.64 ▲0.2949.59 ▼1.97
Add New Post /wp-admin/post-new.php6.22 ▲0.3381.66 ▼16.24
Media Library /wp-admin/upload.php3.50 ▲0.2739.29 ▼2.62
404 Settings /wp-admin/admin.php?page=jj4t3-settings3.4535.36
404 Errors /wp-admin/admin.php?page=jj4t3-logs3.4335.94

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 31 new files
Database: 1 new table, 9 new options
New tables
wp_404_to_301
New WordPress options
i4t3_db_version
widget_recent-posts
db_upgraded
widget_recent-comments
can_compress_scripts
theysaidso_admin_options
i4t3_review_notice
i4t3_gnrl_options
widget_theysaidso_widget

Browser metrics Passed 4 tests

404 to 301 - Redirect, Log and Notify 404 Errors: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,949 ▲16314.37 ▲0.111.78 ▼0.1145.43 ▲2.34
Dashboard /wp-admin2,358 ▲1815.61 ▼0.0694.21 ▼2.4842.27 ▲0.92
Posts /wp-admin/edit.php2,271 ▲1712.04 ▲0.0937.63 ▲0.5935.85 ▲1.64
Add New Post /wp-admin/post-new.php1,689 ▲16320.93 ▼2.67679.24 ▲11.1162.22 ▲5.92
Media Library /wp-admin/upload.php1,565 ▲1654.22 ▲0.01106.26 ▲3.1947.27 ▲4.29
404 Settings /wp-admin/admin.php?page=jj4t3-settings1,2241.7425.6531.11
404 Errors /wp-admin/admin.php?page=jj4t3-logs1,2641.7528.1528.99

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • Zombie tables were found after uninstall: 1 table
    • wp_404_to_301
  • The uninstall procedure has failed, leaving 9 options in the database
    • theysaidso_admin_options
    • i4t3_db_version
    • widget_recent-posts
    • db_upgraded
    • i4t3_gnrl_options
    • widget_theysaidso_widget
    • can_compress_scripts
    • i4t3_review_notice
    • widget_recent-comments

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP Passed 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
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that need to be fixed:
  • Tags: There are too many tags (12 tag instead of maximum 10)
You can look at the official readme.txt

404-to-301/404-to-301.php 92% from 13 tests

Analyzing the main PHP file in "404 to 301 - Redirect, Log and Notify 404 Errors" version 3.1.4
You should first fix the following items:
  • Description: Please don't use more than 140 characters for the plugin description (currently 209 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Good job! No executable or dangerous file extensions detected1,531 lines of code in 21 files:
LanguageFilesBlank linesComment linesLines of code
PHP153811,9631,203
PO File1165330171
CSS121668
JavaScript2223853
Sass17029
XML1007

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.32
Average class complexity15.00
▷ Minimum class complexity1.00
▷ Maximum class complexity50.00
Average method complexity2.56
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes9
▷ Abstract classes00.00%
▷ Concrete classes9100.00%
▷ Final classes111.11%
Methods81
▷ Static methods89.88%
▷ Public methods4960.49%
▷ Protected methods22.47%
▷ Private methods3037.04%
Functions12
▷ Named functions12100.00%
▷ Anonymous functions00.00%
Constants8
▷ Global constants8100.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
There were not PNG files found in your plugin