84% debug-wp-redirect

Code Review | Debug wp_redirect()

WordPress plugin Debug wp_redirect() scored84%from 54 tests.

About plugin

  • Plugin page: debug-wp-redirect
  • Plugin version: 2.1.2
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5-6.1
  • WordPress version: 6.3.1
  • First release: Feb 28, 2013
  • Latest release: Sep 9, 2022
  • Number of updates: 11
  • Update frequency: every 316.4 days
  • Top authors: sc0ttkclark (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

200+ active /8,322 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully

Server metrics [RAM: ▲0.09MB] [CPU: ▼8.01ms] Passed 4 tests

A check of server-side resources used by Debug wp_redirect()
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.56 ▲0.1038.74 ▼0.04
Dashboard /wp-admin3.42 ▲0.0745.77 ▼14.67
Posts /wp-admin/edit.php3.53 ▲0.1744.26 ▼5.22
Add New Post /wp-admin/post-new.php6.00 ▲0.1187.21 ▼12.11
Media Library /wp-admin/upload.php3.34 ▲0.1139.67 ▲2.66
Debug wp_redirect() /wp-admin/options-general.php?page=debug-wp-redirect3.3133.07

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_theysaidso_widget
widget_recent-posts
db_upgraded
theysaidso_admin_options
widget_recent-comments

Browser metrics Passed 4 tests

A check of browser resources used by Debug wp_redirect()
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,818 ▲5714.41 ▲0.131.94 ▲0.2842.38 ▲1.49
Dashboard /wp-admin2,199 ▲245.59 ▼0.0687.31 ▼11.6740.19 ▼1.94
Posts /wp-admin/edit.php2,104 ▲12.01 ▲0.0236.54 ▲0.1531.64 ▼4.07
Add New Post /wp-admin/post-new.php1,538 ▲922.94 ▲0.10685.29 ▲12.8660.69 ▲1.79
Media Library /wp-admin/upload.php1,407 ▲134.23 ▼0.09105.70 ▲3.3146.19 ▲5.38
Debug wp_redirect() /wp-admin/options-general.php?page=debug-wp-redirect8642.0423.0528.21

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
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 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
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 get_option() in wp-content/plugins/debug-wp-redirect/debug-wp-redirect.php:100

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
3 plugin tags: redirects, debug, wp_redirect

debug-wp-redirect/debug-wp-redirect.php Passed 13 tests

Analyzing the main PHP file in "Debug wp_redirect()" version 2.1.2
138 characters long description:
Stops and outputs information about redirects done on the front of a site and in the admin area with wp_redirect() and wp_safe_redirect().

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin431 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP2115185431

PHP code Passed 2 tests

A brief analysis 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.61
Average class complexity25.00
▷ Minimum class complexity25.00
▷ Maximum class complexity25.00
Average method complexity3.18
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods11
▷ Static methods19.09%
▷ Public methods11100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions7
▷ Named functions7100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.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
PNG images were not found in this plugin