93% advance-wp-redirect

Code Review | WP Post Redirection - 301, 404 Redirects

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

About plugin

  • Plugin page: advance-wp-redirect
  • Plugin version: 0.0.4
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4.0-5.8
  • WordPress version: 5.9.2
  • First release: Aug 8, 2019
  • Latest release: Dec 4, 2021
  • Number of updates: 19
  • Update frequency: every 44.9 days
  • Top authors: xfinitysoft (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 663 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

Server metrics [RAM: ▲0.13MB] [CPU: ▼296.08ms] Passed 4 tests

Analyzing server-side resources used by WP Post Redirection - 301, 404 Redirects
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.74 ▲0.2255.96 ▲3.25
Dashboard /wp-admin3.57 ▲0.1634.59 ▼0.43
Posts /wp-admin/edit.php3.80 ▲0.1537.86 ▼0.68
Add New Post /wp-admin/post-new.php7.03 ▲0.06100.49 ▼1,180.87
Media Library /wp-admin/upload.php3.45 ▲0.1524.78 ▼2.35
Support /wp-admin/admin.php?page=xsawrlite_support3.4223.46
Advance WP Redirect /wp-admin/admin.php?page=xsawrlite_page3.4024.57

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 17 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Checking browser requirements for WP Post Redirection - 301, 404 Redirects
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,936 ▲18216.37 ▲0.7613.00 ▲6.412.37 ▼0.35
Dashboard /wp-admin2,923 ▲726.19 ▲0.00117.97 ▼20.54155.66 ▼6.85
Posts /wp-admin/edit.php2,719 ▲313.24 ▲0.0063.85 ▼0.62143.77 ▲7.08
Add New Post /wp-admin/post-new.php1,680 ▼3116.17 ▼4.59400.28 ▼75.82157.18 ▼3.84
Media Library /wp-admin/upload.php1,729 ▲315.48 ▼0.02145.85 ▲5.68189.79 ▲5.17
Support /wp-admin/admin.php?page=xsawrlite_support1,1812.7162.00123.27
Advance WP Redirect /wp-admin/admin.php?page=xsawrlite_page1,5682.7459.98174.64

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The plugin uninstalled successfully, without leaving any zombie files or tables

Smoke tests 75% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Smoke test failed, please fix the following
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=xsawrlite_page
    • > Notice in wp-content/plugins/advance-wp-redirect/templates/xsawrlite-setting-page.php+40
    Undefined index: tab
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=xsawrlite_page
    • > Notice in wp-content/plugins/advance-wp-redirect/templates/xsawrlite-easy-redirect.php+57
    Trying to access array offset on value of type bool

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
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found

Optimizations

Plugin configuration 86% 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: 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.4'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:
  • Description: Keep the plugin description shorter than 140 characters (currently 210 characters long)
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
  • Requires at least: The required version number did not match the one declared in readme.txt ("5.0" instead of "4.4.0")

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
Everything looks great! No dangerous files found in this plugin1,785 lines of code in 13 files:
LanguageFilesBlank linesComment linesLines of code
PHP7501421,033
PO File1119168260
JavaScript3710247
CSS2182245

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.29
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 methods1376.47%
▷ 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
PNG images were not found in this plugin