Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼2.89ms] Passed 4 tests
A check of server-side resources used by Easy 301 Redirects
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.00 | 39.97 ▼5.75 |
Dashboard /wp-admin | 3.31 ▲0.01 | 46.55 ▲0.75 |
Posts /wp-admin/edit.php | 3.36 ▲0.01 | 46.28 ▼6.63 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 112.52 ▲5.26 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 33.55 ▲0.08 |
Easy 301 Redirects /wp-admin/options-general.php?page=simple301options | 3.20 | 31.55 |
Easy 301 Redirects Creator /wp-admin/options-general.php?page=simple301optionscreator | 3.20 | 28.56 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
can_compress_scripts |
db_upgraded |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-posts |
Browser metrics Passed 4 tests
Checking browser requirements for Easy 301 Redirects
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,808 ▲37 | 13.20 ▼1.18 | 1.70 ▼0.26 | 39.12 ▼2.89 |
Dashboard /wp-admin | 2,217 ▲32 | 5.86 ▼0.04 | 100.80 ▼1.16 | 38.25 ▼6.80 |
Posts /wp-admin/edit.php | 2,097 ▲8 | 2.05 ▲0.00 | 38.54 ▼2.24 | 34.47 ▼4.11 |
Add New Post /wp-admin/post-new.php | 6,302 ▲4,769 | 19.30 ▼4.06 | 894.14 ▲290.23 | 60.15 ▼2.54 |
Media Library /wp-admin/upload.php | 1,399 ▲8 | 4.24 ▲0.04 | 96.24 ▼0.74 | 40.56 ▼1.90 |
Easy 301 Redirects /wp-admin/options-general.php?page=simple301options | 813 | 2.04 | 23.75 | 25.02 |
Easy 301 Redirects Creator /wp-admin/options-general.php?page=simple301optionscreator | 786 | 2.02 | 24.88 | 27.52 |
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
You still need to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-posts
- widget_theysaidso_widget
- db_upgraded
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Almost there! Just fix the following items
- 2× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/odihost-easy-redirect-301/includes/meta-box.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/odihost-easy-redirect-301/includes/meta-box.php:2
- > 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)
Everything seems fine on the user side
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
3 plugin tags: redirect, 301, easy 301 redirect
odihost-easy-redirect-301/easy-301-redirect.php 92% from 13 tests
The main PHP file in "Easy 301 Redirects" ver. 1.33 adds more information about the plugin and also serves as the entry point for this plugin
Please make the necessary changes and fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("odihost-easy-redirect-301.php" instead of "easy-301-redirect.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin201 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 64 | 97 | 201 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.44 |
Average class complexity | 21.00 |
▷ Minimum class complexity | 21.00 |
▷ Maximum class complexity | 21.00 |
Average method complexity | 3.71 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 13.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 | 0 | 0.00% |
▷ Public methods | 8 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 4 | |
▷ Named functions | 4 | 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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG files were detected