78% sequential-invoice-numbers

Code Review | Sequential Invoice numbers

WordPress plugin Sequential Invoice numbers scored78%from 54 tests.

About plugin

  • Plugin page: sequential-invoic...
  • Plugin version: 1.0.2
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.5-5.5
  • WordPress version: 6.3.1
  • First release: Sep 28, 2020
  • Latest release: May 4, 2021
  • Number of updates: 8
  • Update frequency: every 27.6 days
  • Top authors: jo90 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /421 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

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

Server-side resources used by Sequential Invoice numbers
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0037.80 ▼3.85
Dashboard /wp-admin3.31 ▲0.0061.97 ▲9.10
Posts /wp-admin/edit.php3.36 ▲0.0053.63 ▲2.95
Add New Post /wp-admin/post-new.php5.89 ▲0.0098.03 ▼9.02
Media Library /wp-admin/upload.php3.23 ▲0.0036.83 ▲3.43

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 22 new files
Database: 1 new table, 7 new options
New tables
wp_artofdata_order_invoice
New WordPress options
theysaidso_admin_options
can_compress_scripts
db_upgraded
widget_recent-comments
widget_recent-posts
widget_theysaidso_widget
aodsi_first_si_number

Browser metrics Passed 4 tests

A check of browser resources used by Sequential Invoice numbers
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.28 ▼1.031.67 ▼0.2344.39 ▲0.46
Dashboard /wp-admin2,209 ▲215.90 ▲0.87136.90 ▲30.7367.02 ▲21.41
Posts /wp-admin/edit.php2,089 ▼32.00 ▼0.0542.89 ▲4.2135.29 ▲3.59
Add New Post /wp-admin/post-new.php1,547 ▲3318.38 ▲0.76625.12 ▼23.6173.16 ▲6.93
Media Library /wp-admin/upload.php1,382 ▼64.11 ▼0.12108.18 ▲6.9252.50 ▲8.97

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
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

SRP 0% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The following issues need your attention
  • 1× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/sequential-invoice-numbers/templates/Dashboard.php
  • 4× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/sequential-invoice-numbers/includes/woocommerce-settings.php:211
    • > PHP Notice
      Trying to get property 'prefix' of non-object in wp-content/plugins/sequential-invoice-numbers/includes/table-exists.php on line 4
    • > PHP Fatal error
      Uncaught Error: Call to a member function get_var() on null in wp-content/plugins/sequential-invoice-numbers/includes/table-exists.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/sequential-invoice-numbers/includes/woo-si-order-info.php:3

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
4 plugin tags: sequential invoice numbers, invoicing, woocommerce, accounts

sequential-invoice-numbers/sequential-invoice-numbers.php 92% from 13 tests

The principal PHP file in "Sequential Invoice numbers" v. 1.0.2 is loaded by WordPress automatically on each request
The following require your attention:
  • Domain Path: The domain path is invalid: folder "/languages" does not exist

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
Success! There were no dangerous files found in this plugin1,021 lines of code in 16 files:
LanguageFilesBlank linesComment linesLines of code
PHP10442149837
PO File13841125
JavaScript210533
CSS21425
SVG1001

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.18
Average class complexity5.00
▷ Minimum class complexity1.00
▷ Maximum class complexity12.00
Average method complexity1.80
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods20
▷ Static methods210.00%
▷ Public methods20100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions11
▷ Named functions11100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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
PNG images were not found in this plugin