Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.57MB] [CPU: ▼4.02ms] Passed 4 tests
This is a short check of server-side resources used by Media Library Tools - Media File Rename, Find Unused Media File, Support SVG , Edit Media Content
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.03 ▲0.57 | 43.99 ▲1.13 |
Dashboard /wp-admin | 3.88 ▲0.53 | 50.98 ▼11.81 |
Posts /wp-admin/edit.php | 3.93 ▲0.57 | 50.67 ▲1.48 |
Add New Post /wp-admin/post-new.php | 6.56 ▲0.67 | 88.43 ▼6.88 |
Media Library /wp-admin/upload.php | 3.85 ▲0.62 | 39.32 ▲5.56 |
Pricing /wp-admin/upload.php?page=tsmlt-get-pro | 3.71 | 37.13 |
Category /wp-admin/edit-tags.php?taxonomy=tsmlt_category&post_type=attachment | 3.80 | 37.23 |
Media Tools /wp-admin/upload.php?page=tsmlt-media-tools | 3.71 | 32.46 |
Server storage [IO: ▲1.37MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 33 new files
Database: 1 new table, 10 new options
New tables |
---|
wp_tsmlt_unlisted_file |
New WordPress options |
---|
can_compress_scripts |
tsmlt_settings |
widget_theysaidso_widget |
theysaidso_admin_options |
tsmlt_plugin_activation_time |
widget_recent-comments |
tsmlt_get_directory_list |
tsmlt_plugin_version |
db_upgraded |
widget_recent-posts |
Browser metrics Passed 4 tests
An overview of browser requirements for Media Library Tools - Media File Rename, Find Unused Media File, Support SVG , Edit Media Content
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,848 ▲86 | 14.23 ▼0.03 | 1.63 ▼0.05 | 37.17 ▼5.93 |
Dashboard /wp-admin | 2,247 ▲69 | 5.62 ▼0.08 | 94.91 ▼22.70 | 88.89 ▲42.41 |
Posts /wp-admin/edit.php | 2,162 ▲62 | 2.10 ▲0.14 | 38.50 ▲0.21 | 38.76 ▲1.90 |
Add New Post /wp-admin/post-new.php | 1,575 ▲49 | 22.69 ▼0.57 | 690.83 ▲42.33 | 55.04 ▲2.75 |
Media Library /wp-admin/upload.php | 1,455 ▲52 | 4.20 ▲0.04 | 103.29 ▲5.98 | 68.30 ▲23.88 |
Pricing /wp-admin/upload.php?page=tsmlt-get-pro | 1,459 | 2.08 | 32.72 | 175.98 |
Category /wp-admin/edit-tags.php?taxonomy=tsmlt_category&post_type=attachment | 1,335 | 2.27 | 31.54 | 39.75 |
Media Tools /wp-admin/upload.php?page=tsmlt-media-tools | 1,120 | 14.05 | 360.58 | 64.26 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
- Zombie tables detected upon uninstall: 1 table
- wp_tsmlt_unlisted_file
- The uninstall procedure has failed, leaving 10 options in the database
- widget_recent-posts
- widget_theysaidso_widget
- tsmlt_plugin_activation_time
- theysaidso_admin_options
- tsmlt_get_directory_list
- tsmlt_settings
- widget_recent-comments
- can_compress_scripts
- db_upgraded
- tsmlt_plugin_version
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 0% from 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
The following issues need your attention
- 9× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/media-library-tools/app/Helpers/Fns.php
- > /wp-content/plugins/media-library-tools/app/Tsmlt.php
- > /wp-content/plugins/media-library-tools/app/Controllers/Admin/SubMenu.php
- > /wp-content/plugins/media-library-tools/app/Controllers/Notice/BlackFriday.php
- > /wp-content/plugins/media-library-tools/app/Controllers/Installation.php
- > /wp-content/plugins/media-library-tools/app/Controllers/Dependencies.php
- > /wp-content/plugins/media-library-tools/app/Traits/SingletonTrait.php
- > /wp-content/plugins/media-library-tools/app/Controllers/AssetsController.php
- > /wp-content/plugins/media-library-tools/media-library-tools.php
- 3× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Trait 'TinySolutions\\mlt\\Traits\\SingletonTrait' not found in wp-content/plugins/media-library-tools/app/Controllers/Admin/Api.php on line 10
- > PHP Fatal error
Trait 'TinySolutions\\mlt\\Traits\\SingletonTrait' not found in wp-content/plugins/media-library-tools/app/Controllers/Admin/RegisterPostAndTax.php on line 12
- > PHP Fatal error
Trait 'TinySolutions\\mlt\\Traits\\SingletonTrait' not found in wp-content/plugins/media-library-tools/app/Controllers/Notice/Review.php on line 10
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Please fix the following attributes:
- Tags: Please delete some tags, you are using 28 tag instead of maximum 10
media-library-tools/media-library-tools.php 85% from 13 tests
Analyzing the main PHP file in "Media Library Tools - Media File Rename, Find Unused Media File, Support SVG , Edit Media Content" version 1.2.1
It is important to fix the following:
- Description: Please keep the plugin description shorter than 140 characters (currently 141 characters long)
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Good job! No executable or dangerous file extensions detected3,079 lines of code in 27 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 24 | 640 | 1,039 | 3,062 |
JavaScript | 1 | 0 | 54 | 11 |
JSON | 1 | 0 | 0 | 5 |
CSS | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.37 |
Average class complexity | 19.94 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 96.00 |
Average method complexity | 3.58 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 29.00 |
Code structure | ||
---|---|---|
Namespaces | 8 | |
Interfaces | 0 | |
Traits | 1 | |
Classes | 16 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 16 | 100.00% |
▷ Final classes | 1 | 6.25% |
Methods | 126 | |
▷ Static methods | 50 | 39.68% |
▷ Public methods | 115 | 91.27% |
▷ Protected methods | 1 | 0.79% |
▷ Private methods | 10 | 7.94% |
Functions | 10 | |
▷ Named functions | 1 | 10.00% |
▷ Anonymous functions | 9 | 90.00% |
Constants | 9 | |
▷ Global constants | 6 | 66.67% |
▷ Class constants | 3 | 33.33% |
▷ Public constants | 3 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
1 PNG file occupies 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/media-library-tools-icon-128x128.png | 6.82KB | 3.46KB | ▼ 49.19% |