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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.56 ▲0.10 | 38.74 ▼0.04 |
Dashboard /wp-admin | 3.42 ▲0.07 | 45.77 ▼14.67 |
Posts /wp-admin/edit.php | 3.53 ▲0.17 | 44.26 ▼5.22 |
Add New Post /wp-admin/post-new.php | 6.00 ▲0.11 | 87.21 ▼12.11 |
Media Library /wp-admin/upload.php | 3.34 ▲0.11 | 39.67 ▲2.66 |
Debug wp_redirect() /wp-admin/options-general.php?page=debug-wp-redirect | 3.31 | 33.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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,818 ▲57 | 14.41 ▲0.13 | 1.94 ▲0.28 | 42.38 ▲1.49 |
Dashboard /wp-admin | 2,199 ▲24 | 5.59 ▼0.06 | 87.31 ▼11.67 | 40.19 ▼1.94 |
Posts /wp-admin/edit.php | 2,104 ▲1 | 2.01 ▲0.02 | 36.54 ▲0.15 | 31.64 ▼4.07 |
Add New Post /wp-admin/post-new.php | 1,538 ▲9 | 22.94 ▲0.10 | 685.29 ▲12.86 | 60.69 ▲1.79 |
Media Library /wp-admin/upload.php | 1,407 ▲13 | 4.23 ▼0.09 | 105.70 ▲3.31 | 46.19 ▲5.38 |
Debug wp_redirect() /wp-admin/options-general.php?page=debug-wp-redirect | 864 | 2.04 | 23.05 | 28.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
- > PHP Fatal error
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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 115 | 185 | 431 |
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 code | 0.61 |
Average class complexity | 25.00 |
▷ Minimum class complexity | 25.00 |
▷ Maximum class complexity | 25.00 |
Average method complexity | 3.18 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 9.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 11 | |
▷ Static methods | 1 | 9.09% |
▷ Public methods | 11 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 7 | |
▷ Named functions | 7 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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