Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully
Server metrics [RAM: ▼1.85MB] [CPU: ▼56.51ms] Passed 4 tests
A check of server-side resources used by Neat Admin Menu
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 42.94 ▼0.82 |
Dashboard /wp-admin | 2.09 ▼1.21 | 6.88 ▼45.17 |
Posts /wp-admin/edit.php | 2.10 ▼1.26 | 6.65 ▼49.31 |
Add New Post /wp-admin/post-new.php | 2.09 ▼3.79 | 6.58 ▼99.90 |
Media Library /wp-admin/upload.php | 2.09 ▼1.13 | 5.75 ▼31.67 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-posts |
widget_theysaidso_widget |
widget_recent-comments |
Browser metrics Passed 4 tests
An overview of browser requirements for Neat Admin Menu
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,807 ▲46 | 14.31 ▼0.06 | 2.10 ▲0.22 | 43.76 ▼4.01 |
Dashboard /wp-admin | 2,216 ▲39 | 5.64 ▼0.10 | 97.25 ▲5.30 | 42.45 ▼2.78 |
Posts /wp-admin/edit.php | 2,115 ▲15 | 2.05 ▼0.09 | 35.42 ▼6.31 | 34.69 ▼6.11 |
Add New Post /wp-admin/post-new.php | 1,541 ▲9 | 17.78 ▼5.30 | 650.71 ▲41.82 | 54.07 ▲3.57 |
Media Library /wp-admin/upload.php | 1,415 ▲18 | 4.37 ▲0.19 | 110.46 ▲9.89 | 47.12 ▲3.83 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- This plugin cannot be uninstalled
- > User notice in wp-includes/functions.php+5905
Function wp_enqueue_style was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the neat-admin-menu-style handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
- This plugin did not uninstall successfully, leaving 6 options in the database
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-comments
- db_upgraded
- widget_recent-posts
- 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
Everything seems fine, however this is by no means an exhaustive test
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
Please fix the following
- 4× PHP files trigger server errors when accessed directly:
- > PHP Warning
Invalid argument supplied for foreach() in wp-content/plugins/neat-admin-menu/neat-admin-menu-admin.php on line 7
- > PHP Notice
Undefined variable: menuFromSettings in wp-content/plugins/neat-admin-menu/neat-admin-menu-admin.php on line 7
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_create_nonce() in wp-content/plugins/neat-admin-menu/neat-admin-menu-admin.php:18
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/neat-admin-menu/neat-admin-menu.php:36
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
Please fix the following attributes:
- Screenshots: Add descriptions for screenshots #1, #2 in neat-admin-menu/assets to your readme.txt
neat-admin-menu/neat-admin-menu.php Passed 13 tests
The entry point to "Neat Admin Menu" version 1.1 is a PHP file that has certain tags in its header comment area
44 characters long description:
Allows to hide and sort WP Admin menu items.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected196 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 44 | 76 | 136 |
CSS | 2 | 6 | 5 | 33 |
JavaScript | 1 | 4 | 0 | 27 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
Average class complexity | 16.00 |
▷ Minimum class complexity | 16.00 |
▷ Maximum class complexity | 16.00 |
Average method complexity | 2.75 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 5.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 10 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 6 | 60.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 4 | 40.00% |
Functions | 2 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 2 | 100.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
Using a strong compression for your PNG files is a great way to speed-up your plugin
There were not PNG files found in your plugin