Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Please fix the following installer errors
- Install procedure validation failed for this plugin
- > Notice in wp-content/plugins/custom-admin-ui/custom-admin-ui.php+12
Undefined index: options
Server metrics [RAM: ▼1.96MB] [CPU: ▼56.35ms] Passed 4 tests
Server-side resources used by Custom Admin UI
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.03 ▼1.44 | 5.30 ▼35.13 |
Dashboard /wp-admin | 2.05 ▼1.26 | 7.17 ▼48.29 |
Posts /wp-admin/edit.php | 2.05 ▼1.31 | 5.51 ▼44.37 |
Add New Post /wp-admin/post-new.php | 2.05 ▼3.84 | 6.04 ▼97.59 |
Media Library /wp-admin/upload.php | 2.05 ▼1.18 | 7.84 ▼30.68 |
Custom Admin UI /wp-admin/options-general.php?page=custom_admin_ui | 2.05 | 5.74 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-comments |
widget_recent-posts |
theysaidso_admin_options |
widget_theysaidso_widget |
can_compress_scripts |
Browser metrics Passed 4 tests
Custom Admin UI: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲32 | 14.27 ▼0.10 | 1.71 ▼0.04 | 47.57 ▲8.58 |
Dashboard /wp-admin | 2,196 ▲19 | 5.50 ▼0.06 | 83.21 ▼11.56 | 39.41 ▼9.80 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 1.93 ▼0.07 | 35.32 ▼2.10 | 42.00 ▲1.90 |
Add New Post /wp-admin/post-new.php | 1,529 ▲1 | 23.18 ▼0.01 | 686.13 ▲33.32 | 55.94 ▼7.94 |
Media Library /wp-admin/upload.php | 1,419 ▲25 | 4.19 ▲0.02 | 114.51 ▲17.52 | 48.22 ▲2.40 |
Custom Admin UI /wp-admin/options-general.php?page=custom_admin_ui | 879 | 2.00 | 23.72 | 30.83 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
- Uninstall procedure had uncaught errors
- > Notice in wp-content/plugins/custom-admin-ui/custom-admin-ui.php+12
Trying to access array offset on value of type bool
- Zombie WordPress options were found after uninstall: 6 options
- widget_theysaidso_widget
- widget_recent-posts
- can_compress_scripts
- widget_recent-comments
- db_upgraded
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Please fix the following server-side errors
- 11 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=custom_admin_ui
- > Notice in wp-content/plugins/custom-admin-ui/settings.php+126
Trying to access array offset on value of type bool
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following items
- 2× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/custom-admin-ui/custom-admin-ui.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/custom-admin-ui/settings.php:2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
1 plugin tags: custom admin ui
custom-admin-ui/custom-admin-ui.php Passed 13 tests
The entry point to "Custom Admin UI" version 1.6 is a PHP file that has certain tags in its header comment area
45 characters long description:
Customize the WordPress admin User Interface.
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
Good job! No executable or dangerous file extensions detected204 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 0 | 16 | 203 |
CSS | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.17 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 21 | |
▷ Named functions | 21 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
There are no PNG files in this plugin