Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The following installer errors require your attention
- The plugin cannot be installed
- > Deprecated in wp-content/plugins/sb-login/sb-login.php+117
Methods with the same name as their class will not be constructors in a future version of PHP; NinetyAjaxLogin has a deprecated constructor
Server metrics [RAM: ▼1.85MB] [CPU: ▼56.70ms] Passed 4 tests
An overview of server-side resources used by SB Login
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.13 ▼1.33 | 4.98 ▼36.82 |
Dashboard /wp-admin | 2.15 ▼1.15 | 11.28 ▼48.26 |
Posts /wp-admin/edit.php | 2.16 ▼1.20 | 7.74 ▼47.77 |
Add New Post /wp-admin/post-new.php | 2.16 ▼3.73 | 7.10 ▼93.94 |
Media Library /wp-admin/upload.php | 2.16 ▼1.07 | 5.19 ▼34.57 |
Server Information /wp-admin/admin.php?page=sbl_server_info | 2.16 | 5.53 |
Settings /wp-admin/admin.php?page=sbl_settings | 2.16 | 5.58 |
How to Use /wp-admin/admin.php?page=sb-login/sbl_admin.php | 2.16 | 5.97 |
Server storage [IO: ▲0.12MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 26 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-posts |
widget_recent-comments |
can_compress_scripts |
db_upgraded |
Browser metrics Passed 4 tests
An overview of browser requirements for SB Login
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,936 ▲175 | 13.69 ▼0.53 | 8.73 ▲6.79 | 43.04 ▼5.16 |
Dashboard /wp-admin | 2,236 ▲33 | 4.94 ▼0.95 | 105.41 ▲0.44 | 76.75 ▲33.53 |
Posts /wp-admin/edit.php | 2,133 ▲33 | 2.00 ▼0.01 | 39.97 ▼4.67 | 32.82 ▼7.31 |
Add New Post /wp-admin/post-new.php | 1,569 ▲23 | 23.11 ▲0.03 | 660.38 ▲5.38 | 56.60 ▼0.04 |
Media Library /wp-admin/upload.php | 1,433 ▲36 | 4.23 ▼0.03 | 108.67 ▲5.99 | 51.73 ▲4.59 |
Server Information /wp-admin/admin.php?page=sbl_server_info | 1,194 | 4.49 | 104.97 | 60.14 |
Settings /wp-admin/admin.php?page=sbl_settings | 1,233 | 4.37 | 116.89 | 41.77 |
How to Use /wp-admin/admin.php?page=sb-login/sbl_admin.php | 1,258 | 4.48 | 77.53 | 43.12 |
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
Please fix the following items
- The plugin did not uninstall gracefully
- > Deprecated in wp-content/plugins/sb-login/sb-login.php+117
Methods with the same name as their class will not be constructors in a future version of PHP; NinetyAjaxLogin has a deprecated constructor
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-comments
- widget_recent-posts
- widget_theysaidso_widget
- theysaidso_admin_options
- db_upgraded
- can_compress_scripts
Smoke tests 0% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Almost there, just fix the following server-side errors
- 3 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=sb-login/sbl_admin.php
- > Deprecated in wp-content/plugins/sb-login/sb-login.php+117
Methods with the same name as their class will not be constructors in a future version of PHP; NinetyAjaxLogin has a deprecated constructor
- 3 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=sb-login/sbl_admin.php
- > Deprecated in wp-content/plugins/sb-login/sb-login.php+172
Methods with the same name as their class will not be constructors in a future version of PHP; wp_mail_from has a deprecated constructor
- 3 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=sb-login/sbl_admin.php
- > User deprecated in wp-includes/functions.php+5546
The called constructor method for WP_Widget class in NinetyAjaxLogin is deprecated since version 4.3.0! Use __construct() instead.
- 10 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=sbl_settings
- > Warning in wp-content/plugins/sb-login/admin/settings.php+88
Use of undefined constant Enabled - assumed 'Enabled' (this will throw an Error in a future version of PHP)
SRP 0% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following items
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/sb-login/admin/usage.php
- 16× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function sbl_sidebar() in wp-content/plugins/sb-login/admin/usage.php:69
- > PHP Warning
Use of undefined constant WP_PLUGIN_URL - assumed 'WP_PLUGIN_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/sb-login/admin/settings.php on line 2
- > PHP Warning
Use of undefined constant WP_PLUGIN_URL - assumed 'WP_PLUGIN_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/sb-login/admin/usage.php on line 1
- > PHP Warning
Use of undefined constant WP_PLUGIN_URL - assumed 'WP_PLUGIN_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/sb-login/sb-login.php on line 31
- > PHP Warning
Use of undefined constant WP_PLUGIN_URL - assumed 'WP_PLUGIN_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/sb-login/admin/usage.php on line 61
- > PHP Fatal error
Uncaught Error: Call to undefined function nd_login_current_url() in wp-content/plugins/sb-login/template/register-form.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function load_plugin_textdomain() in wp-content/plugins/sb-login/sb-login.php:33
- > PHP Warning
Use of undefined constant WP_PLUGIN_DIR - assumed 'WP_PLUGIN_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/sb-login/sb-login.php on line 30
- > PHP Warning
Use of undefined constant WP_PLUGIN_URL - assumed 'WP_PLUGIN_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/sb-login/admin/server_info.php on line 50
- > PHP Fatal error
Uncaught Error: Call to undefined function is_user_logged_in() in wp-content/plugins/sb-login/template/tabs.php:2
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Please fix the following user-side errors
- 3 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=sb-login/sbl_admin.php
- > Security (warning) in unknown
security - Error with Permissions-Policy header: Unrecognized feature: 'ambient-light-sensor'.
- 3 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=sb-login/sbl_admin.php
- > Security (warning) in unknown
security - Error with Permissions-Policy header: Unrecognized feature: 'bluetooth'.
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need to be fixed:
- Tags: Please reduce the number of tags, currently 20 tag instead of maximum 10
sb-login/sb-login.php 92% from 13 tests
The primary PHP file in "SB Login" version 2.5 is used by WordPress to initiate all plugin functionality
The following require your attention:
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 233 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Success! There were no dangerous files found in this plugin1,524 lines of code in 14 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 11 | 157 | 40 | 806 |
JavaScript | 2 | 100 | 115 | 463 |
CSS | 1 | 8 | 5 | 255 |
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.30 |
Average class complexity | 2.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 3.00 |
Average method complexity | 1.40 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 3.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 | 5 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 5 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 22 | |
▷ Named functions | 22 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
8 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/icon3.png | 0.42KB | 0.34KB | ▼ 18.52% |
img/input.png | 0.12KB | 0.12KB | 0.00% |
img/icon1.png | 4.96KB | 1.63KB | ▼ 67.05% |
img/icon.png | 0.85KB | 0.85KB | 0.00% |
img/wcz.png | 5.21KB | 5.33KB | 0.00% |