90% advanced-options-for-woocommerce

Code Review | Advanced Options for WooCommerce

WordPress plugin Advanced Options for WooCommerce scored90%from 54 tests.

About plugin

  • Plugin page: advanced-options-...
  • Plugin version: 1.1.4
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.2-6.4
  • WordPress version: 6.3.1
  • First release: Apr 24, 2020
  • Latest release: Oct 22, 2023
  • Number of updates: 28
  • Update frequency: every 45.6 days
  • Top authors: condless (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,073 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices

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

Analyzing server-side resources used by Advanced Options for WooCommerce
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0236.38 ▼4.17
Dashboard /wp-admin3.33 ▼0.0247.68 ▼14.83
Posts /wp-admin/edit.php3.39 ▲0.0250.92 ▲5.19
Add New Post /wp-admin/post-new.php5.92 ▲0.0392.63 ▼6.47
Media Library /wp-admin/upload.php3.26 ▲0.0235.43 ▲2.28

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
db_upgraded
widget_theysaidso_widget
widget_recent-posts
theysaidso_admin_options
can_compress_scripts

Browser metrics Passed 4 tests

Checking browser requirements for Advanced Options for WooCommerce
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲4314.22 ▼0.141.54 ▼0.1639.33 ▼6.74
Dashboard /wp-admin2,198 ▲215.61 ▼0.0389.62 ▲1.1638.73 ▼3.42
Posts /wp-admin/edit.php2,097 ▼31.96 ▼0.0638.57 ▲1.3235.57 ▲1.38
Add New Post /wp-admin/post-new.php1,535 ▲918.24 ▼5.22644.31 ▼0.5062.35 ▲4.82
Media Library /wp-admin/upload.php1,403 ▲34.28 ▲0.0595.84 ▼5.3941.60 ▼3.60

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments
    • 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
Even though no errors were found, 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
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
3 plugin tags: stock, quantity processing, quantity

advanced-options-for-woocommerce/advanced-options-for-woocommerce.php Passed 13 tests

This is the main PHP file of "Advanced Options for WooCommerce" version 1.1.4, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
78 characters long description:
WooCommerce plugin for more options and customization. Simple and Easy to use.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Success! There were no dangerous files found in this plugin179 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP12098115
PO File1131564

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.42
Average class complexity14.00
▷ Minimum class complexity14.00
▷ Maximum class complexity14.00
Average method complexity1.86
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods15
▷ Static methods00.00%
▷ Public methods15100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions00.00%
▷ Anonymous functions1100.00%
Constants0
▷ Global constants00.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
There are no PNG files in this plugin