Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲1.04MB] [CPU: ▲1.98ms] Passed 4 tests
A check of server-side resources used by Redirection
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.21 ▲0.75 | 39.60 ▼6.48 |
Dashboard /wp-admin | 4.41 ▲1.11 | 50.47 ▲3.89 |
Posts /wp-admin/edit.php | 4.53 ▲1.17 | 55.83 ▲7.90 |
Add New Post /wp-admin/post-new.php | 7.06 ▲1.17 | 93.23 ▲2.60 |
Media Library /wp-admin/upload.php | 4.34 ▲1.11 | 44.84 ▲9.66 |
Server storage [IO: ▲6.67MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 178 new files
Database: no new tables, 7 new options
New WordPress options |
---|
db_upgraded |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-posts |
redirection_options |
widget_recent-comments |
can_compress_scripts |
Browser metrics Passed 4 tests
A check of browser resources used by Redirection
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,835 ▲100 | 13.12 ▼1.25 | 5.64 ▲3.71 | 39.99 ▼1.03 |
Dashboard /wp-admin | 2,216 ▲34 | 4.88 ▼1.14 | 108.79 ▲4.61 | 38.28 ▼0.26 |
Posts /wp-admin/edit.php | 2,101 ▲15 | 2.00 ▼0.01 | 40.91 ▲7.35 | 35.47 ▲0.64 |
Add New Post /wp-admin/post-new.php | 1,542 ▲9 | 23.39 ▲0.16 | 643.08 ▲52.41 | 56.75 ▲2.21 |
Media Library /wp-admin/upload.php | 1,398 ▲10 | 4.25 ▲0.07 | 103.42 ▲4.03 | 44.88 ▲0.41 |
Redirection /wp-admin/redirection.php | 26 | 0.44 | 0.11 | 12.55 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-posts
- can_compress_scripts
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-comments
- 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
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please take a closer look at the following
- 54× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Red_Module' not found in wp-content/plugins/redirection/modules/nginx.php:3
- > PHP Fatal error
Uncaught Error: Class 'Red_FileIO' not found in wp-content/plugins/redirection/fileio/nginx.php:3
- > PHP Fatal error
Uncaught Error: Class 'Red_Match' not found in wp-content/plugins/redirection/matches/http-header.php:6
- > PHP Fatal error
Uncaught Error: Class 'Redirection_Api_Filter_Route' not found in wp-content/plugins/redirection/api/api-log.php:103
- > PHP Warning
Use of undefined constant REDIRECTION_FILE - assumed 'REDIRECTION_FILE' (this will throw an Error in a future version of PHP) in wp-content/plugins/redirection/models/fixer.php on line 3
- > PHP Fatal error
Uncaught Error: Class 'Red_Database_Upgrader' not found in wp-content/plugins/redirection/database/schema/232.php:4
- > 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_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 'Red_Action' not found in wp-content/plugins/redirection/actions/nothing.php:6
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Please fix the following user-side errors
- > 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
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that need to be fixed:
- Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line (
=== redirection ===
)
redirection/redirection.php Passed 13 tests
The main file in "Redirection" v. 5.3.10 serves as a complement to information provided in readme.txt and as the entry point to the plugin
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 not allowed as they can serve as attack vectors
There were no executable files found in this plugin41,099 lines of code in 144 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PO File | 25 | 15,875 | 17,825 | 32,206 |
PHP | 89 | 2,369 | 3,958 | 8,770 |
CSS | 1 | 8 | 0 | 60 |
Markdown | 1 | 25 | 0 | 35 |
JSON | 27 | 0 | 0 | 27 |
JavaScript | 1 | 0 | 1 | 1 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.42 |
Average class complexity | 13.73 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 94.00 |
Average method complexity | 2.73 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 36.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 2 | |
Classes | 95 | |
▷ Abstract classes | 6 | 6.32% |
▷ Concrete classes | 89 | 93.68% |
▷ Final classes | 0 | 0.00% |
Methods | 727 | |
▷ Static methods | 100 | 13.76% |
▷ Public methods | 518 | 71.25% |
▷ Protected methods | 48 | 6.60% |
▷ Private methods | 161 | 22.15% |
Functions | 32 | |
▷ Named functions | 15 | 46.88% |
▷ Anonymous functions | 17 | 53.12% |
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
All PNG images should be compressed to minimize bandwidth usage for end users
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% |