Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▲0.07MB] [CPU: ▼4.14ms] Passed 4 tests
Server-side resources used by Redirect 404 to parent
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.06 | 37.52 ▼0.59 |
Dashboard /wp-admin | 3.37 ▲0.06 | 45.45 ▼2.15 |
Posts /wp-admin/edit.php | 3.48 ▲0.12 | 44.85 ▼0.41 |
Add New Post /wp-admin/post-new.php | 5.97 ▲0.08 | 86.18 ▼11.05 |
Media Library /wp-admin/upload.php | 3.29 ▲0.06 | 37.24 ▼2.75 |
Moove redirect 404 /wp-admin/options-general.php?page=moove-redirect-settings | 3.88 | 499.42 |
Server storage [IO: ▲0.71MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 20 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
widget_recent-posts |
theysaidso_admin_options |
can_compress_scripts |
db_upgraded |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
A check of browser resources used by Redirect 404 to parent
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,797 ▲36 | 14.55 ▲0.33 | 1.70 ▲0.16 | 42.13 ▲2.12 |
Dashboard /wp-admin | 2,206 ▲29 | 5.65 ▲0.07 | 83.61 ▼3.60 | 40.89 ▲2.18 |
Posts /wp-admin/edit.php | 2,105 ▲5 | 2.03 ▲0.02 | 33.87 ▼0.32 | 35.25 ▼2.96 |
Add New Post /wp-admin/post-new.php | 1,542 ▲15 | 18.06 ▼5.19 | 601.00 ▼67.39 | 72.44 ▲12.29 |
Media Library /wp-admin/upload.php | 1,408 ▲8 | 4.19 ▼0.00 | 107.27 ▲3.38 | 50.16 ▲3.54 |
Moove redirect 404 /wp-admin/options-general.php?page=moove-redirect-settings | 1,121 | 2.01 | 26.05 | 55.93 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
- This plugin does not fully uninstall, leaving 7 options in the database
- theysaidso_admin_options
- moove_404_redirect_options
- widget_theysaidso_widget
- widget_recent-posts
- can_compress_scripts
- db_upgraded
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/redirect-404-to-parent/views/moove/admin/settings/documentation.php
- 6× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Class 'Moove_Redirect_Controller' not found in wp-content/plugins/redirect-404-to-parent/views/moove/admin/settings/plugin_boxes.php:2
- > PHP Fatal error
Uncaught Error: Class 'Moove_Redirect_Controller' not found in wp-content/plugins/redirect-404-to-parent/views/moove/admin/settings/add_new_redirect.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/redirect-404-to-parent/controllers/moove-controller.php:22
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/redirect-404-to-parent/views/moove/admin/settings/general_settings.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/redirect-404-to-parent/views/moove/admin/settings/settings_page.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/redirect-404-to-parent/views/moove/admin/settings/redirects.php:40
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
5 plugin tags: url, parent, broken, 404, redirect
redirect-404-to-parent/moove-redirect.php 85% from 13 tests
The main PHP script in "Redirect 404 to parent" version 1.4.1 is automatically included on every request by WordPress
Please take the time to fix the following:
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("redirect-404-to-parent.php" instead of "moove-redirect.php")
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
Success! There were no dangerous files found in this plugin1,325 lines of code in 15 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 13 | 59 | 184 | 779 |
CSS | 1 | 70 | 4 | 515 |
JavaScript | 1 | 3 | 0 | 31 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.41 |
Average class complexity | 11.75 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 42.00 |
Average method complexity | 3.87 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 10.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 15 | |
▷ Static methods | 7 | 46.67% |
▷ Public methods | 15 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 6 | |
▷ Named functions | 6 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
3 PNG files occupy 0.66MB with 0.46MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/uat-promo-wp.png | 364.67KB | 99.99KB | ▼ 72.58% |
assets/images/logo_moove.png | 3.72KB | 1.45KB | ▼ 60.99% |
assets/images/gdpr-promo-wp.png | 302.79KB | 67.10KB | ▼ 77.84% |