89% ois-bizcraft-checkout-gateway-plus

Code Review | OIS-Bizcraft Checkout Gateway Plus

WordPress plugin OIS-Bizcraft Checkout Gateway Plus scored89%from 54 tests.

About plugin

  • Plugin page: ois-bizcraft-chec...
  • Plugin version: 1.2.1
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-6.1
  • WordPress version: 6.3.1
  • First release: Oct 24, 2022
  • Latest release: Sep 8, 2023
  • Number of updates: 6
  • Update frequency: every 53.8 days
  • Top authors: oisbizcraft (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /248 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

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

Analyzing server-side resources used by OIS-Bizcraft Checkout Gateway Plus
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0640.70 ▼1.89
Dashboard /wp-admin3.36 ▲0.0648.89 ▼1.22
Posts /wp-admin/edit.php3.41 ▲0.0647.63 ▼4.06
Add New Post /wp-admin/post-new.php5.94 ▲0.0681.51 ▼13.39
Media Library /wp-admin/upload.php3.29 ▲0.0637.46 ▼1.66

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-posts
can_compress_scripts
widget_recent-comments
widget_theysaidso_widget
db_upgraded

Browser metrics Passed 4 tests

This is an overview of browser requirements for OIS-Bizcraft Checkout Gateway Plus
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲314.22 ▼0.051.87 ▼0.0439.54 ▼5.64
Dashboard /wp-admin2,198 ▲305.62 ▼0.1189.40 ▼13.6736.90 ▼9.34
Posts /wp-admin/edit.php2,100 ▲32.01 ▼0.0236.38 ▼2.3930.18 ▼4.83
Add New Post /wp-admin/post-new.php1,531 ▼423.02 ▲4.97622.76 ▲1.6261.45 ▼37.40
Media Library /wp-admin/upload.php1,400 ▼34.20 ▲0.1198.73 ▼9.2044.05 ▼1.45

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
You still need to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Everything seems fine, however this is by no means an exhaustive test

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 90% from 29 tests

readme.txt 88% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need your attention:
  • Plugin Name: You should set the name of your plugin on the first line ( === ois-bizcraft-checkout-gateway-plus === )
  • Tags: There are too many tags (15 tag instead of maximum 10)
The official readme.txt is a good inspiration

ois-bizcraft-checkout-gateway-plus/oisbizcraft-payment-solution-plus.php 92% from 13 tests

Analyzing the main PHP file in "OIS-Bizcraft Checkout Gateway Plus" version 1.2.1
It is important to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("ois-bizcraft-checkout-gateway-plus.php" instead of "oisbizcraft-payment-solution-plus.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected294 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP15780294

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.28
Average class complexity26.00
▷ Minimum class complexity26.00
▷ Maximum class complexity26.00
Average method complexity3.27
▷ Minimum method complexity1.00
▷ Maximum method complexity14.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods11
▷ Static methods00.00%
▷ Public methods1090.91%
▷ Protected methods19.09%
▷ Private methods00.00%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
2 PNG files occupy 0.07MB with 0.04MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/logo-ois.png37.08KB19.10KB▼ 48.48%
assets/logo.png38.92KB15.01KB▼ 61.43%