Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.01MB] [CPU: ▼297.15ms] Passed 4 tests
A check of server-side resources used by WP Redirect url
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.55 ▲0.03 | 66.72 ▲15.94 |
Dashboard /wp-admin | 3.44 ▲0.03 | 35.52 ▲1.68 |
Posts /wp-admin/edit.php | 3.67 ▲0.03 | 38.46 ▲0.69 |
Add New Post /wp-admin/post-new.php | 6.91 ▼0.06 | 95.27 ▼1,191.25 |
Media Library /wp-admin/upload.php | 3.32 ▲0.03 | 25.85 ▲0.30 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 8 new files
Database: 1 new table, no new options
New tables |
---|
wpru_dbtable |
Browser metrics Passed 4 tests
A check of browser resources used by WP Redirect url
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,811 ▲57 | 15.60 ▼0.31 | 5.59 ▼0.14 | 2.22 ▼0.62 |
Dashboard /wp-admin | 2,919 ▲58 | 5.98 ▼0.19 | 116.57 ▼15.05 | 178.37 ▲13.88 |
Posts /wp-admin/edit.php | 2,730 ▲42 | 3.00 ▼0.24 | 62.96 ▲0.46 | 142.38 ▼0.29 |
Add New Post /wp-admin/post-new.php | 1,990 ▲329 | 21.10 ▲4.38 | 422.57 ▲12.58 | 155.89 ▼1.50 |
Media Library /wp-admin/upload.php | 1,737 ▲39 | 5.48 ▼0.03 | 127.54 ▼11.59 | 208.16 ▲20.47 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The plugin uninstalled successfully, without leaving any zombie files or tables
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
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× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'WPRU_settings' not found in wp-content/plugins/wp-redirect-url/admin/wpru-admin.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/wp-redirect-url/views/wpru-settings-view.php:4
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
Optimizations
Plugin configuration 96% 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
9 plugin tags: 404, wp redirect url, 301 redirect, 302 redirect, redirection...
wp-redirect-url/wp-redirect-url.php 92% from 13 tests
The main PHP script in "WP Redirect url" version 1.0.0 is automatically included on every request by WordPress
You should first fix the following items:
- Domain Path: The domain path folder was not found ("/languages")
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
Success! There were no dangerous files found in this plugin393 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 83 | 10 | 214 |
CSS | 1 | 37 | 0 | 139 |
JavaScript | 1 | 14 | 0 | 29 |
SVG | 1 | 0 | 0 | 11 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
Average class complexity | 5.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 9.00 |
Average method complexity | 1.80 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 4.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 10 | |
▷ Static methods | 10 | 100.00% |
▷ Public methods | 10 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 7 | |
▷ Named functions | 7 | 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
Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG images were found in this plugin