Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully
Server metrics [RAM: ▲0.15MB] [CPU: ▼1.11ms] Passed 4 tests
This is a short check of server-side resources used by Media Library Categories
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.63 ▲0.13 | 41.81 ▲1.04 |
Dashboard /wp-admin | 3.50 ▲0.16 | 52.44 ▼1.17 |
Posts /wp-admin/edit.php | 3.61 ▲0.22 | 51.01 ▲0.52 |
Add New Post /wp-admin/post-new.php | 6.09 ▲0.16 | 90.89 ▼4.84 |
Media Library /wp-admin/upload.php | 3.43 ▲0.16 | 42.47 ▲6.44 |
Categories /wp-admin/edit-tags.php?taxonomy=category&post_type=attachment | 3.42 | 41.32 |
Server storage [IO: ▲0.29MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 12 new files
Database: no new tables, 7 new options
New WordPress options |
---|
db_upgraded |
category_children |
theysaidso_admin_options |
widget_recent-posts |
widget_recent-comments |
can_compress_scripts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
A check of browser resources used by Media Library Categories
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,845 ▲59 | 14.73 ▲0.20 | 1.93 ▲0.09 | 43.59 ▲0.01 |
Dashboard /wp-admin | 2,198 ▲30 | 5.50 ▼0.07 | 89.55 ▼0.78 | 44.81 ▼13.31 |
Posts /wp-admin/edit.php | 2,106 ▲6 | 1.99 ▼0.05 | 34.55 ▼8.24 | 33.85 ▼6.18 |
Add New Post /wp-admin/post-new.php | 1,531 ▼3 | 23.60 ▲5.36 | 642.08 ▲15.16 | 61.90 ▼7.76 |
Media Library /wp-admin/upload.php | 1,472 ▲72 | 4.27 ▲0.08 | 98.54 ▼10.90 | 42.95 ▼3.56 |
Categories /wp-admin/edit-tags.php?taxonomy=category&post_type=attachment | 1,461 | 2.12 | 27.58 | 36.19 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- The uninstall procedure has failed, leaving 7 options in the database
- theysaidso_admin_options
- widget_recent-posts
- category_children
- widget_recent-comments
- db_upgraded
- can_compress_scripts
- widget_theysaidso_widget
Smoke tests 75% from 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 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'Walker_CategoryDropdown' not found in wp-content/plugins/wp-media-library-categories/include/walkers.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Please fix the following attributes:
- Plugin Name: Please specify the plugin name on the first line (
=== wp-media-library-categories ===
)
wp-media-library-categories/index.php 92% from 13 tests
The principal PHP file in "Media Library Categories" v. 2.0.1 is loaded by WordPress automatically on each request
The following require your attention:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("wp-media-library-categories.php" instead of "index.php")
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
There were no executable files found in this plugin5,680 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 4 | 1,197 | 305 | 4,622 |
PHP | 2 | 198 | 171 | 619 |
CSS | 4 | 56 | 1 | 439 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.42 |
Average class complexity | 26.50 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 91.00 |
Average method complexity | 4.29 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 15.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 31 | |
▷ Static methods | 1 | 3.23% |
▷ Public methods | 31 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
There are no PNG files in this plugin