83% fitweb-bizappay-for-woocommerce

Code Review | BIZAPPAY for WooCommerce

WordPress plugin BIZAPPAY for WooCommerce scored83%from 54 tests.

About plugin

  • Plugin page: fitweb-bizappay-f...
  • Plugin version: 1.0.9
  • PHP version: 7.4.16
  • WordPress compatibility: 2.6.0-6.2.2
  • WordPress version: 6.3.1
  • First release: Nov 1, 2019
  • Latest release: Jul 26, 2023
  • Number of updates: 23
  • Update frequency: every 59.4 days
  • Top authors: fitweb (100%)

Code review

54 tests

User reviews

1 review

Install metrics

1,000+ active /8,328 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 successfully, without throwing any errors or notices

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

Server-side resources used by BIZAPPAY for WooCommerce
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0147.89 ▲5.32
Dashboard /wp-admin3.31 ▲0.0152.07 ▼1.74
Posts /wp-admin/edit.php3.36 ▲0.0151.59 ▲0.93
Add New Post /wp-admin/post-new.php5.89 ▲0.0184.70 ▼8.55
Media Library /wp-admin/upload.php3.24 ▲0.0139.42 ▲1.93

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
can_compress_scripts
db_upgraded
widget_recent-posts
theysaidso_admin_options
widget_theysaidso_widget

Browser metrics Passed 4 tests

BIZAPPAY for WooCommerce: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.26 ▼0.191.75 ▼0.1644.83 ▲0.87
Dashboard /wp-admin2,198 ▲185.64 ▼0.0796.92 ▼3.3741.80 ▼4.99
Posts /wp-admin/edit.php2,100 ▼02.03 ▼0.0935.76 ▼2.8334.34 ▼1.70
Add New Post /wp-admin/post-new.php1,554 ▲418.42 ▼5.13624.75 ▼52.9457.52 ▼4.35
Media Library /wp-admin/upload.php1,403 ▲34.23 ▼0.0196.62 ▼15.4140.99 ▼5.66

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

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 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
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: Class 'WC_Payment_Gateway' not found in wp-content/plugins/fitweb-bizappay-for-woocommerce/src/bizappay.php:6

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need your attention:
  • Plugin Name: Please specify the plugin name on the first line ( === fitweb-bizappay-for-woocommerce === )
You can look at the official readme.txt

fitweb-bizappay-for-woocommerce/index.php 85% from 13 tests

This is the main PHP file of "BIZAPPAY for WooCommerce" version 1.0.9, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
You should first fix the following items:
  • Requires at least: The required version number must match the one declared in readme.txt ("4.3" instead of "2.6.0")
  • Main file name: Name the main plugin file the same as the plugin slug ("fitweb-bizappay-for-woocommerce.php" instead of "index.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
No dangerous file extensions were detected265 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP27838265

PHP code Passed 2 tests

A short 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.46
Average class complexity44.00
▷ Minimum class complexity44.00
▷ Maximum class complexity44.00
Average method complexity6.38
▷ Minimum method complexity1.00
▷ Maximum method complexity20.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods8
▷ Static methods00.00%
▷ Public methods8100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions9
▷ Named functions888.89%
▷ Anonymous functions111.11%
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
There are no PNG files in this plugin