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.00MB] [CPU: ▼6.13ms] Passed 4 tests
A check of server-side resources used by Alter Inventory - Woocommerce Plugin
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 33.11 ▼9.64 |
Dashboard /wp-admin | 3.31 ▼0.03 | 44.56 ▼13.16 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 44.25 ▼0.05 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 91.83 ▲5.11 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 32.41 ▼1.65 |
Server storage [IO: ▲0.26MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 27 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-comments |
theysaidso_admin_options |
db_upgraded |
Browser metrics Passed 4 tests
Alter Inventory - Woocommerce Plugin: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,809 ▲63 | 13.27 ▼1.31 | 1.61 ▼0.00 | 42.01 ▼3.02 |
Dashboard /wp-admin | 2,218 ▲29 | 5.87 ▲1.00 | 97.61 ▼9.01 | 39.63 ▼1.01 |
Posts /wp-admin/edit.php | 2,097 ▲5 | 2.01 ▲0.03 | 39.59 ▲2.54 | 35.01 ▲3.75 |
Add New Post /wp-admin/post-new.php | 1,551 ▲32 | 18.23 ▼4.85 | 608.00 ▼92.88 | 59.57 ▲6.46 |
Media Library /wp-admin/upload.php | 1,400 ▲15 | 4.28 ▲0.10 | 101.01 ▼5.49 | 41.97 ▼2.92 |
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: 6 options
- can_compress_scripts
- widget_recent-posts
- db_upgraded
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-comments
Smoke tests 50% 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 0% 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 take a closer look at the following
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/woocommerce-alter-inventory/public/partials/woocommerce-alter-inventory-public-display.php
- 2× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/woocommerce-alter-inventory/admin/partials/woocommerce-alter-inventory-custom-cart.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function WC() in wp-content/plugins/woocommerce-alter-inventory/admin/partials/woocommerce-alter-inventory-shortcode-display.php:30
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that require attention:
- Screenshots: These screenshots require images: #1 (This is a screenshot of inventory page.), #2 (This is a screenshot of report page.)
woocommerce-alter-inventory/woocommerce-alter-inventory.php 92% from 13 tests
The entry point to "Alter Inventory - Woocommerce Plugin" version 1.2.8 is a PHP file that has certain tags in its header comment area
Please make the necessary changes and fix the following:
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 435 characters long)
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 plugin1,191 lines of code in 20 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 13 | 176 | 668 | 821 |
CSS | 3 | 7 | 12 | 280 |
JavaScript | 3 | 19 | 50 | 84 |
Markdown | 1 | 4 | 0 | 6 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.29 |
Average class complexity | 7.14 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 29.00 |
Average method complexity | 2.13 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 20.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 | 40 | |
▷ Static methods | 11 | 27.50% |
▷ Public methods | 35 | 87.50% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 12.50% |
Functions | 4 | |
▷ Named functions | 4 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 1 | 100.00% |
▷ Public constants | 1 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
There were not PNG files found in your plugin