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 successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.03MB] [CPU: ▼4.15ms] Passed 4 tests
A check of server-side resources used by All 404 Pages Redirect to Homepage
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 34.83 ▼4.93 |
Dashboard /wp-admin | 3.34 ▲0.03 | 44.76 ▼1.61 |
Posts /wp-admin/edit.php | 3.39 ▲0.03 | 46.94 ▲0.87 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.05 | 84.71 ▼8.60 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 33.57 ▼1.44 |
All 404 Redirect to Homepage /wp-admin/options-general.php?page=all-404-redirect-option | 3.28 | 32.78 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 9 new files
Database: no new tables, 8 new options
New WordPress options |
---|
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-comments |
db_upgraded |
theysaidso_admin_options |
status_404r |
redirect_to_404r |
widget_recent-posts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for All 404 Pages Redirect to Homepage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,808 ▲73 | 13.68 ▼0.69 | 1.65 ▲0.01 | 44.82 ▲1.02 |
Dashboard /wp-admin | 2,217 ▲25 | 5.86 ▲0.96 | 96.45 ▼6.04 | 38.17 ▼7.76 |
Posts /wp-admin/edit.php | 2,097 ▲11 | 2.07 ▲0.07 | 40.71 ▲3.57 | 36.98 ▲5.31 |
Add New Post /wp-admin/post-new.php | 1,530 ▲16 | 18.29 ▲0.76 | 592.85 ▼98.89 | 54.73 ▼4.70 |
Media Library /wp-admin/upload.php | 1,396 ▲8 | 4.26 ▲0.11 | 104.54 ▼3.96 | 45.61 ▼1.21 |
All 404 Redirect to Homepage /wp-admin/options-general.php?page=all-404-redirect-option | 869 | 2.04 | 22.38 | 27.88 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- This plugin did not uninstall successfully, leaving 8 options in the database
- widget_recent-posts
- status_404r
- widget_theysaidso_widget
- redirect_to_404r
- widget_recent-comments
- theysaidso_admin_options
- db_upgraded
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test
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
The following issues need your attention
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_status_404r() in wp-content/plugins/all-404-pages-redirect-to-homepage/options.php:15
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need to be fixed:
- Tags: Too many tags (11 tag instead of maximum 10); only the first 5 tags are used in your directory listing
all-404-pages-redirect-to-homepage/all-404-pages-redirect-to-homepage.php Passed 13 tests
The primary PHP file in "All 404 Pages Redirect to Homepage" version 1.9 is used by WordPress to initiate all plugin functionality
66 characters long description:
a plugin to redirect all 404 pages to home page or any custom page
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Success! There were no dangerous files found in this plugin665 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 114 | 21 | 348 |
CSS | 2 | 44 | 0 | 293 |
JavaScript | 2 | 5 | 12 | 24 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.31 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 13 | |
▷ Named functions | 13 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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 are no PNG files in this plugin