Benchmarks
Plugin footprint 83% from 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.02MB] [CPU: ▼2.41ms] Passed 4 tests
This is a short check of server-side resources used by Image Widget
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 43.66 ▲0.57 |
Dashboard /wp-admin | 3.32 ▲0.02 | 46.74 ▼7.41 |
Posts /wp-admin/edit.php | 3.37 ▲0.02 | 47.88 ▼1.04 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.02 | 97.38 ▲1.51 |
Media Library /wp-admin/upload.php | 3.24 ▲0.02 | 34.89 ▼1.74 |
Server storage [IO: ▲0.06MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 26 new files
Database: no new tables, 8 new options
New WordPress options |
---|
db_upgraded |
rb-image-widget-install |
theysaidso_admin_options |
widget_recent-posts |
widget_theysaidso_widget |
can_compress_scripts |
widget_rbimagewidget |
widget_recent-comments |
Browser metrics Passed 4 tests
A check of browser resources used by Image Widget
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲65 | 13.26 ▼1.43 | 4.41 ▲2.50 | 44.44 ▼6.86 |
Dashboard /wp-admin | 2,203 ▲15 | 5.86 ▲0.98 | 104.77 ▼12.57 | 41.68 ▼4.85 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.06 ▲0.05 | 39.67 ▲3.36 | 35.40 ▼2.69 |
Add New Post /wp-admin/post-new.php | 1,547 ▲14 | 18.32 ▼4.69 | 625.27 ▲31.09 | 67.76 ▲9.64 |
Media Library /wp-admin/upload.php | 1,382 ▼6 | 4.20 ▲0.06 | 99.34 ▼8.01 | 41.29 ▼1.42 |
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
The following items require your attention
- The uninstall procedure has failed, leaving 7 options in the database
- widget_recent-comments
- widget_rbimagewidget
- widget_recent-posts
- theysaidso_admin_options
- db_upgraded
- can_compress_scripts
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The following issues need your attention
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/image-widget-rb/widget.php:8
- > 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 Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
5 plugin tags: sidebar, image widget, image, gallery widget, widget
image-widget-rb/image-widget-rb.php Passed 13 tests
The entry point to "Image Widget" version 1.0.10 is a PHP file that has certain tags in its header comment area
63 characters long description:
Most simple and fast way to create image widget to your sidebar
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
Everything looks great! No dangerous files found in this plugin1,407 lines of code in 13 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 3 | 174 | 110 | 709 |
CSS | 1 | 30 | 3 | 262 |
PHP | 5 | 74 | 35 | 236 |
PO File | 3 | 60 | 60 | 199 |
SVG | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.29 |
Average class complexity | 9.33 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 21.00 |
Average method complexity | 2.39 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 13.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 18 | |
▷ Static methods | 3 | 16.67% |
▷ Public methods | 15 | 83.33% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 3 | 16.67% |
Functions | 2 | |
▷ Named functions | 2 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 4 | 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
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/css/images/icons.png | 0.71KB | 0.43KB | ▼ 39.64% |