Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲0.08MB] [CPU: ▼4.70ms] Passed 4 tests
This is a short check of server-side resources used by VM Menu Reorder plugin
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.54 ▲0.08 | 37.90 ▼7.42 |
Dashboard /wp-admin | 3.38 ▲0.08 | 49.10 ▼5.77 |
Posts /wp-admin/edit.php | 3.44 ▲0.08 | 51.45 ▲5.13 |
Add New Post /wp-admin/post-new.php | 5.97 ▲0.08 | 87.64 ▲0.16 |
Media Library /wp-admin/upload.php | 3.31 ▲0.08 | 35.95 ▼5.76 |
Reorder Admin Menus /wp-admin/options-general.php?page=reorder_menu_page | 3.27 | 36.30 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 6 new files
Database: no new tables, 10 new options
New WordPress options |
---|
widget_recent-posts |
mr_user_cap |
mr_default_reorder_menu_position |
widget_theysaidso_widget |
mr_original_position |
can_compress_scripts |
menu_with_array_value |
db_upgraded |
theysaidso_admin_options |
widget_recent-comments |
Browser metrics Passed 4 tests
A check of browser resources used by VM Menu Reorder plugin
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲7 | 14.73 ▲0.45 | 1.82 ▼0.21 | 38.70 ▼6.57 |
Dashboard /wp-admin | 2,199 ▲22 | 5.64 ▲0.05 | 87.06 ▼2.92 | 40.45 ▲1.76 |
Posts /wp-admin/edit.php | 2,101 ▲1 | 2.03 ▲0.03 | 34.55 ▼2.68 | 34.02 ▼1.96 |
Add New Post /wp-admin/post-new.php | 1,529 ▼6 | 23.43 ▲4.97 | 691.29 ▼7.39 | 58.64 ▼13.55 |
Media Library /wp-admin/upload.php | 1,404 ▲4 | 4.19 ▼0.01 | 96.77 ▼14.86 | 42.50 ▼8.38 |
Reorder Admin Menus /wp-admin/options-general.php?page=reorder_menu_page | 1,043 | 2.18 | 37.69 | 46.13 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
- Zombie WordPress options were found after uninstall: 10 options
- mr_user_cap
- widget_recent-comments
- widget_recent-posts
- widget_theysaidso_widget
- menu_with_array_value
- mr_default_reorder_menu_position
- can_compress_scripts
- theysaidso_admin_options
- db_upgraded
- mr_original_position
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not 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
The following issues need your attention
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function trailingslashit() in wp-content/plugins/vm-menu-reorder/index.php:9
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
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 describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
5 plugin tags: dashboard, hide menu, admin menu, admin menu reorder, userrole menu order
vm-menu-reorder/index.php 92% from 13 tests
"VM Menu Reorder plugin" version 1.0.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
You should first fix the following items:
- Main file name: The principal plugin file should be the same as the plugin slug ("vm-menu-reorder.php" instead of "index.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
No dangerous file extensions were detected1,110 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 7 | 57 | 447 |
CSS | 2 | 1 | 10 | 405 |
JavaScript | 1 | 64 | 7 | 258 |
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.43 |
Average class complexity | 69.00 |
▷ Minimum class complexity | 69.00 |
▷ Maximum class complexity | 69.00 |
Average method complexity | 7.18 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 25.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 | 11 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 11 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There were not PNG files found in your plugin