Benchmarks
Plugin footprint 57% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The following installer errors require your attention
- Install procedure validation failed for this plugin
- > Notice in wp-content/plugins/lh-login-page/lh-login-page.php+712
Trying to access array offset on value of type bool
Server metrics [RAM: ▼0.55MB] [CPU: ▼17.83ms] Passed 4 tests
Server-side resources used by LH Login Page
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.60 ▲0.14 | 42.68 ▲3.72 |
Dashboard /wp-admin | 3.43 ▲0.13 | 49.51 ▼8.09 |
Posts /wp-admin/edit.php | 3.54 ▲0.19 | 52.00 ▼4.07 |
Add New Post /wp-admin/post-new.php | 3.31 ▼2.58 | 47.23 ▼61.63 |
Media Library /wp-admin/upload.php | 3.35 ▲0.13 | 39.66 ▲2.46 |
Login Page /wp-admin/options-general.php?page=lh-login-page/lh-login-page.php | 3.33 | 34.11 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] 67% from 3 tests
Filesystem and database footprint
Just a few items left to fix
- There were 1 file (4.00KB) illegally modified outside of "wp-content/plugins/lh-login-page/" and "wp-content/uploads/"
- (new file) wp-content/mgd_mirror/mgd_maximinodotpy-gitdown-test-repository
Filesystem: 9 new files
Database: no new tables, 7 new options
New WordPress options |
---|
db_upgraded |
widget_theysaidso_widget |
widget_recent-posts |
theysaidso_admin_options |
widget_recent-comments |
can_compress_scripts |
lh_login_page-options |
Browser metrics Passed 4 tests
A check of browser resources used by LH Login Page
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,821 ▲60 | 14.47 ▼0.07 | 1.63 ▼0.31 | 41.38 ▲0.37 |
Dashboard /wp-admin | 2,228 ▲22 | 4.83 ▼1.07 | 112.15 ▲9.79 | 41.98 ▼4.55 |
Posts /wp-admin/edit.php | 2,104 ▲1 | 2.01 ▲0.03 | 40.06 ▼2.32 | 37.08 ▼3.85 |
Add New Post /wp-admin/post-new.php | 1,549 ▲17 | 23.15 ▼0.35 | 648.08 ▼29.79 | 47.29 ▼15.74 |
Media Library /wp-admin/upload.php | 1,401 ▲1 | 4.29 ▲0.05 | 98.68 ▼6.56 | 46.24 ▲0.07 |
Login Page /wp-admin/options-general.php?page=lh-login-page/lh-login-page.php | 877 | 2.02 | 25.17 | 26.72 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- This plugin does not fully uninstall, leaving 7 options in the database
- can_compress_scripts
- widget_recent-comments
- widget_theysaidso_widget
- lh_login_page-options
- db_upgraded
- theysaidso_admin_options
- widget_recent-posts
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
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=lh-login-page/lh-login-page.php
- > Notice in wp-content/plugins/lh-login-page/partials/option-settings.php+13
Undefined index: lh_login_page-use_email
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=lh-login-page/lh-login-page.php
- > Notice in wp-content/plugins/lh-login-page/partials/option-settings.php+20
Undefined index: lh_login_page-allow_redirects
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=lh-login-page/lh-login-page.php
- > Notice in wp-content/plugins/lh-login-page/partials/option-settings.php+27
Undefined index: lh_login_page-appmode_prompt_logon
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
- 2× 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/lh-login-page/partials/option-settings.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function is_user_logged_in() in wp-content/plugins/lh-login-page/partials/lh_login_page_shortcode_output.php:5
- > 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 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
6 plugin tags: widget, modal, login, popup, frontend...
lh-login-page/lh-login-page.php 92% from 13 tests
The main file in "LH Login Page" v. 2.14 serves as a complement to information provided in readme.txt and as the entry point to the plugin
It is important to fix the following:
- Text Domain: The text domain follows the same naming rules as the plugin slug: lowercase characters and dashes
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin650 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 561 | 57 | 545 |
JavaScript | 4 | 109 | 15 | 105 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.43 |
Average class complexity | 51.50 |
▷ Minimum class complexity | 13.00 |
▷ Maximum class complexity | 90.00 |
Average method complexity | 3.36 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 17.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 38 | |
▷ Static methods | 3 | 7.89% |
▷ Public methods | 30 | 78.95% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 8 | 21.05% |
Functions | 2 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 2 | 100.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
PNG images were not found in this plugin