73% billingo

Code Review | Official Integration for Billingo

WordPress plugin Official Integration for Billingo scored73%from 54 tests.

About plugin

  • Plugin page: billingo
  • Plugin version: 3.4.6
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.3-6.3.0
  • WordPress version: 6.3.1
  • First release: Apr 20, 2016
  • Latest release: Oct 3, 2023
  • Number of updates: 105
  • Update frequency: every 26.0 days
  • Top authors: billingo (100%)

Code review

54 tests

User reviews

11 reviews

Install metrics

3,000+ active /49,223 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

Server metrics [RAM: ▲0.45MB] [CPU: ▼3.10ms] Passed 4 tests

Server-side resources used by Official Integration for Billingo
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.78 ▲0.3244.31 ▼5.23
Dashboard /wp-admin3.84 ▲0.5452.73 ▼2.01
Posts /wp-admin/edit.php3.89 ▲0.5352.51 ▲3.69
Add New Post /wp-admin/post-new.php6.36 ▲0.4796.08 ▼3.13
Media Library /wp-admin/upload.php3.70 ▲0.4735.88 ▼2.01

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 19 new files
Database: 2 new tables, 6 new options
New tables
wp_billingo_partnerhash
wp_billingo_documents
New WordPress options
db_upgraded
theysaidso_admin_options
widget_recent-comments
widget_theysaidso_widget
widget_recent-posts
can_compress_scripts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Official Integration for Billingo
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,792 ▲3114.25 ▼0.101.75 ▲0.1444.85 ▲3.66
Dashboard /wp-admin2,192 ▲125.61 ▼0.0695.10 ▲6.7743.03 ▲2.56
Posts /wp-admin/edit.php2,103 ▲211.97 ▼0.0336.79 ▲1.7233.36 ▼1.91
Add New Post /wp-admin/post-new.php1,538 ▲1218.43 ▼4.62615.76 ▼48.2964.58 ▲10.48
Media Library /wp-admin/upload.php1,406 ▲34.21 ▲0.1096.26 ▼5.8644.22 ▼5.13

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • Zombie tables detected upon uninstall: 2 tables
    • wp_billingo_documents
    • wp_billingo_partnerhash
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please take a closer look at the following
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'WC_Order' not found in wp-content/plugins/billingo/includes/class-billingo-order.php:3

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
  • Contributors: Contributors not specified
  • Screenshots: These screenshots do not have images: #1 (Beállítások képernyő (WooCommerce / Beállítások)), #2 (Beállítások képernyő (WooCommerce / Beállítások)), #3 (Beállítások képernyő (WooCommerce / Beállítások)), #4 (Manuális számla/sztornó számla készítő meta box a rendelés részleteiben)
The official readme.txt is a good inspiration

billingo/index.php 92% from 13 tests

"Official Integration for Billingo" version 3.4.6's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
It is important to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("billingo.php" instead of "index.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
There were no executable files found in this plugin2,733 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
PHP73944872,166
JavaScript14522306
Markdown1820212
CSS112049

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.45
Average class complexity87.50
▷ Minimum class complexity1.00
▷ Maximum class complexity244.00
Average method complexity4.72
▷ Minimum method complexity1.00
▷ Maximum method complexity65.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods94
▷ Static methods7276.60%
▷ Public methods8489.36%
▷ Protected methods1010.64%
▷ Private methods00.00%
Functions1
▷ Named functions00.00%
▷ Anonymous functions1100.00%
Constants23
▷ Global constants28.70%
▷ Class constants2191.30%
▷ Public constants21100.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
2 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
admin/images/invoice.png0.60KB0.48KB▼ 19.61%
admin/images/payment_request.png0.58KB0.46KB▼ 20.57%