Benchmarks
Plugin footprint 65% 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.76MB] [CPU: ▲4.20ms] Passed 4 tests
Analyzing server-side resources used by LoginWP (Formerly Peter's Login Redirect)
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.21 ▲0.75 | 54.77 ▲14.08 |
Dashboard /wp-admin | 4.06 ▲0.76 | 52.23 ▲0.95 |
Posts /wp-admin/edit.php | 4.11 ▲0.76 | 50.36 ▲3.36 |
Add New Post /wp-admin/post-new.php | 6.67 ▲0.78 | 97.71 ▲4.80 |
Media Library /wp-admin/upload.php | 3.99 ▲0.76 | 39.99 ▲7.67 |
FuseWP NEW /wp-admin/admin.php?page=loginwp-fusewp | 3.90 | 35.59 |
Settings /wp-admin/admin.php?page=loginwp-settings | 3.89 | 39.42 |
Redirection Rules /wp-admin/admin.php?page=loginwp-redirections | 4.19 | 39.23 |
Server storage [IO: ▲0.62MB] [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: 177 new files
Database: 1 new table, 8 new options
New tables |
---|
wp_login_redirects |
New WordPress options |
---|
loginwp_from_ab_initio |
widget_recent-posts |
widget_theysaidso_widget |
loginwp_install_date |
db_upgraded |
widget_recent-comments |
can_compress_scripts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
A check of browser resources used by LoginWP (Formerly Peter's Login Redirect)
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,849 ▲114 | 13.29 ▼1.39 | 2.21 ▲0.21 | 38.32 ▼12.31 |
Dashboard /wp-admin | 2,255 ▲67 | 4.89 ▼1.01 | 112.25 ▼3.84 | 45.45 ▲2.11 |
Posts /wp-admin/edit.php | 2,138 ▲49 | 2.05 ▲0.01 | 40.54 ▲3.47 | 37.10 ▲2.07 |
Add New Post /wp-admin/post-new.php | 1,566 ▲47 | 18.26 ▼4.93 | 621.39 ▼62.82 | 67.70 ▲7.38 |
Media Library /wp-admin/upload.php | 1,440 ▲49 | 4.25 ▼0.06 | 96.34 ▼15.24 | 43.73 ▼2.76 |
FuseWP NEW /wp-admin/admin.php?page=loginwp-fusewp | 920 | 2.26 | 27.26 | 44.18 |
Settings /wp-admin/admin.php?page=loginwp-settings | 1,128 | 1.91 | 27.34 | 33.28 |
Redirection Rules /wp-admin/admin.php?page=loginwp-redirections | 1,545 | 2.24 | 29.63 | 35.06 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
- The uninstall procedure failed, leaving 1 table in the database
- wp_login_redirects
- Zombie WordPress options detected upon uninstall: 8 options
- widget_recent-comments
- widget_recent-posts
- loginwp_from_ab_initio
- loginwp_install_date
- db_upgraded
- can_compress_scripts
- widget_theysaidso_widget
- theysaidso_admin_options
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Almost there, just fix the following server-side errors
- > GET request to /wp-admin/admin.php?page=loginwp-settings
- > Notice in wp-content/plugins/peters-login-redirect/src/core/src/Admin/SettingsPageApi.php+1011
Undefined index: default_value
SRP 0% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The following issues need your attention
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/peters-login-redirect/wplogin_redirect_control.php
- 124× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/peters-login-redirect/vendor/composer/installers/src/Composer/Installers/MantisBTInstaller.php:6
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/peters-login-redirect/vendor/composer/installers/src/Composer/Installers/OsclassInstaller.php:5
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/peters-login-redirect/vendor/composer/installers/src/Composer/Installers/WHMCSInstaller.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/peters-login-redirect/src/core/src/MoAdminNotice.php:9
- > PHP Warning
require_once(ABSPATHwp-admin/includes/class-wp-upgrader-skin.php): failed to open stream: No such file or directory in wp-content/plugins/peters-login-redirect/src/core/src/Admin/Installer/PluginSilentUpgraderSkin.php on line 6
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/peters-login-redirect/vendor/composer/installers/src/Composer/Installers/GravInstaller.php:4
- > PHP Warning
require_once(ABSPATHwp-admin/includes/class-wp-upgrader.php): failed to open stream: No such file or directory in wp-content/plugins/peters-login-redirect/src/core/src/Admin/Installer/PluginSilentUpgrader.php on line 10
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/peters-login-redirect/vendor/composer/installers/src/Composer/Installers/CodeIgniterInstaller.php:4
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/peters-login-redirect/vendor/composer/installers/src/Composer/Installers/DrupalInstaller.php:4
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/peters-login-redirect/vendor/composer/installers/src/Composer/Installers/MODULEWorkInstaller.php:4
- > 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)
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need your attention:
- Screenshots: Please a description for screenshot #4 in peters-login-redirect/assets to your readme.txt
peters-login-redirect/wplogin_redirect.php 92% from 13 tests
The main file in "LoginWP (Formerly Peter's Login Redirect)" v. 3.0.8.5 serves as a complement to information provided in readme.txt and as the entry point to the plugin
You should first fix the following items:
- Main file name: Name the main plugin file the same as the plugin slug ("peters-login-redirect.php" instead of "wplogin_redirect.php")
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 detected8,359 lines of code in 157 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 140 | 1,631 | 1,902 | 7,192 |
JSON | 4 | 0 | 0 | 415 |
JavaScript | 4 | 100 | 49 | 267 |
CSS | 1 | 48 | 0 | 249 |
YAML | 3 | 31 | 3 | 123 |
Markdown | 2 | 39 | 0 | 110 |
SVG | 3 | 0 | 0 | 3 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
Average class complexity | 6.36 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 104.00 |
Average method complexity | 2.95 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 26.00 |
Code structure | ||
---|---|---|
Namespaces | 8 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 122 | |
▷ Abstract classes | 2 | 1.64% |
▷ Concrete classes | 120 | 98.36% |
▷ Final classes | 0 | 0.00% |
Methods | 345 | |
▷ Static methods | 76 | 22.03% |
▷ Public methods | 280 | 81.16% |
▷ Protected methods | 54 | 15.65% |
▷ Private methods | 11 | 3.19% |
Functions | 33 | |
▷ Named functions | 14 | 42.42% |
▷ Anonymous functions | 19 | 57.58% |
Constants | 18 | |
▷ Global constants | 10 | 55.56% |
▷ Class constants | 8 | 44.44% |
▷ Public constants | 8 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
5 PNG files occupy 0.19MB with 0.05MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
src/core/assets/images/loginwpXprofilepress.png | 8.67KB | 9.23KB | 0.00% |
src/core/assets/images/fusewp-user-sync-edit-screen.png | 69.11KB | 69.12KB | 0.00% |
src/core/assets/images/ppress-login-form.png | 21.60KB | 25.31KB | 0.00% |
src/core/assets/images/loginwp.png | 15.02KB | 6.61KB | ▼ 55.97% |
src/core/assets/images/fusewp-x-loginwp.png | 80.89KB | 19.95KB | ▼ 75.34% |