78% bizuno-api

Code Review | WooCommerce - Bizuno Accounting Interface

WordPress plugin WooCommerce - Bizuno Accounting Interface scored78%from 54 tests.

About plugin

  • Plugin page: bizuno-api
  • Plugin version: 6.7.0
  • PHP version: 7.4.16
  • WordPress compatibility: 5.3-6.2.2
  • WordPress version: 6.3.1
  • First release: Jul 31, 2019
  • Latest release: Jun 8, 2023
  • Number of updates: 29
  • Update frequency: every 48.6 days
  • Top authors: davepremo (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,280 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.07MB] [CPU: ▲1.24ms] Passed 4 tests

A check of server-side resources used by WooCommerce - Bizuno Accounting Interface
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0837.27 ▼3.33
Dashboard /wp-admin3.36 ▲0.0548.72 ▲0.17
Posts /wp-admin/edit.php3.47 ▲0.1150.66 ▲4.94
Add New Post /wp-admin/post-new.php5.97 ▲0.09100.92 ▲15.43
Media Library /wp-admin/upload.php3.28 ▲0.0537.61 ▲3.18
Bizuno API /wp-admin/options-general.php?page=bizuno_api3.2431.09

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for WooCommerce - Bizuno Accounting Interface
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲6914.45 ▲0.081.68 ▼0.1043.20 ▼3.40
Dashboard /wp-admin2,210 ▲185.90 ▲0.95110.10 ▼8.0841.68 ▼7.32
Posts /wp-admin/edit.php2,093 ▲42.00 ▲0.0041.88 ▲5.4034.25 ▼1.67
Add New Post /wp-admin/post-new.php1,545 ▲3118.30 ▲0.83617.56 ▼63.1658.54 ▼9.48
Media Library /wp-admin/upload.php1,386 ▼24.23 ▼0.0295.70 ▼1.2141.95 ▼0.38
Bizuno API /wp-admin/options-general.php?page=bizuno_api8902.0328.4431.61

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

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

SRP 0% from 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
Please take a closer look at the following
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/bizuno-api/bizuno-api.php
  • 5× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'bizuno\\api_common' not found in wp-content/plugins/bizuno-api/lib/product.php:14
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/bizuno-api/lib/payment_purchase_order.php:66
    • > PHP Fatal error
      Uncaught Error: Class 'bizuno\\api_common' not found in wp-content/plugins/bizuno-api/lib/order.php:14
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/bizuno-api/lib/payment_converge.php:289
    • > PHP Fatal error
      Uncaught Error: Class 'bizuno\\api_common' not found in wp-content/plugins/bizuno-api/lib/account.php:14

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 90% 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
9 plugin tags: bizuno, woocommerce accounting, bizuno interface, woocommerce, wordpress erp...

bizuno-api/bizuno-api.php 77% from 13 tests

The principal PHP file in "WooCommerce - Bizuno Accounting Interface" v. 6.7.0 is loaded by WordPress automatically on each request
It is important to fix the following:
  • Description: The description should be shorter than 140 characters (currently 197 characters long)
  • Domain Path: The domain path points to an invalid folder, "/locale" does not exist
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected1,719 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
PHP10923791,719

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.38
Average class complexity38.22
▷ Minimum class complexity1.00
▷ Maximum class complexity177.00
Average method complexity4.02
▷ Minimum method complexity1.00
▷ Maximum method complexity31.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes9
▷ Abstract classes00.00%
▷ Concrete classes9100.00%
▷ Final classes00.00%
Methods111
▷ Static methods00.00%
▷ Public methods7063.06%
▷ Protected methods32.70%
▷ Private methods3834.23%
Functions8
▷ Named functions8100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.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
No PNG files were detected