78% blanka

Code Review | Blanka private label beauty & skincare products app for WooCommerce

WordPress plugin Blanka private label beauty & skincare products app for WooCommerce scored78%from 54 tests.

About plugin

  • Plugin page: blanka
  • Plugin version: 1.0.6
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.8-6.2
  • WordPress version: 6.3.1
  • First release: Oct 7, 2022
  • Latest release: Sep 14, 2023
  • Number of updates: 19
  • Update frequency: every 20.4 days
  • Top authors: blankadoug (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

50+ active /1,389 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.06MB] [CPU: ▲3.35ms] Passed 4 tests

Server-side resources used by Blanka private label beauty & skincare products app for WooCommerce
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0637.14 ▼0.01
Dashboard /wp-admin3.35 ▲0.0548.72 ▲3.14
Posts /wp-admin/edit.php3.47 ▲0.1149.15 ▲1.46
Add New Post /wp-admin/post-new.php5.96 ▲0.0793.12 ▲11.85
Media Library /wp-admin/upload.php3.28 ▲0.0539.42 ▲8.80

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Blanka private label beauty & skincare products app for WooCommerce
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,902 ▲14514.11 ▼0.274.81 ▲2.7038.82 ▼2.47
Dashboard /wp-admin2,219 ▲644.94 ▼0.7499.57 ▼1.68100.27 ▲60.04
Posts /wp-admin/edit.php2,108 ▲192.04 ▲0.0437.65 ▼3.4440.84 ▲5.02
Add New Post /wp-admin/post-new.php1,684 ▲15122.33 ▼0.81595.79 ▼62.0346.51 ▼7.16
Media Library /wp-admin/upload.php1,407 ▲164.20 ▼0.0997.91 ▼0.1585.48 ▲41.76

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_theysaidso_widget
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

SRP 0% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following items
  • 2× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/blanka/public/partials/blanka-public-display.php
    • > /wp-content/plugins/blanka/admin/partials/blanka-admin-display.php
  • 3× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Warning
      constant(): Couldn't find constant BLANKA_API in wp-content/plugins/blanka/includes/class-blanka-admin-dashboard.php on line 5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_site_url() in wp-content/plugins/blanka/includes/class-blanka-admin-dashboard.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/blanka/includes/class-blanka-admin-dashboard-error.php:19

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need your attention:
  • Requires at least: Invalid version format
  • Tags: Please delete some tags, you are using 14 tag instead of maximum 10
The official readme.txt might help

blanka/blanka.php Passed 13 tests

The principal PHP file in "Blanka private label beauty & skincare products app for WooCommerce" v. 1.0.6 is loaded by WordPress automatically on each request
46 characters long description:
Connects your Blanka account with WooCommerce.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Success! There were no dangerous files found in this plugin395 lines of code in 19 files:
LanguageFilesBlank linesComment linesLines of code
PHP14205546270
CSS2208105
SVG10114
JavaScript24546

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.13
Average class complexity1.43
▷ Minimum class complexity1.00
▷ Maximum class complexity3.00
Average method complexity1.12
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods25
▷ Static methods312.00%
▷ Public methods2080.00%
▷ Protected methods00.00%
▷ Private methods520.00%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.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
10 PNG files occupy 0.34MB with 0.17MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/woocommerce.png22.53KB11.97KB▼ 46.87%
assets/images/green-checkbox.png0.96KB0.61KB▼ 36.27%
assets/images/connection_icon.png0.87KB0.52KB▼ 40.36%
assets/images/screenshot-2.png94.17KB25.70KB▼ 72.71%
assets/images/blanka-menu-icon.png15.36KB6.27KB▼ 59.17%