84% invoices-by-customer-347

Code Review | Invoices by Customer

WordPress plugin Invoices by Customer scored 84% from 54 tests.

About plugin

  • Plugin page: invoices-by-custo...
  • Plugin version: 1.0.3
  • PHP compatiblity: 7.3.16+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-6.3
  • WordPress version: 6.3.1
  • First release: Apr 29, 2020
  • Latest release: Aug 10, 2023
  • Number of updates: 19
  • Update frequency: every 63.1 days
  • Top authors: mcidesarrollo (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 623 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
Install script ran successfully

Server metrics [RAM: ▲0.05MB] [CPU: ▼3.18ms] Passed 4 tests

This is a short check of server-side resources used by Invoices by Customer
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0545.87 ▼2.00
Dashboard /wp-admin3.36 ▲0.0555.64 ▲3.72
Posts /wp-admin/edit.php3.41 ▲0.0552.71 ▼4.50
Add New Post /wp-admin/post-new.php5.94 ▲0.0599.13 ▼9.94
Media Library /wp-admin/upload.php3.28 ▲0.0545.26 ▲7.00
Invoices by Customer /wp-admin/admin.php?page=invoices-by-customer-3473.2534.81

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 4 new files
Database: 1 new table, 6 new options
New tables
wp_mci347
New WordPress options
widget_recent-posts
db_upgraded
widget_theysaidso_widget
widget_recent-comments
can_compress_scripts
theysaidso_admin_options

Browser metrics Passed 4 tests

Checking browser requirements for Invoices by Customer
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,827 ▲3813.56 ▼0.922.13 ▼0.0042.38 ▼0.93
Dashboard /wp-admin2,205 ▼44.84 ▼0.00106.98 ▼7.8644.25 ▲2.76
Posts /wp-admin/edit.php2,094 ▲52.03 ▼0.0239.23 ▼5.1534.67 ▲1.04
Add New Post /wp-admin/post-new.php1,530 ▼1423.39 ▲5.35796.51 ▲193.9752.55 ▲1.45
Media Library /wp-admin/upload.php1,393 ▲54.23 ▲0.00101.74 ▼10.2346.34 ▼2.55
Invoices by Customer /wp-admin/admin.php?page=invoices-by-customer-3478482.0524.6324.59

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options

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
Everything seems fine, however 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
The following issues need your attention
  • 2× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/invoices-by-customer-347/form-347.php:17
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/invoices-by-customer-347/index.php:17

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 93% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
4 plugin tags: billing, woocommerce listings, purchases by customer, invoice listings

invoices-by-customer-347/index.php 85% from 13 tests

The main PHP file in "Invoices by Customer" ver. 1.0.3 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
  • Description: Please keep the plugin description shorter than 140 characters (currently 197 characters long)
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("invoices-by-customer-347.php" instead of "index.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin337 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP26456287
CSS10050

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.16
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
PNG images were not found in this plugin