80% mediacommander

Code Review | Media Commander - WordPress Folders Manager

WordPress plugin Media Commander - WordPress Folders Manager scored80%from 54 tests.

About plugin

  • Plugin page: mediacommander
  • Plugin version: 1.0.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-6.2
  • WordPress version: 6.3.1
  • First release: Sep 4, 2023
  • Latest release: Sep 4, 2023
  • Number of updates: 3
  • Update frequency: every 0.7 days
  • Top authors: avirtum (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /44 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

Server metrics [RAM: ▲0.27MB] [CPU: ▼1.60ms] Passed 4 tests

Analyzing server-side resources used by Media Commander - WordPress Folders Manager
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.73 ▲0.2740.96 ▼0.38
Dashboard /wp-admin3.56 ▲0.2653.62 ▲4.79
Posts /wp-admin/edit.php3.68 ▲0.3252.04 ▼1.99
Add New Post /wp-admin/post-new.php6.16 ▲0.2896.19 ▼8.81
Media Library /wp-admin/upload.php3.49 ▲0.2644.31 ▲8.57
Media Commander /wp-admin/options-general.php?page=mediacommander-settings3.4734.29

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 31 new files
Database: 2 new tables, 6 new options
New tables
wp_mediacommander_folders
wp_mediacommander_attachments
New WordPress options
widget_theysaidso_widget
widget_recent-comments
widget_recent-posts
can_compress_scripts
theysaidso_admin_options
db_upgraded

Browser metrics Passed 4 tests

Media Commander - WordPress Folders Manager: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,083 ▲31213.85 ▼0.189.51 ▲7.5440.32 ▼0.29
Dashboard /wp-admin2,309 ▲1215.18 ▲0.30117.49 ▲13.9337.60 ▼10.35
Posts /wp-admin/edit.php2,191 ▲1022.16 ▲0.1544.69 ▲3.7134.73 ▼3.16
Add New Post /wp-admin/post-new.php1,603 ▲8423.51 ▲0.40676.77 ▲43.2138.15 ▼22.68
Media Library /wp-admin/upload.php1,826 ▲4444.51 ▲0.31126.06 ▲24.7949.24 ▲2.22
Media Commander /wp-admin/options-general.php?page=mediacommander-settings1,6312.5754.0430.93

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% 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
  • Zombie tables detected upon uninstall: 2 tables
    • wp_mediacommander_folders
    • wp_mediacommander_attachments
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded

Smoke tests Passed 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 Passed 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
7 plugin tags: wp file manager, media library folders, media library, wp media folders, organizer...

mediacommander/mediacommander.php Passed 13 tests

The main PHP file in "Media Commander - WordPress Folders Manager" ver. 1.0.0 adds more information about the plugin and also serves as the entry point for this plugin
131 characters long description:
Improve your WordPress media library with a more intuitive way. Simply drag & drop items into folders for effortless accessibility.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Everything looks great! No dangerous files found in this plugin1,343 lines of code in 19 files:
LanguageFilesBlank linesComment linesLines of code
PHP7161321,331
JavaScript8008
CSS4004

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.27
Average class complexity44.00
▷ Minimum class complexity2.00
▷ Maximum class complexity126.00
Average method complexity3.95
▷ Minimum method complexity1.00
▷ Maximum method complexity40.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods44
▷ Static methods1125.00%
▷ Public methods3068.18%
▷ Protected methods36.82%
▷ Private methods1125.00%
Functions1
▷ Named functions00.00%
▷ Anonymous functions1100.00%
Constants6
▷ Global constants6100.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
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/img/chess.png0.13KB0.09KB▼ 31.85%