100% advanced-options-for-woocommerce

Code Review | Advanced Options for WooCommerce

WordPress plugin Advanced Options for WooCommerce scored 100% from 54 tests.

About plugin

  • Plugin page: advanced-options-...
  • Plugin version: 1.0.8
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.2-6.0
  • WordPress version: 5.8.1
  • First release: Apr 24, 2020
  • Latest release: Feb 27, 2022
  • Number of updates: 21
  • Update frequency: every 32.1 days
  • Top authors: condless (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 642 total downloads

Benchmarks

Plugin footprint Passed 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.02MB] [CPU: ▼182.88ms] Passed 4 tests

Analyzing server-side resources used by Advanced Options for WooCommerce
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.86 ▲0.0226.68 ▼1.70
Dashboard /wp-admin3.09 ▲0.0236.55 ▼8.79
Posts /wp-admin/edit.php3.14 ▲0.0339.66 ▲3.97
Add New Post /wp-admin/post-new.php5.45 ▲0.0176.23 ▼720.99
Media Library /wp-admin/upload.php3.03 ▲0.0225.91 ▼0.02

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, no new options

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 /3,666 ▲6515.57 ▼0.038.12 ▲0.7074.56 ▼0.34
Dashboard /wp-admin2,930 ▲386.03 ▼0.24115.70 ▼14.12168.92 ▼8.63
Posts /wp-admin/edit.php2,737 ▼63.23 ▲0.0162.69 ▼2.55131.43 ▼15.48
Add New Post /wp-admin/post-new.php3,735 ▼917.75 ▼1.36437.70 ▼5.41160.06 ▼17.27
Media Library /wp-admin/upload.php1,749 ▼35.55 ▲0.03142.34 ▲3.14177.90 ▼6.77

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The plugin uninstalled completely, with no zombie files or tables

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: quantity processing, quantity, stock

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.0.8, 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 plugin174 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP12098110
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 complexity13.00
▷ Minimum class complexity13.00
▷ Maximum class complexity13.00
Average method complexity1.80
▷ 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%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.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