84% bleumi-payments-for-wc-vendors-marketplace

Code Review | Bleumi Payments for WC Vendors Marketplace

WordPress plugin Bleumi Payments for WC Vendors Marketplace scored 84% from 54 tests.

About plugin

  • Plugin page: bleumi-payments-f...
  • Plugin version: 1.0.4
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.4-5.8.2
  • WordPress version: 6.3.1
  • First release: Jan 11, 2022
  • Latest release: Feb 17, 2022
  • Number of updates: 5
  • Update frequency: every 7.6 days
  • Top authors: bleumiinc (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 308 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.02MB] [CPU: ▼4.90ms] Passed 4 tests

Server-side resources used by Bleumi Payments for WC Vendors Marketplace
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0240.50 ▼7.22
Dashboard /wp-admin3.33 ▲0.0246.57 ▼1.38
Posts /wp-admin/edit.php3.38 ▲0.0247.78 ▲1.98
Add New Post /wp-admin/post-new.php5.91 ▲0.0282.21 ▼11.34
Media Library /wp-admin/upload.php3.25 ▲0.0233.40 ▲0.33

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-comments
widget_recent-posts
db_upgraded
can_compress_scripts

Browser metrics Passed 4 tests

An overview of browser requirements for Bleumi Payments for WC Vendors Marketplace
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲7913.20 ▼1.092.01 ▼0.2144.34 ▼1.60
Dashboard /wp-admin2,203 ▲215.86 ▲0.0599.68 ▼3.1436.62 ▼11.80
Posts /wp-admin/edit.php2,089 ▼02.03 ▲0.0134.11 ▼7.6135.56 ▲3.69
Add New Post /wp-admin/post-new.php1,514 ▼017.53 ▲0.02674.73 ▲65.7265.86 ▲22.31
Media Library /wp-admin/upload.php1,388 ▲34.15 ▼0.0894.03 ▼5.2443.37 ▲0.49

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 50% 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 take a closer look at the following
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/bleumi-payments-for-wc-vendors-marketplace/index.php:12

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

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, woocommerce-plugin, accept-crypto-payments, bleumi, payment-gateway

bleumi-payments-for-wc-vendors-marketplace/index.php 92% from 13 tests

The entry point to "Bleumi Payments for WC Vendors Marketplace" version 1.0.4 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("bleumi-payments-for-wc-vendors-marketplace.php" instead of "index.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin83 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP115868
Markdown111015

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.38
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
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
No PNG images were found in this plugin