89% enhanced-media-library

Code Review | Enhanced Media Library

WordPress plugin Enhanced Media Library scored 89% from 54 tests.

About plugin

  • Plugin page: enhanced-media-li...
  • Plugin version: 2.8.9
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.8.3
  • WordPress version: 6.3.1
  • First release: Nov 3, 2013
  • Latest release: Jan 9, 2022
  • Number of updates: 319
  • Update frequency: every 9.4 days
  • Top authors: webbistro (100%)

Code review

54 tests

User reviews

291 reviews

Install metrics

100,000+ active / 2,137,941 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

Server metrics [RAM: ▲0.67MB] [CPU: ▲1.54ms] Passed 4 tests

A check of server-side resources used by Enhanced Media Library
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.81 ▲0.3539.13 ▼7.85
Dashboard /wp-admin4.11 ▲0.8146.46 ▲0.15
Posts /wp-admin/edit.php4.16 ▲0.8051.58 ▲7.88
Add New Post /wp-admin/post-new.php6.66 ▲0.7799.01 ▲6.66
Media Library /wp-admin/upload.php3.98 ▲0.7543.18 ▲7.19
MIME Types /wp-admin/options-general.php?page=mime-types4.0338.95
Media Categories /wp-admin/edit-tags.php?taxonomy=media_category&post_type=attachment3.9638.57
Media Taxonomies /wp-admin/options-general.php?page=media-taxonomies3.9534.95
/wp-admin/admin.php?page=media3.9433.29
Media /wp-admin/options-general.php?page=media3.9435.85
Media Library /wp-admin/options-general.php?page=media-library3.9435.08
EML Utilities /wp-admin/options-general.php?page=eml-settings3.9435.22

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 32 new files
Database: no new tables, 11 new options
New WordPress options
widget_theysaidso_widget
wpuxss_eml_tax_options
wpuxss_eml_lib_options
widget_recent-comments
wpuxss_eml_taxonomies
can_compress_scripts
widget_recent-posts
db_upgraded
theysaidso_admin_options
wpuxss_eml_mimes
...

Browser metrics Passed 4 tests

An overview of browser requirements for Enhanced Media Library
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,838 ▲9213.82 ▼0.481.70 ▼0.4738.01 ▼6.21
Dashboard /wp-admin2,247 ▲595.12 ▲0.21111.97 ▲1.2140.63 ▼0.48
Posts /wp-admin/edit.php2,132 ▲462.32 ▲0.2840.51 ▲1.5635.84 ▲2.79
Add New Post /wp-admin/post-new.php1,563 ▲3523.63 ▲5.30673.36 ▲12.1837.51 ▼19.63
Media Library /wp-admin/upload.php1,521 ▲1334.77 ▲0.54118.59 ▲9.5258.33 ▲13.40
MIME Types /wp-admin/options-general.php?page=mime-types4,3712.1531.8359.13
Media Categories /wp-admin/edit-tags.php?taxonomy=media_category&post_type=attachment1,3082.0831.7528.84
Media Taxonomies /wp-admin/options-general.php?page=media-taxonomies1,5322.1329.0630.26
/wp-admin/admin.php?page=media9851.9829.6231.88
Media /wp-admin/options-general.php?page=media9891.9729.7228.27
Media Library /wp-admin/options-general.php?page=media-library1,3682.1930.1835.30
EML Utilities /wp-admin/options-general.php?page=eml-settings1,0842.2429.0936.58

Uninstaller [IO: ▲0.00MB] [DB: ▲0.04MB] 75% from 4 tests

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • This plugin did not uninstall successfully, leaving 11 options in the database
    • wpuxss_eml_tax_options
    • wpuxss_eml_taxonomies
    • wpuxss_eml_lib_options
    • db_upgraded
    • wpuxss_eml_version
    • widget_recent-posts
    • can_compress_scripts
    • wpuxss_eml_mimes
    • widget_recent-comments
    • widget_theysaidso_widget
    • ...

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

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
The SRP test was a success

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 93% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Please fix the following attributes:
  • Screenshots: These screenshots lack descriptions #1, #10, #11, #2, #3, #4, #5, #6, #7, #8, #9 in enhanced-media-library/assets to your readme.txt
  • Tags: Too many tags (27 tag instead of maximum 10); only the first 5 tags are used in your directory listing
Please take inspiration from this readme.txt

enhanced-media-library/enhanced-media-library.php Passed 13 tests

The main PHP file in "Enhanced Media Library" ver. 2.8.9 adds more information about the plugin and also serves as the entry point for this plugin
76 characters long description:
This plugin will be handy for those who need to manage a lot of media files.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected7,369 lines of code in 25 files:
LanguageFilesBlank linesComment linesLines of code
PHP81,7217043,372
JavaScript121,0903192,489
CSS4258521,486
SVG10022

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.45
Average class complexity3.67
▷ Minimum class complexity2.00
▷ Maximum class complexity6.00
Average method complexity1.89
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods9
▷ Static methods00.00%
▷ Public methods9100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions85
▷ Named functions8397.65%
▷ Anonymous functions22.35%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
There were not PNG files found in your plugin