74% ach-invoice-app

Code Review | ACH Invoicing Plugin

WordPress plugin ACH Invoicing Plugin scored74%from 54 tests.

About plugin

  • Plugin page: ach-invoice-app
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-6.1.1
  • WordPress version: 6.3.1
  • First release: Jun 19, 2023
  • Latest release: Aug 9, 2023
  • Number of updates: 12
  • Update frequency: every 4.5 days
  • Top authors: davidj123 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /114 total downloads


Plugin footprint 65% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲0.04MB] [CPU: ▲5.98ms] Passed 4 tests

Analyzing server-side resources used by ACH Invoicing Plugin
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0541.87 ▲7.36
Dashboard /wp-admin3.33 ▲0.0350.55 ▲6.41
Posts /wp-admin/edit.php3.45 ▲0.0952.37 ▲6.98
Add New Post /wp-admin/post-new.php5.93 ▲0.0587.47 ▲3.16
Media Library /wp-admin/upload.php3.25 ▲0.0341.85 ▲8.07

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 165 new files
Database: 3 new tables, 7 new options
New tables
New WordPress options

Browser metrics Passed 4 tests

Checking browser requirements for ACH Invoicing Plugin
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,978 ▲19216.79 ▲2.1555.49 ▲53.6838.77 ▲0.34
Dashboard /wp-admin2,228 ▲505.13 ▼0.4687.44 ▼27.4290.31 ▲44.80
Posts /wp-admin/edit.php2,150 ▲502.55 ▲0.5341.31 ▲0.7235.16 ▼3.58
Add New Post /wp-admin/post-new.php1,575 ▲4023.41 ▲5.18766.10 ▲176.7938.21 ▼28.03
Media Library /wp-admin/upload.php1,439 ▲424.83 ▲0.6597.45 ▼5.9280.71 ▲38.38

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
  • The uninstall procedure failed, leaving 3 tables in the database
    • wp_plaid_int_invoice_items
    • wp_plaid_int_accounts
    • wp_plaid_int_invoices
  • This plugin does not fully uninstall, leaving 7 options in the database
    • plaidintegra_options
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments
    • theysaidso_admin_options
    • 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
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The following issues need your attention
  • 55× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'TomorrowIdeas\\Plaid\\Resources\\AbstractResource' not found in wp-content/plugins/ach-invoice-app/vendors/plaid-sdk-php-master/src/Resources/Liabilities.php:7
    • > PHP Notice
      Trying to get property 'invoice_key' of non-object in wp-content/plugins/ach-invoice-app/templates/invoice.php on line 5
    • > PHP Fatal error
      Uncaught Error: Class 'TomorrowIdeas\\Plaid\\Tests\\TestCase' not found in wp-content/plugins/ach-invoice-app/vendors/plaid-sdk-php-master/tests/PlaidClientTest.php:15
    • > PHP Fatal error
      Uncaught Error: Class 'TomorrowIdeas\\Plaid\\Tests\\TestCase' not found in wp-content/plugins/ach-invoice-app/vendors/plaid-sdk-php-master/tests/TransactionsTest.php:12
    • > PHP Fatal error
      Uncaught Error: Class 'TomorrowIdeas\\Plaid\\Resources\\AbstractResource' not found in wp-content/plugins/ach-invoice-app/vendors/plaid-sdk-php-master/src/Resources/Transactions.php:8
    • > PHP Fatal error
      Uncaught Error: Class 'TomorrowIdeas\\Plaid\\Resources\\AbstractResource' not found in wp-content/plugins/ach-invoice-app/vendors/plaid-sdk-php-master/src/Resources/Accounts.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'TomorrowIdeas\\Plaid\\Tests\\TestCase' not found in wp-content/plugins/ach-invoice-app/vendors/plaid-sdk-php-master/tests/SandboxTest.php:10
    • > PHP Fatal error
      Uncaught Error: Class 'TomorrowIdeas\\Plaid\\Resources\\AbstractResource' not found in wp-content/plugins/ach-invoice-app/vendors/plaid-sdk-php-master/src/Resources/Reports.php:8
    • > PHP Fatal error
      Uncaught Error: Class 'PlaidIntCommon' not found in wp-content/plugins/ach-invoice-app/classes/client.class.php:2
    • > PHP Fatal error
      Uncaught Error: Class 'TomorrowIdeas\\Plaid\\Tests\\TestCase' not found in wp-content/plugins/ach-invoice-app/vendors/plaid-sdk-php-master/tests/CategoriesTest.php:10

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found


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
Please fix the following attributes:
  • Screenshots: Please add images for these screenshots: #1 (Clear Dashboard), #2 (Create Invoice), #3 (Plaid Accounts)
The official readme.txt is a good inspiration

ach-invoice-app/index.php 92% from 13 tests

Analyzing the main PHP file in "ACH Invoicing Plugin" version 1.0.1
It is important to fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("ach-invoice-app.php" instead of "index.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Success! There were no dangerous files found in this plugin11,455 lines of code in 104 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

Analyzing 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.12
Average class complexity4.67
▷ Minimum class complexity1.00
▷ Maximum class complexity53.00
Average method complexity1.71
▷ Minimum method complexity1.00
▷ Maximum method complexity21.00
Code structure
▷ Abstract classes23.85%
▷ Concrete classes5096.15%
▷ Final classes00.00%
▷ Static methods10.38%
▷ Public methods25897.73%
▷ Protected methods62.27%
▷ Private methods00.00%
▷ Named functions423.53%
▷ Anonymous functions1376.47%
▷ Global constants350.00%
▷ Class constants350.00%
▷ Public constants3100.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
47 PNG files occupy 0.35MB with 0.18MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
admin/images/cancel.png1.01KB0.23KB▼ 77.46%
admin/images/icon-close-open.png1.23KB0.40KB▼ 67.75%
admin/images/iconos-panel/recaptcha-add-ons.png7.06KB3.14KB▼ 55.51%
admin/images/yahoo.png1.65KB0.64KB▼ 61.15%
admin/images/info.png1.52KB1.49KB▼ 2.37%