84% grey-admin-color-schemes

Code Review | Grey Admin Color Schemes

WordPress plugin Grey Admin Color Schemes scored84%from 54 tests.

About plugin

  • Plugin page: grey-admin-color-...
  • Plugin version: 1.7
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8.0-6.2
  • WordPress version: 6.3.1
  • First release: Dec 16, 2013
  • Latest release: Apr 17, 2023
  • Number of updates: 53
  • Update frequency: every 64.3 days
  • Top authors: GregRoss (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

400+ active /5,558 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.01MB] [CPU: ▼3.07ms] Passed 4 tests

An overview of server-side resources used by Grey Admin Color Schemes
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0147.93 ▲5.77
Dashboard /wp-admin3.32 ▲0.0258.45 ▲7.12
Posts /wp-admin/edit.php3.37 ▲0.0145.77 ▼7.80
Add New Post /wp-admin/post-new.php5.90 ▲0.0183.49 ▼7.87
Media Library /wp-admin/upload.php3.24 ▲0.0135.04 ▼2.37

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Grey Admin Color Schemes
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,814 ▲2814.29 ▼0.421.96 ▼0.2744.58 ▲1.43
Dashboard /wp-admin2,192 ▲125.67 ▼0.0089.45 ▲1.0746.23 ▲3.53
Posts /wp-admin/edit.php2,103 ▼02.00 ▲0.0238.20 ▼4.6332.70 ▼6.72
Add New Post /wp-admin/post-new.php1,526 ▼923.62 ▲5.36683.21 ▲65.2350.88 ▼22.28
Media Library /wp-admin/upload.php1,403 ▲34.20 ▼0.0398.85 ▲0.2142.91 ▼1.94

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
Please fix the following items
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts
    • 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 | 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× 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/grey-admin-color-schemes/grey-admin-color-schemes.php:34

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

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
3 plugin tags: scheme, color, admin

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

The primary PHP file in "Grey Admin Color Schemes" version 1.7 is used by WordPress to initiate all plugin functionality
50 characters long description:
Grey color schemes for WordPress 3.8's admin area.

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
Good job! No executable or dangerous file extensions detected13,175 lines of code in 21 files:
LanguageFilesBlank linesComment linesLines of code
CSS83,15456211,080
Sass847471,971
PO File43660108
PHP191916

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.10
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%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
No PNG files were detected