Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▼0.94MB] [CPU: ▼30.94ms] Passed 4 tests
Server-side resources used by 404 Redirect
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 37.27 ▼5.49 |
Dashboard /wp-admin | 3.01 ▼0.30 | 24.65 ▼24.73 |
Posts /wp-admin/edit.php | 3.01 ▼0.35 | 25.46 ▼21.14 |
Add New Post /wp-admin/post-new.php | 3.01 ▼2.88 | 24.76 ▼72.24 |
Media Library /wp-admin/upload.php | 3.01 ▼0.22 | 25.02 ▼5.66 |
404 Redirect /wp-admin/options-general.php?page=redirect-404 | 3.01 | 23.17 |
Server storage [IO: ▲0.12MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 5 new files
Database: no new tables, 8 new options
New WordPress options |
---|
PRT_redirect_404_pageUrl |
widget_theysaidso_widget |
db_upgraded |
prfx_value |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-comments |
widget_recent-posts |
Browser metrics Passed 4 tests
An overview of browser requirements for 404 Redirect
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,808 ▲62 | 14.85 ▲0.49 | 2.23 ▲0.30 | 45.27 ▲0.01 |
Dashboard /wp-admin | 2,217 ▲26 | 5.88 ▲0.06 | 110.54 ▲4.51 | 43.07 ▲2.42 |
Posts /wp-admin/edit.php | 2,079 ▼10 | 2.02 ▲0.03 | 36.52 ▼2.53 | 34.70 ▼2.33 |
Add New Post /wp-admin/post-new.php | 1,675 ▲155 | 22.51 ▼0.35 | 579.25 ▼89.53 | 53.05 ▲0.84 |
Media Library /wp-admin/upload.php | 1,396 ▲14 | 4.24 ▲0.01 | 96.70 ▼2.72 | 46.43 ▲2.81 |
404 Redirect /wp-admin/options-general.php?page=redirect-404 | 827 | 2.06 | 25.15 | 27.78 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
- This plugin did not uninstall without warnings or errors
- > Notice in wp-content/plugins/redirect-to-404/redirect_404.php+72
Undefined variable: get_cache
- Zombie WordPress options were found after uninstall: 8 options
- widget_recent-comments
- theysaidso_admin_options
- prfx_value
- widget_recent-posts
- PRT_redirect_404_pageUrl
- db_upgraded
- widget_theysaidso_widget
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
These server-side errors were triggered
- > GET request to /wp-admin/options-general.php?page=redirect-404
- > Notice in wp-content/plugins/redirect-to-404/redirect_404.php+72
Undefined variable: get_cache
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=redirect-404
- > User deprecated in wp-includes/functions.php+5737
Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.
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
Almost there! Just fix the following items
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/redirect-to-404/PRT_redirect_404_admin.php:2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that require attention:
- Screenshots: Screenshot #1 (Admin view) image not found
redirect-to-404/redirect_404.php 92% from 13 tests
This is the main PHP file of "404 Redirect" version 1.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please take the time to fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("redirect-to-404.php" instead of "redirect_404.php")
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
Good job! No executable or dangerous file extensions detected131 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 48 | 26 | 124 |
CSS | 2 | 0 | 5 | 7 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
Average class complexity | 13.00 |
▷ Minimum class complexity | 13.00 |
▷ Maximum class complexity | 13.00 |
Average method complexity | 2.50 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 5.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 8 | |
▷ Static methods | 1 | 12.50% |
▷ Public methods | 6 | 75.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 25.00% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
There were not PNG files found in your plugin