78% admin-color-schemer

Code Review | Admin Color Schemer

WordPress plugin Admin Color Schemer scored78%from 54 tests.

About plugin

  • Plugin page: admin-color-schemer
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8+
  • WordPress version: 6.3.1
  • First release: Dec 24, 2013
  • Latest release: Oct 1, 2020
  • Number of updates: 11
  • Update frequency: every 228.5 days
  • Top authors: helen (90.91%)Otto42 (18.18%)

Code review

54 tests

User reviews

29 reviews

Install metrics

2,000+ active /24,984 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully

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

An overview of server-side resources used by Admin Color Schemer
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0840.18 ▼4.72
Dashboard /wp-admin3.39 ▲0.0849.50 ▲1.08
Posts /wp-admin/edit.php3.50 ▲0.1451.94 ▲6.64
Add New Post /wp-admin/post-new.php5.97 ▲0.0893.18 ▲2.92
Media Library /wp-admin/upload.php3.31 ▲0.0836.82 ▲0.63
Admin Colors /wp-admin/tools.php?page=admin-color-schemer3.2934.00

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 62 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
db_upgraded
widget_recent-posts
can_compress_scripts
widget_theysaidso_widget
theysaidso_admin_options

Browser metrics Passed 4 tests

Checking browser requirements for Admin Color Schemer
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲3214.34 ▲0.131.50 ▼0.3440.21 ▼3.74
Dashboard /wp-admin2,199 ▲195.62 ▲0.1082.63 ▼17.5443.38 ▲0.98
Posts /wp-admin/edit.php2,104 ▲41.97 ▼0.0238.80 ▲2.7235.04 ▼0.40
Add New Post /wp-admin/post-new.php1,529 ▲123.78 ▲0.55608.80 ▼48.4555.85 ▼4.34
Media Library /wp-admin/upload.php1,404 ▲44.28 ▲0.15102.41 ▼8.8644.16 ▼2.37
Admin Colors /wp-admin/tools.php?page=admin-color-schemer4,7263.50167.6927.26

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test

SRP 0% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The following issues need your attention
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/admin-color-schemer/lib/phpsass/compile-apache.php
  • 27× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'SassNode' not found in wp-content/plugins/admin-color-schemer/lib/phpsass/tree/SassRuleNode.php:18
    • > PHP Fatal error
      Uncaught Error: Class 'SassNode' not found in wp-content/plugins/admin-color-schemer/lib/phpsass/tree/SassFunctionDefinitionNode.php:18
    • > PHP Fatal error
      Uncaught Error: Class 'SassRenderer' not found in wp-content/plugins/admin-color-schemer/lib/phpsass/renderers/SassCompressedRenderer.php:19
    • > PHP Fatal error
      Uncaught Error: Class 'SassNode' not found in wp-content/plugins/admin-color-schemer/lib/phpsass/tree/SassCommentNode.php:18
    • > PHP Fatal error
      Uncaught Error: Class 'SassRenderer' not found in wp-content/plugins/admin-color-schemer/lib/phpsass/renderers/SassCompressedRenderer.php:19
    • > PHP Fatal error
      Uncaught Error: Class 'SassNode' not found in wp-content/plugins/admin-color-schemer/lib/phpsass/tree/SassMixinNode.php:18
    • > PHP Fatal error
      Uncaught Error: Class 'SassNode' not found in wp-content/plugins/admin-color-schemer/lib/phpsass/tree/SassReturnNode.php:18
    • > PHP Fatal error
      Uncaught Error: Class 'SassNode' not found in wp-content/plugins/admin-color-schemer/lib/phpsass/tree/SassForNode.php:28
    • > PHP Fatal error
      Uncaught Error: Class 'SassNode' not found in wp-content/plugins/admin-color-schemer/lib/phpsass/tree/SassImportNode.php:18
    • > PHP Fatal error
      Uncaught Error: Class 'SassNode' not found in wp-content/plugins/admin-color-schemer/lib/phpsass/tree/SassDebugNode.php:18

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
There were not plugin tags detected

admin-color-schemer/admin-color-schemer.php 92% from 13 tests

The principal PHP file in "Admin Color Schemer" v. 1.1 is loaded by WordPress automatically on each request
Please take the time to fix the following:
  • Domain Path: The domain path folder was not found ("/languages")

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
There were no executable files found in this plugin5,477 lines of code in 60 files:
LanguageFilesBlank linesComment linesLines of code
PHP561,0493,8455,380
JSON10038
JavaScript16230
YAML10118
CSS12011

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.42
Average class complexity12.58
▷ Minimum class complexity1.00
▷ Maximum class complexity131.00
Average method complexity2.98
▷ Minimum method complexity1.00
▷ Maximum method complexity29.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes76
▷ Abstract classes11.32%
▷ Concrete classes7598.68%
▷ Final classes00.00%
Methods446
▷ Static methods10022.42%
▷ Public methods41091.93%
▷ Protected methods194.26%
▷ Private methods173.81%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants150
▷ Global constants00.00%
▷ Class constants150100.00%
▷ Public constants150100.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 were not PNG files found in your plugin