90% custom-order-numbers-for-woocommerce

Code Review | Custom Order Numbers for WooCommerce

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

About plugin

  • Plugin page: custom-order-numb...
  • Plugin version: 1.6.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-6.3
  • WordPress version: 6.3.1
  • First release: Jan 2, 2017
  • Latest release: Aug 22, 2023
  • Number of updates: 66
  • Update frequency: every 36.7 days
  • Top authors: tychesoftwares (68.18%)algoritmika (33.33%)

Code review

54 tests

User reviews

24 reviews

Install metrics

20,000+ active /251,852 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▼6.07ms] Passed 4 tests

An overview of server-side resources used by Custom Order Numbers for WooCommerce
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0342.80 ▼5.73
Dashboard /wp-admin3.33 ▲0.0348.98 ▲0.89
Posts /wp-admin/edit.php3.38 ▲0.0345.61 ▼3.53
Add New Post /wp-admin/post-new.php5.91 ▲0.0387.95 ▼14.47
Media Library /wp-admin/upload.php3.25 ▲0.0335.29 ▼0.55

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 18 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
db_upgraded
widget_recent-posts
can_compress_scripts
widget_theysaidso_widget
theysaidso_admin_options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Custom Order Numbers for WooCommerce
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.71 ▼0.902.05 ▲0.0046.89 ▲7.89
Dashboard /wp-admin2,203 ▲155.76 ▲0.8798.07 ▼1.9038.15 ▼6.20
Posts /wp-admin/edit.php2,092 ▼02.01 ▼0.0434.69 ▼7.5331.77 ▼5.10
Add New Post /wp-admin/post-new.php1,542 ▲918.14 ▼5.06614.55 ▼1.2055.91 ▲5.00
Media Library /wp-admin/upload.php1,385 ▼34.24 ▲0.0895.60 ▼3.3343.42 ▼1.97

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test

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

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
3 plugin tags: woocommerce, sequential order numbers, custom order numbers

custom-order-numbers-for-woocommerce/custom-order-numbers-for-woocommerce.php Passed 13 tests

The principal PHP file in "Custom Order Numbers for WooCommerce" v. 1.6.0 is loaded by WordPress automatically on each request
37 characters long description:
Custom order numbers for WooCommerce.

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
Success! There were no dangerous files found in this plugin2,538 lines of code in 16 files:
LanguageFilesBlank linesComment linesLines of code
PHP102467402,004
JavaScript45427308
PO File17991224
Markdown1002

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.45
Average class complexity34.12
▷ Minimum class complexity1.00
▷ Maximum class complexity165.00
Average method complexity4.53
▷ Minimum method complexity1.00
▷ Maximum method complexity34.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes8
▷ Abstract classes00.00%
▷ Concrete classes8100.00%
▷ Final classes112.50%
Methods75
▷ Static methods1317.33%
▷ Public methods75100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
No PNG files were detected