90% bleumi-payments-for-woocommerce

Code Review | Bleumi Payments for WooCommerce

WordPress plugin Bleumi Payments for WooCommerce scored90%from 54 tests.

About plugin

  • Plugin page: bleumi-payments-f...
  • Plugin version: 1.0.9
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.4-5.8.2
  • WordPress version: 6.3.1
  • First release: May 10, 2021
  • Latest release: Jan 13, 2022
  • Number of updates: 13
  • Update frequency: every 19.4 days
  • Top authors: bleumiinc (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /619 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 successfully, without throwing any errors or notices

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

This is a short check of server-side resources used by Bleumi Payments for WooCommerce
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0036.19 ▼7.99
Dashboard /wp-admin3.31 ▲0.0048.99 ▼4.16
Posts /wp-admin/edit.php3.36 ▲0.0048.07 ▼0.10
Add New Post /wp-admin/post-new.php5.89 ▲0.0095.69 ▲0.09
Media Library /wp-admin/upload.php3.23 ▲0.0034.27 ▲1.08

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
db_upgraded
can_compress_scripts
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-comments

Browser metrics Passed 4 tests

Bleumi Payments for WooCommerce: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲4313.66 ▼0.721.71 ▼0.3440.56 ▼6.93
Dashboard /wp-admin2,209 ▲214.84 ▼1.0499.52 ▼12.2139.59 ▼5.18
Posts /wp-admin/edit.php2,089 ▼01.98 ▼0.0739.14 ▼2.4334.23 ▼1.39
Add New Post /wp-admin/post-new.php1,542 ▲918.37 ▼4.69609.10 ▼65.8355.46 ▲3.63
Media Library /wp-admin/upload.php1,388 ▲34.22 ▲0.0296.44 ▼2.4941.61 ▼2.29

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

Smoke tests Passed 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 Passed 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
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
5 plugin tags: payment-processing, bleumi, woocommerce-plugin, payment-gateway, accept-crypto-payments

bleumi-payments-for-woocommerce/index.php 92% from 13 tests

The principal PHP file in "Bleumi Payments for WooCommerce" v. 1.0.9 is loaded by WordPress automatically on each request
The following require your attention:
  • Main file name: The principal plugin file should be the same as the plugin slug ("bleumi-payments-for-woocommerce.php" instead of "index.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Good job! No executable or dangerous file extensions detected536 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP28091510
Markdown118026

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.26
Average class complexity17.00
▷ Minimum class complexity4.00
▷ Maximum class complexity30.00
Average method complexity3.91
▷ Minimum method complexity1.00
▷ Maximum method complexity11.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods11
▷ Static methods327.27%
▷ Public methods1090.91%
▷ Protected methods19.09%
▷ Private methods00.00%
Functions8
▷ Named functions8100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
1 PNG file occupies 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/images/Bleumi.png5.50KB1.36KB▼ 75.25%