Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.12MB] [CPU: ▼148.83ms] Passed 4 tests
A check of server-side resources used by Media Tools
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.95 ▲0.12 | 39.09 ▲3.94 |
Dashboard /wp-admin | 3.18 ▲0.13 | 50.77 ▲7.39 |
Posts /wp-admin/edit.php | 3.29 ▲0.19 | 48.48 ▲2.10 |
Add New Post /wp-admin/post-new.php | 5.54 ▲0.11 | 93.62 ▼597.90 |
Media Library /wp-admin/upload.php | 3.13 ▲0.12 | 30.89 ▼3.46 |
Media Tools /wp-admin/tools.php?page=media_tabs | 3.10 | 38.12 |
Server storage [IO: ▲0.24MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 17 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
Media Tools: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,708 ▲136 | 16.24 ▲0.28 | 10.01 ▼1.94 | 44.88 ▼7.71 |
Dashboard /wp-admin | 2,975 ▲38 | 5.88 ▼0.07 | 147.64 ▼1.92 | 111.22 ▲0.64 |
Posts /wp-admin/edit.php | 2,744 ▲5 | 2.71 ▼0.01 | 65.85 ▼2.55 | 87.02 ▲7.79 |
Add New Post /wp-admin/post-new.php | 1,686 ▲3 | 18.48 ▼0.35 | 386.94 ▼66.52 | 108.66 ▼8.37 |
Media Library /wp-admin/upload.php | 1,812 ▲5 | 5.02 ▼0.01 | 160.61 ▲4.55 | 111.16 ▲3.48 |
Media Tools /wp-admin/tools.php?page=media_tabs | 1,447 | 2.39 | 63.81 | 75.77 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Uninstaller ran successfully
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
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
Almost there! Just fix the following items
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function current_theme_supports() in wp-content/plugins/media-tools/media-tools.php:46
- > 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 on the user side
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% 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:
- Screenshots: Add images for these screenshots: #1 (The Import and Attachment Tools), #2 (The Add additional image sizes options page)
media-tools/media-tools.php Passed 13 tests
"Media Tools" version 1.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
107 characters long description:
Tools for working with the WordPress media library and converting images to attachments and featured images
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
No dangerous file extensions were detected951 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 104 | 68 | 492 |
CSS | 1 | 28 | 48 | 330 |
JavaScript | 3 | 29 | 23 | 115 |
Markdown | 1 | 9 | 0 | 14 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.30 |
Average class complexity | 86.00 |
▷ Minimum class complexity | 86.00 |
▷ Maximum class complexity | 86.00 |
Average method complexity | 4.15 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 16.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 | 27 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 27 | 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
Using a strong compression for your PNG files is a great way to speed-up your plugin
10 PNG files occupy 0.18MB with 0.05MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
js/redmond/images/ui-bg_flat_0_aaaaaa_40x100.png | 0.18KB | 0.08KB | ▼ 51.67% |
js/redmond/images/ui-bg_inset-hard_100_fcfdfd_1x100.png | 0.11KB | 0.09KB | ▼ 15.18% |
screenshot-2.png | 72.59KB | 20.80KB | ▼ 71.35% |
js/redmond/images/ui-bg_glass_85_dfeffc_1x400.png | 0.12KB | 0.15KB | 0.00% |
js/redmond/images/ui-bg_glass_95_fef1ec_1x400.png | 0.12KB | 0.14KB | 0.00% |