89% advance-wp-redirect

Code Review | WP Post Redirection - 301, 404 Redirects

WordPress plugin WP Post Redirection - 301, 404 Redirects scored89%from 54 tests.

About plugin

  • Plugin page: advance-wp-redirect
  • Plugin version: 0.0.5
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4.0-6.3.0
  • WordPress version: 6.3.1
  • First release: Aug 8, 2019
  • Latest release: Aug 11, 2023
  • Number of updates: 22
  • Update frequency: every 66.7 days
  • Top authors: xfinitysoft (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,033 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully

Server metrics [RAM: ▲0.15MB] [CPU: ▼7.32ms] Passed 4 tests

This is a short check of server-side resources used by WP Post Redirection - 301, 404 Redirects
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.62 ▲0.1540.89 ▼7.02
Dashboard /wp-admin3.46 ▲0.1547.58 ▼0.60
Posts /wp-admin/edit.php3.57 ▲0.2247.76 ▼4.99
Add New Post /wp-admin/post-new.php6.04 ▲0.1587.36 ▼16.68
Media Library /wp-admin/upload.php3.38 ▲0.1536.19 ▲1.39
Advance WP Redirect /wp-admin/admin.php?page=xsawrlite_page3.4032.82
Support /wp-admin/admin.php?page=xsawrlite_support3.3534.59

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for WP Post Redirection - 301, 404 Redirects
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,908 ▲16213.61 ▼0.7910.39 ▲8.3235.60 ▼3.97
Dashboard /wp-admin2,226 ▲385.89 ▲1.0299.74 ▼6.8740.00 ▼3.19
Posts /wp-admin/edit.php2,115 ▲262.03 ▲0.0439.50 ▼4.1935.30 ▼2.86
Add New Post /wp-admin/post-new.php1,532 ▼1017.63 ▼0.48658.24 ▲62.7756.45 ▲6.61
Media Library /wp-admin/upload.php1,408 ▲264.14 ▼0.0798.83 ▼2.0540.60 ▼2.68
Advance WP Redirect /wp-admin/admin.php?page=xsawrlite_page1,2101.8028.7947.75
Support /wp-admin/admin.php?page=xsawrlite_support9181.7926.4630.08

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts

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

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The SRP test was a success

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)
Everything seems fine on the user side

Optimizations

Plugin configuration 86% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that need to be fixed: The official readme.txt might help

advance-wp-redirect/advance-wp-redirect.php 77% from 13 tests

"WP Post Redirection - 301, 404 Redirects" version 0.0.5's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please make the necessary changes and fix the following:
  • Requires at least: The required version number did not match the one declared in readme.txt ("5.0" instead of "4.4.0")
  • Description: The description should be shorter than 140 characters (currently 210 characters long)
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin1,773 lines of code in 13 files:
LanguageFilesBlank linesComment linesLines of code
PHP7521421,021
PO File1119168260
JavaScript3710247
CSS2182245

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.28
Average class complexity31.00
▷ Minimum class complexity2.00
▷ Maximum class complexity60.00
Average method complexity4.53
▷ Minimum method complexity1.00
▷ Maximum method complexity19.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods17
▷ Static methods15.88%
▷ Public methods17100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.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