Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.08MB] [CPU: ▼140.13ms] Passed 4 tests
Analyzing server-side resources used by Variation Stock Inventory
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.90 ▲0.18 | 36.27 ▲9.77 |
Dashboard /wp-admin | 3.12 ▲0.07 | 45.30 ▲7.98 |
Posts /wp-admin/edit.php | 3.23 ▲0.13 | 41.70 ▼3.49 |
Add New Post /wp-admin/post-new.php | 5.48 ▲0.05 | 89.26 ▼559.43 |
Media Library /wp-admin/upload.php | 3.07 ▲0.06 | 34.04 ▼5.59 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 22 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
An overview of browser requirements for Variation Stock Inventory
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,816 ▲220 | 16.27 ▲0.67 | 14.26 ▲5.77 | 44.87 ▼0.29 |
Dashboard /wp-admin | 2,977 ▲46 | 6.08 ▲0.14 | 142.59 ▼9.92 | 105.70 ▲3.14 |
Posts /wp-admin/edit.php | 2,743 ▲4 | 2.71 ▼0.00 | 65.70 ▲1.25 | 88.08 ▼1.13 |
Add New Post /wp-admin/post-new.php | 1,687 ▲15 | 18.49 ▼0.25 | 384.69 ▼50.85 | 105.59 ▼0.21 |
Media Library /wp-admin/upload.php | 1,811 ▲4 | 5.04 ▼0.00 | 161.73 ▲17.57 | 111.01 ▼8.99 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Uninstaller ran successfully
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, 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
Please fix the following items
- 2× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/variation-stock-inventory/admin/partials/woocom-variation-stock-inventory-admin-display.php
- > /wp-content/plugins/variation-stock-inventory/public/partials/woocom-variation-stock-inventory-public-display.php
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration 83% from 29 tests
readme.txt 88% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Attributes that require attention:
- Plugin Name: You should set the name of your plugin on the first line (
=== variation-stock-inventory ===
) - Screenshots: Add a description for screenshot #1 in variation-stock-inventory/assets to your readme.txt
variation-stock-inventory/woocom-variation-stock-inventory.php 77% from 13 tests
Analyzing the main PHP file in "Variation Stock Inventory" version 1.0.0
The following require your attention:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("variation-stock-inventory.php" instead of "woocom-variation-stock-inventory.php")
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
- Description: Please don't use more than 140 characters for the plugin description (currently 152 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Everything looks great! No dangerous files found in this plugin231 lines of code in 16 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 12 | 129 | 559 | 225 |
JavaScript | 2 | 4 | 54 | 6 |
CSS | 2 | 0 | 8 | 0 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.14 |
Average class complexity | 2.29 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 7.00 |
Average method complexity | 1.32 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 4.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 28 | |
▷ Static methods | 2 | 7.14% |
▷ Public methods | 23 | 82.14% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 17.86% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
There are no PNG files in this plugin