Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.03MB] [CPU: ▼147.43ms] Passed 4 tests
This is a short check of server-side resources used by Vendora Widget
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.87 ▲0.15 | 35.44 ▲13.03 |
Dashboard /wp-admin | 3.09 ▲0.03 | 47.22 ▲3.11 |
Posts /wp-admin/edit.php | 3.14 ▲0.02 | 41.92 ▼19.93 |
Add New Post /wp-admin/post-new.php | 5.45 ▲0.01 | 84.59 ▼572.40 |
Media Library /wp-admin/upload.php | 3.03 ▲0.03 | 32.21 ▼0.51 |
Server storage [IO: ▲1.79MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 8 new files
Database: no new tables, 1 new option
New WordPress options |
---|
widget_vendora_widget |
Browser metrics Passed 4 tests
An overview of browser requirements for Vendora Widget
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,679 ▲42 | 16.34 ▲0.82 | 6.93 ▼3.09 | 47.81 ▲0.34 |
Dashboard /wp-admin | 2,973 ▲42 | 5.89 ▼0.15 | 133.74 ▼10.57 | 108.55 ▼4.33 |
Posts /wp-admin/edit.php | 2,739 ▲3 | 2.69 ▼0.01 | 61.58 ▼6.66 | 86.61 ▼0.79 |
Add New Post /wp-admin/post-new.php | 1,672 ▲172 | 18.76 ▲0.11 | 366.87 ▼20.60 | 114.73 ▼0.95 |
Media Library /wp-admin/upload.php | 1,807 ▼0 | 5.01 ▼0.01 | 146.24 ▲0.16 | 120.50 ▲4.43 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- Zombie WordPress options detected upon uninstall: 1 option
- widget_vendora_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
- 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/vendora-gr-widget-shortcode/vendora-widget.php:12
- > 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 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need your attention:
- Screenshots: These screenshots need descriptions #1, #2 in vendora-gr-widget-shortcode/assets to your readme.txt
vendora-gr-widget-shortcode/vendora-widget.php 92% from 13 tests
"Vendora Widget" version 1.0.2's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("vendora-gr-widget-shortcode.php" instead of "vendora-widget.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Everything looks great! No dangerous files found in this plugin118 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 34 | 11 | 118 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.19 |
Average class complexity | 9.00 |
▷ Minimum class complexity | 9.00 |
▷ Maximum class complexity | 9.00 |
Average method complexity | 3.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 5.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 | 4 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 4 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 5 | |
▷ Named functions | 5 | 100.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 50% from 2 tests
Image compression 50% from 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
6 PNG files occupy 1.79MB with 1.22MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/banner-772x250.png | 100.15KB | 33.13KB | ▼ 66.92% |
assets/icon-128x128.png | 8.48KB | 1.72KB | ▼ 79.70% |
assets/screenshot-2.png | 575.04KB | 225.90KB | ▼ 60.72% |
assets/icon-256x256.png | 12.30KB | 3.10KB | ▼ 74.82% |
assets/screenshot-1.png | 866.81KB | 356.41KB | ▼ 58.88% |