Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▼1.92MB] [CPU: ▼56.01ms] Passed 4 tests
Analyzing server-side resources used by Login External Redirect
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.08 ▼1.38 | 4.70 ▼41.87 |
Dashboard /wp-admin | 2.10 ▼1.25 | 6.35 ▼53.09 |
Posts /wp-admin/edit.php | 2.10 ▼1.26 | 6.34 ▼43.52 |
Add New Post /wp-admin/post-new.php | 2.10 ▼3.79 | 5.83 ▼85.57 |
Media Library /wp-admin/upload.php | 2.10 ▼1.13 | 5.96 ▼24.93 |
Redirect /wp-admin/options-general.php?page=login-external-redirect | 2.10 | 5.50 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
widget_recent-posts |
theysaidso_admin_options |
can_compress_scripts |
db_upgraded |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Login External Redirect: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲69 | 13.73 ▼1.01 | 1.80 ▼0.26 | 43.53 ▼5.54 |
Dashboard /wp-admin | 2,213 ▲25 | 4.84 ▼1.09 | 112.19 ▲5.02 | 40.07 ▼2.60 |
Posts /wp-admin/edit.php | 2,096 ▲4 | 2.06 ▲0.02 | 39.07 ▼4.43 | 35.46 ▼1.35 |
Add New Post /wp-admin/post-new.php | 1,536 ▲3 | 23.10 ▲0.15 | 656.89 ▲4.31 | 53.27 ▼6.42 |
Media Library /wp-admin/upload.php | 1,392 ▲7 | 4.21 ▼0.06 | 94.55 ▼9.71 | 40.69 ▼7.53 |
Redirect /wp-admin/options-general.php?page=login-external-redirect | 842 | 2.06 | 23.99 | 29.23 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- Uninstall procedure validation failed for this plugin
- > Warning in wp-content/plugins/login-external-redirect/login-external-redirect.php+46
Use of undefined constant HTTP_HOST - assumed 'HTTP_HOST' (this will throw an Error in a future version of PHP)
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-posts
- widget_recent-comments
- db_upgraded
- can_compress_scripts
- theysaidso_admin_options
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Please fix the following server-side errors
- > GET request to /wp-admin/options-general.php?page=login-external-redirect
- > Warning in wp-content/plugins/login-external-redirect/login-external-redirect.php+46
Use of undefined constant HTTP_HOST - assumed 'HTTP_HOST' (this will throw an Error in a future version of PHP)
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/login-external-redirect/login-external-redirect.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 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
4 plugin tags: user logged in wp-admin, redirect non logged in user to another site, redirect, login
login-external-redirect/login-external-redirect.php Passed 13 tests
"Login External Redirect" version 1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
90 characters long description:
This plugin can redirect non users or not signed in users to any external or internal url.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Good job! No executable or dangerous file extensions detected122 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 13 | 49 | 122 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
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 | 4 | |
▷ Named functions | 4 | 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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG files were detected