Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The following installer errors require your attention
- Install procedure had errors
- > 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.20MB] [CPU: ▼20.32ms] 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.51 ▲0.05 | 39.75 ▼10.25 |
Dashboard /wp-admin | 3.11 ▼0.24 | 27.82 ▼51.74 |
Posts /wp-admin/edit.php | 3.25 ▼0.11 | 39.37 ▼10.76 |
Add New Post /wp-admin/post-new.php | 5.48 ▼0.40 | 82.03 ▼8.52 |
Media Library /wp-admin/upload.php | 3.19 ▼0.04 | 31.93 ▼8.20 |
Add Logo to Admin /wp-admin/options-general.php?page=add-logo-to-admin/add-logo-to-admin.php | 3.21 | 30.52 |
Server storage [IO: ▲0.10MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 9 new files
Database: no new tables, 7 new options
New WordPress options |
---|
theysaidso_admin_options |
can_compress_scripts |
widget_recent-comments |
widget_theysaidso_widget |
widget_recent-posts |
db_upgraded |
wp_add_logo_to_admin |
Browser metrics Passed 4 tests
A check of browser resources used by Add Logo to Admin
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,824 ▲63 | 14.21 ▼0.08 | 2.07 ▼0.41 | 47.78 ▼23.04 |
Dashboard /wp-admin | 2,213 ▲36 | 5.65 ▼0.02 | 95.85 ▼1.69 | 40.97 ▼2.34 |
Posts /wp-admin/edit.php | 2,121 ▲42 | 2.06 ▲0.05 | 50.82 ▲12.39 | 41.97 ▲5.91 |
Add New Post /wp-admin/post-new.php | 1,538 ▼6 | 23.01 ▼0.34 | 719.13 ▲44.31 | 66.24 ▲1.55 |
Media Library /wp-admin/upload.php | 1,418 ▲21 | 4.25 ▼0.01 | 104.24 ▲2.24 | 44.94 ▼0.94 |
Add Logo to Admin /wp-admin/options-general.php?page=add-logo-to-admin/add-logo-to-admin.php | 1,062 | 3.07 | 42.27 | 69.45 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_theysaidso_widget
- db_upgraded
- can_compress_scripts
- widget_recent-posts
- theysaidso_admin_options
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
These server-side errors were triggered
- > 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+5905
Function 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 applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > 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 | This is a shallow check for browser errors
Everything seems fine on the user side
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need your attention:
- Screenshots: 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
"Add Logo to Admin" version 1.6.2's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
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 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
No dangerous file extensions were detected170 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
A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
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% |