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
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.03MB] [CPU: ▼4.86ms] Passed 4 tests
This is a short check of server-side resources used by Viström Media Library Categories
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 39.65 ▼1.24 |
Dashboard /wp-admin | 3.34 ▼0.00 | 46.38 ▼14.29 |
Posts /wp-admin/edit.php | 3.40 ▲0.04 | 49.98 ▲4.26 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.06 | 84.02 ▼8.18 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 38.79 ▲6.21 |
Categories /wp-admin/edit-tags.php?taxonomy=vistrom_media_category&post_type=attachment | 3.28 | 35.64 |
Server storage [IO: ▲1.00MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 22 new files
Database: no new tables, 8 new options
New WordPress options |
---|
widget_recent-posts |
widget_recent-comments |
vistrom_media_category_children |
theysaidso_admin_options |
default_term_vistrom_media_category |
widget_theysaidso_widget |
db_upgraded |
can_compress_scripts |
Browser metrics Passed 4 tests
A check of browser resources used by Viström Media Library Categories
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,853 ▲82 | 14.71 ▲0.33 | 1.84 ▼0.23 | 43.04 ▼0.18 |
Dashboard /wp-admin | 2,256 ▲68 | 6.35 ▲1.47 | 125.60 ▲8.76 | 39.69 ▼4.47 |
Posts /wp-admin/edit.php | 2,165 ▲76 | 3.31 ▲1.25 | 51.69 ▲18.40 | 36.45 ▼0.29 |
Add New Post /wp-admin/post-new.php | 1,537 ▲17 | 23.12 ▼0.38 | 626.61 ▼81.41 | 37.22 ▼27.80 |
Media Library /wp-admin/upload.php | 1,421 ▲36 | 4.20 ▲0.02 | 80.01 ▼28.80 | 43.73 ▼4.13 |
Categories /wp-admin/edit-tags.php?taxonomy=vistrom_media_category&post_type=attachment | 1,439 | 3.16 | 40.33 | 31.37 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- This plugin did not uninstall successfully, leaving 8 options in the database
- theysaidso_admin_options
- db_upgraded
- can_compress_scripts
- widget_recent-comments
- widget_recent-posts
- widget_theysaidso_widget
- vistrom_media_category_children
- default_term_vistrom_media_category
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)
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following
- 3× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function untrailingslashit() in wp-content/plugins/vistrom-media-library-categories/vistrom-media-library-categories.php:140
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/vistrom-media-library-categories/includes/VistromMediaAjaxController.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/vistrom-media-library-categories/views/admin/media/bulk-edit-grid.php:4
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 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
5 plugin tags: categories, bulk-edit, library, category, media
vistrom-media-library-categories/vistrom-media-library-categories.php 92% from 13 tests
The principal PHP file in "Viström Media Library Categories" v. 1.1.1 is loaded by WordPress automatically on each request
The following require your attention:
- 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 | There should be no dangerous file extensions present in any WordPress plugin
No dangerous file extensions were detected32,296 lines of code in 20 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JSON | 4 | 0 | 0 | 31,336 |
PHP | 9 | 110 | 168 | 527 |
JavaScript | 3 | 69 | 16 | 288 |
PO File | 1 | 30 | 38 | 86 |
Sass | 2 | 9 | 0 | 58 |
CSS | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
This is a short overview 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.33 |
Average class complexity | 11.00 |
▷ Minimum class complexity | 5.00 |
▷ Maximum class complexity | 22.00 |
Average method complexity | 3.33 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 9.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 | 16 | |
▷ Static methods | 11 | 68.75% |
▷ Public methods | 16 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 11 | |
▷ Named functions | 7 | 63.64% |
▷ Anonymous functions | 4 | 36.36% |
Constants | 1 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 1 | 100.00% |
▷ Public constants | 1 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
No PNG images were found in this plugin