Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.03MB] [CPU: ▼4.08ms] Passed 4 tests
Analyzing server-side resources used by Move Admin Menu Items
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 34.79 ▼12.33 |
Dashboard /wp-admin | 3.35 ▲0.05 | 48.95 ▲1.82 |
Posts /wp-admin/edit.php | 3.40 ▲0.04 | 51.47 ▲5.02 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.04 | 95.95 ▼5.45 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 36.09 ▼0.36 |
Admin Menu /wp-admin/admin.php?page=stb_mami | 3.27 | 34.13 |
Settings /wp-admin/admin.php?page=stb_mami_settings | 3.26 | 31.13 |
Server storage [IO: ▲0.06MB] [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: 20 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_theysaidso_widget |
widget_recent-comments |
can_compress_scripts |
widget_recent-posts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Checking browser requirements for Move Admin Menu Items
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,846 ▲75 | 13.30 ▼1.07 | 1.57 ▼1.08 | 38.20 ▼10.12 |
Dashboard /wp-admin | 2,238 ▲47 | 5.85 ▲0.96 | 107.77 ▲3.87 | 42.58 ▲0.12 |
Posts /wp-admin/edit.php | 2,118 ▲32 | 2.06 ▲0.02 | 41.73 ▲1.15 | 36.40 ▲0.61 |
Add New Post /wp-admin/post-new.php | 1,537 ▲2 | 23.48 ▲0.27 | 620.00 ▼55.22 | 55.45 ▲1.58 |
Media Library /wp-admin/upload.php | 1,420 ▲29 | 4.19 ▼0.02 | 99.32 ▲0.20 | 42.57 ▼4.81 |
Admin Menu /wp-admin/admin.php?page=stb_mami | 803 | 2.02 | 22.69 | 26.73 |
Settings /wp-admin/admin.php?page=stb_mami_settings | 971 | 2.06 | 24.35 | 29.68 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- theysaidso_admin_options
- db_upgraded
- widget_theysaidso_widget
- widget_recent-posts
- can_compress_scripts
- widget_recent-comments
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)
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
- 2× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function settings_fields() in wp-content/plugins/move-admin-menu-items/admin/partials/stb_mami-admin-display-settings.php:3
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/move-admin-menu-items/admin/partials/stb_mami-admin-display.php:1
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
6 plugin tags: cleanup, admin-menu, navigation, customize, menu...
move-admin-menu-items/stb_mami.php 85% from 13 tests
Analyzing the main PHP file in "Move Admin Menu Items" version 1.0.2
The following require your attention:
- Text Domain: The text domain name should consist of only dashes and lowercase characters
- Main file name: It is recommended to name the main PHP file as the plugin slug ("move-admin-menu-items.php" instead of "stb_mami.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
Good job! No executable or dangerous file extensions detected639 lines of code in 13 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 10 | 77 | 394 | 402 |
PO File | 2 | 24 | 44 | 162 |
CSS | 1 | 1 | 2 | 75 |
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.25 |
Average class complexity | 5.20 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 17.00 |
Average method complexity | 1.59 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 5.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 29 | |
▷ Static methods | 1 | 3.45% |
▷ Public methods | 23 | 79.31% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 6 | 20.69% |
Functions | 6 | |
▷ Named functions | 2 | 33.33% |
▷ Anonymous functions | 4 | 66.67% |
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
No PNG images were found in this plugin