Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully
Server metrics [RAM: ▲0.03MB] [CPU: ▼311.96ms] Passed 4 tests
Server-side resources used by Admin UI Cleaner
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.64 ▲0.12 | 58.39 ▼54.71 |
Dashboard /wp-admin | 3.38 ▼0.04 | 24.62 ▼9.69 |
Posts /wp-admin/edit.php | 3.73 ▲0.09 | 39.37 ▼1.24 |
Add New Post /wp-admin/post-new.php | 6.97 ▼0.00 | 88.59 ▼1,182.20 |
Media Library /wp-admin/upload.php | 3.38 ▲0.08 | 26.50 ▲3.19 |
Admin UI Cleaner /wp-admin/options-general.php?page=admin-ui-cleaner | 3.35 | 24.00 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 18 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
An overview of browser requirements for Admin UI Cleaner
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,348 ▼1,406 | 15.06 ▼0.06 | 5.83 ▼0.89 | 2.70 ▼0.36 |
Dashboard /wp-admin | 1,479 ▼1,381 | 5.56 ▼0.56 | 106.63 ▼30.94 | 163.08 ▼2.85 |
Posts /wp-admin/edit.php | 2,637 ▼54 | 3.23 ▼0.00 | 61.65 ▼6.12 | 126.04 ▼20.54 |
Add New Post /wp-admin/post-new.php | 1,674 ▲13 | 21.36 ▲5.33 | 437.65 ▲20.73 | 180.92 ▼11.59 |
Media Library /wp-admin/upload.php | 1,650 ▼48 | 5.49 ▼0.02 | 142.99 ▼9.19 | 221.36 ▼36.13 |
Admin UI Cleaner /wp-admin/options-general.php?page=admin-ui-cleaner | 946 | 2.37 | 54.20 | 101.54 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The plugin uninstalled successfully, without leaving any zombie files or tables
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 have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function AUC\\add_action() in wp-content/plugins/admin-ui-cleaner/src/AdminBar.php:6
- > PHP Fatal error
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 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
6 plugin tags: widget, admin, minimize, ui cleaner, hide...
admin-ui-cleaner/admin-ui-cleaner.php 92% from 13 tests
This is the main PHP file of "Admin UI Cleaner" version 1.1.3, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please make the necessary changes and fix the following:
- Domain Path: The domain path points to a folder that does not exist ("/languages/")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin487 lines of code in 16 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 14 | 103 | 170 | 483 |
CSS | 1 | 0 | 1 | 3 |
JSON | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
Average class complexity | 7.22 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 44.00 |
Average method complexity | 2.37 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 9 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 9 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 42 | |
▷ Static methods | 3 | 7.14% |
▷ Public methods | 40 | 95.24% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 4.76% |
Functions | 3 | |
▷ Named functions | 1 | 33.33% |
▷ Anonymous functions | 2 | 66.67% |
Constants | 0 | |
▷ Global constants | 0 | 0.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