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

Code Review | Advanced Sequential Order Number For Woocommerce

WordPress plugin Advanced Sequential Order Number For Woocommerce scored79%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: 6.3.1
  • 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

40+ active /961 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully

Server metrics [RAM: ▼0.86MB] [CPU: ▼37.86ms] Passed 4 tests

Analyzing 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.55 ▲0.0942.06 ▼1.09
Dashboard /wp-admin3.08 ▼0.2226.18 ▼25.19
Posts /wp-admin/edit.php3.08 ▼0.2723.78 ▼35.50
Add New Post /wp-admin/post-new.php3.08 ▼2.8124.64 ▼81.76
Media Library /wp-admin/upload.php3.08 ▼0.1528.86 ▼8.98

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 33 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
db_upgraded
widget_recent-comments
widget_recent-posts
can_compress_scripts
theysaidso_admin_options

Browser metrics Passed 4 tests

Checking browser requirements for Advanced Sequential Order Number For Woocommerce
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,811 ▲6513.18 ▼1.211.74 ▲0.0942.51 ▲0.91
Dashboard /wp-admin2,220 ▲325.86 ▼0.01108.01 ▲1.8290.37 ▲47.48
Posts /wp-admin/edit.php2,103 ▲111.98 ▼0.0142.53 ▼0.2537.26 ▼1.50
Add New Post /wp-admin/post-new.php1,687 ▲17324.45 ▲6.86699.22 ▲34.9564.15 ▲9.39
Media Library /wp-admin/upload.php1,393 ▲24.15 ▲0.01108.79 ▲2.7151.06 ▲4.02

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
  • Uninstall procedure validation failed for this plugin
    • > Deprecated in wp-includes/class-wp-hook.php+310
    Non-static method Phoen_Asonfw_Admin::phoen_asonfw_fv_menu_page() should not be called statically
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however this is by no means an exhaustive test

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

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration 86% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need your attention:
  • Tags: Please delete some tags, you are using 13 tag instead of maximum 10
Please take inspiration from this readme.txt

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 does not 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
Good job! No executable or dangerous file extensions detected881 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP6194363881

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
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
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods23
▷ Static methods417.39%
▷ Public methods2086.96%
▷ Protected methods00.00%
▷ Private methods313.04%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
18 PNG files occupy 0.32MB with 0.16MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
admin/images/Free-order identifier.png18.67KB6.59KB▼ 64.68%
admin/images/Icon-2.png4.42KB3.36KB▼ 24.17%
admin/images/Counter-type.png87.44KB25.87KB▼ 70.42%
admin/images/Icon-5.png3.86KB2.99KB▼ 22.66%
admin/images/App-1-2.png95.77KB30.83KB▼ 67.81%