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.08MB] [CPU: ▼148.63ms] Passed 4 tests
Analyzing server-side resources used by Scanventory
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.87 ▲0.03 | 39.12 ▲7.18 |
Dashboard /wp-admin | 3.14 ▲0.09 | 41.24 ▼4.21 |
Posts /wp-admin/edit.php | 3.19 ▲0.09 | 48.57 ▼0.45 |
Add New Post /wp-admin/post-new.php | 5.72 ▲0.29 | 91.68 ▼589.30 |
Media Library /wp-admin/upload.php | 3.10 ▲0.10 | 34.70 ▼0.54 |
Server storage [IO: ▲4.96MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 73 new files
Database: no new tables, 2 new options
New WordPress options |
---|
scanventory_secret |
scanventory_log |
Browser metrics Passed 4 tests
A check of browser resources used by Scanventory
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,703 ▲131 | 15.80 ▲0.20 | 10.86 ▲1.97 | 59.76 ▲3.43 |
Dashboard /wp-admin | 2,967 ▲33 | 5.91 ▼0.04 | 142.77 ▼17.09 | 122.44 ▼3.21 |
Posts /wp-admin/edit.php | 2,739 ▼0 | 2.71 ▼0.00 | 77.71 ▲5.37 | 94.37 ▼2.67 |
Add New Post /wp-admin/post-new.php | 1,683 ▼0 | 18.34 ▼0.46 | 413.80 ▲37.07 | 115.42 ▲4.56 |
Media Library /wp-admin/upload.php | 1,807 ▼0 | 5.04 ▼0.00 | 158.74 ▲0.05 | 119.74 ▼5.44 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- Zombie WordPress options were found after uninstall: 2 options
- scanventory_secret
- scanventory_log
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected
SRP 0% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The following issues need your attention
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/woocommerce-inventory-management/classes/log.php
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function submit_button() in wp-content/plugins/woocommerce-inventory-management/templates/support.php:25
- > PHP Fatal error
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 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need to be fixed:
- Screenshots: No descriptions were found for these screenshots #1, #2, #3, #4, #5 in woocommerce-inventory-management/assets to your readme.txt
woocommerce-inventory-management/woocommerce-scanventory-light.php 92% from 13 tests
The primary PHP file in "Scanventory" version 1.1.3 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
- Main file name: Name the main plugin file the same as the plugin slug ("woocommerce-inventory-management.php" instead of "woocommerce-scanventory-light.php")
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
There were no executable files found in this plugin13,666 lines of code in 37 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 13 | 1,086 | 30 | 6,718 |
SVG | 4 | 0 | 0 | 4,293 |
PHP | 18 | 312 | 212 | 1,468 |
JavaScript | 2 | 495 | 323 | 1,187 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
Average class complexity | 26.65 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 71.00 |
Average method complexity | 4.02 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 30.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 20 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 20 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 170 | |
▷ Static methods | 68 | 40.00% |
▷ Public methods | 167 | 98.24% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 3 | 1.76% |
Functions | 3 | |
▷ Named functions | 2 | 66.67% |
▷ Anonymous functions | 1 | 33.33% |
Constants | 36 | |
▷ Global constants | 36 | 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
2 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/scanventory-logo-no-slogan.png | 8.75KB | 4.27KB | ▼ 51.18% |
images/print.png | 0.96KB | 1.13KB | 0.00% |