72% easy-admin-color-schemes

Code Review | Easy Admin Color Schemes

WordPress plugin Easy Admin Color Schemes scored72%from 54 tests.

About plugin

  • Plugin page: easy-admin-color-...
  • Plugin version: 4.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.6-3.6
  • WordPress version: 6.3.1
  • First release: Apr 20, 2008
  • Latest release: Aug 7, 2013
  • Number of updates: 86
  • Update frequency: every 22.5 days
  • Top authors: Jick (100%)

Code review

54 tests

User reviews

6 reviews

Install metrics

200+ active /45,208 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲1.41MB] [CPU: ▲3.04ms] Passed 4 tests

This is a short check of server-side resources used by Easy Admin Color Schemes
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.69 ▲0.2339.82 ▲1.08
Dashboard /wp-admin5.39 ▲2.0957.84 ▲4.28
Posts /wp-admin/edit.php5.39 ▲2.0453.75 ▲6.78
Add New Post /wp-admin/post-new.php7.19 ▲1.3089.80 ▲0.03
Media Library /wp-admin/upload.php5.39 ▲2.1745.63 ▲8.88
Add New /wp-admin/post-new.php?post_type=admincolorscheme5.4049.95
Import /wp-admin/edit.php?post_type=admincolorscheme&page=eacs-import5.4037.75
All Admin Color Schemes /wp-admin/edit.php?post_type=admincolorscheme5.4145.98
Export /wp-admin/edit.php?post_type=admincolorscheme&page=eacs-export5.4033.07
Settings /wp-admin/edit.php?post_type=admincolorscheme&page=eacs-settings5.4036.39

Server storage [IO: ▲1.22MB] [DB: ▲1.02MB] Passed 3 tests

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 23 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_theysaidso_widget
widget_recent-comments
widget_recent-posts
db_upgraded
theysaidso_admin_options

Browser metrics Passed 4 tests

A check of browser resources used by Easy Admin Color Schemes
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,829 ▲6814.35 ▲0.071.84 ▼0.0047.92 ▼0.88
Dashboard /wp-admin2,223 ▲465.56 ▲0.0487.27 ▼4.8274.38 ▲36.14
Posts /wp-admin/edit.php2,140 ▲401.97 ▲0.0337.67 ▼1.2736.21 ▼1.27
Add New Post /wp-admin/post-new.php1,713 ▲18722.30 ▼0.67713.00 ▲12.0161.95 ▲3.78
Media Library /wp-admin/upload.php1,440 ▲434.23 ▲0.02101.76 ▼8.4079.57 ▲35.24
Add New /wp-admin/post-new.php?post_type=admincolorscheme3,5886.78143.8592.20
Import /wp-admin/edit.php?post_type=admincolorscheme&page=eacs-import8502.0527.0733.88
All Admin Color Schemes /wp-admin/edit.php?post_type=admincolorscheme1,9542.2147.3337.40
Export /wp-admin/edit.php?post_type=admincolorscheme&page=eacs-export280.420.084.88
Settings /wp-admin/edit.php?post_type=admincolorscheme&page=eacs-settings1,0482.1724.9633.73

Uninstaller [IO: ▲0.00MB] [DB: ▲1.02MB] 75% from 4 tests

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget

Smoke tests 25% 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)
Smoke test failed, please fix the following
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/edit.php?post_type=admincolorscheme&page=eacs-settings
    • > User deprecated in wp-includes/functions.php+5463
    Function screen_icon is deprecated since version 3.8.0 with no alternative available.
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/edit.php?post_type=admincolorscheme&page=eacs-settings
    • > User deprecated in wp-includes/functions.php+5463
    Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.
    • > GET request to /wp-admin/edit.php?post_type=admincolorscheme&page=eacs-import
    • > User deprecated in wp-includes/functions.php+5453
    Function wp_convert_bytes_to_hr is deprecated since version 3.6.0! Use size_format() instead.
  • 5 occurences, only the last one shown
    • > GET request to /wp-admin/edit.php?post_type=admincolorscheme
    • > Notice in wp-content/plugins/easy-admin-color-schemes/easy-admin-color-schemes.php+613
    Only variables should be passed by reference

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
Please fix the following
  • 2× PHP files output text when accessed directly:
    • > /wp-content/plugins/easy-admin-color-schemes/easy-admin-color-schemes.php
    • > /wp-content/plugins/easy-admin-color-schemes/includes/php/default-schemes.php

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Please fix the following browser errors
    • > GET request to /wp-admin/edit.php?post_type=admincolorscheme&page=eacs-export
    • > Network (severe)
    wp-admin/edit.php?post_type=admincolorscheme&page=eacs-export - Failed to load resource: the server responded with a status of 500 (Internal Server Error)

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that require attention:
  • Screenshots: Please add images for these screenshots: #1 (The All Admin Color Schemes page), #2 (The Add/Edit Admin Color Scheme page), #3 (The Import Admin Color Scheme page), #4 (The Export Admin Color Scheme dialog), #5 (The Admin Color Schemes Settings page)
  • Tags: There are too many tags (20 tag instead of maximum 10)
The official readme.txt might help

easy-admin-color-schemes/easy-admin-color-schemes.php Passed 13 tests

The main file in "Easy Admin Color Schemes" v. 4.2 serves as a complement to information provided in readme.txt and as the entry point to the plugin
122 characters long description:
Easy Admin Color Schemes allows users to easily customize the look and feel of the administration interface for WordPress.

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
Everything looks great! No dangerous files found in this plugin1,104 lines of code in 14 files:
LanguageFilesBlank linesComment linesLines of code
PHP219794851
JavaScript45560131
CSS864120122

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.69
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
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions51
▷ Named functions51100.00%
▷ Anonymous functions00.00%
Constants21
▷ Global constants21100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
7 PNG files occupy 0.11MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
includes/img/icon16.png0.80KB0.92KB0.00%
screenshot-2.png40.33KB26.42KB▼ 34.48%
screenshot-4.png10.90KB9.09KB▼ 16.62%
screenshot-5.png13.85KB9.68KB▼ 30.14%
includes/img/icon32.png2.37KB1.65KB▼ 30.26%