84% move-admin-menu-items

Code Review | Move Admin Menu Items

WordPress plugin Move Admin Menu Items scored 84% from 54 tests.

About plugin

  • Plugin page: move-admin-menu-i...
  • Plugin version: 1.0.2
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9-5.2
  • WordPress version: 6.3.1
  • First release: Aug 11, 2019
  • Latest release: Aug 14, 2019
  • Number of updates: 7
  • Update frequency: every 0.4 days
  • Top authors: sierie85 (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

100+ active / 4,975 total downloads

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
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0134.79 ▼12.33
Dashboard /wp-admin3.35 ▲0.0548.95 ▲1.82
Posts /wp-admin/edit.php3.40 ▲0.0451.47 ▲5.02
Add New Post /wp-admin/post-new.php5.93 ▲0.0495.95 ▼5.45
Media Library /wp-admin/upload.php3.27 ▲0.0436.09 ▼0.36
Admin Menu /wp-admin/admin.php?page=stb_mami3.2734.13
Settings /wp-admin/admin.php?page=stb_mami_settings3.2631.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,846 ▲7513.30 ▼1.071.57 ▼1.0838.20 ▼10.12
Dashboard /wp-admin2,238 ▲475.85 ▲0.96107.77 ▲3.8742.58 ▲0.12
Posts /wp-admin/edit.php2,118 ▲322.06 ▲0.0241.73 ▲1.1536.40 ▲0.61
Add New Post /wp-admin/post-new.php1,537 ▲223.48 ▲0.27620.00 ▼55.2255.45 ▲1.58
Media Library /wp-admin/upload.php1,420 ▲294.19 ▼0.0299.32 ▲0.2042.57 ▼4.81
Admin Menu /wp-admin/admin.php?page=stb_mami8032.0222.6926.73
Settings /wp-admin/admin.php?page=stb_mami_settings9712.0624.3529.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

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:
LanguageFilesBlank linesComment linesLines of code
PHP1077394402
PO File22444162
CSS11275

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 code0.25
Average class complexity5.20
▷ Minimum class complexity1.00
▷ Maximum class complexity17.00
Average method complexity1.59
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes00.00%
Methods29
▷ Static methods13.45%
▷ Public methods2379.31%
▷ Protected methods00.00%
▷ Private methods620.69%
Functions6
▷ Named functions233.33%
▷ Anonymous functions466.67%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.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