Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully
Server metrics [RAM: ▲0.08MB] [CPU: ▼5.62ms] Passed 4 tests
A check of server-side resources used by Custom Login Form and Logout Redirect
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.54 ▲0.08 | 34.91 ▼11.42 |
Dashboard /wp-admin | 3.38 ▲0.08 | 45.09 ▼3.66 |
Posts /wp-admin/edit.php | 3.43 ▲0.08 | 54.30 ▲9.59 |
Add New Post /wp-admin/post-new.php | 5.96 ▲0.08 | 80.93 ▼5.94 |
Media Library /wp-admin/upload.php | 3.30 ▲0.08 | 34.90 ▼1.46 |
Login Form - Logout /wp-admin/options-general.php?page=login-form-logout-redirect-settings | 3.33 | 31.42 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 13 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-posts |
theysaidso_admin_options |
db_upgraded |
mstteam_login_logout_settings |
widget_recent-comments |
widget_theysaidso_widget |
can_compress_scripts |
Browser metrics Passed 4 tests
Checking browser requirements for Custom Login Form and Logout Redirect
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,890 ▲144 | 13.61 ▼0.83 | 9.22 ▲7.42 | 39.69 ▼4.77 |
Dashboard /wp-admin | 2,213 ▲25 | 4.85 ▼0.96 | 98.52 ▼4.85 | 39.88 ▲0.30 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.00 ▼0.01 | 33.21 ▼0.29 | 36.25 ▼1.78 |
Add New Post /wp-admin/post-new.php | 1,540 ▲19 | 22.83 ▼0.70 | 608.39 ▼3.55 | 51.18 ▼11.99 |
Media Library /wp-admin/upload.php | 1,392 ▲10 | 4.21 ▼0.08 | 93.22 ▼5.59 | 41.25 ▼2.86 |
Login Form - Logout /wp-admin/options-general.php?page=login-form-logout-redirect-settings | 1,180 | 1.91 | 29.91 | 31.24 |
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
Please fix the following items
- Zombie WordPress options were found after uninstall: 7 options
- theysaidso_admin_options
- widget_recent-comments
- widget_theysaidso_widget
- widget_recent-posts
- can_compress_scripts
- mstteam_login_logout_settings
- db_upgraded
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 | 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
- 6× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html__() in wp-content/plugins/custom-login-form-and-logout-redirect/includes/views/settings.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html__() in wp-content/plugins/custom-login-form-and-logout-redirect/includes/views/tab-logout.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html__() in wp-content/plugins/custom-login-form-and-logout-redirect/includes/views/tab-login.php:4
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHwp-admin/includes/plugin.php' (include_path='.:/usr/share/php') in wp-content/plugins/custom-login-form-and-logout-redirect/mst-login-form-and-logout-redirect.php on line 14
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/custom-login-form-and-logout-redirect/mst-login-form-and-logout-redirect.php on line 14
- > PHP Warning
require_once(ABSPATHwp-admin/includes/plugin.php): failed to open stream: No such file or directory in wp-content/plugins/custom-login-form-and-logout-redirect/mst-login-form-and-logout-redirect.php on line 14
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
9 plugin tags: login from for custom post type, custom logout redirect url, custom login form, wordpress logout to custom url, login from for post...
custom-login-form-and-logout-redirect/mst-login-form-and-logout-redirect.php 85% from 13 tests
The principal PHP file in "Custom Login Form and Logout Redirect" v. 1.0.0 is loaded by WordPress automatically on each request
Please take the time to fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("custom-login-form-and-logout-redirect.php" instead of "mst-login-form-and-logout-redirect.php")
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
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
No dangerous file extensions were detected807 lines of code in 11 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 7 | 22 | 10 | 521 |
CSS | 2 | 8 | 1 | 190 |
JavaScript | 2 | 8 | 3 | 96 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.46 |
Average class complexity | 25.00 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 48.00 |
Average method complexity | 4.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 14.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 16 | |
▷ Static methods | 3 | 18.75% |
▷ Public methods | 15 | 93.75% |
▷ Protected methods | 1 | 6.25% |
▷ Private methods | 0 | 0.00% |
Functions | 2 | |
▷ Named functions | 1 | 50.00% |
▷ Anonymous functions | 1 | 50.00% |
Constants | 4 | |
▷ Global constants | 4 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG images were found in this plugin