83% woo-billomat

Code Review | WooBillomat

WordPress plugin WooBillomat scored83%from 54 tests.

About plugin

  • Plugin page: woo-billomat
  • Plugin version: 2.4.8
  • PHP version: 7.4.16
  • WordPress compatibility: 4.8-6.0.2
  • WordPress version: 6.3.1
  • First release: Jun 14, 2018
  • Latest release: Sep 26, 2022
  • Number of updates: 59
  • Update frequency: every 27.0 days
  • Top authors: billomatcom (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

100+ active /11,470 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully

Server metrics [RAM: ▲0.49MB] [CPU: ▼5.35ms] Passed 4 tests

A check of server-side resources used by WooBillomat
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.88 ▲0.4252.12 ▲10.18
Dashboard /wp-admin3.86 ▲0.5260.29 ▼8.89
Posts /wp-admin/edit.php3.91 ▲0.5656.77 ▼1.22
Add New Post /wp-admin/post-new.php6.40 ▲0.5287.94 ▼16.26
Media Library /wp-admin/upload.php3.72 ▲0.4941.93 ▲4.97

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 163 new files
Database: no new tables, 8 new options
New WordPress options
wcb_invoices_created
widget_recent-comments
theysaidso_admin_options
db_upgraded
wcb_db_version
can_compress_scripts
widget_recent-posts
widget_theysaidso_widget

Browser metrics Passed 4 tests

An overview of browser requirements for WooBillomat
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,796 ▲1014.69 ▲0.342.23 ▲0.4942.42 ▲4.00
Dashboard /wp-admin2,202 ▲225.63 ▼0.1183.97 ▼6.4439.23 ▼1.72
Posts /wp-admin/edit.php2,107 ▲102.01 ▲0.0540.07 ▲2.2035.82 ▼2.35
Add New Post /wp-admin/post-new.php1,533 ▲523.19 ▲0.16678.09 ▼3.6057.84 ▲1.61
Media Library /wp-admin/upload.php1,407 ▲74.15 ▼0.0598.37 ▼12.3745.20 ▼2.42

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 8 options
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts
    • wcb_db_version
    • widget_recent-comments
    • wcb_invoices_created
    • widget_theysaidso_widget
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please take a closer look at the following
  • 50× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Interface 'GuzzleHttp\\Promise\\PromiseInterface' not found in wp-content/plugins/woo-billomat/vendor/guzzlehttp/promises/src/FulfilledPromise.php:11
    • > PHP Fatal error
      Uncaught Error: Interface 'Psr\\Http\\Message\\StreamInterface' not found in wp-content/plugins/woo-billomat/vendor/guzzlehttp/psr7/src/AppendStream.php:12
    • > PHP Fatal error
      Uncaught Error: Interface 'Psr\\Http\\Client\\ClientExceptionInterface' not found in wp-content/plugins/woo-billomat/vendor/guzzlehttp/guzzle/src/Exception/GuzzleException.php:7
    • > PHP Fatal error
      Uncaught Error: Interface 'Psr\\Http\\Message\\StreamInterface' not found in wp-content/plugins/woo-billomat/vendor/guzzlehttp/psr7/src/PumpStream.php:17
    • > PHP Fatal error
      Uncaught Error: Class 'GuzzleHttp\\Exception\\BadResponseException' not found in wp-content/plugins/woo-billomat/vendor/guzzlehttp/guzzle/src/Exception/ServerException.php:8
    • > PHP Fatal error
      Uncaught Error: Class 'GuzzleHttp\\Promise\\RejectionException' not found in wp-content/plugins/woo-billomat/vendor/guzzlehttp/promises/src/CancellationException.php:8
    • > PHP Fatal error
      Uncaught Error: Class 'GuzzleHttp\\Exception\\TransferException' not found in wp-content/plugins/woo-billomat/vendor/guzzlehttp/guzzle/src/Exception/ConnectException.php:13
    • > PHP Fatal error
      Uncaught Error: Interface 'Psr\\Http\\Message\\UriInterface' not found in wp-content/plugins/woo-billomat/vendor/guzzlehttp/psr7/src/Uri.php:14
    • > PHP Fatal error
      Uncaught Error: Interface 'Psr\\Http\\Message\\RequestInterface' not found in wp-content/plugins/woo-billomat/vendor/guzzlehttp/psr7/src/Request.php:13
    • > PHP Fatal error
      Uncaught Error: Interface 'GuzzleHttp\\Handler\\CurlFactoryInterface' not found in wp-content/plugins/woo-billomat/vendor/guzzlehttp/guzzle/src/Handler/CurlFactory.php:20

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Please fix the following attributes:
  • Screenshots: Please add descriptions for these screenshots #1, #2, #3, #4, #5 in woo-billomat/assets to your readme.txt
The official readme.txt might help

woo-billomat/woocommerce-billomat.php 85% from 13 tests

The main PHP script in "WooBillomat" version 2.4.8 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
  • Main file name: Name the main plugin file the same as the plugin slug ("woo-billomat.php" instead of "woocommerce-billomat.php")

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
Everything looks great! No dangerous files found in this plugin15,607 lines of code in 149 files:
LanguageFilesBlank linesComment linesLines of code
PHP1242,3276,40011,012
Markdown121,13203,453
JSON800599
PO File1160211470
CSS18033
JavaScript11116
XML10015
make1409

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.43
Average class complexity15.34
▷ Minimum class complexity1.00
▷ Maximum class complexity125.00
Average method complexity2.90
▷ Minimum method complexity1.00
▷ Maximum method complexity41.00
Code structure
Namespaces9
Interfaces20
Traits3
Classes88
▷ Abstract classes00.00%
▷ Concrete classes88100.00%
▷ Final classes2022.73%
Methods849
▷ Static methods15017.67%
▷ Public methods70583.04%
▷ Protected methods40.47%
▷ Private methods14016.49%
Functions147
▷ Named functions5638.10%
▷ Anonymous functions9161.90%
Constants65
▷ Global constants1015.38%
▷ Class constants5584.62%
▷ Public constants55100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG files were detected