Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
These installer errors require your attention
- The plugin did not install without errors
- > Notice in wp-content/plugins/wp-login-box/plugin.php+13
Trying to access array offset on value of type bool
Server metrics [RAM: ▼2.46MB] [CPU: ▼376.31ms] Passed 4 tests
This is a short check of server-side resources used by WP Login Box
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 1.91 ▼1.61 | 4.69 ▼48.77 |
Dashboard /wp-admin | 1.93 ▼1.48 | 5.04 ▼31.48 |
Posts /wp-admin/edit.php | 1.93 ▼1.71 | 5.10 ▼93.05 |
Add New Post /wp-admin/post-new.php | 1.93 ▼5.04 | 4.22 ▼1,331.95 |
Media Library /wp-admin/upload.php | 1.93 ▼1.37 | 4.35 ▼26.75 |
WPLB Options /wp-admin/options-general.php?page=options-general.php_wplb_options | 1.93 | 5.28 |
Server storage [IO: ▲0.47MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 40 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
WP Login Box: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,803 ▲49 | 15.18 ▼0.60 | 7.26 ▲1.37 | 2.86 ▲0.05 |
Dashboard /wp-admin | 2,897 ▲36 | 6.15 ▼0.03 | 115.75 ▼29.73 | 158.83 ▼11.62 |
Posts /wp-admin/edit.php | 2,696 ▲11 | 3.24 ▲0.00 | 61.18 ▼32.64 | 136.66 ▼49.23 |
Add New Post /wp-admin/post-new.php | 1,701 ▼51 | 22.33 ▲1.34 | 448.09 ▼8.75 | 159.37 ▼26.02 |
Media Library /wp-admin/upload.php | 1,700 ▼1 | 5.54 ▲0.01 | 147.44 ▲6.16 | 183.93 ▼75.72 |
WPLB Options /wp-admin/options-general.php?page=options-general.php_wplb_options | 1,385 | 3.17 | 69.60 | 201.04 |
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
These items require your attention
- The plugin did not uninstall gracefully
- > Notice in wp-content/plugins/wp-login-box/plugin.php+13
Trying to access array offset on value of type bool
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
These errors were triggered by the plugin
- 8 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=options-general.php_wplb_options
- > POST request to /wp-admin/admin-ajax.php
- > Notice in wp-content/plugins/wp-login-box/plugin.php+210
Trying to access array offset on value of type bool
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=options-general.php_wplb_options
- > POST request to /wp-admin/admin-ajax.php
- > User notice in wp-includes/functions.php+5768
wp_register_style was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the wplbstyle handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
SRP 50% 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 fix the following items
- 5× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/wp-login-box/out.php:18
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/wp-login-box/widget/in.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/wp-login-box/widget/out.php:18
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/wp-login-box/plugin.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/wp-login-box/in.php:3
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Please take a look at the following user-side issues
- > GET request to /wp-admin/options-general.php?page=options-general.php_wplb_options
- > Console-api (warning) in unknown
/wp-includes/js/jquery/jquery.min.js?ver=3.6.0 1:31592 "jQuery.Deferred exception: Cannot read properties of undefined (reading 'msie')" "TypeError: Cannot read properties of undefined (reading 'msie')\n at $.\u003Ccomputed>.disableTextSelection (/wp-content/plugins/wp-login-box/admin-page-class/js/iphone-style-checkboxes/iphone-style-checkboxes.js:53:20)\n at new $.\u003Ccomputed> (/wp-content/plugins/wp-login-box/admin-page-class/js/iphone-style-checkboxes/iphone-style-checkboxes.js:20:8)\n at HTMLInputElement.\u003Canonymous> (/wp-content/plugins/wp-login-box/admin-page-class/js/iphone-style-checkboxes/iphone-style-checkboxes.js:168:31)\n at Function.each (/wp-includes/js/jquery/jquery.min.js?ver=3.6.0:2:3003)\n at s.fn.init.each (/wp-includes/js/jquery/jquery.min.js?ver=3.6.0:2:1481)\n at s.fn.init.$.fn.\u003Ccomputed> [as iphoneStyle] (/wp-content/plugins/wp-login-box/admin-page-class/js/iphone-style-checkboxes/iphone-style-checkboxes.js:167:14)\n at HTMLDocument.\u003Canonymous> (/wp-content/plugins/wp-login-box/admin-page-class/js/Admin_Page_Class.js:214:22)\n at e (/wp-includes/js/jquery/jquery.min.js?ver=3.6.0:2:30038)\n at t (/wp-includes/js/jquery/jquery.min.js?ver=3.6.0:2:30340)" undefined
- > GET request to /wp-admin/options-general.php?page=options-general.php_wplb_options
- > Javascript (severe) in unknown
/wp-includes/js/jquery/jquery.min.js?ver=3.6.0 1:31702 Uncaught TypeError: Cannot read properties of undefined (reading 'msie')
Optimizations
Plugin configuration 93% 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
Attributes that require attention:
- Screenshots: Add images for these screenshots: #1 (The Log-In form with the Blue style.), #2 (The Log-In form with the Dark style.), #3 (The Log-Out form with the Dark style.), #4 (The options panel.)
wp-login-box/plugin.php 92% from 13 tests
The main file in "WP Login Box" v. 2.0.2 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:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("wp-login-box.php" instead of "plugin.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
There were no executable files found in this plugin7,881 lines of code in 24 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 9 | 479 | 584 | 5,038 |
PHP | 6 | 371 | 1,212 | 2,118 |
CSS | 9 | 63 | 26 | 725 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.36 |
Average class complexity | 154.50 |
▷ Minimum class complexity | 5.00 |
▷ Maximum class complexity | 304.00 |
Average method complexity | 3.72 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 29.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 | 113 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 110 | 97.35% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 3 | 2.65% |
Functions | 7 | |
▷ Named functions | 7 | 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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
14 PNG files occupy 0.07MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin-page-class/js/iphone-style-checkboxes/images/on.png | 2.44KB | 2.48KB | 0.00% |
admin-page-class/images/add.png | 1.84KB | 1.49KB | ▼ 19.11% |
screenshot-4.png | 48.59KB | 17.58KB | ▼ 63.82% |
screenshot-1.png | 4.75KB | 2.47KB | ▼ 48.05% |
admin-page-class/images/remove.png | 2.15KB | 1.67KB | ▼ 22.25% |