83% admin-css-mu

Code Review | Admin CSS MU

WordPress plugin Admin CSS MU scored83%from 54 tests.

About plugin

  • Plugin page: admin-css-mu
  • Plugin version: 2.10
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-6.3.1
  • WordPress version: 6.3.1
  • First release: Jun 26, 2012
  • Latest release: Oct 4, 2023
  • Number of updates: 60
  • Update frequency: every 68.6 days
  • Top authors: arunbasillal (100%)

Code review

54 tests

User reviews

23 reviews

Install metrics

10,000+ active /85,976 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
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.00MB] [CPU: ▼9.11ms] Passed 4 tests

A check of server-side resources used by Admin CSS MU
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0133.61 ▼4.93
Dashboard /wp-admin3.32 ▼0.0345.61 ▼12.23
Posts /wp-admin/edit.php3.37 ▲0.0144.58 ▼6.03
Add New Post /wp-admin/post-new.php5.90 ▲0.0189.48 ▼13.26
Media Library /wp-admin/upload.php3.24 ▲0.0133.85 ▼2.48
Admin CSS MU /wp-admin/themes.php?page=admin-css-mu3.2130.61

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 15 new files
Database: no new tables, 8 new options
New WordPress options
abl_admincssmu_version
widget_recent-posts
admincssmu_custom_css
db_upgraded
widget_theysaidso_widget
widget_recent-comments
can_compress_scripts
theysaidso_admin_options

Browser metrics Passed 4 tests

Admin CSS MU: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,795 ▲3414.27 ▼0.091.60 ▼0.1537.93 ▼1.95
Dashboard /wp-admin2,204 ▲275.64 ▼0.0284.70 ▼0.1840.64 ▼0.70
Posts /wp-admin/edit.php2,106 ▲62.04 ▲0.0334.39 ▼0.2735.78 ▲3.27
Add New Post /wp-admin/post-new.php1,540 ▲1418.32 ▼5.38605.85 ▼55.4663.23 ▼0.98
Media Library /wp-admin/upload.php1,409 ▲154.17 ▲0.0397.82 ▼1.2844.09 ▼0.69
Admin CSS MU /wp-admin/themes.php?page=admin-css-mu1,0692.1333.4332.51

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

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
Almost there! Just fix the following items
  • 7× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Warning
      Invalid argument supplied for foreach() in wp-content/plugins/admin-css-mu/csstidy/data-wp.inc.php on line 34
    • > 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: unit_values in wp-content/plugins/admin-css-mu/csstidy/data-wp.inc.php on line 16
    • > PHP Notice
      Undefined variable: data in wp-content/plugins/admin-css-mu/csstidy/data-wp.inc.php on line 3
    • > PHP Notice
      Undefined index: multiple_properties in wp-content/plugins/admin-css-mu/csstidy/data-wp.inc.php on line 34
    • > 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 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
7 plugin tags: mu plugin, must use, admin css, admin, custom admin css...

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

The entry point to "Admin CSS MU" version 2.10 is a PHP file that has certain tags in its header comment area
Please take the time to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("admin-css-mu.php" instead of "admincssmu.php")
  • Domain Path: The domain path points to an invalid folder, "/languages" does not exist

Code Analysis 97% from 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
No dangerous file extensions were detected9,048 lines of code in 12 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript24904555,960
PHP63891,1542,689
CSS36122333
Markdown120066

PHP code 50% from 2 tests

This plugin's cyclomatic complexity and code structure detailed below
It is recommended to fix the following
  • Cyclomatic complexity of methods should be reduced to less than 100 (currently 153)
Cyclomatic complexity
Average complexity per logical line of code0.42
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%
Functions15
▷ Named functions1493.33%
▷ Anonymous functions16.67%
Constants10
▷ Global constants10100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
There were not PNG files found in your plugin