89% advanced-sequential-order-number-for-woocommerce

Code Review | Advanced Sequential Order Number For Woocommerce

WordPress plugin Advanced Sequential Order Number For Woocommerce scored 89% from 54 tests.

About plugin

  • Plugin page: advanced-sequenti...
  • Plugin version: 1.0.4
  • PHP version: 7.4.16
  • WordPress compatibility: 2.6.0-5.6
  • WordPress version: 5.9.2
  • First release: Feb 5, 2020
  • Latest release: Dec 28, 2020
  • Number of updates: 17
  • Update frequency: every 19.3 days
  • Top authors: phoeniixx (100%)

Code review

54 tests

User reviews

1 review

Install metrics

50+ active / 649 total downloads


Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▼1.15MB] [CPU: ▼336.33ms] Passed 4 tests

A check of server-side resources used by Advanced Sequential Order Number For Woocommerce
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.67 ▲0.1657.58 ▲9.37
Dashboard /wp-admin3.18 ▼0.2217.53 ▼17.37
Posts /wp-admin/edit.php3.18 ▼0.4517.64 ▼21.01
Add New Post /wp-admin/post-new.php3.18 ▼3.8118.04 ▼1,291.66
Media Library /wp-admin/upload.php3.18 ▼0.1216.82 ▼15.27

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 33 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Advanced Sequential Order Number For Woocommerce: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,773 ▲2915.81 ▼0.145.98 ▼0.582.10 ▼0.04
Dashboard /wp-admin2,900 ▲396.04 ▼0.14118.02 ▼18.68164.79 ▲8.96
Posts /wp-admin/edit.php2,698 ▲73.11 ▼0.1361.35 ▼6.07144.39 ▲5.84
Add New Post /wp-admin/post-new.php1,669 ▲818.08 ▲1.50412.81 ▼30.10155.56 ▼3.52
Media Library /wp-admin/upload.php1,705 ▲115.51 ▼0.04129.43 ▼39.70212.06 ▲30.35

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
  • Uninstall procedure validation failed for this plugin
    • > Deprecated in wp-includes/class-wp-hook.php+307
    Non-static method Phoen_Asonfw_Admin::phoen_asonfw_fv_menu_page() should not be called statically

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

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
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found


Plugin configuration 86% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need your attention:
  • Tags: You are using too many tags: 13 tag instead of maximum 10
The official readme.txt is a good inspiration

advanced-sequential-order-number-for-woocommerce/phoen-asonfw.php 77% from 13 tests

This is the main PHP file of "Advanced Sequential Order Number For Woocommerce" version 1.0.4, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
  • Requires at least: Required version must match the one declared in readme.txt ("4.0" instead of "2.6.0")
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("advanced-sequential-order-number-for-woocommerce.php" instead of "phoen-asonfw.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Success! There were no dangerous files found in this plugin881 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.21
Average class complexity5.25
▷ Minimum class complexity1.00
▷ Maximum class complexity15.00
Average method complexity1.74
▷ Minimum method complexity1.00
▷ Maximum method complexity10.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
▷ Static methods417.39%
▷ Public methods2086.96%
▷ Protected methods00.00%
▷ Private methods313.04%
▷ Named functions1100.00%
▷ Anonymous functions00.00%
▷ Global constants2100.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
18 PNG files occupy 0.32MB with 0.11MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
admin/images/Icon-4.png3.99KB3.04KB▼ 23.83%
admin/images/Icon-5.png3.86KB2.99KB▼ 22.66%
admin/images/plugin.png4.05KB2.72KB▼ 32.83%
admin/images/Icon-9.png4.90KB3.66KB▼ 25.29%
admin/images/App-1-2.png95.77KB30.83KB▼ 67.81%