10% vvbc-in-store-product-categories

Code Review | VVBC In-Store Product categories

WordPress plugin VVBC In-Store Product categories scored 10% from 54 tests.

About plugin

  • Plugin page: vvbc-in-store-pro...
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9-4.9.4
  • WordPress version: 5.8.1
  • First release: Mar 10, 2018
  • Latest release: Mar 10, 2018
  • Number of updates: 3
  • Update frequency: every 0.7 days
  • Top authors: cardos0 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 333 total downloads

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
PageMemory (MB)CPU Time (ms)
Home /1.83 ▼0.895.70 ▼16.10
Dashboard /wp-admin1.84 ▼1.217.60 ▼47.08
Posts /wp-admin/edit.php1.84 ▼1.267.42 ▼43.07
Add New Post /wp-admin/post-new.php1.84 ▼3.596.14 ▼656.89
Media Library /wp-admin/upload.php1.84 ▼1.165.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,836 ▲24016.21 ▲0.6315.95 ▲5.8548.04 ▼10.01
Dashboard /wp-admin3,013 ▲766.05 ▲0.14160.87 ▼1.57115.47 ▼14.28
Posts /wp-admin/edit.php2,763 ▲242.83 ▲0.1173.13 ▲2.5496.47 ▼3.91
Add New Post /wp-admin/post-new.php1,631 ▼5218.60 ▼0.14391.22 ▼3.17113.56 ▼2.38
Media Library /wp-admin/upload.php1,834 ▲245.03 ▼0.03151.56 ▼13.53129.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

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:
LanguageFilesBlank linesComment linesLines of code
PHP12131585323
CSS481749
PO File112438
JavaScript34598

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 code0.17
Average class complexity4.14
▷ Minimum class complexity1.00
▷ Maximum class complexity13.00
Average method complexity1.71
▷ Minimum method complexity1.00
▷ Maximum method complexity13.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods31
▷ Static methods26.45%
▷ Public methods2683.87%
▷ Protected methods00.00%
▷ Private methods516.13%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.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