Benchmarks
Plugin footprint 23% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Please fix the following installer errors
- The plugin cannot be installed
- > Warning in wp-content/plugins/knock-on-wood-redirect/includes/helper.php+123
include(wp-content/plugins/knock-on-wood-redirect/cache/settings.php): failed to open stream: No such file or directory
Server metrics [RAM: ▼1.82MB] [CPU: ▼54.99ms] Passed 4 tests
This is a short check of server-side resources used by Knock on Wood Redirect
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.17 ▼1.30 | 5.67 ▼38.95 |
Dashboard /wp-admin | 2.19 ▼1.12 | 7.11 ▼44.37 |
Posts /wp-admin/edit.php | 2.19 ▼1.17 | 7.22 ▼49.24 |
Add New Post /wp-admin/post-new.php | 2.19 ▼3.70 | 6.95 ▼87.41 |
Media Library /wp-admin/upload.php | 2.19 ▼1.04 | 7.02 ▼27.28 |
Server storage [IO: ▲3.22MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 33 new files
Database: 3 new tables, 6 new options
New tables |
---|
wp_redirect_points |
wp_redirect_clicks |
wp_redirect_settings |
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-comments |
theysaidso_admin_options |
db_upgraded |
can_compress_scripts |
widget_recent-posts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Knock on Wood Redirect
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,816 ▲70 | 13.16 ▼1.20 | 4.86 ▲3.19 | 49.52 ▲4.27 |
Dashboard /wp-admin | 2,222 ▲34 | 5.83 ▲0.96 | 102.32 ▼11.09 | 38.63 ▼5.23 |
Posts /wp-admin/edit.php | 2,105 ▲16 | 2.01 ▼0.02 | 36.17 ▲0.35 | 31.35 ▲1.73 |
Add New Post /wp-admin/post-new.php | 1,555 ▲17 | 18.29 ▲0.06 | 612.34 ▼21.60 | 50.47 ▼3.82 |
Media Library /wp-admin/upload.php | 1,404 ▲19 | 4.34 ▲0.12 | 94.68 ▼7.99 | 40.91 ▼2.52 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 25% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
- Uninstall procedure had uncaught errors
- > Warning in wp-content/plugins/knock-on-wood-redirect/includes/helper.php+123
include(wp-content/plugins/knock-on-wood-redirect/cache/settings.php): failed to open stream: No such file or directory
- The uninstall procedure failed, leaving 3 tables in the database
- wp_redirect_settings
- wp_redirect_points
- wp_redirect_clicks
- This plugin does not fully uninstall, leaving 6 options in the database
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-comments
- widget_recent-posts
- can_compress_scripts
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 0% 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
The following issues need your attention
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/knock-on-wood-redirect/cache/index.php
- 11× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Warning
Use of undefined constant KOW_REDIRECT_ROOT - assumed 'KOW_REDIRECT_ROOT' (this will throw an Error in a future version of PHP) in wp-content/plugins/knock-on-wood-redirect/includes/update.php on line 4
- > PHP Fatal error
Uncaught Error: Call to undefined function KOW_Redirect\\plugins_url() in wp-content/plugins/knock-on-wood-redirect/redirect.php:30
- > PHP Fatal error
require_once(): Failed opening required 'KOW_REDIRECT_ROOT/includes/database.php' (include_path='.:/usr/share/php') in wp-content/plugins/knock-on-wood-redirect/includes/helper.php on line 5
- > PHP Fatal error
Uncaught Error: Class 'KOW_Redirect\\Helper' not found in wp-content/plugins/knock-on-wood-redirect/includes/redirect.php:4
- > PHP Warning
require_once(KOW_REDIRECT_ROOT/includes/database.php): failed to open stream: No such file or directory in wp-content/plugins/knock-on-wood-redirect/includes/helper.php on line 5
- > PHP Warning
Use of undefined constant KOW_REDIRECT_ROOT - assumed 'KOW_REDIRECT_ROOT' (this will throw an Error in a future version of PHP) in wp-content/plugins/knock-on-wood-redirect/includes/helper.php on line 5
- > PHP Warning
require_once(KOW_REDIRECT_ROOT/includes/helper.php): failed to open stream: No such file or directory in wp-content/plugins/knock-on-wood-redirect/includes/update.php on line 4
- > PHP Warning
require_once(KOW_REDIRECT_ROOT/includes/helper.php): failed to open stream: No such file or directory in wp-content/plugins/knock-on-wood-redirect/includes/rest.php on line 9
- > PHP Fatal error
require_once(): Failed opening required 'KOW_REDIRECT_ROOT/includes/helper.php' (include_path='.:/usr/share/php') in wp-content/plugins/knock-on-wood-redirect/includes/rest.php on line 9
- > PHP Fatal error
require_once(): Failed opening required 'KOW_REDIRECT_ROOT/includes/helper.php' (include_path='.:/usr/share/php') in wp-content/plugins/knock-on-wood-redirect/includes/update.php on line 4
- > PHP Warning
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)
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
8 plugin tags: redirect loop, redirect chain, redirects, redirect loops, redirect...
knock-on-wood-redirect/redirect.php 85% from 13 tests
Analyzing the main PHP file in "Knock on Wood Redirect" version 2.0.0
It is important to fix the following:
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 374 characters long)
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("knock-on-wood-redirect.php" instead of "redirect.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected10,455 lines of code in 19 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
SVG | 3 | 0 | 12 | 9,445 |
PHP | 8 | 147 | 135 | 999 |
JavaScript | 7 | 0 | 26 | 10 |
CSS | 1 | 0 | 11 | 1 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.27 |
Average class complexity | 18.00 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 36.00 |
Average method complexity | 2.52 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 13.00 |
Code structure | ||
---|---|---|
Namespaces | 3 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 6 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 67 | |
▷ Static methods | 3 | 4.48% |
▷ Public methods | 60 | 89.55% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 7 | 10.45% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 5 | |
▷ Global constants | 2 | 40.00% |
▷ Class constants | 3 | 60.00% |
▷ Public constants | 3 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
There were not PNG files found in your plugin