Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▲0.12MB] [CPU: ▼8.04ms] Passed 4 tests
Server-side resources used by ELU Hide Admin Menu
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.54 ▲0.07 | 40.83 ▲3.57 |
Dashboard /wp-admin | 3.44 ▲0.13 | 51.33 ▼3.18 |
Posts /wp-admin/edit.php | 3.55 ▲0.19 | 51.68 ▲0.68 |
Add New Post /wp-admin/post-new.php | 6.02 ▲0.13 | 91.15 ▼33.24 |
Media Library /wp-admin/upload.php | 3.36 ▲0.13 | 37.57 ▲5.55 |
Admin Menu /wp-admin/admin.php?page=hide-admin-menu | 3.38 | 36.23 |
Import & Export /wp-admin/admin.php?page=hide-admin-menu-imex | 3.33 | 34.34 |
Admin Bar /wp-admin/admin.php?page=hide-admin-menu-bar | 3.35 | 34.54 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 14 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-comments |
db_upgraded |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Checking browser requirements for ELU Hide Admin Menu
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,820 ▲59 | 14.69 ▲0.06 | 1.62 ▼0.03 | 42.89 ▼1.94 |
Dashboard /wp-admin | 2,226 ▲46 | 5.64 ▼0.02 | 84.82 ▼5.49 | 39.06 ▼2.39 |
Posts /wp-admin/edit.php | 2,131 ▲31 | 2.03 ▲0.01 | 39.79 ▼2.60 | 35.35 ▼2.60 |
Add New Post /wp-admin/post-new.php | 1,551 ▲16 | 23.45 ▲5.12 | 670.65 ▲11.63 | 56.99 ▼18.30 |
Media Library /wp-admin/upload.php | 1,428 ▲28 | 4.23 ▼0.04 | 97.41 ▼8.12 | 43.05 ▼8.45 |
Admin Menu /wp-admin/admin.php?page=hide-admin-menu | 1,667 | 1.95 | 38.56 | 47.70 |
Import & Export /wp-admin/admin.php?page=hide-admin-menu-imex | 834 | 2.15 | 25.17 | 32.12 |
Admin Bar /wp-admin/admin.php?page=hide-admin-menu-bar | 1,239 | 1.96 | 36.14 | 36.00 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-posts
- widget_theysaidso_widget
- db_upgraded
- theysaidso_admin_options
- widget_recent-comments
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Almost there! Just fix the following items
- 8× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Class 'Peace_Admin_Page' not found in wp-content/plugins/elu-hide-admin-menu/inc/imex.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/elu-hide-admin-menu/inc/admin-pages/admin-bar.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/elu-hide-admin-menu/hide-admin-menu.php:12
- > PHP Fatal error
Uncaught Error: Class 'Peace_Admin_Page' not found in wp-content/plugins/elu-hide-admin-menu/inc/admin-menu.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function get_site_option() in wp-content/plugins/elu-hide-admin-menu/inc/admin-pages/admin-menu.php:5
- > PHP Fatal error
Uncaught Error: Class 'Peace_Admin_Page' not found in wp-content/plugins/elu-hide-admin-menu/inc/admin-bar.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/elu-hide-admin-menu/inc/admin-pages/imex.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/elu-hide-admin-menu/inc/functions.php:3
- > 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)
There were no browser issues found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
6 plugin tags: hide wordpress, admin menu, hide menu, admin bar, hide admin...
elu-hide-admin-menu/hide-admin-menu.php 92% from 13 tests
The principal PHP file in "ELU Hide Admin Menu" v. 1.0.0 is loaded by WordPress automatically on each request
It is important to fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("elu-hide-admin-menu.php" instead of "hide-admin-menu.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Good job! No executable or dangerous file extensions detected799 lines of code in 13 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 10 | 174 | 276 | 748 |
CSS | 1 | 0 | 0 | 27 |
JavaScript | 2 | 6 | 2 | 24 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.40 |
Average class complexity | 17.00 |
▷ Minimum class complexity | 9.00 |
▷ Maximum class complexity | 34.00 |
Average method complexity | 3.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 12.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 32 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 32 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 4 | |
▷ Named functions | 4 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
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
Using a strong compression for your PNG files is a great way to speed-up your plugin
PNG images were not found in this plugin