Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▲0.33MB] [CPU: ▼7.05ms] Passed 4 tests
An overview of server-side resources used by Clean Login
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.81 ▲0.35 | 40.67 ▼1.01 |
Dashboard /wp-admin | 3.64 ▲0.30 | 49.82 ▼10.04 |
Posts /wp-admin/edit.php | 3.76 ▲0.40 | 45.61 ▼0.83 |
Add New Post /wp-admin/post-new.php | 6.23 ▲0.34 | 84.55 ▼16.32 |
Media Library /wp-admin/upload.php | 3.57 ▲0.34 | 42.33 ▲8.85 |
Clean Login /wp-admin/options-general.php?page=clean_login_menu | 3.54 | 39.77 |
Server storage [IO: ▲1.37MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 73 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-posts |
widget_recent-comments |
can_compress_scripts |
db_upgraded |
widget_clean_login_widget |
theysaidso_admin_options |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Clean Login: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,794 ▲47 | 14.05 ▼0.23 | 1.64 ▼0.00 | 37.09 ▼7.48 |
Dashboard /wp-admin | 2,193 ▲13 | 5.49 ▼0.17 | 86.20 ▼8.77 | 40.31 ▲0.13 |
Posts /wp-admin/edit.php | 2,101 ▲1 | 1.96 ▲0.02 | 37.02 ▼9.60 | 33.19 ▼13.03 |
Add New Post /wp-admin/post-new.php | 1,529 ▲3 | 23.27 ▼0.26 | 676.54 ▲48.23 | 53.85 ▼2.48 |
Media Library /wp-admin/upload.php | 1,404 ▲1 | 4.20 ▲0.01 | 105.59 ▲8.15 | 43.81 ▲1.61 |
Clean Login /wp-admin/options-general.php?page=clean_login_menu | 1,331 | 2.07 | 25.95 | 32.99 |
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
It is recommended to fix the following
- Zombie WordPress options were found after uninstall: 7 options
- widget_clean_login_widget
- widget_recent-comments
- widget_theysaidso_widget
- theysaidso_admin_options
- can_compress_scripts
- db_upgraded
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected
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
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/clean-login/content/captcha/index.php
- 2× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/clean-login/include/i18n.php:6
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/clean-login/include/widget.php:14
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
- Tags: There are too many tags (16 tag instead of maximum 10)
clean-login/clean-login.php 92% from 13 tests
This is the main PHP file of "Clean Login" version 1.14.4, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 223 characters long)
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
There were no executable files found in this plugin7,066 lines of code in 37 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PO File | 19 | 1,738 | 2,686 | 4,982 |
PHP | 17 | 416 | 119 | 1,860 |
CSS | 1 | 42 | 11 | 224 |
PHP code 50% from 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
The following items need your attention
- Method cyclomatic complexity should be reduced to less than 100 (currently 121)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.40 |
Average class complexity | 33.40 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 153.00 |
Average method complexity | 5.84 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 121.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 10 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 10 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 67 | |
▷ Static methods | 11 | 16.42% |
▷ Public methods | 58 | 86.57% |
▷ Protected methods | 9 | 13.43% |
▷ Private methods | 0 | 0.00% |
Functions | 2 | |
▷ Named functions | 2 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 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
6 compressed PNG files occupy 0.00MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
content/images/spam.png | 0.47KB | 0.45KB | ▼ 4.35% |
content/images/log.png | 0.43KB | 0.41KB | ▼ 4.51% |
content/images/mail.png | 0.37KB | 0.35KB | ▼ 4.47% |
content/images/surname.png | 0.43KB | 0.41KB | ▼ 4.76% |
content/images/pwd.png | 0.33KB | 0.30KB | ▼ 6.31% |