Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▼0.17MB] [CPU: ▼19.13ms] Passed 4 tests
This is a short check of server-side resources used by Logout Redirect
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.40 ▼0.06 | 30.02 ▼14.50 |
Dashboard /wp-admin | 3.19 ▼0.11 | 35.08 ▼18.48 |
Posts /wp-admin/edit.php | 3.27 ▼0.09 | 36.59 ▼15.80 |
Add New Post /wp-admin/post-new.php | 5.46 ▼0.43 | 76.25 ▼27.74 |
Media Library /wp-admin/upload.php | 3.20 ▼0.03 | 32.18 ▼4.42 |
Logout Redirect /wp-admin/options-general.php?page=logout-redirect-options | 3.16 | 31.56 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 11 new files
Database: no new tables, 8 new options
New WordPress options |
---|
logout_redirect_type |
can_compress_scripts |
logout_redirect_customise_url |
db_upgraded |
widget_recent-comments |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-posts |
Browser metrics Passed 4 tests
Checking browser requirements for Logout Redirect
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲33 | 13.31 ▼1.20 | 1.82 ▼0.29 | 44.35 ▼1.21 |
Dashboard /wp-admin | 2,210 ▲31 | 4.88 ▼1.02 | 105.15 ▼8.00 | 46.10 ▲3.44 |
Posts /wp-admin/edit.php | 2,096 ▲10 | 2.00 ▼0.01 | 34.06 ▼1.89 | 33.64 ▼1.16 |
Add New Post /wp-admin/post-new.php | 1,522 ▼11 | 23.27 ▲0.24 | 674.41 ▼9.54 | 58.04 ▲6.46 |
Media Library /wp-admin/upload.php | 1,392 ▲1 | 4.20 ▼0.04 | 95.08 ▼9.32 | 46.84 ▲3.37 |
Logout Redirect /wp-admin/options-general.php?page=logout-redirect-options | 817 | 2.06 | 24.35 | 28.65 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
- The uninstall procedure has failed, leaving 8 options in the database
- theysaidso_admin_options
- widget_theysaidso_widget
- logout_redirect_type
- db_upgraded
- widget_recent-posts
- can_compress_scripts
- widget_recent-comments
- logout_redirect_customise_url
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
These server-side errors were triggered
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=logout-redirect-options
- > Notice in wp-content/plugins/logout-redirect/logout-redirect.php+55
Undefined index: HTTPS
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
- 2× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/logout-redirect/logout-redirect.php:34
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/logout-redirect/options.php:8
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
2 plugin tags: post, redirect
logout-redirect/logout-redirect.php Passed 13 tests
The main PHP file in "Logout Redirect" ver. 1.0.2 adds more information about the plugin and also serves as the entry point for this plugin
63 characters long description:
Redirect to a link after logout. 登出後跳轉至特定鏈接
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
No dangerous file extensions were detected157 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 17 | 25 | 95 |
PO File | 2 | 27 | 40 | 62 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.17 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 8 | |
▷ Named functions | 8 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 100.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