Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.25MB] [CPU: ▼3.28ms] Passed 4 tests
An overview of server-side resources used by Safe Redirect Manager
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.74 ▲0.27 | 46.93 ▲5.21 |
Dashboard /wp-admin | 3.55 ▲0.25 | 53.02 ▼1.54 |
Posts /wp-admin/edit.php | 3.67 ▲0.31 | 50.38 ▼4.30 |
Add New Post /wp-admin/post-new.php | 6.13 ▲0.25 | 88.69 ▼12.48 |
Media Library /wp-admin/upload.php | 3.47 ▲0.24 | 43.03 ▲9.90 |
Server storage [IO: ▲0.09MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-comments |
db_upgraded |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
A check of browser resources used by Safe Redirect Manager
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,810 ▲64 | 13.66 ▼0.92 | 1.75 ▼0.04 | 43.64 ▲0.51 |
Dashboard /wp-admin | 2,210 ▲28 | 4.88 ▼0.00 | 111.42 ▲3.73 | 39.77 ▼3.15 |
Posts /wp-admin/edit.php | 2,099 ▲7 | 1.99 ▼0.07 | 38.78 ▼1.54 | 34.26 ▼2.74 |
Add New Post /wp-admin/post-new.php | 1,539 ▲20 | 23.35 ▲0.43 | 664.94 ▲77.10 | 50.91 ▲7.75 |
Media Library /wp-admin/upload.php | 1,395 ▲7 | 4.19 ▲0.02 | 108.85 ▲10.00 | 45.21 ▼1.05 |
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
These items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- theysaidso_admin_options
- db_upgraded
- widget_recent-comments
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-posts
Smoke tests 75% 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
- 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/safe-redirect-manager/inc/classes/class-srm-post-type.php:33
- > PHP Fatal error
Uncaught Error: Class 'WP_CLI_Command' not found in wp-content/plugins/safe-redirect-manager/inc/classes/class-srm-wp-cli.php:13
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
6 plugin tags: http redirects, safe http redirection, multisite redirects, redirect manager, redirects...
safe-redirect-manager/safe-redirect-manager.php Passed 13 tests
The primary PHP file in "Safe Redirect Manager" version 2.1.0 is used by WordPress to initiate all plugin functionality
40 characters long description:
Easily and safely manage HTTP redirects.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin1,435 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 321 | 764 | 1,302 |
JavaScript | 1 | 9 | 3 | 88 |
CSS | 1 | 9 | 0 | 45 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.42 |
Average class complexity | 41.25 |
▷ Minimum class complexity | 20.00 |
▷ Maximum class complexity | 63.00 |
Average method complexity | 4.63 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 32.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 46 | |
▷ Static methods | 6 | 13.04% |
▷ Public methods | 42 | 91.30% |
▷ Protected methods | 1 | 2.17% |
▷ Private methods | 3 | 6.52% |
Functions | 18 | |
▷ Named functions | 14 | 77.78% |
▷ Anonymous functions | 4 | 22.22% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG images were found in this plugin