84% admin-color-scheme

Code Review | ACOS - Custom Admin Color Scheme

WordPress plugin ACOS - Custom Admin Color Scheme scored84%from 54 tests.

About plugin

  • Plugin page: admin-color-scheme
  • Plugin version: 1.2
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 6.1-6.2
  • WordPress version: 6.3.1
  • First release: Apr 11, 2023
  • Latest release: Apr 11, 2023
  • Number of updates: 8
  • Update frequency: N/A
  • Top authors: plugna (100%)

Code review

54 tests

User reviews

1 review

Install metrics

80+ active /352 total downloads


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
This plugin's installer ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼4.94ms] Passed 4 tests

Analyzing server-side resources used by ACOS - Custom Admin Color Scheme
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0238.51 ▼4.29
Dashboard /wp-admin3.32 ▲0.0147.79 ▼5.79
Posts /wp-admin/edit.php3.37 ▲0.0150.02 ▼4.46
Add New Post /wp-admin/post-new.php5.90 ▲0.0191.72 ▼5.20
Media Library /wp-admin/upload.php3.24 ▲0.0134.61 ▼1.48

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options

Browser metrics Passed 4 tests

Checking browser requirements for ACOS - Custom Admin Color Scheme
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.34 ▲0.191.65 ▼0.2142.91 ▼2.39
Dashboard /wp-admin2,195 ▲155.62 ▲0.0097.73 ▲7.6743.74 ▲2.66
Posts /wp-admin/edit.php2,100 ▼02.08 ▲0.0941.96 ▲4.1638.31 ▲1.65
Add New Post /wp-admin/post-new.php1,526 ▼223.16 ▲0.13613.33 ▼19.3671.13 ▲10.05
Media Library /wp-admin/upload.php1,394 ▼34.22 ▲0.00100.58 ▼16.9645.01 ▼5.12

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please take a closer look at 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-scheme/plugin.php:23

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found


Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
4 plugin tags: color, scheme, admin, custom

admin-color-scheme/plugin.php 85% from 13 tests

Analyzing the main PHP file in "ACOS - Custom Admin Color Scheme" version 1.2
The following require your attention:
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("admin-color-scheme.php" instead of "plugin.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin223 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.30
Average class complexity22.00
▷ Minimum class complexity22.00
▷ Maximum class complexity22.00
Average method complexity2.75
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
▷ Static methods216.67%
▷ Public methods12100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions00.00%
▷ Anonymous functions00.00%
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
There are no PNG files in this plugin