84% redirect-old-links

Code Review | Redirect Old Links

WordPress plugin Redirect Old Links scored84%from 54 tests.

About plugin

  • Plugin page: redirect-old-links
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.7.2
  • WordPress version: 6.3.1
  • First release: Mar 16, 2017
  • Latest release: Mar 20, 2017
  • Number of updates: 4
  • Update frequency: every 2.7 days
  • Top authors: ryanshoover (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /990 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼7.67ms] Passed 4 tests

Analyzing server-side resources used by Redirect Old Links
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0143.80 ▼6.78
Dashboard /wp-admin3.32 ▲0.0150.69 ▼3.71
Posts /wp-admin/edit.php3.37 ▲0.0150.49 ▼5.21
Add New Post /wp-admin/post-new.php5.90 ▲0.0190.72 ▼13.30
Media Library /wp-admin/upload.php3.24 ▲0.0136.92 ▼5.37

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
can_compress_scripts
db_upgraded
theysaidso_admin_options
widget_recent-posts
widget_theysaidso_widget

Browser metrics Passed 4 tests

This is an overview of browser requirements for Redirect Old Links
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.24 ▲0.062.50 ▲0.6450.76 ▲7.17
Dashboard /wp-admin2,195 ▲155.57 ▼0.0585.54 ▼1.1839.49 ▼5.14
Posts /wp-admin/edit.php2,103 ▲31.99 ▼0.0435.89 ▼1.7932.30 ▼6.34
Add New Post /wp-admin/post-new.php1,549 ▲2323.33 ▲5.76701.92 ▼8.5257.65 ▼1.72
Media Library /wp-admin/upload.php1,400 ▼04.20 ▼0.0296.89 ▼17.5242.57 ▼6.89

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 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
Please fix the following items
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function RedirectOldLinks\\add_action() in wp-content/plugins/redirect-old-links/redirect-old-links.php:59

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
4 plugin tags: 404, redirect, permalinks, seo

redirect-old-links/redirect-old-links.php Passed 13 tests

The entry point to "Redirect Old Links" version 1.0.0 is a PHP file that has certain tags in its header comment area
129 characters long description:
Did you change your permalink structure and now have old links "404ing"? I'll redirect those old links to their new one for you.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin59 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
Markdown115033
PHP1102326

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.33
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
Namespaces1
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%
Functions1
▷ Named functions1100.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