Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully
Server metrics [RAM: ▼0.02MB] [CPU: ▼307.14ms] Passed 4 tests
An overview of server-side resources used by WPi Custom Logout - Redirect to home page on Logout
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.40 | 58.01 ▲39.17 |
Dashboard /wp-admin | 3.41 ▲0.01 | 33.23 ▼2.89 |
Posts /wp-admin/edit.php | 3.64 ▲0.01 | 39.42 ▼0.86 |
Add New Post /wp-admin/post-new.php | 6.88 ▼0.09 | 94.55 ▼1,230.13 |
Media Library /wp-admin/upload.php | 3.30 ▲0.00 | 31.41 ▲5.33 |
Server storage [IO: ▲0.00MB] [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: 2 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
A check of browser resources used by WPi Custom Logout - Redirect to home page on Logout
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,763 ▲17 | 15.23 ▼0.44 | 5.67 ▼0.64 | 2.80 ▲0.46 |
Dashboard /wp-admin | 2,892 ▲38 | 6.12 ▼0.06 | 123.84 ▼98.54 | 172.85 ▲4.79 |
Posts /wp-admin/edit.php | 2,672 ▼19 | 3.25 ▲0.01 | 69.06 ▲3.33 | 214.37 ▲10.76 |
Add New Post /wp-admin/post-new.php | 1,660 ▼30 | 21.34 ▲0.81 | 439.53 ▼40.14 | 188.27 ▼37.62 |
Media Library /wp-admin/upload.php | 1,698 ▲3 | 5.53 ▲0.04 | 184.81 ▲37.27 | 209.18 ▼64.24 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Uninstaller ran successfully
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 50% 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
The following issues need your attention
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/wpi-custom-logout/wpi-custom-logout.php
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need your attention:
- Tags: Too many tags (13 tag instead of maximum 10); only the first 5 tags are used in your directory listing
wpi-custom-logout/wpi-custom-logout.php 85% from 13 tests
"WPi Custom Logout - Redirect to home page on Logout" version 1.1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
It is important to fix the following:
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
- Domain Path: The domain path points to a folder that does not exist ("/locale/")
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
There were no executable files found in this plugin11 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 0 | 14 | 11 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.40 |
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 | 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
Using a strong compression for your PNG files is a great way to speed-up your plugin
There are no PNG files in this plugin