Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▲0.06MB] [CPU: ▲0.76ms] Passed 4 tests
This is a short check of server-side resources used by Login Redirect Url
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.06 | 41.99 ▼1.39 |
Dashboard /wp-admin | 3.36 ▲0.06 | 50.88 ▲0.56 |
Posts /wp-admin/edit.php | 3.47 ▲0.12 | 50.09 ▲4.89 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.06 | 96.14 ▲7.84 |
Media Library /wp-admin/upload.php | 3.28 ▲0.06 | 34.56 ▼1.03 |
Login Redirect URL /wp-admin/options-general.php?page=login-redirect-url/class-login-redirect-url.php | 3.25 | 32.24 |
Server storage [IO: ▲0.15MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
widget_recent-comments |
widget_theysaidso_widget |
theysaidso_admin_options |
can_compress_scripts |
db_upgraded |
Browser metrics Passed 4 tests
An overview of browser requirements for Login Redirect Url
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲69 | 14.77 ▲0.54 | 1.76 ▲0.01 | 42.81 ▼1.78 |
Dashboard /wp-admin | 2,210 ▲22 | 5.81 ▲0.94 | 106.29 ▲7.40 | 40.01 ▼0.77 |
Posts /wp-admin/edit.php | 2,096 ▲7 | 2.01 ▼0.04 | 39.05 ▲3.90 | 35.41 ▲4.28 |
Add New Post /wp-admin/post-new.php | 1,538 ▲19 | 23.39 ▲0.27 | 669.37 ▲24.74 | 58.21 ▲9.59 |
Media Library /wp-admin/upload.php | 1,395 ▲10 | 4.24 ▲0.05 | 94.62 ▼0.95 | 42.29 ▼0.79 |
Login Redirect URL /wp-admin/options-general.php?page=login-redirect-url/class-login-redirect-url.php | 813 | 2.06 | 23.73 | 26.50 |
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 6 options in the database
- widget_theysaidso_widget
- db_upgraded
- widget_recent-comments
- theysaidso_admin_options
- widget_recent-posts
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not 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
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function register_uninstall_hook() in wp-content/plugins/login-redirect-url/login-redirect-url.php:48
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that need to be fixed:
- Screenshots: These screenshots require images: #1 (user edit dialog), #2 (plugin settings dialog), #3 (user list dialog)
login-redirect-url/login-redirect-url.php 85% from 13 tests
Analyzing the main PHP file in "Login Redirect Url" version 0.1
You should first fix the following items:
- Domain Path: Note that the domain path follows the same naming rules as the domain name, using only dashes and lowercase characters ("languages")
- Domain Path: The domain path should be prefixed with a forward slash character ("/languages")
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 plugin278 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 31 | 115 | 149 |
PO File | 2 | 41 | 90 | 129 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.21 |
Average class complexity | 13.00 |
▷ Minimum class complexity | 13.00 |
▷ Maximum class complexity | 13.00 |
Average method complexity | 2.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 6.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 | 12 | |
▷ Static methods | 11 | 91.67% |
▷ Public methods | 12 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.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
3 PNG files occupy 0.13MB with 0.09MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-2.png | 45.72KB | 12.71KB | ▼ 72.20% |
screenshot-1.png | 18.21KB | 4.94KB | ▼ 72.88% |
screenshot-3.png | 68.36KB | 19.95KB | ▼ 70.82% |