Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
It is recommended to fix the following installer errors
- Install procedure validation failed for this plugin
- > Deprecated in wp-includes/class-wp-hook.php+310
Non-static method Branded_Login_Screen::branded_login_screen_activate() should not be called statically
Server metrics [RAM: ▼0.88MB] [CPU: ▼36.67ms] Passed 4 tests
A check of server-side resources used by Branded Login Screen
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 42.63 ▲2.95 |
Dashboard /wp-admin | 3.06 ▼0.24 | 27.22 ▼26.68 |
Posts /wp-admin/edit.php | 3.06 ▼0.30 | 26.17 ▼26.51 |
Add New Post /wp-admin/post-new.php | 3.06 ▼2.83 | 23.97 ▼81.22 |
Media Library /wp-admin/upload.php | 3.06 ▼0.17 | 27.41 ▼12.25 |
Server storage [IO: ▲0.61MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 22 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-comments |
can_compress_scripts |
widget_recent-posts |
db_upgraded |
Browser metrics Passed 4 tests
Branded Login Screen: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,820 ▲59 | 13.93 ▼0.69 | 1.88 ▲0.33 | 34.15 ▼5.84 |
Dashboard /wp-admin | 2,195 ▲15 | 5.61 ▼0.01 | 85.89 ▼2.60 | 38.97 ▼3.98 |
Posts /wp-admin/edit.php | 2,097 ▼3 | 1.98 ▼0.03 | 40.96 ▲3.52 | 37.10 ▲0.15 |
Add New Post /wp-admin/post-new.php | 1,526 ▼2 | 23.03 ▼0.00 | 679.91 ▼17.05 | 55.01 ▼7.65 |
Media Library /wp-admin/upload.php | 1,394 ▼6 | 4.17 ▲0.03 | 109.99 ▼1.48 | 47.60 ▼0.84 |
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
The following items require your attention
- The plugin did not uninstall gracefully
- > Deprecated in wp-includes/class-wp-hook.php+310
Non-static method Branded_Login_Screen::branded_login_screen_environment_check() should not be called statically
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-comments
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-posts
- theysaidso_admin_options
- db_upgraded
Smoke tests 75% 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 everything seems fine, this is not 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
Please take a closer look at the following
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/branded-login-screen/branded-login-screen.php
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
4 plugin tags: branding, login, login screen, white label
branded-login-screen/branded-login-screen.php 92% from 13 tests
"Branded Login Screen" version 3.2's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 180 characters long)
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
Everything looks great! No dangerous files found in this plugin458 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 2 | 76 | 10 | 267 |
PHP | 3 | 60 | 86 | 181 |
JavaScript | 1 | 6 | 1 | 10 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.26 |
Average class complexity | 19.00 |
▷ Minimum class complexity | 19.00 |
▷ Maximum class complexity | 19.00 |
Average method complexity | 2.80 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.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 | 10 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 10 | 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 | 16 | |
▷ Global constants | 16 | 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
9 PNG files occupy 0.08MB with 0.03MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/i/reset-backups/header.png | 14.31KB | 6.97KB | ▼ 51.28% |
assets/i/err-header.png | 14.61KB | 7.84KB | ▼ 46.33% |
assets/i/logo_responsive/header-sm.png | 11.60KB | 5.36KB | ▼ 53.82% |
assets/i/reset-backups/header-thumb.png | 4.89KB | 2.63KB | ▼ 46.29% |
assets/i/reset-backups/header-sm-thumb.png | 2.12KB | 1.85KB | ▼ 12.86% |