10% wc-blackbox-integration

Code Review | WC Blackbox Integration - интеграция сервиса непорядочных покупателей Blackbox

WordPress plugin WC Blackbox Integration - интеграция сервиса непорядочных покупателей Blackbox scored10%from 54 tests.

About plugin

  • Plugin page: wc-blackbox-integ...
  • Plugin version: 1.2
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Mar 12, 2020
  • Latest release: Mar 12, 2020
  • Number of updates: 6
  • Update frequency: every 0.2 days
  • Top authors: evgendob (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /356 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
It is recommended to fix the following installer errors
  • Install procedure had errors
    • > Notice in wp-content/plugins/wc-blackbox-integration/wp-woo-blackbox.php+20
    Accessing static property blackboxAPIMain::$locale as non static

Server metrics [RAM: ▼1.95MB] [CPU: ▼61.68ms] Passed 4 tests

Analyzing server-side resources used by WC Blackbox Integration - интеграция сервиса непорядочных покупателей Blackbox
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.05 ▼1.424.35 ▼38.46
Dashboard /wp-admin2.07 ▼1.284.99 ▼61.53
Posts /wp-admin/edit.php2.07 ▼1.297.24 ▼38.93
Add New Post /wp-admin/post-new.php2.07 ▼3.825.45 ▼107.81
Media Library /wp-admin/upload.php2.07 ▼1.167.33 ▼24.15

Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
theysaidso_admin_options
widget_recent-comments
widget_theysaidso_widget
db_upgraded
can_compress_scripts

Browser metrics Passed 4 tests

A check of browser resources used by WC Blackbox Integration - интеграция сервиса непорядочных покупателей Blackbox
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲7913.31 ▼0.921.83 ▼0.0740.29 ▼3.43
Dashboard /wp-admin2,206 ▲185.91 ▲0.82107.16 ▲7.9539.52 ▼2.65
Posts /wp-admin/edit.php2,089 ▲211.99 ▼0.1833.56 ▼2.9734.53 ▲2.72
Add New Post /wp-admin/post-new.php1,544 ▲3018.04 ▲0.37600.28 ▼18.1462.58 ▲18.62
Media Library /wp-admin/upload.php1,388 ▲34.36 ▲0.1896.19 ▼7.6341.33 ▼2.42

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • Uninstall procedure validation failed for this plugin
    • > Notice in wp-content/plugins/wc-blackbox-integration/wp-woo-blackbox.php+20
    Accessing static property blackboxAPIMain::$locale as non static
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting 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 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please take a closer look at the following
  • 3× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Notice
      Accessing static property blackboxAPIMain::$locale as non static in wp-content/plugins/wc-blackbox-integration/wp-woo-blackbox.php on line 20
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/wc-blackbox-integration/modules/hooks.php:40
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/wc-blackbox-integration/modules/hooks.php:40

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
2 plugin tags: woocommerce, blackbox

wc-blackbox-integration/wp-woo-blackbox.php 92% from 13 tests

"WC Blackbox Integration - интеграция сервиса непорядочных покупателей Blackbox" version 1.2's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
It is important to fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("wc-blackbox-integration.php" instead of "wp-woo-blackbox.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
No dangerous file extensions were detected151 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP25619114
PO File133366737

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.42
Average class complexity2.00
▷ Minimum class complexity2.00
▷ Maximum class complexity2.00
Average method complexity1.50
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods2
▷ Static methods00.00%
▷ Public methods2100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
PNG images were not found in this plugin