89% ois-bizcraft-checkout-gateway

Code Review | OIS-Bizcraft Checkout Gateway

WordPress plugin OIS-Bizcraft Checkout Gateway 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: Nov 29, 2021
  • Latest release: Sep 8, 2023
  • Number of updates: 19
  • Update frequency: every 34.3 days
  • Top authors: oisbizcraft (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /517 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
This plugin's installer ran successfully

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

Analyzing server-side resources used by OIS-Bizcraft Checkout Gateway
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0639.53 ▼5.25
Dashboard /wp-admin3.36 ▲0.0650.09 ▲2.61
Posts /wp-admin/edit.php3.41 ▲0.0647.04 ▼1.17
Add New Post /wp-admin/post-new.php5.94 ▲0.0692.76 ▼1.66
Media Library /wp-admin/upload.php3.28 ▲0.0639.95 ▼4.92

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

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

Browser metrics Passed 4 tests

A check of browser resources used by OIS-Bizcraft Checkout Gateway
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲7913.70 ▼0.951.80 ▼0.1439.63 ▼5.07
Dashboard /wp-admin2,206 ▲154.86 ▼0.08112.96 ▲0.7743.66 ▲3.41
Posts /wp-admin/edit.php2,086 ▼31.99 ▼0.0735.76 ▼5.4333.21 ▼3.70
Add New Post /wp-admin/post-new.php1,519 ▼923.06 ▲4.93682.56 ▲23.4355.44 ▲3.23
Media Library /wp-admin/upload.php1,382 ▲34.29 ▲0.1098.93 ▼4.2543.44 ▼1.71

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts

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
Good news, no errors were detected

SRP Passed 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
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)
No browser issues were found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that need to be fixed:
  • Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line ( === ois-bizcraft-checkout-gateway === )
  • Tags: You are using too many tags: 14 tag instead of maximum 10
You can look at the official readme.txt

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

The principal PHP file in "OIS-Bizcraft Checkout Gateway" v. 1.2.1 is loaded by WordPress automatically on each request
You should first fix the following items:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("ois-bizcraft-checkout-gateway.php" instead of "oisbizcraft-payment-solution.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 plugin279 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP14975279

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.29
Average class complexity25.00
▷ Minimum class complexity25.00
▷ Maximum class complexity25.00
Average method complexity3.67
▷ Minimum method complexity1.00
▷ Maximum method complexity14.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods9
▷ Static methods00.00%
▷ Public methods888.89%
▷ Protected methods111.11%
▷ 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

Using a strong compression for your PNG files is a great way to speed-up your plugin
3 PNG files occupy 0.19MB with 0.12MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/logo-ois.png37.08KB19.10KB▼ 48.48%
assets/screenshot-1.png121.32KB30.82KB▼ 74.60%
assets/logo.png38.92KB15.01KB▼ 61.43%