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
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲1.47MB] [CPU: ▲5.33ms] Passed 4 tests
Server-side resources used by Hide login page, Hide wp admin - stop attack on login page
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.28 ▲0.82 | 49.73 ▲6.38 |
Dashboard /wp-admin | 5.04 ▲1.74 | 64.04 ▲13.96 |
Posts /wp-admin/edit.php | 5.09 ▲1.73 | 57.59 ▲8.14 |
Add New Post /wp-admin/post-new.php | 7.57 ▲1.68 | 107.81 ▼7.18 |
Media Library /wp-admin/upload.php | 4.89 ▲1.66 | 53.46 ▲18.45 |
Hide Login Page /wp-admin/options-general.php?page=hlp_hide_login-wbcr_hide_login_page | 5.85 | 306.63 |
Server storage [IO: ▲1.33MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 222 new files
Database: no new tables, 8 new options
New WordPress options |
---|
wbcr_hlp_plugin_activated |
widget_recent-comments |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-posts |
wbcr_hlp_plugin_version |
db_upgraded |
theysaidso_admin_options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Hide login page, Hide wp admin - stop attack on login page
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,860 ▲103 | 13.36 ▼1.07 | 1.81 ▼0.09 | 42.49 ▼3.70 |
Dashboard /wp-admin | 2,266 ▲75 | 4.89 ▼0.23 | 106.41 ▲6.97 | 43.68 ▼7.67 |
Posts /wp-admin/edit.php | 2,149 ▲60 | 2.06 ▲0.07 | 40.70 ▲0.08 | 35.75 ▼1.53 |
Add New Post /wp-admin/post-new.php | 1,558 ▲44 | 18.24 ▲0.75 | 616.51 ▲6.44 | 60.45 ▲7.50 |
Media Library /wp-admin/upload.php | 1,425 ▲40 | 4.29 ▲0.11 | 97.67 ▲2.39 | 41.54 ▼2.60 |
Hide Login Page /wp-admin/options-general.php?page=hlp_hide_login-wbcr_hide_login_page | 1,227 | 2.44 | 43.01 | 37.95 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-comments
- can_compress_scripts
- widget_theysaidso_widget
- theysaidso_admin_options
- db_upgraded
- widget_recent-posts
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
Even though no errors were found, this is by no means an exhaustive test
SRP 50% 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
Please fix the following
- 3× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Class 'WBCR\\Factory_Templates_115\\Pages\\Step' not found in wp-content/plugins/hide-login-page/libs/factory/templates/pages/setup-parts/class-step-form.php:11
- > PHP Fatal error
Uncaught Error: Class 'Wbcr_FactoryForms462_FontControl' not found in wp-content/plugins/hide-login-page/libs/factory/forms/controls/google-font.php:18
- > PHP Fatal error
Uncaught Error: Class 'WBCR\\Factory_Templates_115\\Pages\\Step' not found in wp-content/plugins/hide-login-page/libs/factory/templates/pages/setup-parts/class-step-custom.php:11
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes:
- Tags: Too many tags (14 tag instead of maximum 10); only the first 5 tags are used in your directory listing
hide-login-page/hide-login-page.php Passed 13 tests
Analyzing the main PHP file in "Hide login page, Hide wp admin - stop attack on login page" version 1.1.7
95 characters long description:
Hide wp-login.php login page and close wp-admin access to avoid hacker attacks and brute force.
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
Good job! No executable or dangerous file extensions detected18,135 lines of code in 164 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 109 | 3,074 | 7,145 | 10,530 |
CSS | 25 | 166 | 251 | 2,570 |
LESS | 6 | 409 | 91 | 1,973 |
JSON | 1 | 0 | 0 | 1,810 |
PO File | 7 | 173 | 241 | 638 |
JavaScript | 15 | 185 | 199 | 612 |
Markdown | 1 | 1 | 0 | 2 |
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.47 |
Average class complexity | 16.35 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 89.00 |
Average method complexity | 3.23 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 31.00 |
Code structure | ||
---|---|---|
Namespaces | 9 | |
Interfaces | 2 | |
Traits | 1 | |
Classes | 93 | |
▷ Abstract classes | 16 | 17.20% |
▷ Concrete classes | 77 | 82.80% |
▷ Final classes | 0 | 0.00% |
Methods | 689 | |
▷ Static methods | 27 | 3.92% |
▷ Public methods | 521 | 75.62% |
▷ Protected methods | 142 | 20.61% |
▷ Private methods | 26 | 3.77% |
Functions | 32 | |
▷ Named functions | 19 | 59.38% |
▷ Anonymous functions | 13 | 40.62% |
Constants | 41 | |
▷ Global constants | 34 | 82.93% |
▷ Class constants | 7 | 17.07% |
▷ Public constants | 7 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
6 PNG files occupy 0.03MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
libs/factory/templates/pages/templates/impressive/assets/img/5-stars22.png | 3.51KB | 0.70KB | ▼ 79.99% |
libs/factory/templates/pages/templates/impressive/assets/img/paypal-donate.png | 12.44KB | 4.99KB | ▼ 59.88% |
libs/factory/templates/pages/templates/impressive-lite/assets/img/webcraftic-plugin-icon.png | 1.97KB | 0.75KB | ▼ 61.79% |
libs/factory/templates/pages/templates/impressive-lite/assets/img/paypal-donate.png | 12.44KB | 4.99KB | ▼ 59.88% |
libs/factory/templates/pages/templates/impressive-lite/assets/img/5-stars22.png | 3.51KB | 0.70KB | ▼ 79.99% |