94% admin-color-schemes

Code Review | Admin Color Schemes

WordPress plugin Admin Color Schemes scored 94% from 54 tests.

About plugin

  • Plugin page: admin-color-schemes
  • Plugin version: 3.0.0
  • PHP compatiblity: 5.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.7-5.9
  • WordPress version: 5.9.2
  • First release: Dec 8, 2013
  • Latest release: Jan 31, 2022
  • Number of updates: 17
  • Update frequency: every 176.5 days
  • Top authors: ryelle (88.24%)helen (17.65%)

Code review

54 tests

User reviews

25 reviews

Install metrics

6,000+ active / 46,023 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼296.67ms] Passed 4 tests

This is a short check of server-side resources used by Admin Color Schemes
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0455.52 ▲3.13
Dashboard /wp-admin3.46 ▲0.0534.57 ▼0.98
Posts /wp-admin/edit.php3.68 ▲0.0435.14 ▲0.58
Add New Post /wp-admin/post-new.php6.95 ▼0.0489.81 ▼1,183.97
Media Library /wp-admin/upload.php3.33 ▲0.0424.23 ▼2.31

Server storage [IO: ▲0.47MB] [DB: ▲0.00MB] Passed 3 tests

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 56 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

An overview of browser requirements for Admin Color Schemes
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,795 ▲5115.83 ▼0.136.10 ▼0.192.34 ▲0.05
Dashboard /wp-admin2,888 ▲345.97 ▼0.24116.50 ▼12.28156.95 ▼3.08
Posts /wp-admin/edit.php2,691 ▼03.23 ▼0.0162.83 ▲1.61142.06 ▲1.60
Add New Post /wp-admin/post-new.php1,663 ▲216.35 ▲0.00412.88 ▼6.78147.04 ▼9.41
Media Library /wp-admin/upload.php1,698 ▼05.50 ▲0.03134.66 ▼12.13185.89 ▼6.49

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Uninstall script ran successfully

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
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 add_action() in wp-content/plugins/admin-color-schemes/admin-color-schemes.php:196

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
No tags were found

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

Analyzing the main PHP file in "Admin Color Schemes" version 3.0.0
30 characters long description:
Even more admin color schemes.

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
There were no executable files found in this plugin1,390 lines of code in 55 files:
LanguageFilesBlank linesComment linesLines of code
Sass2730491,094
PHP12143159
CSS2504884
JSON10035
JavaScript141018

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.05
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
Namespaces1
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%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants00.00%
▷ Class constants1100.00%
▷ Public constants1100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG images were found in this plugin