84% blackice-order-queues

Code Review | BIT Order Queues for WooCommerce

WordPress plugin BIT Order Queues for WooCommerce scored84%from 54 tests.

About plugin

  • Plugin page: blackice-order-qu...
  • Plugin version: 3.0.6
  • PHP version: 7.4.16
  • WordPress compatibility: 6.0.0-6.2.0
  • WordPress version: 6.3.1
  • First release: Jun 16, 2020
  • Latest release: Apr 1, 2023
  • Number of updates: 12
  • Update frequency: every 84.9 days
  • Top authors: blackicelmtd (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /507 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼4.41ms] Passed 4 tests

A check of server-side resources used by BIT Order Queues for WooCommerce
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0036.65 ▼3.96
Dashboard /wp-admin3.31 ▲0.0043.42 ▼4.66
Posts /wp-admin/edit.php3.36 ▲0.0044.30 ▼4.41
Add New Post /wp-admin/post-new.php5.89 ▲0.0088.03 ▼4.62
Media Library /wp-admin/upload.php3.23 ▲0.0034.25 ▼1.32

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_recent-comments
theysaidso_admin_options
db_upgraded
widget_theysaidso_widget
can_compress_scripts

Browser metrics Passed 4 tests

A check of browser resources used by BIT Order Queues for WooCommerce
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.64 ▼0.961.68 ▼0.3344.73 ▲0.65
Dashboard /wp-admin2,209 ▲215.86 ▲0.0097.90 ▼7.4238.71 ▼0.98
Posts /wp-admin/edit.php2,089 ▼02.03 ▼0.0039.50 ▲1.4634.65 ▲0.74
Add New Post /wp-admin/post-new.php1,533 ▲1922.99 ▲5.44621.10 ▼17.5450.16 ▼5.07
Media Library /wp-admin/upload.php1,385 ▼34.22 ▲0.0598.11 ▼9.4941.69 ▼4.82

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
These items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% 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 perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/blackice-order-queues/includes/class-wc-bit-pend-pay-email.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration 96% from 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
5 plugin tags: attributes, status, queues, woocommerce, orders

blackice-order-queues/blackice-order-queues.php 92% from 13 tests

The primary PHP file in "BIT Order Queues for WooCommerce" version 3.0.6 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
  • Text Domain: The text domain name must use dashes instead of underscores, and it must be lowercase

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
Good job! No executable or dangerous file extensions detected605 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP375107535
CSS191270

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.41
Average class complexity41.50
▷ Minimum class complexity6.00
▷ Maximum class complexity77.00
Average method complexity4.52
▷ Minimum method complexity1.00
▷ Maximum method complexity38.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods23
▷ Static methods00.00%
▷ Public methods23100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
PNG images were not found in this plugin