84% hiflow-billder-connect

Code Review | Hiflow & Billder Connect

WordPress plugin Hiflow & Billder Connect scored84%from 54 tests.

About plugin

  • Plugin page: hiflow-billder-co...
  • Plugin version: 0.1.2
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.4
  • WordPress version: 6.3.1
  • First release: Sep 1, 2020
  • Latest release: Nov 23, 2023
  • Number of updates: 19
  • Update frequency: every 62.0 days
  • Top authors: brainmade (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /606 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.04MB] [CPU: ▼6.20ms] Passed 4 tests

A check of server-side resources used by Hiflow & Billder Connect
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0135.32 ▼10.67
Dashboard /wp-admin3.40 ▲0.1048.21 ▼0.07
Posts /wp-admin/edit.php3.46 ▲0.1050.81 ▲3.12
Add New Post /wp-admin/post-new.php5.92 ▲0.0381.64 ▼12.72
Media Library /wp-admin/upload.php3.24 ▲0.0234.07 ▼1.32

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Hiflow & Billder Connect
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,937 ▲17514.70 ▲0.371.62 ▼0.1037.94 ▼7.93
Dashboard /wp-admin2,345 ▲1686.18 ▲0.66124.51 ▲22.0845.31 ▲1.10
Posts /wp-admin/edit.php2,273 ▲1733.37 ▲1.3654.32 ▲13.6936.41 ▼0.05
Add New Post /wp-admin/post-new.php1,536 ▲122.96 ▼2.17595.66 ▼71.4934.96 ▼38.95
Media Library /wp-admin/upload.php1,407 ▲74.11 ▼0.0481.55 ▼17.9843.06 ▼0.82

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • The uninstall procedure has failed, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 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
The following issues need your attention
  • 8× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/hiflow-billder-connect/assets/assets.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'WC_Billder_Connect_Settings' not found in wp-content/plugins/hiflow-billder-connect/views/billder-connect-settings.php:3
    • > PHP Warning
      require_once(ABSPATHwp-admin/includes/class-wp-list-table.php): failed to open stream: No such file or directory in wp-content/plugins/hiflow-billder-connect/billder-connect.php on line 23
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wc_get_order() in wp-content/plugins/hiflow-billder-connect/views/templates/invoice.php:2
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/hiflow-billder-connect/billder-connect.php on line 23
    • > PHP Fatal error
      Uncaught Error: Class 'WC_Billder_Connect_Logs' not found in wp-content/plugins/hiflow-billder-connect/views/billder-connect-logs.php:3
    • > PHP Fatal error
      require_once(): Failed opening required 'ABSPATHwp-admin/includes/class-wp-list-table.php' (include_path='.:/usr/share/php') in wp-content/plugins/hiflow-billder-connect/billder-connect.php on line 23
    • > PHP Fatal error
      Uncaught Error: Class 'WC_Billder_Connect_Settings' not found in wp-content/plugins/hiflow-billder-connect/views/billder-connect-order-data.php:3

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 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
5 plugin tags: e-commerce, gestion, invoice, facturation, woocommerce

hiflow-billder-connect/billder-connect.php 92% from 13 tests

The main PHP file in "Hiflow & Billder Connect" ver. 0.1.2 adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
  • Main file name: The principal plugin file should be the same as the plugin slug ("hiflow-billder-connect.php" instead of "billder-connect.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
No dangerous file extensions were detected2,050 lines of code in 22 files:
LanguageFilesBlank linesComment linesLines of code
PHP11326881,069
CSS262512
Sass6610346
PO File24035121
JavaScript1502

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.35
Average class complexity18.00
▷ Minimum class complexity1.00
▷ Maximum class complexity41.00
Average method complexity2.93
▷ Minimum method complexity1.00
▷ Maximum method complexity21.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes00.00%
Methods48
▷ Static methods1633.33%
▷ Public methods4695.83%
▷ Protected methods24.17%
▷ Private methods00.00%
Functions7
▷ Named functions342.86%
▷ Anonymous functions457.14%
Constants7
▷ Global constants7100.00%
▷ Class constants00.00%
▷ Public constants00.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
3 PNG files occupy 0.09MB with 0.05MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/link.png12.47KB8.03KB▼ 35.63%
assets/images/billder_connect.png28.52KB9.18KB▼ 67.80%
assets/images/hiflow_connect.png48.97KB17.57KB▼ 64.11%