Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully
Server metrics [RAM: ▲0.03MB] [CPU: ▼292.37ms] Passed 4 tests
A check of server-side resources used by KC Media Enhancements
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.59 ▲0.08 | 56.47 ▲2.22 |
Dashboard /wp-admin | 3.46 ▲0.05 | 33.26 ▼0.58 |
Posts /wp-admin/edit.php | 3.68 ▲0.04 | 36.67 ▼4.57 |
Add New Post /wp-admin/post-new.php | 6.95 ▼0.02 | 93.39 ▼1,166.53 |
Media Library /wp-admin/upload.php | 3.34 ▲0.05 | 27.93 ▲3.44 |
Categories /wp-admin/edit-tags.php?taxonomy=category&post_type=attachment | 3.33 | 33.93 |
Tags /wp-admin/edit-tags.php?taxonomy=post_tag&post_type=attachment | 3.33 | 26.32 |
Server storage [IO: ▲0.10MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 36 new files
Database: no new tables, 1 new option
New WordPress options |
---|
category_children |
Browser metrics Passed 4 tests
Checking browser requirements for KC Media Enhancements
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,793 ▲39 | 15.94 ▲0.28 | 5.85 ▼0.10 | 2.51 ▲0.10 |
Dashboard /wp-admin | 2,902 ▲41 | 6.00 ▼0.16 | 118.72 ▼17.64 | 154.51 ▼5.07 |
Posts /wp-admin/edit.php | 2,701 ▲7 | 3.23 ▼0.01 | 64.72 ▲3.64 | 135.73 ▼11.10 |
Add New Post /wp-admin/post-new.php | 1,673 ▼46 | 16.05 ▼6.28 | 428.20 ▲25.74 | 149.60 ▼7.20 |
Media Library /wp-admin/upload.php | 1,727 ▲26 | 5.61 ▲0.09 | 124.06 ▼13.98 | 185.39 ▼1.84 |
Categories /wp-admin/edit-tags.php?taxonomy=category&post_type=attachment | 1,883 | 2.76 | 56.14 | 137.14 |
Tags /wp-admin/edit-tags.php?taxonomy=post_tag&post_type=attachment | 1,709 | 2.78 | 55.98 | 118.13 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
- Zombie WordPress options detected upon uninstall: 1 option
- category_children
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/kc-media-enhancements/kc-media-enhancements.php:281
- > 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)
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 88% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Please fix the following attributes:
- Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line (
=== kc-media-enhancements ===
) - Screenshots: Please describe screenshot #4 in kc-media-enhancements/assets to your readme.txt
kc-media-enhancements/kc-media-enhancements.php Passed 13 tests
The entry point to "KC Media Enhancements" version 0.6 is a PHP file that has certain tags in its header comment area
45 characters long description:
Enhance WordPress media/attachment management
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Success! There were no dangerous files found in this plugin2,408 lines of code in 20 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 18 | 82 | 262 | 2,206 |
PHP | 1 | 40 | 80 | 161 |
JavaScript | 1 | 8 | 6 | 41 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.45 |
Average class complexity | 22.00 |
▷ Minimum class complexity | 22.00 |
▷ Maximum class complexity | 22.00 |
Average method complexity | 3.62 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 12.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 8 | |
▷ Static methods | 8 | 100.00% |
▷ Public methods | 8 | 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 | 2 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 2 | 100.00% |
▷ Public constants | 2 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
13 compressed PNG files occupy 0.02MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
kc-media-enhancements-inc/css/jquery-ui/images/ui-icons_222222_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |
kc-media-enhancements-inc/css/jquery-ui/images/ui-bg_highlight-soft_75_cccccc_1x100.png | 0.10KB | 0.17KB | 0.00% |
kc-media-enhancements-inc/css/jquery-ui/images/ui-bg_glass_65_ffffff_1x400.png | 0.10KB | 0.10KB | ▼ 5.71% |
kc-media-enhancements-inc/css/jquery-ui/images/ui-bg_glass_95_fef1ec_1x400.png | 0.12KB | 0.14KB | 0.00% |
kc-media-enhancements-inc/css/jquery-ui/images/ui-bg_flat_75_ffffff_40x100.png | 0.17KB | 0.08KB | ▼ 51.12% |