78% bizapp-for-woocommerce

Code Review | Bizapp for WooCommerce

WordPress plugin Bizapp for WooCommerce scored78%from 54 tests.

About plugin

  • Plugin page: bizapp-for-woocom...
  • Plugin version: 1.2.10
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-6.1
  • WordPress version: 6.3.1
  • First release: Jan 20, 2021
  • Latest release: Nov 15, 2022
  • Number of updates: 18
  • Update frequency: every 36.9 days
  • Top authors: bizappventures (100%)

Code review

54 tests

User reviews

1 review

Install metrics

800+ active /3,240 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully

Server metrics [RAM: ▲1.07MB] [CPU: ▲4.32ms] Passed 4 tests

A check of server-side resources used by Bizapp for WooCommerce
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /4.57 ▲1.1155.06 ▲15.94
Dashboard /wp-admin4.40 ▲1.1056.79 ▲5.71
Posts /wp-admin/edit.php4.45 ▲1.1057.19 ▲5.15
Add New Post /wp-admin/post-new.php6.95 ▲1.06106.02 ▼5.01
Media Library /wp-admin/upload.php4.26 ▲1.0344.63 ▲11.42
Codestar Framework /wp-admin/tools.php?page=csf-welcome4.3149.39
Dashboard /wp-admin/plugins.php?page=meta-box4.2642.42

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Bizapp for WooCommerce
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,828 ▲6714.32 ▼0.241.87 ▲0.3543.81 ▲0.81
Dashboard /wp-admin2,231 ▲515.67 ▼0.0383.41 ▼3.7383.74 ▲39.95
Posts /wp-admin/edit.php2,139 ▲361.98 ▼0.0334.03 ▼7.2532.35 ▼4.48
Add New Post /wp-admin/post-new.php1,570 ▲4425.23 ▲1.98657.82 ▼5.63118.87 ▲72.04
Media Library /wp-admin/upload.php1,439 ▲394.26 ▲0.10102.32 ▲5.9480.62 ▲38.22
Codestar Framework /wp-admin/tools.php?page=csf-welcome1,4603.4849.4890.06
Orders Creation /wp-admin/admin.php?page=bizapp#tab=orders-creation1,2063.3554.0266.71
API Credentials /wp-admin/admin.php?page=bizapp#tab=api-credentials1,2053.6948.7170.06
Dashboard /wp-admin/plugins.php?page=meta-box1,3632.1925.7643.44
Products Sync /wp-admin/admin.php?page=bizapp#tab=products-sync1,2263.4052.5381.88

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 7 options
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts
    • bizapp
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested

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 fix the following items
  • 5× PHP files output text when accessed directly:
    • > /wp-content/plugins/bizapp-for-woocommerce/libraries/meta-box/inc/templates/media.php
    • > /wp-content/plugins/bizapp-for-woocommerce/libraries/meta-box/inc/templates/upload.php
    • > /wp-content/plugins/bizapp-for-woocommerce/libraries/meta-box/inc/templates/video.php
    • > /wp-content/plugins/bizapp-for-woocommerce/libraries/meta-box/inc/templates/audio.php
    • > /wp-content/plugins/bizapp-for-woocommerce/libraries/meta-box/inc/templates/image-advanced.php
  • 64× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'RWMB_Field' not found in wp-content/plugins/bizapp-for-woocommerce/libraries/meta-box/inc/fields/textarea.php:11
    • > PHP Fatal error
      Uncaught Error: Class 'RWMB_Choice_Field' not found in wp-content/plugins/bizapp-for-woocommerce/libraries/meta-box/inc/fields/select.php:11
    • > PHP Fatal error
      Uncaught Error: Class 'RWMB_Image_Advanced_Field' not found in wp-content/plugins/bizapp-for-woocommerce/libraries/meta-box/inc/fields/image-upload.php:11
    • > PHP Fatal error
      Uncaught Error: Class 'RWMB_Field' not found in wp-content/plugins/bizapp-for-woocommerce/libraries/meta-box/inc/fields/button.php:11
    • > PHP Fatal error
      Uncaught Error: Class 'RWMB_Taxonomy_Field' not found in wp-content/plugins/bizapp-for-woocommerce/libraries/meta-box/inc/fields/taxonomy-advanced.php:11
    • > PHP Fatal error
      Uncaught Error: Class 'RWMB_Field' not found in wp-content/plugins/bizapp-for-woocommerce/libraries/meta-box/inc/fields/wysiwyg.php:11
    • > PHP Fatal error
      Uncaught Error: Class 'RWMB_Field' not found in wp-content/plugins/bizapp-for-woocommerce/libraries/meta-box/inc/fields/background.php:11
    • > PHP Fatal error
      Uncaught Error: Class 'RWMB_Text_Field' not found in wp-content/plugins/bizapp-for-woocommerce/libraries/meta-box/inc/fields/color.php:11
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/bizapp-for-woocommerce/libraries/meta-box/inc/about/sections/products.php:12
    • > PHP Fatal error
      Uncaught Error: Class 'RWMB_File_Field' not found in wp-content/plugins/bizapp-for-woocommerce/libraries/meta-box/inc/fields/media.php:11

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
6 plugin tags: woocommerce, product, order, bizapp, integration...

bizapp-for-woocommerce/bizapp-woocommerce.php 92% from 13 tests

Analyzing the main PHP file in "Bizapp for WooCommerce" version 1.2.10
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 ("bizapp-for-woocommerce.php" instead of "bizapp-woocommerce.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Good job! No executable or dangerous file extensions detected26,440 lines of code in 353 files:
LanguageFilesBlank linesComment linesLines of code
PHP1883,5785,26515,354
PO File203,1973,5946,490
JavaScript995314522,201
CSS411491212,009
Markdown2850379
SVG3007

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.47
Average class complexity12.45
▷ Minimum class complexity1.00
▷ Maximum class complexity140.00
Average method complexity3.65
▷ Minimum method complexity1.00
▷ Maximum method complexity57.00
Code structure
Namespaces0
Interfaces3
Traits1
Classes151
▷ Abstract classes95.96%
▷ Concrete classes14294.04%
▷ Final classes00.00%
Methods673
▷ Static methods31847.25%
▷ Public methods60489.75%
▷ Protected methods334.90%
▷ Private methods365.35%
Functions39
▷ Named functions3589.74%
▷ Anonymous functions410.26%
Constants12
▷ Global constants1191.67%
▷ Class constants18.33%
▷ Public constants1100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
17 compressed PNG files occupy 0.04MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
libraries/meta-box/img/jqueryui/ui-bg_flat_75_ffffff_40x100.png0.17KB0.08KB▼ 51.12%
libraries/codestar-framework/assets/images/checkerboard.png2.29KB2.54KB0.00%
libraries/meta-box/img/jqueryui/ui-icons_cd0a0a_256x240.png4.27KB4.11KB▼ 3.78%
libraries/meta-box/img/jqueryui/ui-bg_glass_75_dadada_1x400.png0.11KB0.16KB0.00%
libraries/meta-box/img/jqueryui/ui-icons_2e83ff_256x240.png4.27KB4.11KB▼ 3.78%