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
This plugin's installer ran successfully
Server metrics [RAM: ▲0.19MB] [CPU: ▼0.58ms] Passed 4 tests
Server-side resources used by Redirect 404 Error Page to Homepage or Custom Page with Logs
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.66 ▲0.20 | 41.71 ▲1.47 |
Dashboard /wp-admin | 3.51 ▲0.17 | 55.92 ▼5.60 |
Posts /wp-admin/edit.php | 3.63 ▲0.27 | 46.80 ▲0.98 |
Add New Post /wp-admin/post-new.php | 6.09 ▲0.21 | 83.83 ▲0.84 |
Media Library /wp-admin/upload.php | 3.44 ▲0.21 | 35.14 ▲3.79 |
404 Log /wp-admin/admin.php?page=redirect-404-error-page-to-homepage-or-custom-page-404-log-report | 3.45 | 34.05 |
Settings /wp-admin/admin.php?page=redirect-404-error-page-to-homepage-or-custom-page | 3.43 | 51.73 |
Server storage [IO: ▲0.14MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 30 new files
Database: 1 new table, 8 new options
New tables |
---|
wp_redirect_404_hp_cp_log |
New WordPress options |
---|
redirect-404-error-page-to-homepage-or-custom-page-log |
theysaidso_admin_options |
widget_recent-comments |
db_upgraded |
widget_recent-posts |
widget_theysaidso_widget |
can_compress_scripts |
redirect-404-error-page-to-homepage-or-custom-page_db_version |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Redirect 404 Error Page to Homepage or Custom Page with Logs
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,838 ▲76 | 14.58 ▲0.24 | 2.00 ▲0.39 | 43.59 ▲1.12 |
Dashboard /wp-admin | 2,221 ▲40 | 5.59 ▼0.07 | 93.83 ▼8.03 | 41.96 ▼9.38 |
Posts /wp-admin/edit.php | 2,123 ▲23 | 1.97 ▲0.02 | 38.99 ▲0.86 | 33.20 ▼0.79 |
Add New Post /wp-admin/post-new.php | 1,545 ▲19 | 23.16 ▼0.01 | 648.50 ▲12.65 | 51.56 ▼0.18 |
Media Library /wp-admin/upload.php | 1,426 ▲26 | 4.32 ▲0.09 | 100.07 ▲2.58 | 43.81 ▲1.20 |
404 Log /wp-admin/admin.php?page=redirect-404-error-page-to-homepage-or-custom-page-404-log-report | 1,047 | 1.69 | 24.88 | 28.06 |
Settings /wp-admin/admin.php?page=redirect-404-error-page-to-homepage-or-custom-page | 1,216 | 2.20 | 45.32 | 31.41 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- Zombie WordPress options were found after uninstall: 6 options
- widget_theysaidso_widget
- widget_recent-comments
- db_upgraded
- widget_recent-posts
- theysaidso_admin_options
- can_compress_scripts
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)
Everything seems fine, however 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 take a closer look at the following
- 3× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'Redirect_404_Error_Page_To_Homepage_Or_Custom_Page\\Admin\\Admin_Pages' not found in wp-content/plugins/redirect-404-error-page-to-homepage-or-custom-page/admin/class-admin-settings.php:16
- > PHP Fatal error
Uncaught Error: Class 'Redirect_404_Error_Page_To_Homepage_Or_Custom_Page\\Admin\\Admin_Tables' not found in wp-content/plugins/redirect-404-error-page-to-homepage-or-custom-page/admin/class-admin-table-404-log.php:12
- > PHP Fatal error
Uncaught Error: Class 'WP_List_Table' not found in wp-content/plugins/redirect-404-error-page-to-homepage-or-custom-page/admin/class-list-table-404-log.php:14
- > PHP Fatal error
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 errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that require attention:
- Tags: Please delete some tags, you are using 13 tag instead of maximum 10
redirect-404-error-page-to-homepage-or-custom-page/redirect-404-error-page-to-homepage-or-custom-page.php 92% from 13 tests
"Redirect 404 Error Page to Homepage or Custom Page with Logs" version 1.8.8's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
- Requires at least: Required version does not match the one declared in readme.txt ("5.0" instead of "6.0")
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
No dangerous file extensions were detected1,575 lines of code in 19 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 16 | 369 | 467 | 1,035 |
PO File | 3 | 181 | 193 | 540 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.22 |
Average class complexity | 6.50 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 24.00 |
Average method complexity | 1.92 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 10.00 |
Code structure | ||
---|---|---|
Namespaces | 4 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 12 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 12 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 73 | |
▷ Static methods | 9 | 12.33% |
▷ Public methods | 63 | 86.30% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 10 | 13.70% |
Functions | 4 | |
▷ Named functions | 3 | 75.00% |
▷ Anonymous functions | 1 | 25.00% |
Constants | 3 | |
▷ Global constants | 3 | 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
PNG images were not found in this plugin