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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 33.61 ▼4.93 |
Dashboard /wp-admin | 3.32 ▼0.03 | 45.61 ▼12.23 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 44.58 ▼6.03 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 89.48 ▼13.26 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 33.85 ▼2.48 |
Admin CSS MU /wp-admin/themes.php?page=admin-css-mu | 3.21 | 30.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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,795 ▲34 | 14.27 ▼0.09 | 1.60 ▼0.15 | 37.93 ▼1.95 |
Dashboard /wp-admin | 2,204 ▲27 | 5.64 ▼0.02 | 84.70 ▼0.18 | 40.64 ▼0.70 |
Posts /wp-admin/edit.php | 2,106 ▲6 | 2.04 ▲0.03 | 34.39 ▼0.27 | 35.78 ▲3.27 |
Add New Post /wp-admin/post-new.php | 1,540 ▲14 | 18.32 ▼5.38 | 605.85 ▼55.46 | 63.23 ▼0.98 |
Media Library /wp-admin/upload.php | 1,409 ▲15 | 4.17 ▲0.03 | 97.82 ▼1.28 | 44.09 ▼0.69 |
Admin CSS MU /wp-admin/themes.php?page=admin-css-mu | 1,069 | 2.13 | 33.43 | 32.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
- > PHP Warning
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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 2 | 490 | 455 | 5,960 |
PHP | 6 | 389 | 1,154 | 2,689 |
CSS | 3 | 61 | 22 | 333 |
Markdown | 1 | 20 | 0 | 66 |
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 code | 0.42 |
Average class complexity | 210.00 |
▷ Minimum class complexity | 72.00 |
▷ Maximum class complexity | 286.00 |
Average method complexity | 9.21 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 153.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 76 | |
▷ Static methods | 1 | 1.32% |
▷ Public methods | 76 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 15 | |
▷ Named functions | 14 | 93.33% |
▷ Anonymous functions | 1 | 6.67% |
Constants | 10 | |
▷ Global constants | 10 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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