10% easily-change-admin-color

Code Review | Easily Change Admin Color

WordPress plugin Easily Change Admin Color scored 10% from 54 tests.

About plugin

  • Plugin page: easily-change-adm...
  • Plugin version: 2.5
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.4
  • WordPress version: 5.8.1
  • First release: Apr 22, 2013
  • Latest release: Jan 2, 2016
  • Number of updates: 63
  • Update frequency: every 15.6 days
  • Top authors: kfoulks2011 (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

200+ active / 5,499 total downloads


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
PageMemory (MB)CPU Time (ms)
Home /1.79 ▼0.934.53 ▼18.98
Dashboard /wp-admin1.80 ▼1.255.30 ▼45.55
Posts /wp-admin/edit.php1.80 ▼1.306.04 ▼42.24
Add New Post /wp-admin/post-new.php1.80 ▼3.635.78 ▼655.86
Media Library /wp-admin/upload.php1.80 ▼1.208.17 ▼26.35
Admin Colors /wp-admin/options-general.php?page=admin_colors1.815.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,784 ▲20216.28 ▲0.7110.97 ▲1.7149.01 ▼2.71
Dashboard /wp-admin3,054 ▲1236.58 ▲0.60182.64 ▲21.39113.34 ▼0.78
Posts /wp-admin/edit.php2,763 ▲243.00 ▲0.3076.64 ▼18.7788.20 ▼10.77
Add New Post /wp-admin/post-new.php1,540 ▼14315.53 ▼3.25402.87 ▲4.26113.48 ▲0.71
Media Library /wp-admin/upload.php1,767 ▼405.38 ▲0.35153.30 ▼12.40123.50 ▲2.47
Admin Colors /wp-admin/options-general.php?page=admin_colors1,8842.5375.17100.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

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)


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:
LanguageFilesBlank linesComment linesLines of code

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 code0.34
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions16100.00%
▷ Anonymous functions00.00%
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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
FileSize - originalSize - compressedSavings
images/twittericon.png7.49KB2.17KB▼ 71.00%
css/images/twittericon.png7.49KB2.17KB▼ 71.00%
css/images/fiverr.png5.25KB1.88KB▼ 64.23%