Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▲1.66MB] [CPU: ▲5.65ms] Passed 4 tests
A check of server-side resources used by Branda – White Label WordPress, Custom Login Page Customizer
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.60 ▲1.14 | 41.93 ▲2.36 |
Dashboard /wp-admin | 5.18 ▲1.88 | 57.18 ▲7.05 |
Posts /wp-admin/edit.php | 5.23 ▲1.87 | 55.63 ▲8.15 |
Add New Post /wp-admin/post-new.php | 7.70 ▲1.81 | 94.33 ▲5.03 |
Media Library /wp-admin/upload.php | 5.04 ▲1.81 | 51.02 ▲17.47 |
Admin Area /wp-admin/admin.php?page=branding_group_admin | 5.09 | 49.23 |
Utilities /wp-admin/admin.php?page=branding_group_utilities | 5.08 | 45.08 |
Branda Pro /wp-admin/admin.php?page=branda_pro | 5.07 | 44.22 |
Emails /wp-admin/admin.php?page=branding_group_emails | 5.08 | 45.27 |
Widgets /wp-admin/admin.php?page=branding_group_widgets | 5.08 | 43.42 |
Front-end /wp-admin/admin.php?page=branding_group_front-end | 5.09 | 44.62 |
Dashboard /wp-admin/admin.php?page=branding | 5.16 | 48.28 |
Settings /wp-admin/admin.php?page=branding_group_data | 5.13 | 57.62 |
Server storage [IO: ▲18.36MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 1,332 new files
Database: no new tables, 11 new options
New WordPress options |
---|
widget_recent-comments |
widget_recent-posts |
branda_db_version |
theysaidso_admin_options |
widget_theysaidso_widget |
db_upgraded |
ub_permissions_users |
branda_first_installed_version |
ub_version |
can_compress_scripts |
... |
Browser metrics Passed 4 tests
Branda – White Label WordPress, Custom Login Page Customizer: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,858 ▲97 | 14.36 ▼0.23 | 1.66 ▼0.09 | 38.44 ▼6.50 |
Dashboard /wp-admin | 2,262 ▲88 | 5.68 ▲0.03 | 84.33 ▼2.94 | 40.71 ▼0.03 |
Posts /wp-admin/edit.php | 2,164 ▲82 | 1.99 ▼0.04 | 36.00 ▲0.15 | 32.10 ▼5.52 |
Add New Post /wp-admin/post-new.php | 1,566 ▲38 | 22.98 ▼0.22 | 666.96 ▼21.01 | 55.70 ▲6.90 |
Media Library /wp-admin/upload.php | 1,462 ▲59 | 4.19 ▲0.03 | 95.50 ▼5.07 | 44.26 ▲0.92 |
Admin Area /wp-admin/admin.php?page=branding_group_admin | 1,645 | 3.67 | 62.56 | 101.75 |
Utilities /wp-admin/admin.php?page=branding_group_utilities | 1,612 | 3.63 | 58.48 | 58.76 |
Branda Pro /wp-admin/admin.php?page=branda_pro | 1,356 | 3.64 | 47.57 | 102.31 |
Emails /wp-admin/admin.php?page=branding_group_emails | 1,552 | 3.62 | 51.68 | 59.13 |
Widgets /wp-admin/admin.php?page=branding_group_widgets | 1,514 | 3.57 | 49.34 | 58.02 |
Front-end /wp-admin/admin.php?page=branding_group_front-end | 1,675 | 3.61 | 51.90 | 73.82 |
Dashboard /wp-admin/admin.php?page=branding | 2,629 | 3.58 | 44.58 | 111.85 |
Settings /wp-admin/admin.php?page=branding_group_data | 2,041 | 4.12 | 65.04 | 72.94 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- Zombie WordPress options detected upon uninstall: 11 options
- db_upgraded
- branda_db_version
- ub_permissions_users
- widget_recent-comments
- widget_recent-posts
- branda_first_installed_version
- ub_version
- can_compress_scripts
- ub_stats
- widget_theysaidso_widget
- ...
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test
SRP 0% 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
- 10× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/branda-white-labeling/views/admin/modules/admin-help-content/list.php
- > /wp-content/plugins/branda-white-labeling/views/admin/modules/admin_menu/dialogs/custom-admin-menu-tab-content.php
- > /wp-content/plugins/branda-white-labeling/views/front-end/modules/maintenance/timer/flipclock/body.php
- > /wp-content/plugins/branda-white-labeling/views/front-end/modules/maintenance/timer/raw/body.php
- > /wp-content/plugins/branda-white-labeling/views/admin/modules/admin_menu/dialogs/custom-admin-menu-tabs.php
- > /wp-content/plugins/branda-white-labeling/views/admin/modules/admin_menu/dialogs/custom-admin-menu-tab.php
- > /wp-content/plugins/branda-white-labeling/views/front-end/common/css/slideshow.php
- > /wp-content/plugins/branda-white-labeling/views/admin/dashboard/welcome-modules.php
- > /wp-content/plugins/branda-white-labeling/views/admin/modules/admin_menu/dialogs/custom-admin-menu-roles.php
- > /wp-content/plugins/branda-white-labeling/views/admin/modules/admin-message/message.php
- 682× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Branda_Vendor\\Monolog\\Formatter\ormalizerFormatter' not found in wp-content/plugins/branda-white-labeling/vendor_prefixed/monolog/monolog/src/Monolog/Formatter/LogstashFormatter.php:21
- > PHP Fatal error
Uncaught Error: Class 'Branda_Helper' not found in wp-content/plugins/branda-white-labeling/inc/modules/admin/help-content.php:15
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/branda-white-labeling/views/admin/modules/admin-panel-tips/tip.php:1
- > PHP Fatal error
Uncaught Error: Class 'phpseclib\et\\SSH2' not found in wp-content/plugins/branda-white-labeling/vendor_prefixed/vendor/phpseclib/phpseclib/phpseclib/Net/SFTP.php:45
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/branda-white-labeling/views/admin/modules/tracking-codes/dialogs/edit.php:10
- > PHP Fatal error
Uncaught Error: Interface 'Branda_Vendor\\Monolog\\Formatter\\FormatterInterface' not found in wp-content/plugins/branda-white-labeling/vendor_prefixed/monolog/monolog/src/Monolog/Formatter/FlowdockFormatter.php:18
- > PHP Fatal error
Uncaught Error: Class 'Branda_Helper' not found in wp-content/plugins/branda-white-labeling/inc/modules/utilities/site-generator.php:10
- > PHP Fatal error
Uncaught Error: Class 'Branda_Vendor\\Monolog\\Handler\\AbstractProcessingHandler' not found in wp-content/plugins/branda-white-labeling/vendor_prefixed/monolog/monolog/src/Monolog/Handler/DynamoDbHandler.php:24
- > PHP Fatal error
Uncaught Error: Class 'Branda_Vendor\\Monolog\\Handler\\AbstractHandler' not found in wp-content/plugins/branda-white-labeling/vendor_prefixed/monolog/monolog/src/Monolog/Handler/GroupHandler.php:20
- > PHP Fatal error
Uncaught Error: Class 'Branda_Vendor\\Google\\Model' not found in wp-content/plugins/branda-white-labeling/vendor_prefixed/google/apiclient-services/src/Gmail/AutoForwarding.php:20
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed:
- Screenshots: Please add an image for screenshot #1 (Customize the WordPress login screen)
- Tags: Too many tags (13 tag instead of maximum 10); only the first 5 tags are used in your directory listing
branda-white-labeling/ultimate-branding.php 92% from 13 tests
"Branda – White Label WordPress, Custom Login Page Customizer" version 3.4.13's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("branda-white-labeling.php" instead of "ultimate-branding.php")
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin193,856 lines of code in 1,213 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1,016 | 12,775 | 73,644 | 145,273 |
PO File | 5 | 8,235 | 13,114 | 20,979 |
JavaScript | 65 | 2,929 | 2,235 | 14,774 |
Sass | 38 | 228 | 40 | 4,366 |
CSS | 64 | 307 | 399 | 4,217 |
JSON | 4 | 0 | 0 | 2,669 |
HTML | 12 | 235 | 122 | 886 |
SVG | 4 | 0 | 2 | 628 |
YAML | 2 | 4 | 0 | 50 |
Dockerfile | 1 | 8 | 0 | 10 |
Markdown | 2 | 2 | 0 | 4 |
PHP code 50% from 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Please fix the following
- Cyclomatic complexity of methods has to be reduced to less than 100 (currently 378)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.42 |
Average class complexity | 23.13 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 633.00 |
Average method complexity | 3.86 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 378.00 |
Code structure | ||
---|---|---|
Namespaces | 91 | |
Interfaces | 72 | |
Traits | 16 | |
Classes | 748 | |
▷ Abstract classes | 19 | 2.54% |
▷ Concrete classes | 729 | 97.46% |
▷ Final classes | 52 | 7.13% |
Methods | 6,718 | |
▷ Static methods | 581 | 8.65% |
▷ Public methods | 5,400 | 80.38% |
▷ Protected methods | 480 | 7.14% |
▷ Private methods | 838 | 12.47% |
Functions | 492 | |
▷ Named functions | 246 | 50.00% |
▷ Anonymous functions | 246 | 50.00% |
Constants | 981 | |
▷ Global constants | 152 | 15.49% |
▷ Class constants | 829 | 84.51% |
▷ Public constants | 829 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
47 PNG files occupy 1.91MB with 0.92MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/branda/circle-thumb@2x.png | 53.92KB | 15.42KB | ▼ 71.40% |
assets/css/vendor/images/ui-icons_777777_256x240.png | 6.83KB | 4.17KB | ▼ 38.92% |
assets/css/vendor/images/ui-icons_777620_256x240.png | 4.44KB | 4.17KB | ▼ 6.02% |
assets/images/branda/smtp-log-feature.png | 7.27KB | 2.39KB | ▼ 67.16% |
assets/images/plugins-crawl-icon@2x.png | 9.04KB | 3.79KB | ▼ 58.04% |