Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Please fix the following installer errors
- The plugin did not install without errors
- > Notice in wp-content/plugins/stylish-login-pro/stylish-admin-login.php+31
Trying to access array offset on value of type bool
Server metrics [RAM: ▼0.18MB] [CPU: ▼15.19ms] Passed 4 tests
An overview of server-side resources used by Stylish Login Pro
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.06 | 38.50 ▼3.74 |
Dashboard /wp-admin | 3.11 ▼0.19 | 26.96 ▼22.67 |
Posts /wp-admin/edit.php | 3.25 ▼0.10 | 32.19 ▼14.62 |
Add New Post /wp-admin/post-new.php | 5.49 ▼0.40 | 74.31 ▼17.07 |
Media Library /wp-admin/upload.php | 3.19 ▼0.03 | 26.99 ▼6.40 |
Stylish Login /wp-admin/options-general.php?page=stylish-login-pro/stylish-admin-login.php | 3.10 | 27.83 |
Server storage [IO: ▲0.19MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 9 new files
Database: no new tables, 7 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-posts |
widget_theysaidso_widget |
wp_stylish_admin_login |
theysaidso_admin_options |
db_upgraded |
widget_recent-comments |
Browser metrics Passed 4 tests
Checking browser requirements for Stylish Login Pro
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,813 ▲78 | 13.27 ▼1.32 | 1.75 ▼0.13 | 45.09 ▼8.59 |
Dashboard /wp-admin | 2,224 ▲36 | 5.88 ▲0.06 | 100.99 ▼13.16 | 38.96 ▼4.80 |
Posts /wp-admin/edit.php | 2,107 ▲18 | 2.02 ▼0.03 | 41.25 ▲3.54 | 36.83 ▼0.73 |
Add New Post /wp-admin/post-new.php | 1,535 ▲1 | 18.11 ▼5.02 | 619.30 ▲17.22 | 50.68 ▼6.60 |
Media Library /wp-admin/upload.php | 1,400 ▲9 | 4.27 ▲0.01 | 96.10 ▼11.36 | 43.21 ▲0.47 |
Stylish Login /wp-admin/options-general.php?page=stylish-login-pro/stylish-admin-login.php | 866 | 2.06 | 28.35 | 34.05 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
- Zombie WordPress options were found after uninstall: 6 options
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-comments
- theysaidso_admin_options
- db_upgraded
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Please fix the following server-side errors
- > GET request to /wp-admin/options-general.php?page=stylish-login-pro/stylish-admin-login.php
- > User notice in wp-includes/functions.php+5905
Function WP_Scripts::localize was called incorrectly. The $l10n parameter must be an array. To pass arbitrary data to scripts, use the wp_add_inline_script() function instead. Please see Debugging in WordPress for more information. (This message was added in version 5.7.0.)
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/stylish-login-pro/stylish-admin-login.php:219
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% 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:
- Screenshots: Please describe screenshot #1 in stylish-login-pro/assets to your readme.txt
- Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line (
=== stylish-login-pro ===
)
stylish-login-pro/stylish-admin-login.php 92% from 13 tests
This is the main PHP file of "Stylish Login Pro" version 1.5, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
The following require your attention:
- Main file name: Name the main plugin file the same as the plugin slug ("stylish-login-pro.php" instead of "stylish-admin-login.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Everything looks great! No dangerous files found in this plugin245 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 34 | 83 | 207 |
JavaScript | 2 | 5 | 1 | 32 |
CSS | 1 | 0 | 0 | 6 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.23 |
Average class complexity | 10.00 |
▷ Minimum class complexity | 10.00 |
▷ Maximum class complexity | 10.00 |
Average method complexity | 1.82 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 4.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 11 | |
▷ Static methods | 2 | 18.18% |
▷ Public methods | 11 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 2 | |
▷ Named functions | 2 | 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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
1 PNG file occupies 0.03MB with 0.02MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/logo.png | 25.70KB | 4.64KB | ▼ 81.95% |