83% biller

Code Review | Biller | Biller business invoice

WordPress plugin Biller | Biller business invoice scored83%from 54 tests.

About plugin

  • Plugin page: biller
  • Plugin version: 1.0.8
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5.0-6.3.2
  • WordPress version: 6.3.1
  • First release: Nov 17, 2022
  • Latest release: Nov 28, 2023
  • Number of updates: 13
  • Update frequency: every 29.4 days
  • Top authors: ibrahimozcan (100%)

Code review

54 tests

User reviews

1 review

Install metrics

40+ active /781 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 gracefully, with no errors

Server metrics [RAM: ▲0.00MB] [CPU: ▼4.92ms] Passed 4 tests

This is a short check of server-side resources used by Biller | Biller business invoice
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0037.62 ▼5.71
Dashboard /wp-admin3.31 ▲0.0046.95 ▼4.19
Posts /wp-admin/edit.php3.36 ▲0.0042.80 ▼7.12
Add New Post /wp-admin/post-new.php5.89 ▲0.0087.59 ▼2.65
Media Library /wp-admin/upload.php3.23 ▲0.0035.14 ▲1.59

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 237 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
db_upgraded
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-posts
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for Biller | Biller business invoice
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,790 ▲2814.34 ▼0.361.76 ▼0.1038.68 ▼5.62
Dashboard /wp-admin2,198 ▲205.60 ▼0.0985.62 ▼24.2140.12 ▼4.44
Posts /wp-admin/edit.php2,097 ▼62.00 ▲0.0335.34 ▼7.1531.41 ▼26.80
Add New Post /wp-admin/post-new.php1,526 ▼023.14 ▲0.08682.00 ▲0.1660.62 ▼2.94
Media Library /wp-admin/upload.php1,400 ▼34.19 ▼0.0797.86 ▼1.7642.13 ▼2.55

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

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

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
The smoke test was a success, however most plugin functionality was not tested

SRP 50% 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
  • 93× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'Biller\\BusinessLogic\\API\\Http\\Proxy' not found in wp-content/plugins/biller/vendor/biller/integration-core/src/BusinessLogic/API/Authorization/Proxy/TokenProxy.php:19
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/biller/includes/class-biller.php on line 24
    • > PHP Fatal error
      Uncaught Error: Class 'Biller\\BusinessLogic\\API\\Http\\Request\\HttpRequest' not found in wp-content/plugins/biller/vendor/biller/integration-core/src/BusinessLogic/API/Logger/Request/ExportLogsRequest.php:12
    • > PHP Fatal error
      Uncaught Error: Class 'Biller\\Infrastructure\\Data\\DataTransferObject' not found in wp-content/plugins/biller/vendor/biller/integration-core/src/BusinessLogic/API/DTO/Refund/RefundAmount.php:8
    • > PHP Fatal error
      Uncaught Error: Class 'Biller\\Infrastructure\\Http\\Exceptions\\HttpBaseException' not found in wp-content/plugins/biller/vendor/biller/integration-core/src/Infrastructure/Http/Exceptions/HttpAuthenticationException.php:10
    • > PHP Fatal error
      Uncaught Error: Class 'WC_Payment_Gateway' not found in wp-content/plugins/biller/includes/Gateways/class-biller-business-invoice.php:34
    • > PHP Fatal error
      Uncaught Error: Class 'Biller\\Infrastructure\\Data\\DataTransferObject' not found in wp-content/plugins/biller/vendor/biller/integration-core/src/BusinessLogic/API/Logger/Request/ExportLogMessage.php:12
    • > PHP Fatal error
      Uncaught Error: Class 'Biller\\Controllers\\Biller_Base_Controller' not found in wp-content/plugins/biller/includes/Controllers/class-biller-order-capture-controller.php:17
    • > PHP Fatal error
      Uncaught Error: Class 'Biller\\Infrastructure\\Exceptions\\BaseException' not found in wp-content/plugins/biller/vendor/biller/integration-core/src/BusinessLogic/API/Http/Exceptions/RequestNotSuccessfulException.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'Biller\\Infrastructure\\Singleton' not found in wp-content/plugins/biller/vendor/biller/integration-core/src/BusinessLogic/Authorization/AuthorizationService.php:27

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 88% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need to be fixed:
  • Contributors: The plugin contributors field is not present
  • Screenshots: Add images for these screenshots: #4 (Hand over the credit risk), #5 (Bye tedious admin work)
The official readme.txt might help

biller/biller-business-invoice.php 92% from 13 tests

The main PHP script in "Biller | Biller business invoice" version 1.0.8 is automatically included on every request by WordPress
Please take the time to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("biller.php" instead of "biller-business-invoice.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 plugin10,886 lines of code in 219 files:
LanguageFilesBlank linesComment linesLines of code
PHP2002,3517,4629,903
PO File2148173423
JavaScript5356225
CSS4120135
JSON300116
XML20034
SVG10133
Markdown28017

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.23
Average class complexity4.41
▷ Minimum class complexity1.00
▷ Maximum class complexity48.00
Average method complexity1.63
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces83
Interfaces16
Traits0
Classes172
▷ Abstract classes95.23%
▷ Concrete classes16394.77%
▷ Final classes10.61%
Methods1,036
▷ Static methods14213.71%
▷ Public methods83580.60%
▷ Protected methods11010.62%
▷ Private methods918.78%
Functions41
▷ Named functions00.00%
▷ Anonymous functions41100.00%
Constants125
▷ Global constants10.80%
▷ Class constants12499.20%
▷ Public constants124100.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
No PNG files were detected