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.02MB] [CPU: ▼9.66ms] Passed 4 tests
Analyzing server-side resources used by Login and Logout Redirect
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 33.61 ▼4.53 |
Dashboard /wp-admin | 3.33 ▼0.01 | 48.66 ▼14.40 |
Posts /wp-admin/edit.php | 3.38 ▲0.03 | 48.05 ▼7.89 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.04 | 91.54 ▼11.80 |
Media Library /wp-admin/upload.php | 3.25 ▲0.03 | 35.41 ▲1.67 |
Server storage [IO: ▲0.08MB] [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: 28 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
db_upgraded |
theysaidso_admin_options |
widget_recent-comments |
widget_recent-posts |
can_compress_scripts |
Browser metrics Passed 4 tests
Checking browser requirements for Login and Logout Redirect
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,876 ▲130 | 13.31 ▼1.05 | 7.27 ▲5.82 | 37.18 ▼1.44 |
Dashboard /wp-admin | 2,199 ▲25 | 5.58 ▲0.06 | 90.04 ▲4.15 | 40.41 ▲2.38 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 2.04 ▲0.04 | 38.93 ▼1.35 | 34.77 ▼4.89 |
Add New Post /wp-admin/post-new.php | 1,530 ▲2 | 23.50 ▲0.57 | 623.10 ▼51.11 | 60.44 ▲1.15 |
Media Library /wp-admin/upload.php | 1,404 ▲1 | 4.18 ▼0.03 | 93.54 ▼6.06 | 39.71 ▼4.74 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-posts
- can_compress_scripts
- db_upgraded
- theysaidso_admin_options
- widget_recent-comments
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please take a closer look at the following
- 2× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/login-and-logout-redirect/admin/partials/login-and-logout-redirect-admin-display.php
- > /wp-content/plugins/login-and-logout-redirect/public/partials/login-and-logout-redirect-public-display.php
- 2× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/login-and-logout-redirect/includes/class-logout-redirect.php:30
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/login-and-logout-redirect/includes/class-login-redirect.php:30
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Please fix the following attributes:
- Screenshots: These screenshots lack descriptions #1, #2 in login-and-logout-redirect/assets to your readme.txt
login-and-logout-redirect/login-and-logout-redirect.php Passed 13 tests
The entry point to "Login and Logout Redirect" version 2.0.3 is a PHP file that has certain tags in its header comment area
102 characters long description:
A WordPress plugin which enables you to redirect users on login and logout or both, in a simplest way.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin623 lines of code in 22 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 14 | 162 | 621 | 421 |
Markdown | 2 | 103 | 0 | 139 |
XML | 1 | 0 | 1 | 50 |
Dockerfile | 1 | 2 | 0 | 7 |
JavaScript | 2 | 4 | 54 | 6 |
CSS | 2 | 0 | 8 | 0 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
Average class complexity | 5.89 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 28.00 |
Average method complexity | 2.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 9 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 9 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 44 | |
▷ Static methods | 2 | 4.55% |
▷ Public methods | 36 | 81.82% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 8 | 18.18% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 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