10% extra-settings-for-woocommerce

Code Review | Extra Settings for WooCommerce

WordPress plugin Extra Settings for WooCommerce scored 10% from 54 tests.

About plugin

  • Plugin page: extra-settings-fo...
  • Plugin version: 1.0.1
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 2.6.0-5.3
  • WordPress version: 5.8.1
  • First release: Sep 13, 2019
  • Latest release: Dec 1, 2019
  • Number of updates: 7
  • Update frequency: every 12.9 days
  • Top authors: taisho (100%)

Code review

54 tests

User reviews

7 reviews

Install metrics

200+ active / 1,500 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
These installer errors require your attention
  • Install procedure validation failed for this plugin
    • > Notice in wp-content/plugins/extra-settings-for-woocommerce/extra-settings-for-woocommerce.php+94
    Trying to access array offset on value of type bool

Server metrics [RAM: ▼1.60MB] [CPU: ▼195.60ms] Passed 4 tests

Server-side resources used by Extra Settings for WooCommerce
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.03 ▼0.696.46 ▼23.76
Dashboard /wp-admin2.04 ▼1.017.50 ▼41.15
Posts /wp-admin/edit.php2.04 ▼1.0611.26 ▼38.78
Add New Post /wp-admin/post-new.php2.04 ▼3.397.55 ▼672.10
Media Library /wp-admin/upload.php2.04 ▼0.967.72 ▼30.38
Woo Extra Settings /wp-admin/options-general.php?page=woo-extra-settings2.0510.86

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 22 new files
Database: no new tables, 1 new option
New WordPress options
eswc_first_activate

Browser metrics Passed 4 tests

Extra Settings for WooCommerce: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,686 ▲11415.67 ▲0.1112.44 ▼3.9053.29 ▲4.85
Dashboard /wp-admin2,978 ▲535.93 ▼0.11166.94 ▼55.58114.67 ▼10.82
Posts /wp-admin/edit.php2,747 ▲82.72 ▼0.0067.44 ▼6.3190.55 ▼17.17
Add New Post /wp-admin/post-new.php1,689 ▲10818.75 ▲0.68398.83 ▼32.42119.90 ▲4.80
Media Library /wp-admin/upload.php1,814 ▲75.03 ▲0.01168.75 ▼12.08128.99 ▲10.42
Woo Extra Settings /wp-admin/options-general.php?page=woo-extra-settings1,1632.5665.1788.51

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • This plugin did not uninstall without warnings or errors
    • > Notice in wp-content/plugins/extra-settings-for-woocommerce/extra-settings-for-woocommerce.php+94
    Trying to access array offset on value of type bool

Smoke tests 75% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
These errors were triggered by the plugin
    • > GET request to /wp-admin/options-general.php?page=woo-extra-settings
    • > Notice in wp-content/plugins/extra-settings-for-woocommerce/extra-settings-for-woocommerce.php+94
    Trying to access array offset on value of type bool

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

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
9 plugin tags: woo, customization, settings, configuration, storefront...

extra-settings-for-woocommerce/extra-settings-for-woocommerce.php 92% from 13 tests

The primary PHP file in "Extra Settings for WooCommerce" version 1.0.1 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
  • Requires at least: Required version must be the same as the one declared in readme.txt ("4.6" instead of "2.6.0")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Everything looks great! No dangerous files found in this plugin693 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP4147118674
JavaScript14019

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.49
Average class complexity25.00
▷ Minimum class complexity6.00
▷ Maximum class complexity44.00
Average method complexity4.69
▷ Minimum method complexity1.00
▷ Maximum method complexity14.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods13
▷ Static methods00.00%
▷ Public methods13100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions32
▷ Named functions2681.25%
▷ Anonymous functions618.75%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
15 PNG files occupy 0.53MB with 0.22MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshots/Related products.png73.21KB23.24KB▼ 68.26%
screenshots/Stock status icon.png2.76KB2.16KB▼ 21.64%
screenshots/Price range.png69.65KB25.79KB▼ 62.97%
screenshots/Category link.png3.23KB2.22KB▼ 31.40%
screenshots/Reset variations.png2.56KB2.03KB▼ 20.59%