84% quick-admin-color-scheme-picker

Code Review | Quick admin color scheme picker

WordPress plugin Quick admin color scheme picker scored84%from 54 tests.

About plugin

  • Plugin page: quick-admin-color...
  • Plugin version: 0.7
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-4.0.1
  • WordPress version: 6.3.1
  • First release: Jun 6, 2011
  • Latest release: Dec 9, 2014
  • Number of updates: 16
  • Update frequency: every 80.1 days
  • Top authors: mitchoyoshitaka (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /3,753 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
This plugin's installer ran successfully

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

Analyzing server-side resources used by Quick admin color scheme picker
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0136.88 ▼9.06
Dashboard /wp-admin3.34 ▲0.0348.78 ▼1.00
Posts /wp-admin/edit.php3.39 ▲0.0350.44 ▲0.03
Add New Post /wp-admin/post-new.php5.92 ▲0.0396.99 ▲1.71
Media Library /wp-admin/upload.php3.26 ▲0.0341.31 ▲4.37

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
can_compress_scripts
widget_recent-comments
widget_recent-posts
db_upgraded
theysaidso_admin_options

Browser metrics Passed 4 tests

Quick admin color scheme picker: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,932 ▲17114.34 ▲0.131.78 ▲0.2141.94 ▼3.89
Dashboard /wp-admin2,338 ▲1585.57 ▲0.0483.75 ▼10.4042.69 ▼1.33
Posts /wp-admin/edit.php2,246 ▲1461.95 ▼0.0844.87 ▲10.4036.18 ▼2.51
Add New Post /wp-admin/post-new.php1,679 ▲15318.29 ▼5.01647.28 ▼57.8666.50 ▲7.03
Media Library /wp-admin/upload.php1,543 ▲1434.24 ▲0.02107.08 ▼9.2447.17 ▼2.10

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% 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
Please take a closer look at the following
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/quick-admin-color-scheme-picker/quick-admin-color-scheme-picker.php:12

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)
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
7 plugin tags: color, admin, color scheme, ui, admin color...

quick-admin-color-scheme-picker/quick-admin-color-scheme-picker.php Passed 13 tests

The main PHP script in "Quick admin color scheme picker" version 0.7 is automatically included on every request by WordPress
102 characters long description:
Lets you quickly switch between admin color schemes from the "howdy menu." Happy Birthday Sara Cannon!

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Success! There were no dangerous files found in this plugin55 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1161155

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.42
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%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants0
▷ 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