88% admin-css-mu

Code Review | Admin CSS MU

WordPress plugin Admin CSS MU scored 88% from 54 tests.

About plugin

  • Plugin page: admin-css-mu
  • Plugin version: 2.6
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-5.9
  • WordPress version: 5.9.2
  • First release: Jun 26, 2012
  • Latest release: Jan 26, 2022
  • Number of updates: 53
  • Update frequency: every 66.1 days
  • Top authors: arunbasillal (100%)

Code review

54 tests

User reviews

16 reviews

Install metrics

10,000+ active / 42,306 total downloads

Benchmarks

Plugin footprint Passed 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: ▼297.07ms] Passed 4 tests

This is a short check of server-side resources used by Admin CSS MU
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.57 ▲0.0554.63 ▲5.01
Dashboard /wp-admin3.47 ▲0.0633.28 ▼0.59
Posts /wp-admin/edit.php3.69 ▲0.0536.78 ▼1.22
Add New Post /wp-admin/post-new.php6.93 ▼0.0497.57 ▼1,188.36
Media Library /wp-admin/upload.php3.34 ▲0.0426.00 ▲1.91
Admin CSS MU /wp-admin/themes.php?page=admin-css-mu3.3123.18

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 17 new files
Database: no new tables, 2 new options
New WordPress options
abl_admincssmu_version
admincssmu_custom_css

Browser metrics Passed 4 tests

This is an overview of browser requirements for Admin CSS MU
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,788 ▲6615.67 ▼0.115.74 ▼0.372.12 ▼0.32
Dashboard /wp-admin2,885 ▲246.15 ▼0.06117.56 ▼18.82158.50 ▼3.80
Posts /wp-admin/edit.php2,698 ▲73.24 ▼0.0164.45 ▲0.77142.52 ▼0.60
Add New Post /wp-admin/post-new.php1,765 ▲10422.74 ▲5.61412.04 ▼25.02161.13 ▲5.43
Media Library /wp-admin/upload.php1,702 ▲45.51 ▲0.02141.28 ▼15.18191.67 ▲2.86
Admin CSS MU /wp-admin/themes.php?page=admin-css-mu1,2752.9965.27117.80

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 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

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 perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/admin-css-mu/csstidy/css_optimiser.php
  • 12× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
    • > PHP Notice
      Undefined index: HTTP_ACCEPT in wp-content/plugins/admin-css-mu/csstidy/css_optimiser.php on line 136
    • > PHP Warning
      in_array() expects parameter 2 to be array, null given in wp-content/plugins/admin-css-mu/csstidy/data-wp.inc.php on line 16
    • > PHP Notice
      Undefined index: HTTP_USER_AGENT in wp-content/plugins/admin-css-mu/csstidy/css_optimiser.php on line 140
    • > PHP Notice
      Undefined index: multiple_properties in wp-content/plugins/admin-css-mu/csstidy/data-wp.inc.php on line 34
    • > PHP Notice
      Undefined variable: data in wp-content/plugins/admin-css-mu/csstidy/data-wp.inc.php on line 3
    • > PHP Notice
      Undefined index: HTTP_ACCEPT in wp-content/plugins/admin-css-mu/csstidy/css_optimiser.php on line 134
    • > PHP Notice
      Undefined index: HTTP_USER_AGENT in wp-content/plugins/admin-css-mu/csstidy/css_optimiser.php on line 140
    • > PHP Notice
      Undefined index: HTTP_ACCEPT in wp-content/plugins/admin-css-mu/csstidy/css_optimiser.php on line 138
    • > PHP Notice
      Undefined index: color_values in wp-content/plugins/admin-css-mu/csstidy/data-wp.inc.php on line 24
    • > PHP Warning
      in_array() expects parameter 2 to be array, null given in wp-content/plugins/admin-css-mu/csstidy/data-wp.inc.php on line 24

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

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
7 plugin tags: multisite, custom admin css, mu plugin, admin css, admin...

admin-css-mu/admincssmu.php 85% from 13 tests

Analyzing the main PHP file in "Admin CSS MU" version 2.6
Please take the time to fix the following:
  • Domain Path: The domain path folder was not found ("/languages")
  • Main file name: Name the main plugin file the same as the plugin slug ("admin-css-mu.php" instead of "admincssmu.php")

Code Analysis 97% from 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 plugin9,659 lines of code in 14 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript24904555,960
PHP84621,2163,300
CSS36122333
Markdown120066

PHP code 50% from 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
It is recommended to fix the following
  • Method cyclomatic complexity should be reduced to less than 100 (currently 153)
Cyclomatic complexity
Average complexity per logical line of code0.38
Average class complexity210.00
▷ Minimum class complexity72.00
▷ Maximum class complexity286.00
Average method complexity9.21
▷ Minimum method complexity1.00
▷ Maximum method complexity153.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods76
▷ Static methods11.32%
▷ Public methods76100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions17
▷ Named functions1694.12%
▷ Anonymous functions15.88%
Constants10
▷ Global constants10100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
There are no PNG files in this plugin