90% media-menu-order

Code Review | Media Menu Order

WordPress plugin Media Menu Order scored90%from 54 tests.

About plugin

  • Plugin page: media-menu-order
  • Plugin version: 1.1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.8.1
  • WordPress version: 6.3.1
  • First release: Sep 4, 2016
  • Latest release: Sep 20, 2021
  • Number of updates: 11
  • Update frequency: every 167.6 days
  • Top authors: room34 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active /1,342 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼0.08ms] Passed 4 tests

This is a short check of server-side resources used by Media Menu Order
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0137.34 ▼3.63
Dashboard /wp-admin3.31 ▲0.0156.21 ▲9.80
Posts /wp-admin/edit.php3.36 ▲0.0148.34 ▲3.89
Add New Post /wp-admin/post-new.php5.89 ▲0.0191.00 ▼2.25
Media Library /wp-admin/upload.php3.23 ▲0.0135.31 ▲1.66

Server storage [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 3 tests

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_recent-comments
db_upgraded
can_compress_scripts
widget_theysaidso_widget
theysaidso_admin_options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Media Menu Order
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.37 ▼1.021.71 ▲0.0943.32 ▲0.71
Dashboard /wp-admin2,203 ▲185.86 ▼0.00109.16 ▲8.0542.25 ▲2.93
Posts /wp-admin/edit.php2,089 ▼02.02 ▲0.0438.77 ▲2.0433.63 ▼0.28
Add New Post /wp-admin/post-new.php1,542 ▲918.33 ▼2.79595.79 ▼85.7850.93 ▲0.50
Media Library /wp-admin/upload.php1,382 ▼64.19 ▼0.0593.92 ▼3.8043.26 ▼1.36

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
Please fix the following items
  • This plugin does not fully uninstall, leaving 6 options in the database
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 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
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
2 plugin tags: media library, menu order

media-menu-order/media-menu-order.php 92% from 13 tests

The main PHP script in "Media Menu Order" version 1.1.0 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
  • Description: The description should be shorter than 140 characters (currently 147 characters long)

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 detected27 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP172527

PHP code Passed 2 tests

This is a short overview 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 code0.36
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
There were not PNG files found in your plugin