Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.96MB] [CPU: ▼294.06ms] Passed 4 tests
Analyzing server-side resources used by Redirection
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.23 ▲0.71 | 55.38 ▲3.83 |
Dashboard /wp-admin | 4.48 ▲1.07 | 40.67 ▲5.12 |
Posts /wp-admin/edit.php | 4.70 ▲1.06 | 45.06 ▲8.58 |
Add New Post /wp-admin/post-new.php | 8.00 ▲1.02 | 99.03 ▼1,189.94 |
Media Library /wp-admin/upload.php | 4.35 ▲1.05 | 31.52 ▲4.75 |
Server storage [IO: ▲5.71MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 171 new files
Database: no new tables, 1 new option
New WordPress options |
---|
redirection_options |
Browser metrics Passed 4 tests
A check of browser resources used by Redirection
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,810 ▲56 | 15.53 ▼0.12 | 5.81 ▲0.03 | 2.86 ▼0.16 |
Dashboard /wp-admin | 2,907 ▲46 | 6.17 ▲0.02 | 122.27 ▼11.12 | 154.63 ▼10.30 |
Posts /wp-admin/edit.php | 2,701 ▲13 | 3.36 ▲0.00 | 62.97 ▼0.42 | 139.06 ▼7.17 |
Add New Post /wp-admin/post-new.php | 1,767 ▲50 | 21.52 ▼0.23 | 457.69 ▲9.06 | 163.29 ▲6.32 |
Media Library /wp-admin/upload.php | 1,710 ▲12 | 5.60 ▲0.09 | 144.31 ▼4.83 | 188.03 ▼0.73 |
Redirection /wp-admin/redirection.php | 26 | 0.94 | 0.04 | 20.03 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
This plugin's uninstaller ran successfully
Smoke tests 50% from 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)
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Almost there! Just fix the following items
- 54× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/redirection/redirection-admin.php:672
- > PHP Fatal error
Uncaught Error: Class 'WP_CLI_Command' not found in wp-content/plugins/redirection/redirection-cli.php:6
- > PHP Fatal error
Uncaught Error: Class 'Red_Log' not found in wp-content/plugins/redirection/models/log/log-redirect.php:6
- > PHP Fatal error
Uncaught Error: Class 'Red_Log' not found in wp-content/plugins/redirection/models/log/log-404.php:6
- > PHP Fatal error
Uncaught Error: Class 'Red_Database_Upgrader' not found in wp-content/plugins/redirection/database/schema/233.php:4
- > PHP Fatal error
Uncaught Error: Class 'Redirection_Api_Filter_Route' not found in wp-content/plugins/redirection/api/api-redirect.php:173
- > PHP Fatal error
Uncaught Error: Class 'Red_FileIO' not found in wp-content/plugins/redirection/fileio/rss.php:3
- > PHP Fatal error
Uncaught Error: Class 'Red_Action' not found in wp-content/plugins/redirection/actions/url.php:6
- > PHP Fatal error
Uncaught Error: Class 'Redirection_Api_Route' not found in wp-content/plugins/redirection/api/api-settings.php:82
- > PHP Fatal error
Uncaught Error: Class 'Red_Database_Upgrader' not found in wp-content/plugins/redirection/database/schema/400.php:3
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Please take a look at the following user-side issues
- > GET request to /wp-admin/redirection.php
- > Network (severe)
wp-admin/redirection.php - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes:
- Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line (
=== redirection ===
)
redirection/redirection.php Passed 13 tests
"Redirection" version 5.2.3's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
52 characters long description:
Manage all your 301 redirects and monitor 404 errors
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
Success! There were no dangerous files found in this plugin38,012 lines of code in 141 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PO File | 25 | 14,516 | 16,339 | 29,386 |
PHP | 88 | 2,275 | 3,805 | 8,505 |
CSS | 1 | 8 | 0 | 60 |
Markdown | 1 | 25 | 0 | 35 |
JSON | 25 | 0 | 0 | 25 |
JavaScript | 1 | 0 | 1 | 1 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.42 |
Average class complexity | 13.15 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 94.00 |
Average method complexity | 2.67 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 35.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 2 | |
Classes | 94 | |
▷ Abstract classes | 6 | 6.38% |
▷ Concrete classes | 88 | 93.62% |
▷ Final classes | 0 | 0.00% |
Methods | 713 | |
▷ Static methods | 99 | 13.88% |
▷ Public methods | 513 | 71.95% |
▷ Protected methods | 48 | 6.73% |
▷ Private methods | 152 | 21.32% |
Functions | 31 | |
▷ Named functions | 15 | 48.39% |
▷ Anonymous functions | 16 | 51.61% |
Constants | 72 | |
▷ Global constants | 14 | 19.44% |
▷ Class constants | 58 | 80.56% |
▷ Public constants | 58 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/GitHub-Mark-64px.png | 2.56KB | 1.51KB | ▼ 41.07% |