83% botowski-for-woocommerce

Code Review | Botowski for WooCommerce

WordPress plugin Botowski for WooCommerce scored83%from 54 tests.

About plugin

  • Plugin page: botowski-for-wooc...
  • Plugin version: 1.1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.4
  • WordPress version: 6.3.1
  • First release: Apr 11, 2023
  • Latest release: Nov 8, 2023
  • Number of updates: 34
  • Update frequency: every 6.2 days
  • Top authors: botowski (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /398 total downloads


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
This plugin's installer ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼4.63ms] Passed 4 tests

A check of server-side resources used by Botowski for WooCommerce
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0341.13 ▼1.08
Dashboard /wp-admin3.34 ▼0.0045.61 ▼16.95
Posts /wp-admin/edit.php3.39 ▲0.0346.44 ▼1.28
Add New Post /wp-admin/post-new.php5.94 ▲0.0584.32 ▲0.81
Media Library /wp-admin/upload.php3.26 ▲0.0335.57 ▲0.89
Botowski /wp-admin/options-general.php?page=botowski-settings3.2329.35

Server storage [IO: ▲0.10MB] [DB: ▲0.98MB] Passed 3 tests

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options

Browser metrics Passed 4 tests

Botowski for WooCommerce: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,828 ▲8113.65 ▼0.481.81 ▲0.2042.70 ▼1.94
Dashboard /wp-admin2,233 ▲666.04 ▲0.4499.15 ▼12.2238.41 ▼3.54
Posts /wp-admin/edit.php2,143 ▲402.32 ▲0.3641.81 ▲8.0935.95 ▲0.52
Add New Post /wp-admin/post-new.php1,548 ▼2423.56 ▲4.47686.28 ▲54.5437.00 ▼36.66
Media Library /wp-admin/upload.php1,441 ▲444.55 ▲0.4098.96 ▼1.3243.31 ▲2.64
Botowski /wp-admin/options-general.php?page=botowski-settings8542.0826.6125.41

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
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
Almost there! Just fix the following items
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/botowski-for-woocommerce/botowski.php:16

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected


Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Please fix the following attributes:
  • Screenshots: No descriptions were found for these screenshots #1, #2, #3, #4, #5 in botowski-for-woocommerce/assets to your readme.txt
  • Contributors: The plugin contributors field is not present
Please take inspiration from this readme.txt

botowski-for-woocommerce/botowski.php 92% from 13 tests

The principal PHP file in "Botowski for WooCommerce" v. 1.1.2 is loaded by WordPress automatically on each request
Please take the time to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("botowski-for-woocommerce.php" instead of "botowski.php")

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 plugin365 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.16
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions8100.00%
▷ Anonymous functions00.00%
▷ 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
1 PNG file occupies 0.09MB with 0.05MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
botowski.png88.28KB35.56KB▼ 59.72%