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.22MB] [CPU: ▼15.42ms] Passed 4 tests
An overview of server-side resources used by Media Categories
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.06 | 40.86 ▼0.77 |
Dashboard /wp-admin | 3.36 ▲0.06 | 45.68 ▼3.78 |
Posts /wp-admin/edit.php | 3.42 ▲0.06 | 43.88 ▼6.70 |
Add New Post /wp-admin/post-new.php | 4.89 ▼1.00 | 56.51 ▼44.74 |
Media Library /wp-admin/upload.php | 3.20 ▼0.03 | 27.21 ▼6.47 |
Categories /wp-admin/edit-tags.php?taxonomy=category&post_type=attachment | 3.28 | 38.68 |
Server storage [IO: ▲0.20MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 10 new files
Database: no new tables, 7 new options
New WordPress options |
---|
can_compress_scripts |
db_upgraded |
widget_theysaidso_widget |
widget_recent-posts |
theysaidso_admin_options |
widget_recent-comments |
category_children |
Browser metrics Passed 4 tests
An overview of browser requirements for Media Categories
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,829 ▲72 | 14.45 ▼0.17 | 1.98 ▼0.08 | 42.61 ▼6.69 |
Dashboard /wp-admin | 2,207 ▲22 | 5.81 ▲0.92 | 105.88 ▲3.10 | 43.12 ▲1.00 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.00 ▼0.01 | 35.30 ▼4.99 | 31.84 ▼3.39 |
Add New Post /wp-admin/post-new.php | 1,524 ▲7 | 23.62 ▲5.91 | 632.11 ▲27.09 | 52.26 ▲8.28 |
Media Library /wp-admin/upload.php | 1,399 ▲11 | 4.30 ▲0.11 | 99.14 ▼6.27 | 43.28 ▼2.81 |
Categories /wp-admin/edit-tags.php?taxonomy=category&post_type=attachment | 1,447 | 2.14 | 28.57 | 32.99 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 7 options in the database
- widget_recent-posts
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-comments
- category_children
- db_upgraded
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested
SRP 50% 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
Please fix the following items
- 2× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'Walker' not found in wp-content/plugins/media-categories-2/attachment-walker-category-checklist-class.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/media-categories-2/media-categories.php:25
- > 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 87% from 29 tests
readme.txt 88% 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:
- Screenshots: These screenshots do not have images: #1 (This plugin will include clean, simple to use, searchable categories to your Media Editor page.), #2 (Use categories in much the same way you use them on your posts and pages.), #3 (Filter categories as you type, very useful if you have a lot of categories to look through (thanks to Jason Corradino's "Searchable Categories" plugin))
- Tags: You are using too many tags: 23 tag instead of maximum 10
media-categories-2/media-categories.php 85% from 13 tests
"Media Categories" version 1.5's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("media-categories-2.php" instead of "media-categories.php")
- Description: Please keep the plugin description shorter than 140 characters (currently 149 characters long)
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
Good job! No executable or dangerous file extensions detected468 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 91 | 87 | 294 |
JavaScript | 2 | 42 | 42 | 110 |
CSS | 2 | 9 | 4 | 64 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.29 |
Average class complexity | 23.50 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 43.00 |
Average method complexity | 4.46 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 27.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 13 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 13 | 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
All PNG images should be compressed to minimize bandwidth usage for end users
3 PNG files occupy 0.16MB with 0.11MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-3.png | 33.41KB | 9.41KB | ▼ 71.83% |
screenshot-1.png | 112.80KB | 37.65KB | ▼ 66.62% |
screenshot-2.png | 18.61KB | 6.27KB | ▼ 66.30% |