Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
These installer errors require your attention
- The plugin cannot be installed
- > Notice in wp-content/plugins/vvbc-in-store-product-categories/includes/class-vvbc-in-store-product-categories.php+186
Trying to access array offset on value of type bool
Server metrics [RAM: ▼1.80MB] [CPU: ▼192.23ms] Passed 4 tests
An overview of server-side resources used by VVBC In-Store Product categories
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 1.83 ▼0.89 | 5.70 ▼16.10 |
Dashboard /wp-admin | 1.84 ▼1.21 | 7.60 ▼47.08 |
Posts /wp-admin/edit.php | 1.84 ▼1.26 | 7.42 ▼43.07 |
Add New Post /wp-admin/post-new.php | 1.84 ▼3.59 | 6.14 ▼656.89 |
Media Library /wp-admin/upload.php | 1.84 ▼1.16 | 5.97 ▼21.88 |
Server storage [IO: ▲0.24MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 27 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
This is an overview of browser requirements for VVBC In-Store Product categories
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,836 ▲240 | 16.21 ▲0.63 | 15.95 ▲5.85 | 48.04 ▼10.01 |
Dashboard /wp-admin | 3,013 ▲76 | 6.05 ▲0.14 | 160.87 ▼1.57 | 115.47 ▼14.28 |
Posts /wp-admin/edit.php | 2,763 ▲24 | 2.83 ▲0.11 | 73.13 ▲2.54 | 96.47 ▼3.91 |
Add New Post /wp-admin/post-new.php | 1,631 ▼52 | 18.60 ▼0.14 | 391.22 ▼3.17 | 113.56 ▼2.38 |
Media Library /wp-admin/upload.php | 1,834 ▲24 | 5.03 ▼0.03 | 151.56 ▼13.53 | 129.99 ▼5.11 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
- This plugin did not uninstall without warnings or errors
- > Notice in wp-content/plugins/vvbc-in-store-product-categories/includes/class-vvbc-in-store-product-categories.php+186
Trying to access array offset on value of type bool
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Good news, no errors were detected
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/vvbc-in-store-product-categories/public/partials/vvbc-in-store-product-categories-public-display.php
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/vvbc-in-store-product-categories/admin/partials/in-store-product-categories.php:16
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
8 plugin tags: shop categories, woocommerce, vvbc, in-store product categories, product...
vvbc-in-store-product-categories/vvbc-in-store-product-categories.php Passed 13 tests
The main file in "VVBC In-Store Product categories" v. 1.0.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
36 characters long description:
Show product categories on shop page
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Success! There were no dangerous files found in this plugin418 lines of code in 20 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 12 | 131 | 585 | 323 |
CSS | 4 | 8 | 17 | 49 |
PO File | 1 | 12 | 4 | 38 |
JavaScript | 3 | 4 | 59 | 8 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.17 |
Average class complexity | 4.14 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 13.00 |
Average method complexity | 1.71 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 13.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 | 31 | |
▷ Static methods | 2 | 6.45% |
▷ Public methods | 26 | 83.87% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 16.13% |
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
Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG files were detected