90% woocommerce-sequential-order-numbers

Code Review | Sequential Order Numbers for WooCommerce

WordPress plugin Sequential Order Numbers for WooCommerce scored90%from 54 tests.

About plugin

  • Plugin page: woocommerce-seque...
  • Plugin version: 1.10.1
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.9.4-6.3.1
  • WordPress version: 6.3.1
  • First release: Apr 2, 2012
  • Latest release: Sep 5, 2023
  • Number of updates: 100
  • Update frequency: every 41.7 days
  • Top authors: SkyVerge (65%)FoxRunSoftware (36%)

Code review

54 tests

User reviews

29 reviews

Install metrics

20,000+ active /442,851 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▼0.01MB] [CPU: ▼12.91ms] Passed 4 tests

Server-side resources used by Sequential Order Numbers for WooCommerce
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0037.12 ▼4.78
Dashboard /wp-admin3.31 ▼0.0447.18 ▼19.81
Posts /wp-admin/edit.php3.36 ▲0.0044.14 ▼2.30
Add New Post /wp-admin/post-new.php5.89 ▲0.0078.53 ▼24.73
Media Library /wp-admin/upload.php3.23 ▲0.0036.15 ▲0.31

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
db_upgraded
widget_theysaidso_widget
widget_recent-posts
can_compress_scripts
widget_recent-comments

Browser metrics Passed 4 tests

Sequential Order Numbers for WooCommerce: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,814 ▲5314.55 ▲0.151.94 ▲0.3345.06 ▲1.94
Dashboard /wp-admin2,192 ▲215.63 ▲0.0595.34 ▲4.2142.25 ▲0.82
Posts /wp-admin/edit.php2,100 ▼02.01 ▲0.0133.81 ▼1.2133.54 ▲3.55
Add New Post /wp-admin/post-new.php1,531 ▲523.35 ▲0.16584.61 ▼96.0748.39 ▼14.22
Media Library /wp-admin/upload.php1,403 ▲34.13 ▼0.0595.90 ▼1.6642.03 ▼3.17

Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 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
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 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
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
4 plugin tags: woocommerce orders, woocommerce, order number, sequential order number

woocommerce-sequential-order-numbers/woocommerce-sequential-order-numbers.php 92% from 13 tests

The entry point to "Sequential Order Numbers for WooCommerce" version 1.10.1 is a PHP file that has certain tags in its header comment area
The following require your attention:
  • Requires at least: The required version number must match the one declared in readme.txt ("5.6" instead of "3.9.4")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Everything looks great! No dangerous files found in this plugin333 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1177280333

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.66
Average class complexity83.00
▷ Minimum class complexity83.00
▷ Maximum class complexity83.00
Average method complexity4.42
▷ Minimum method complexity1.00
▷ Maximum method complexity23.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods24
▷ Static methods312.50%
▷ Public methods1979.17%
▷ Protected methods28.33%
▷ Private methods312.50%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants00.00%
▷ Class constants3100.00%
▷ Public constants3100.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
No PNG files were detected