Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.09MB] [CPU: ▼3.89ms] Passed 4 tests
This is a short check of server-side resources used by WP Custom Login Branding
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.06 | 44.68 ▲1.82 |
Dashboard /wp-admin | 3.42 ▲0.11 | 55.16 ▼0.92 |
Posts /wp-admin/edit.php | 3.54 ▲0.17 | 53.08 ▲2.88 |
Add New Post /wp-admin/post-new.php | 6.00 ▲0.11 | 85.29 ▼19.33 |
Media Library /wp-admin/upload.php | 3.32 ▲0.09 | 41.88 ▲6.51 |
Custom Login /wp-admin/options-general.php?page=custom-login-settings | 3.32 | 39.72 |
Server storage [IO: ▲0.14MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
can_compress_scripts |
db_upgraded |
widget_recent-comments |
widget_theysaidso_widget |
theysaidso_admin_options |
Browser metrics Passed 4 tests
An overview of browser requirements for WP Custom Login Branding
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,949 ▲188 | 14.79 ▲0.44 | 1.76 ▲0.11 | 44.06 ▼4.72 |
Dashboard /wp-admin | 2,358 ▲181 | 6.38 ▲0.72 | 111.21 ▲8.00 | 41.91 ▼3.55 |
Posts /wp-admin/edit.php | 2,283 ▲183 | 3.53 ▲1.54 | 52.21 ▲13.11 | 30.80 ▼3.84 |
Add New Post /wp-admin/post-new.php | 1,701 ▲173 | 22.31 ▼1.03 | 657.26 ▼4.26 | 37.96 ▼17.21 |
Media Library /wp-admin/upload.php | 1,423 ▲23 | 4.38 ▲0.19 | 84.70 ▼20.89 | 45.69 ▼0.93 |
Custom Login /wp-admin/options-general.php?page=custom-login-settings | 1,741 | 4.29 | 78.28 | 30.66 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- Zombie WordPress options were found after uninstall: 6 options
- can_compress_scripts
- widget_recent-comments
- db_upgraded
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 50% 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
- 3× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/wp-custom-login-branding/inc/wclbsettings.class.php:404
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_die() in wp-content/plugins/wp-custom-login-branding/wp-custom-login-branding.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/wp-custom-login-branding/inc/wpcustombranding.class.php:19
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that need to be fixed:
- Screenshots: These screenshots require images: #1 (Admin Interface), #2 (Example of styled login screen)
wp-custom-login-branding/wp-custom-login-branding.php Passed 13 tests
The principal PHP file in "WP Custom Login Branding" v. 1.3 is loaded by WordPress automatically on each request
75 characters long description:
Simple plugin for developers / designers who want to brand WP login screen.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected477 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 127 | 23 | 421 |
JavaScript | 1 | 4 | 13 | 29 |
Markdown | 1 | 17 | 0 | 27 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 21.00 |
▷ Minimum class complexity | 9.00 |
▷ Maximum class complexity | 33.00 |
Average method complexity | 2.43 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.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 | 28 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 28 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.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
Using a strong compression for your PNG files is a great way to speed-up your plugin
2 PNG files occupy 0.12MB with 0.08MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-2.png | 54.58KB | 12.42KB | ▼ 77.24% |
screenshot-1.png | 66.67KB | 29.61KB | ▼ 55.60% |