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 successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.05MB] [CPU: ▼146.67ms] Passed 4 tests
This is a short check of server-side resources used by Multi Image Widget
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.89 ▲0.06 | 26.82 ▲0.36 |
Dashboard /wp-admin | 3.13 ▲0.06 | 36.95 ▼5.14 |
Posts /wp-admin/edit.php | 3.24 ▲0.13 | 42.82 ▲7.48 |
Add New Post /wp-admin/post-new.php | 5.47 ▲0.03 | 74.67 ▼580.74 |
Media Library /wp-admin/upload.php | 3.05 ▲0.05 | 25.33 ▼1.15 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 15 new files
Database: no new tables, 1 new option
New WordPress options |
---|
widget_miw_multi_image_widget |
Browser metrics Passed 4 tests
An overview of browser requirements for Multi Image Widget
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 4,031 ▲379 | 17.75 ▲2.17 | 9.94 ▲3.01 | 74.77 ▼7.52 |
Dashboard /wp-admin | 3,128 ▲229 | 8.07 ▲1.92 | 138.65 ▲7.03 | 169.20 ▼9.03 |
Posts /wp-admin/edit.php | 2,973 ▲267 | 5.33 ▲2.08 | 80.68 ▲15.03 | 138.75 ▲0.71 |
Add New Post /wp-admin/post-new.php | 2,070 ▼1,744 | 21.81 ▲2.95 | 373.28 ▼107.47 | 176.95 ▲3.07 |
Media Library /wp-admin/upload.php | 1,757 ▲5 | 5.54 ▼0.00 | 107.81 ▼46.16 | 183.12 ▲0.98 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- This plugin did not uninstall successfully, leaving 1 option in the database
- widget_miw_multi_image_widget
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/multi-image-widget/multi-image-widget.php
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/multi-image-widget/widget/miw-widget.php:8
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
6 plugin tags: slider widget, multiple image upload widget, image widget, image upload widget, slider image widget...
multi-image-widget/multi-image-widget.php Passed 13 tests
Analyzing the main PHP file in "Multi Image Widget" version 1.1
70 characters long description:
This plugin have the feature for upload the multiple image via widget.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin511 lines of code in 11 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 61 | 92 | 237 |
CSS | 4 | 20 | 43 | 171 |
JavaScript | 3 | 19 | 36 | 103 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.27 |
Average class complexity | 18.00 |
▷ Minimum class complexity | 9.00 |
▷ Maximum class complexity | 27.00 |
Average method complexity | 5.25 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 17.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 | 8 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 8 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 5 | |
▷ Global constants | 5 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
2 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/css/grabbing.png | 0.11KB | 0.14KB | 0.00% |
assets/images/Delete.png | 2.16KB | 1.45KB | ▼ 33.12% |