68% wp-media-manager-lite

Code Review | The Easiest WordPress Media Manager Plugin - WP Media Manager Lite

WordPress plugin The Easiest WordPress Media Manager Plugin - WP Media Manager Lite scored 68% from 54 tests.

About plugin

  • Plugin page: wp-media-manager-...
  • Plugin version: 1.1.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-5.8
  • WordPress version: 5.9.2
  • First release: Jul 20, 2017
  • Latest release: Dec 10, 2021
  • Number of updates: 26
  • Update frequency: every 61.7 days
  • Top authors: Access Keys (100%)

Code review

54 tests

User reviews

6 reviews

Install metrics

1,000+ active / 20,503 total downloads

Benchmarks

Plugin footprint 65% 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.15MB] [CPU: ▼313.38ms] Passed 4 tests

Server-side resources used by The Easiest WordPress Media Manager Plugin - WP Media Manager Lite
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.69 ▲0.1856.20 ▼0.20
Dashboard /wp-admin3.54 ▲0.1336.23 ▼19.93
Posts /wp-admin/edit.php3.82 ▲0.1844.37 ▲4.88
Add New Post /wp-admin/post-new.php7.07 ▲0.11102.02 ▼1,238.26
Media Library /wp-admin/upload.php3.51 ▲0.2237.07 ▲8.13
Documentation /wp-admin/admin.php?page=wpmedialite-doclinks3.2116.75
Check Premium Version /wp-admin/admin.php?page=wpmedialite_premium3.2125.53
WP Media Manager Lite /wp-admin/admin.php?page=wp-media-manager-lite3.5434.58

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 92 new files
Database: 2 new tables, 6 new options
New tables
wp_media_folders_lists
wp_media_folder_file_relationship
New WordPress options
wpmediamanager_settings
wpmdia_font_family
wpmedia_selected_wt_default
wpmedia_weight_default
wpmediamanager_custom_dimension
wpmediamanager_s_filtersize

Browser metrics Passed 4 tests

This is an overview of browser requirements for The Easiest WordPress Media Manager Plugin - WP Media Manager Lite
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,948 ▲19415.96 ▲0.2211.00 ▲5.242.78 ▲0.26
Dashboard /wp-admin2,963 ▲1026.09 ▼0.12147.85 ▲6.93209.97 ▲47.84
Posts /wp-admin/edit.php2,776 ▲743.14 ▲0.0869.09 ▼19.06209.34 ▲60.83
Add New Post /wp-admin/post-new.php1,759 ▲9916.44 ▼5.90410.48 ▼19.59241.50 ▲70.56
Media Library /wp-admin/upload.php2,284 ▲5896.58 ▲1.05195.20 ▲43.78220.07 ▲28.86
Documentation /wp-admin/admin.php?page=wpmedialite-doclinks1,5359.80345.39305.29
Check Premium Version /wp-admin/admin.php?page=wpmedialite_premium2,08612.07336.03200.32
WP Media Manager Lite /wp-admin/admin.php?page=wp-media-manager-lite2,2577.86272.28205.79

Uninstaller [IO: ▲0.00MB] [DB: ▲0.02MB] 50% from 4 tests

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • Zombie tables detected upon uninstall: 2 tables
    • wp_media_folders_lists
    • wp_media_folder_file_relationship
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • wpmedia_weight_default
    • wpmdia_font_family
    • wpmediamanager_custom_dimension
    • wpmediamanager_s_filtersize
    • wpmedia_selected_wt_default
    • wpmediamanager_settings

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The following issues need your attention
  • 21× PHP files perform the task of outputting text when accessed with GET requests (only 10 are shown):
    • > /wp-content/plugins/wp-media-manager-lite/inc/backend/save_settings.php
    • > /wp-content/plugins/wp-media-manager-lite/inc/backend/folder-management/tabs/main_settings.php
    • > /wp-content/plugins/wp-media-manager-lite/inc/common-model/common-libs.php
    • > /wp-content/plugins/wp-media-manager-lite/inc/class/core-class.php
    • > /wp-content/plugins/wp-media-manager-lite/inc/backend/folder-management/panel-head.php
    • > /wp-content/plugins/wp-media-manager-lite/inc/backend/folder-management/tabs/how-to-use.php
    • > /wp-content/plugins/wp-media-manager-lite/inc/shortcodes-gallery/shortcode-grid-gallery.php
    • > /wp-content/plugins/wp-media-manager-lite/inc/backend/folder-management/tabs/custom-filters.php
    • > /wp-content/plugins/wp-media-manager-lite/inc/backend/media-enhancement/media-folder-lists.php
    • > /wp-content/plugins/wp-media-manager-lite/inc/class/filter-custom-class.php

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
These are user-side errors you should fix
    • > GET request to /wp-admin/admin.php?page=wpmedialite-doclinks
    • > Javascript (severe) in unknown
    https://accesspressthemes.com/documentation/wp-media-manager-lite/ - Access to script at 'https://embed.tawk.to/60cc2bbb65b7290ac63693ec/1f8eollms' from origin 'https://accesspressthemes.com' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=wpmedialite_premium
    • > Network (severe)
    https://embed.tawk.to/60cc2bbb65b7290ac63693ec/1f8eollms - Failed to load resource: net::ERR_FAILED
    • > GET request to /wp-admin/admin.php?page=wpmedialite_premium
    • > Javascript (severe) in unknown
    https://accesspressthemes.com/wordpress-plugins/wp-media-manager/ - Access to script at 'https://embed.tawk.to/60cc2bbb65b7290ac63693ec/1f8eollms' from origin 'https://accesspressthemes.com' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need to be fixed:
  • Tags: Too many tags (16 tag instead of maximum 10); only the first 5 tags are used in your directory listing
Please take inspiration from this readme.txt

wp-media-manager-lite/wp-media-manager-lite.php 92% from 13 tests

"The Easiest WordPress Media Manager Plugin - WP Media Manager Lite" version 1.1.3's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
  • Description: Please keep the plugin description shorter than 140 characters (currently 143 characters long)

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
Good job! No executable or dangerous file extensions detected14,405 lines of code in 39 files:
LanguageFilesBlank linesComment linesLines of code
CSS106901775,976
PHP226381,0213,632
SVG2003,172
JavaScript52532121,625

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.50
Average class complexity73.43
▷ Minimum class complexity15.00
▷ Maximum class complexity163.00
Average method complexity4.87
▷ Minimum method complexity1.00
▷ Maximum method complexity77.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods131
▷ Static methods5642.75%
▷ Public methods12998.47%
▷ Protected methods21.53%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants22
▷ Global constants1359.09%
▷ Class constants940.91%
▷ Public constants9100.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
35 PNG files occupy 1.60MB with 0.74MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/plugin.png12.50KB5.31KB▼ 57.50%
css/backend/images/ui-icons_ffd27a_256x240.png4.44KB4.17KB▼ 6.02%
css/backend/images/ui-bg_glass_100_fdf5ce_1x400.png0.34KB0.16KB▼ 54.02%
css/backend/images/ui-bg_highlight-soft_100_eeeeee_1x100.png0.27KB0.14KB▼ 47.84%
images/customize.png24.05KB8.41KB▼ 65.05%