Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
It is recommended to fix the following installer errors
- Install procedure validation failed for this plugin
- > Notice in wp-content/plugins/easily-change-admin-color/index.php+15
Undefined variable: url
Server metrics [RAM: ▼1.84MB] [CPU: ▼192.50ms] Passed 4 tests
An overview of server-side resources used by Easily Change Admin Color
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 1.79 ▼0.93 | 4.53 ▼18.98 |
Dashboard /wp-admin | 1.80 ▼1.25 | 5.30 ▼45.55 |
Posts /wp-admin/edit.php | 1.80 ▼1.30 | 6.04 ▼42.24 |
Add New Post /wp-admin/post-new.php | 1.80 ▼3.63 | 5.78 ▼655.86 |
Media Library /wp-admin/upload.php | 1.80 ▼1.20 | 8.17 ▼26.35 |
Admin Colors /wp-admin/options-general.php?page=admin_colors | 1.81 | 5.35 |
Server storage [IO: ▲0.42MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 16 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
This is an overview of browser requirements for Easily Change Admin Color
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,784 ▲202 | 16.28 ▲0.71 | 10.97 ▲1.71 | 49.01 ▼2.71 |
Dashboard /wp-admin | 3,054 ▲123 | 6.58 ▲0.60 | 182.64 ▲21.39 | 113.34 ▼0.78 |
Posts /wp-admin/edit.php | 2,763 ▲24 | 3.00 ▲0.30 | 76.64 ▼18.77 | 88.20 ▼10.77 |
Add New Post /wp-admin/post-new.php | 1,540 ▼143 | 15.53 ▼3.25 | 402.87 ▲4.26 | 113.48 ▲0.71 |
Media Library /wp-admin/upload.php | 1,767 ▼40 | 5.38 ▲0.35 | 153.30 ▼12.40 | 123.50 ▲2.47 |
Admin Colors /wp-admin/options-general.php?page=admin_colors | 1,884 | 2.53 | 75.17 | 100.14 |
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
These items require your attention
- This plugin cannot be uninstalled
- > Notice in wp-content/plugins/easily-change-admin-color/index.php+15
Undefined variable: url
Smoke tests 0% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
These server-side errors were triggered
- 4 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=admin_colors
- > Notice in wp-content/plugins/easily-change-admin-color/cam_functions.php+75
Undefined variable: url
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=admin_colors
- > Notice in wp-content/plugins/easily-change-admin-color/index.php+58
Undefined offset: 5
- > GET request to /wp-admin/options-general.php?page=admin_colors
- > Notice in wp-content/plugins/easily-change-admin-color/index.php+133
Undefined index: settings-updated
- > GET request to /wp-admin/options-general.php?page=admin_colors
- > Notice in wp-content/plugins/easily-change-admin-color/cam_functions.php+85
Undefined variable: menu_id
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
The following issues need your attention
- 2× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/easily-change-admin-color/inc/schemes.inc.php
- > /wp-content/plugins/easily-change-admin-color/cam_color_scheme.php
- 2× 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/easily-change-admin-color/cam_widget.php:15
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/easily-change-admin-color/index.php:21
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There are user-side issues you should fix
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=admin_colors
- > Network (severe)
wp-content/uploads/cam_style.css?version=81 - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
5 plugin tags: hide, color change, admin, menu, colors
easily-change-admin-color/index.php 92% from 13 tests
This is the main PHP file of "Easily Change Admin Color" version 2.5, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please make the necessary changes and fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("easily-change-admin-color.php" instead of "index.php")
Code Analysis Passed 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
Success! There were no dangerous files found in this plugin500 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 97 | 36 | 387 |
CSS | 2 | 15 | 0 | 77 |
JavaScript | 1 | 17 | 1 | 36 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.34 |
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 | 16 | |
▷ Named functions | 16 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
3 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/twittericon.png | 7.49KB | 2.17KB | ▼ 71.00% |
css/images/twittericon.png | 7.49KB | 2.17KB | ▼ 71.00% |
css/images/fiverr.png | 5.25KB | 1.88KB | ▼ 64.23% |