Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲3.64MB] [CPU: ▲30.01ms] Passed 4 tests
Analyzing server-side resources used by Media Library Assistant
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.57 ▲1.10 | 47.01 ▲4.93 |
Dashboard /wp-admin | 7.71 ▲4.36 | 81.96 ▲16.89 |
Posts /wp-admin/edit.php | 7.76 ▲4.40 | 91.53 ▲47.74 |
Add New Post /wp-admin/post-new.php | 10.79 ▲4.89 | 147.18 ▲50.75 |
Media Library /wp-admin/upload.php | 7.93 ▲4.70 | 80.47 ▲50.47 |
Media Library Assistant /wp-admin/options-general.php?page=mla-settings-menu-general | 7.80 | 79.86 |
Assistant /wp-admin/upload.php?page=mla-menu | 8.27 | 86.68 |
Att. Tag /wp-admin/edit-tags.php?taxonomy=attachment_tag&post_type=attachment | 7.63 | 65.91 |
Att. Category /wp-admin/edit-tags.php?taxonomy=attachment_category&post_type=attachment | 7.63 | 77.01 |
Server storage [IO: ▲8.58MB] [DB: ▲0.01MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 451 new files
Database: no new tables, 12 new options
New WordPress options |
---|
mla_post_mime_types |
widget_recent-comments |
mla_upload_mimes |
db_upgraded |
can_compress_scripts |
widget_recent-posts |
mla_iptc_exif_mapping |
mla_current_version |
mla_custom_field_mapping |
widget_mla-text-widget |
... |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Media Library Assistant
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,806 ▲59 | 14.23 ▲0.30 | 1.77 ▲0.05 | 40.54 ▼3.44 |
Dashboard /wp-admin | 2,211 ▲37 | 5.62 ▼0.02 | 92.42 ▼5.67 | 36.32 ▼6.41 |
Posts /wp-admin/edit.php | 2,116 ▲13 | 1.94 ▼0.00 | 39.08 ▼0.27 | 37.13 ▼0.09 |
Add New Post /wp-admin/post-new.php | 1,686 ▲160 | 23.24 ▲0.33 | 681.05 ▲35.05 | 40.23 ▼16.11 |
Media Library /wp-admin/upload.php | 1,937 ▲540 | 4.49 ▲0.35 | 108.09 ▲7.09 | 57.55 ▲11.79 |
Media Library Assistant /wp-admin/options-general.php?page=mla-settings-menu-general | 2,600 | 1.66 | 29.44 | 52.16 |
Assistant /wp-admin/upload.php?page=mla-menu | 3,796 | 2.01 | 49.07 | 32.21 |
Att. Tag /wp-admin/edit-tags.php?taxonomy=attachment_tag&post_type=attachment | 1,264 | 2.12 | 29.39 | 30.87 |
Att. Category /wp-admin/edit-tags.php?taxonomy=attachment_category&post_type=attachment | 1,292 | 2.12 | 26.04 | 28.48 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
- The uninstall procedure has failed, leaving 12 options in the database
- widget_mla-text-widget
- mla_post_mime_types
- mla_upload_mimes
- mla_current_version
- widget_theysaidso_widget
- widget_recent-comments
- widget_recent-posts
- mla_custom_field_mapping
- mla_iptc_exif_mapping
- db_upgraded
- ...
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 0% 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 items
- 5× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/media-library-assistant/includes/mla-stream-image.php
- > /wp-content/plugins/media-library-assistant/examples/plugins/smart-media-categories/public/views/public.php
- > /wp-content/plugins/media-library-assistant/examples/plugins/smart-media-categories/admin/views/smc-sync-tag-block.php
- > /wp-content/plugins/media-library-assistant/examples/plugins/smart-media-categories/admin/views/smc-sync-tag-fieldset.php
- > /wp-content/plugins/media-library-assistant/examples/plugins/smart-media-categories/admin/views/smc-sync-category-fieldset.php
- 158× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHwp-admin/includes/meta-boxes.php' (include_path='.:/usr/share/php') in wp-content/plugins/media-library-assistant/includes/class-mla-main.php on line 11
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/media-library-assistant/examples/plugins/woofixit.php:3772
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/media-library-assistant/examples/plugins/mla-hierarchical-mapping-example.php:257
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/media-library-assistant/examples/plugins/mla-subscriber-media-access-example.php:189
- > PHP Fatal error
Uncaught Error: Class 'MLACore' not found in wp-content/plugins/media-library-assistant/includes/class-mla-ajax.php:566
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/media-library-assistant/examples/plugins/mla-current-user-example.php:188
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/media-library-assistant/includes/class-mla-main.php on line 11
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/media-library-assistant/examples/plugins/smart-media-categories/admin/views/smc-sync-category-block.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/media-library-assistant/examples/plugins/mla-custom-nolink-example.php:109
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/media-library-assistant/examples/plugins/mla-bulk-edit-remap-example.php:148
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
6 plugin tags: categories, gallery, images, tags, media...
media-library-assistant/index.php 85% from 13 tests
The main PHP file in "Media Library Assistant" ver. 3.13 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
- Description: Please keep the plugin description shorter than 140 characters (currently 148 characters long)
- Main file name: Name the main plugin file the same as the plugin slug ("media-library-assistant.php" instead of "index.php")
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected86,531 lines of code in 236 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 171 | 14,568 | 40,983 | 63,694 |
PO File | 4 | 3,839 | 1,988 | 10,599 |
JavaScript | 32 | 1,124 | 871 | 4,604 |
Smarty | 2 | 17 | 6,182 | 4,469 |
CSS | 26 | 670 | 433 | 3,119 |
XML | 1 | 0 | 0 | 46 |
PHP code 50% from 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Please tend to the following items
- Method cyclomatic complexity has to be reduced to less than 100 (currently 289)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.47 |
Average class complexity | 46.70 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 926.00 |
Average method complexity | 6.31 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 289.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 286 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 286 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 2,460 | |
▷ Static methods | 1,630 | 66.26% |
▷ Public methods | 1,921 | 78.09% |
▷ Protected methods | 30 | 1.22% |
▷ Private methods | 509 | 20.69% |
Functions | 13 | |
▷ Named functions | 13 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 257 | |
▷ Global constants | 10 | 3.89% |
▷ Class constants | 247 | 96.11% |
▷ Public constants | 247 | 100.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
112 PNG files occupy 0.64MB with 0.37MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/crystal/image.png | 7.06KB | 2.52KB | ▼ 64.34% |
images/crystal/mime_cdr.png | 5.57KB | 2.27KB | ▼ 59.27% |
images/crystal/postscript.png | 6.20KB | 2.58KB | ▼ 58.39% |
images/crystal/knotes.png | 5.88KB | 3.02KB | ▼ 48.57% |
images/crystal/metafont.png | 6.36KB | 2.55KB | ▼ 59.93% |