Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▲0.02MB] [CPU: ▼4.76ms] Passed 4 tests
A check of server-side resources used by Wordpress Login Styles
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 41.19 ▼2.39 |
Dashboard /wp-admin | 3.32 ▲0.02 | 49.29 ▼2.01 |
Posts /wp-admin/edit.php | 3.37 ▲0.02 | 46.44 ▲0.19 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.02 | 87.53 ▼14.39 |
Media Library /wp-admin/upload.php | 3.24 ▲0.02 | 37.76 ▼0.24 |
/wp-admin/options-general.php?page=sls-settings | 3.21 | 33.14 |
Server storage [IO: ▲0.38MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 45 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-posts |
widget_recent-comments |
can_compress_scripts |
theysaidso_admin_options |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Checking browser requirements for Wordpress Login Styles
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,918 ▲172 | 13.60 ▼0.80 | 5.59 ▲3.90 | 44.10 ▲0.52 |
Dashboard /wp-admin | 2,222 ▲34 | 5.96 ▼0.08 | 99.27 ▼5.57 | 39.04 ▲1.22 |
Posts /wp-admin/edit.php | 2,111 ▲22 | 2.04 ▲0.07 | 36.35 ▼1.14 | 34.11 ▲0.73 |
Add New Post /wp-admin/post-new.php | 1,548 ▲29 | 23.17 ▲0.12 | 635.41 ▲42.46 | 54.01 ▲4.92 |
Media Library /wp-admin/upload.php | 1,404 ▲13 | 4.25 ▲0.11 | 96.06 ▼3.86 | 43.46 ▲0.47 |
/wp-admin/options-general.php?page=sls-settings | 866 | 2.03 | 24.76 | 28.12 |
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
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-comments
- theysaidso_admin_options
- db_upgraded
- widget_recent-posts
- can_compress_scripts
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test
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
Almost there! Just fix the following items
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/sanchari-login-styles/inc/cmb/tests/phpunit/includes/bootstrap.php
- 7× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/sanchari-login-styles/inc/options.php:37
- > PHP Fatal error
Uncaught Error: Class 'WP_UnitTestCase' not found in wp-content/plugins/sanchari-login-styles/inc/cmb/tests/phpunit/tests/CMB_Core_Test.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/sanchari-login-styles/css/style-login.php:27
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/sanchari-login-styles/css/custom_styles.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/sanchari-login-styles/inc/cmb/example-functions.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/sanchari-login-styles/sanchari-login-styles.php:16
- > PHP Fatal error
Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/sanchari-login-styles/inc/cmb/init.php:41
- > 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 93% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Please fix the following attributes:
- Contributors: The plugin contributors field is missing
- Screenshots: These screenshots need descriptions #2, #3 in sanchari-login-styles/assets to your readme.txt
sanchari-login-styles/sanchari-login-styles.php Passed 13 tests
The entry point to "Wordpress Login Styles" version 1.0 is a PHP file that has certain tags in its header comment area
62 characters long description:
This plugin will enable colorful Custom Wordpress Login panel.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Good job! No executable or dangerous file extensions detected5,441 lines of code in 27 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 5 | 312 | 403 | 2,246 |
PHP | 13 | 639 | 1,145 | 2,241 |
CSS | 2 | 61 | 21 | 540 |
Markdown | 3 | 89 | 0 | 289 |
Bourne Shell | 1 | 15 | 4 | 59 |
JSON | 1 | 0 | 0 | 31 |
YAML | 1 | 5 | 0 | 18 |
XML | 1 | 0 | 1 | 17 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.51 |
Average class complexity | 50.50 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 136.00 |
Average method complexity | 3.81 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 35.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 141 | |
▷ Static methods | 34 | 24.11% |
▷ Public methods | 139 | 98.58% |
▷ Protected methods | 2 | 1.42% |
▷ Private methods | 0 | 0.00% |
Functions | 18 | |
▷ Named functions | 18 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 2 | 66.67% |
▷ Class constants | 1 | 33.33% |
▷ Public constants | 1 | 100.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 compressed PNG files occupy 0.02MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
inc/cmb/images/ui-bg_flat_0_aaaaaa_40x100.png | 0.18KB | 0.08KB | ▼ 51.67% |
inc/cmb/images/ui-icons_222222_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |
inc/cmb/images/ui-icons_454545_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |
inc/cmb/images/ui-bg_highlight-soft_75_cccccc_1x100.png | 0.10KB | 0.17KB | 0.00% |
inc/cmb/images/ui-bg_glass_75_dadada_1x400.png | 0.11KB | 0.16KB | 0.00% |