Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▲5.56MB] [CPU: ▲27.98ms] 75% from 4 tests
This is a short check of server-side resources used by WP Media Category Management
Please have a look at the following items
- Extra RAM: Extra memory usage must be kept under 5MB (currently 5.56MB on /wp-admin/admin.php?page=freemius)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 9.25 ▲5.79 | 63.34 ▲22.65 |
Dashboard /wp-admin | 9.27 ▲5.96 | 80.18 ▲33.54 |
Posts /wp-admin/edit.php | 9.27 ▲5.91 | 87.39 ▲44.37 |
Add New Post /wp-admin/post-new.php | 10.46 ▲4.57 | 112.64 ▲15.14 |
Media Library /wp-admin/upload.php | 9.27 ▲6.04 | 72.79 ▲40.59 |
WP MCM /wp-admin/options-general.php?page=wp-mcm | 9.27 | 68.36 |
MCM Categories /wp-admin/edit-tags.php?taxonomy=category_media&post_type=attachment | 9.27 | 64.91 |
Freemius Debug [v.2.5.12] /wp-admin/admin.php?page=freemius | 9.27 | 67.34 |
Server storage [IO: ▲5.44MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 268 new files
Database: no new tables, 10 new options
New WordPress options |
---|
db_upgraded |
widget_recent-posts |
fs_debug_mode |
fs_active_plugins |
widget_theysaidso_widget |
can_compress_scripts |
theysaidso_admin_options |
fs_accounts |
widget_recent-comments |
wp-media-category-management-options |
Browser metrics Passed 4 tests
A check of browser resources used by WP Media Category Management
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,872 ▲110 | 14.55 ▼0.19 | 1.72 ▼0.05 | 30.11 ▼17.18 |
Dashboard /wp-admin | 2,275 ▲101 | 6.10 ▲0.56 | 120.41 ▲18.44 | 48.42 ▲1.78 |
Posts /wp-admin/edit.php | 2,202 ▲99 | 3.17 ▲1.16 | 50.05 ▲14.82 | 40.99 ▲2.63 |
Add New Post /wp-admin/post-new.php | 1,558 ▲32 | 22.94 ▼0.39 | 699.63 ▲73.83 | 39.03 ▼12.67 |
Media Library /wp-admin/upload.php | 1,460 ▲60 | 4.19 ▼0.00 | 96.77 ▼18.51 | 48.06 ▲3.67 |
WP MCM /wp-admin/options-general.php?page=wp-mcm | 1,070 | 2.92 | 41.27 | 103.28 |
MCM Categories /wp-admin/edit-tags.php?taxonomy=category_media&post_type=attachment | 1,383 | 3.13 | 39.46 | 35.11 |
Freemius Debug [v.2.5.12] /wp-admin/admin.php?page=freemius | 1,170 | 2.88 | 39.16 | 26.86 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- This plugin cannot be uninstalled
- > Notice in wp-content/plugins/wp-media-category-management/freemius/includes/class-freemius.php+8515
Undefined property: stdClass::$plugins
- This plugin does not fully uninstall, leaving 10 options in the database
- wp-media-category-management-options
- widget_theysaidso_widget
- fs_debug_mode
- db_upgraded
- widget_recent-posts
- widget_recent-comments
- fs_accounts
- theysaidso_admin_options
- fs_active_plugins
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test
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
The following issues need your attention
- 3× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_mcm_maybe_define_constant() in wp-content/plugins/wp-media-category-management/include/class-WP_MCM_Plugin.php:4
- > PHP Fatal error
Uncaught Error: Class 'DebugMyPluginPanel' not found in wp-content/plugins/wp-media-category-management/include/class.dmppanels.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/wp-media-category-management/include/media/wp-mcm-content-media.php:13
- > PHP Fatal error
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)
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 88% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need to be fixed:
- Plugin Name: You should set the name of your plugin on the first line (
=== wp-media-category-management ===
) - Tags: Please delete some tags, you are using 26 tag instead of maximum 10
wp-media-category-management/wp-media-category-management.php Passed 13 tests
"WP Media Category Management" version 2.2's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
88 characters long description:
A plugin to provide bulk category management functionality for media in WordPress sites.
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin39,327 lines of code in 172 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 140 | 8,656 | 19,218 | 36,831 |
PO File | 6 | 710 | 1,491 | 1,747 |
CSS | 15 | 53 | 32 | 369 |
JavaScript | 9 | 62 | 84 | 349 |
XML | 1 | 3 | 0 | 16 |
SVG | 1 | 0 | 0 | 15 |
PHP code 50% from 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
Please fix the following
- Class cyclomatic complexity has to be reduced to less than 1000 (currently 3,088)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.59 |
Average class complexity | 74.79 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 3,088.00 |
Average method complexity | 4.49 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 94.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 67 | |
▷ Abstract classes | 2 | 2.99% |
▷ Concrete classes | 65 | 97.01% |
▷ Final classes | 0 | 0.00% |
Methods | 1,444 | |
▷ Static methods | 199 | 13.78% |
▷ Public methods | 1,053 | 72.92% |
▷ Protected methods | 18 | 1.25% |
▷ Private methods | 373 | 25.83% |
Functions | 115 | |
▷ Named functions | 115 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 146 | |
▷ Global constants | 99 | 67.81% |
▷ Class constants | 47 | 32.19% |
▷ Public constants | 47 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
29 PNG files occupy 1.70MB with 0.78MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-9.png | 35.49KB | 17.81KB | ▼ 49.82% |
screenshot-3.png | 78.22KB | 33.34KB | ▼ 57.37% |
screenshot-5.png | 76.90KB | 31.23KB | ▼ 59.39% |
assets/icon-wp-mcm-18.png | 0.51KB | 0.48KB | ▼ 6.08% |
freemius/assets/img/wp-media-category-management.png | 16.35KB | 6.75KB | ▼ 58.69% |