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
This plugin's installer ran successfully
Server metrics [RAM: ▲0.03MB] [CPU: ▼3.83ms] Passed 4 tests
A check of server-side resources used by WP Media Categories
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 37.81 ▼3.00 |
Dashboard /wp-admin | 3.34 ▲0.03 | 45.95 ▲0.31 |
Posts /wp-admin/edit.php | 3.39 ▲0.03 | 40.98 ▼2.83 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.05 | 79.13 ▼8.21 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 33.40 ▼1.28 |
Categories /wp-admin/edit-tags.php?taxonomy=media_category&post_type=attachment | 3.34 | 35.98 |
Server storage [IO: ▲0.04MB] [DB: ▲0.07MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 11 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-posts |
widget_theysaidso_widget |
db_upgraded |
theysaidso_admin_options |
widget_recent-comments |
Browser metrics Passed 4 tests
This is an overview of browser requirements for WP Media Categories
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,795 ▲34 | 14.74 ▲0.39 | 1.57 ▲0.06 | 36.97 ▼3.67 |
Dashboard /wp-admin | 2,198 ▲18 | 5.62 ▲0.01 | 104.50 ▲21.88 | 51.86 ▲10.43 |
Posts /wp-admin/edit.php | 2,106 ▲24 | 2.03 ▼0.00 | 33.65 ▼0.69 | 35.35 ▲1.51 |
Add New Post /wp-admin/post-new.php | 1,537 ▲9 | 23.08 ▼0.22 | 663.29 ▲10.47 | 57.34 ▼4.78 |
Media Library /wp-admin/upload.php | 1,431 ▲31 | 4.26 ▲0.06 | 94.68 ▼10.37 | 43.50 ▼1.39 |
Categories /wp-admin/edit-tags.php?taxonomy=media_category&post_type=attachment | 1,277 | 2.12 | 25.63 | 28.70 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-comments
- widget_recent-posts
- db_upgraded
- can_compress_scripts
- widget_theysaidso_widget
- theysaidso_admin_options
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP Passed 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
Looking good! No server-side errors or output on direct access of PHP files
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)
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
- Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line (
=== wp-media-categories ===
)
wp-media-categories/wp-media-categories.php 92% from 13 tests
Analyzing the main PHP file in "WP Media Categories" version 2.1.0
Please take the time to fix the following:
- Domain Path: The domain path is invalid: folder "/wp-media-categories/lang" does not exist
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Everything looks great! No dangerous files found in this plugin811 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 8 | 251 | 342 | 696 |
JavaScript | 1 | 18 | 11 | 93 |
CSS | 1 | 3 | 2 | 22 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
Average class complexity | 5.75 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 14.00 |
Average method complexity | 2.90 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.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 | 10 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 10 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 24 | |
▷ Named functions | 24 | 100.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