Benchmarks
Plugin footprint 75% 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
The following installer errors require your attention
- This plugin did not install gracefully
- > Notice in wp-content/plugins/add-logo-to-admin/add-logo-to-admin.php+47
Trying to access array offset on value of type bool
Server metrics [RAM: ▼0.35MB] [CPU: ▼308.97ms] Passed 4 tests
An overview of server-side resources used by Add Logo to Admin
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.56 ▲0.05 | 54.77 ▲6.46 |
Dashboard /wp-admin | 3.24 ▼0.16 | 19.34 ▼13.21 |
Posts /wp-admin/edit.php | 3.30 ▼0.33 | 21.00 ▼13.58 |
Add New Post /wp-admin/post-new.php | 6.09 ▼0.88 | 75.13 ▼1,200.81 |
Media Library /wp-admin/upload.php | 3.26 ▼0.04 | 18.63 ▼8.27 |
Add Logo to Admin /wp-admin/options-general.php?page=add-logo-to-admin/add-logo-to-admin.php | 3.28 | 20.31 |
Server storage [IO: ▲0.10MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 9 new files
Database: no new tables, 1 new option
New WordPress options |
---|
wp_add_logo_to_admin |
Browser metrics Passed 4 tests
An overview of browser requirements for Add Logo to Admin
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,774 ▲52 | 15.77 ▼0.27 | 5.57 ▼0.04 | 2.38 ▼0.18 |
Dashboard /wp-admin | 2,911 ▲50 | 6.13 ▼0.04 | 119.74 ▼15.50 | 153.70 ▼1.07 |
Posts /wp-admin/edit.php | 2,710 ▲16 | 3.26 ▲0.02 | 61.04 ▼7.96 | 141.55 ▼2.15 |
Add New Post /wp-admin/post-new.php | 1,676 ▲15 | 16.35 ▼0.70 | 400.01 ▲2.40 | 154.82 ▲3.98 |
Media Library /wp-admin/upload.php | 1,717 ▲16 | 5.53 ▲0.00 | 138.34 ▲6.61 | 184.60 ▼7.20 |
Add Logo to Admin /wp-admin/options-general.php?page=add-logo-to-admin/add-logo-to-admin.php | 1,357 | 4.18 | 70.22 | 136.17 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Uninstall script ran successfully
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Almost there, just fix the following server-side errors
- > GET request to /wp-admin/options-general.php?page=add-logo-to-admin/add-logo-to-admin.php
- > User notice in wp-includes/functions.php+5768
WP_Scripts::localize was called incorrectly. The $l10n parameter must be an array. To pass arbitrary data to scripts, use the wp_add_inline_script() function instead. Please see Debugging in WordPress for more information. (This message was added in version 5.7.0.)
SRP 50% 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
Almost there! Just fix the following items
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/add-logo-to-admin/add-logo-to-admin.php:235
- > 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)
Everything seems fine on the user side
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need your attention:
- Screenshots: Please add images for these screenshots: #1 (The Add Logo to Admin page), #2 (How your logo will appear on the login screen)
add-logo-to-admin/add-logo-to-admin.php Passed 13 tests
Analyzing the main PHP file in "Add Logo to Admin" version 1.6.2
51 characters long description:
Adds a custom logo to your wp-admin and login page.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Success! There were no dangerous files found in this plugin170 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 32 | 92 | 132 |
JavaScript | 2 | 5 | 1 | 32 |
CSS | 1 | 0 | 0 | 6 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.24 |
Average class complexity | 10.00 |
▷ Minimum class complexity | 10.00 |
▷ Maximum class complexity | 10.00 |
Average method complexity | 1.82 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 4.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 | 11 | |
▷ Static methods | 2 | 18.18% |
▷ Public methods | 11 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 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
1 PNG file occupies 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/logo.png | 8.94KB | 4.65KB | ▼ 47.93% |