84% woo-billing-with-invoicexpress

Code Review | Invoicing with InvoiceXpress for WooCommerce - Free

WordPress plugin Invoicing with InvoiceXpress for WooCommerce - Free scored84%from 54 tests.

About plugin

  • Plugin page: woo-billing-with-...
  • Plugin version: 4.4
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.6-6.4
  • WordPress version: 6.3.1
  • First release: Dec 3, 2015
  • Latest release: Nov 21, 2023
  • Number of updates: 208
  • Update frequency: every 14.0 days
  • Top authors: webdados (92.79%)hellodev (7.69%)

Code review

54 tests

User reviews

10 reviews

Install metrics

200+ active /16,893 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: ▼0.01MB] [CPU: ▼9.44ms] Passed 4 tests

Analyzing server-side resources used by Invoicing with InvoiceXpress for WooCommerce - Free
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0037.33 ▼1.09
Dashboard /wp-admin3.31 ▼0.0445.88 ▼11.78
Posts /wp-admin/edit.php3.36 ▲0.0049.93 ▲0.37
Add New Post /wp-admin/post-new.php5.89 ▲0.0093.52 ▼20.35
Media Library /wp-admin/upload.php3.23 ▲0.0035.45 ▼4.54

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 54 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
can_compress_scripts
widget_recent-posts
theysaidso_admin_options
widget_recent-comments
db_upgraded

Browser metrics Passed 4 tests

Checking browser requirements for Invoicing with InvoiceXpress for WooCommerce - Free
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,815 ▲6814.67 ▲0.211.90 ▲0.2341.05 ▼0.11
Dashboard /wp-admin2,198 ▲215.62 ▲0.0492.35 ▼12.3242.00 ▼0.50
Posts /wp-admin/edit.php2,100 ▼32.01 ▼0.0238.65 ▼8.1836.04 ▼4.86
Add New Post /wp-admin/post-new.php1,535 ▲925.13 ▲1.72605.61 ▼27.3666.00 ▲11.15
Media Library /wp-admin/upload.php1,397 ▼34.19 ▼0.0297.88 ▲0.4342.70 ▼0.26

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though everything seems fine, this is not an exhaustive test

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
  • 9× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Class 'Webdados\\InvoiceXpressWooCommerce\\Settings\\Tabs' not found in wp-content/plugins/woo-billing-with-invoicexpress/src/Settings/Tabs/Invoices.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'Webdados\\InvoiceXpressWooCommerce\\Settings\\Tabs' not found in wp-content/plugins/woo-billing-with-invoicexpress/src/Settings/Tabs/General.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'Webdados\\InvoiceXpressWooCommerce\\BaseController' not found in wp-content/plugins/woo-billing-with-invoicexpress/src/Modules/Taxes/TaxController.php:10
    • > PHP Fatal error
      Uncaught Error: Class 'Webdados\\InvoiceXpressWooCommerce\\Settings\\Tabs' not found in wp-content/plugins/woo-billing-with-invoicexpress/src/Settings/Tabs/Taxes.php:14
    • > PHP Fatal error
      Uncaught Error: Class 'Webdados\\InvoiceXpressWooCommerce\\BaseMenu' not found in wp-content/plugins/woo-billing-with-invoicexpress/src/Menu/Menu.php:15
    • > PHP Fatal error
      Uncaught Error: Class 'Webdados\\InvoiceXpressWooCommerce\\BaseSettings' not found in wp-content/plugins/woo-billing-with-invoicexpress/src/Settings/Settings.php:16
    • > PHP Fatal error
      Uncaught Error: Class 'Webdados\\InvoiceXpressWooCommerce\\BaseController' not found in wp-content/plugins/woo-billing-with-invoicexpress/src/Modules/Invoice/InvoiceController.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'Webdados\\InvoiceXpressWooCommerce\\BaseController' not found in wp-content/plugins/woo-billing-with-invoicexpress/src/Modules/SimplifiedInvoice/SimplifiedInvoiceController.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'Webdados\\InvoiceXpressWooCommerce\\Settings\\Tabs' not found in wp-content/plugins/woo-billing-with-invoicexpress/src/Settings/Tabs/API.php:13

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that need to be fixed:
  • Tags: There are too many tags (29 tag instead of maximum 10)
The official readme.txt is a good inspiration

woo-billing-with-invoicexpress/woocommerce-billing-invoicexpress-standard-edition.php 92% from 13 tests

The primary PHP file in "Invoicing with InvoiceXpress for WooCommerce - Free" version 4.4 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("woo-billing-with-invoicexpress.php" instead of "woocommerce-billing-invoicexpress-standard-edition.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
No dangerous file extensions were detected4,772 lines of code in 38 files:
LanguageFilesBlank linesComment linesLines of code
PHP337101,5734,723
JSON20026
SVG21116
JavaScript1277

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.56
Average class complexity26.78
▷ Minimum class complexity1.00
▷ Maximum class complexity163.00
Average method complexity5.11
▷ Minimum method complexity1.00
▷ Maximum method complexity54.00
Code structure
Namespaces9
Interfaces0
Traits0
Classes27
▷ Abstract classes13.70%
▷ Concrete classes2696.30%
▷ Final classes00.00%
Methods174
▷ Static methods126.90%
▷ Public methods15689.66%
▷ Protected methods42.30%
▷ Private methods148.05%
Functions9
▷ Named functions222.22%
▷ Anonymous functions777.78%
Constants7
▷ Global constants7100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/images/invoicexpress.png4.09KB2.74KB▼ 33.07%