90% bleumi-payments-for-cancel-abandoned-order

Code Review | Bleumi Payments for Cancel Abandoned Order

WordPress plugin Bleumi Payments for Cancel Abandoned Order scored90%from 54 tests.

About plugin

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

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /231 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.01MB] [CPU: ▼3.01ms] Passed 4 tests

This is a short check of server-side resources used by Bleumi Payments for Cancel Abandoned Order
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0141.13 ▲0.10
Dashboard /wp-admin3.31 ▲0.0143.12 ▼3.70
Posts /wp-admin/edit.php3.36 ▲0.0149.12 ▲5.06
Add New Post /wp-admin/post-new.php5.89 ▲0.0183.58 ▼6.81
Media Library /wp-admin/upload.php3.23 ▲0.0133.42 ▼1.62

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
db_upgraded
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-posts
widget_recent-comments

Browser metrics Passed 4 tests

This is an overview of browser requirements for Bleumi Payments for Cancel Abandoned Order
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6514.47 ▼0.111.74 ▼0.6445.22 ▼3.72
Dashboard /wp-admin2,209 ▲214.86 ▼1.0496.50 ▼18.7636.46 ▼10.99
Posts /wp-admin/edit.php2,086 ▼32.04 ▲0.0139.43 ▼2.2536.94 ▲2.10
Add New Post /wp-admin/post-new.php1,520 ▼1323.02 ▼0.24635.76 ▼41.1646.34 ▼20.87
Media Library /wp-admin/upload.php1,385 ▼04.16 ▼0.0393.22 ▼12.7541.90 ▼2.26

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP Passed 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
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
5 plugin tags: payment-processing, woocommerce-plugin, bleumi, accept-crypto-payments, payment-gateway

bleumi-payments-for-cancel-abandoned-order/index.php 92% from 13 tests

This is the main PHP file of "Bleumi Payments for Cancel Abandoned Order" version 1.0.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
The following require your attention:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("bleumi-payments-for-cancel-abandoned-order.php" instead of "index.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
There were no executable files found in this plugin28 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
Markdown111014
PHP16814

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.12
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%
Functions2
▷ Named functions2100.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
There were not PNG files found in your plugin