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.6
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.2-5.9
  • WordPress version: 5.8.1
  • First release: Apr 24, 2020
  • Latest release: Oct 20, 2021
  • Number of updates: 19
  • Update frequency: every 28.6 days
  • Top authors: condless (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 509 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: ▼144.67ms] 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.0237.75 ▲2.08
Dashboard /wp-admin3.08 ▲0.0346.08 ▼1.28
Posts /wp-admin/edit.php3.13 ▲0.0349.64 ▲5.47
Add New Post /wp-admin/post-new.php5.44 ▲0.0189.56 ▼577.13
Media Library /wp-admin/upload.php3.03 ▲0.0233.68 ▼2.35

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,703 ▲10716.35 ▲0.849.46 ▼3.4351.96 ▼0.09
Dashboard /wp-admin2,967 ▲335.88 ▼0.15150.49 ▼2.72120.25 ▼3.53
Posts /wp-admin/edit.php2,739 ▼02.72 ▲0.0067.16 ▼5.39104.05 ▲2.72
Add New Post /wp-admin/post-new.php1,500 ▼18318.75 ▲0.00408.26 ▲22.50115.70 ▲11.54
Media Library /wp-admin/upload.php1,804 ▼35.02 ▼0.01164.62 ▲5.93127.30 ▲2.28

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, stock, 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.0.6, 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