Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.07MB] [CPU: ▲0.48ms] Passed 4 tests
This is a short check of server-side resources used by Brandinizer - Custom Dashboard Branding
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.06 | 44.81 ▲3.18 |
Dashboard /wp-admin | 3.38 ▲0.07 | 53.53 ▼1.05 |
Posts /wp-admin/edit.php | 3.43 ▲0.07 | 53.88 ▲2.41 |
Add New Post /wp-admin/post-new.php | 5.98 ▲0.09 | 100.38 ▲8.02 |
Media Library /wp-admin/upload.php | 3.30 ▲0.07 | 36.57 ▼2.64 |
Server storage [IO: ▲0.37MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 18 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
theysaidso_admin_options |
db_upgraded |
widget_recent-comments |
widget_theysaidso_widget |
widget_recent-posts |
Browser metrics Passed 4 tests
A check of browser resources used by Brandinizer - Custom Dashboard Branding
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,809 ▲48 | 14.69 ▲0.34 | 1.76 ▼0.08 | 44.85 ▲0.04 |
Dashboard /wp-admin | 2,218 ▲47 | 5.64 ▲0.11 | 87.71 ▲0.81 | 42.41 ▼2.73 |
Posts /wp-admin/edit.php | 2,117 ▲14 | 2.04 ▲0.01 | 36.81 ▼0.53 | 33.52 ▼4.64 |
Add New Post /wp-admin/post-new.php | 1,543 ▲17 | 23.41 ▼0.25 | 616.60 ▼57.25 | 59.04 ▲2.32 |
Media Library /wp-admin/upload.php | 1,420 ▲20 | 4.21 ▼0.00 | 103.68 ▼3.97 | 47.54 ▲0.55 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-posts
- theysaidso_admin_options
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-comments
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Good news, no errors were detected
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
- 3× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/brandinizer/admin/brandinizer-admin.php:20
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/brandinizer/inc/settings/brandinizer-settings.php:21
- > PHP Fatal error
Uncaught Error: Call to undefined function sanitize_text_field() in wp-content/plugins/brandinizer/inc/settings/brandinizer-frontend.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found
Optimizations
Plugin configuration 93% 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:
- Donate link: Invalid url: "no need"
brandinizer/brandinizer.php 92% from 13 tests
The main file in "Brandinizer - Custom Dashboard Branding" v. 1.0.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
You should first fix the following items:
- Domain Path: The domain path points to a folder that does not exist ("/languages")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Success! There were no dangerous files found in this plugin447 lines of code in 11 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 97 | 79 | 320 |
CSS | 3 | 16 | 7 | 81 |
JavaScript | 3 | 16 | 7 | 41 |
Markdown | 1 | 4 | 0 | 5 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.31 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 11 | |
▷ Named functions | 11 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 4 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
4 PNG files occupy 0.07MB with 0.04MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/img/favicon.png | 1.64KB | 1.42KB | ▼ 13.36% |
admin/img/brandinizer_logo_2.png | 32.82KB | 10.13KB | ▼ 69.13% |
admin/img/brandinizer_logo_1.png | 22.53KB | 8.02KB | ▼ 64.40% |
admin/img/default-logo.png | 15.74KB | 6.98KB | ▼ 55.63% |