89% customize-woocommerce-shop

Code Review | Customize Woocommerce Shop

WordPress plugin Customize Woocommerce Shop scored89%from 54 tests.

About plugin

  • Plugin page: customize-woocomm...
  • Plugin version: 6.0
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Apr 16, 2016
  • Latest release: Nov 4, 2016
  • Number of updates: 38
  • Update frequency: every 6.2 days
  • Top authors: repupress (100%)

Code review

54 tests

User reviews

25 reviews

Install metrics

600+ active /42,293 total downloads

Benchmarks

Plugin footprint 82% 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 gracefully, with no errors

Server metrics [RAM: ▲0.04MB] [CPU: ▼10.14ms] 75% from 4 tests

Analyzing server-side resources used by Customize Woocommerce Shop
Please have a look at the following items
  • CPU: Try to keep total CPU usage under 500.00ms (currently 1,180.70ms on /wp-admin/admin.php?page=woo-product-customizerort-options)
PageMemory (MB)CPU Time (ms)
Home /3.04 ▼0.4320.61 ▼16.94
Dashboard /wp-admin3.51 ▲0.1645.03 ▼12.48
Posts /wp-admin/edit.php3.62 ▲0.2647.68 ▼1.01
Add New Post /wp-admin/post-new.php6.09 ▲0.2082.10 ▼10.13
Media Library /wp-admin/upload.php3.43 ▲0.2033.86 ▼0.60
Customize Shop API /wp-admin/admin.php?page=woo-product-customizerort-options3.411,180.70

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 36 new files
Database: no new tables, 52 new options
New WordPress options
repupress_customize_woocommerce_product_shop_product_title
repupress_customize_woocommerce_product_detail_price_font_color
repupress_customize_woocommerce_product_shop_image_border_color
repupress_customize_woocommerce_product_shop_button_bg_color
repupress_customize_woocommerce_product_shop_title_font_size
repupress_customize_woocommerce_product_detail_title_font_weight
repupress_customize_woocommerce_product_detail_set_default_image
repupress_customize_woocommerce_product_single_product_tab
repupress_customize_woocommerce_product_single_product_prices
repupress_customize_woocommerce_product_single_product_title
...

Browser metrics Passed 4 tests

An overview of browser requirements for Customize Woocommerce Shop
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,451 ▼29514.19 ▼0.010.53 ▼1.1218.71 ▼20.40
Dashboard /wp-admin2,204 ▲295.61 ▲0.0290.06 ▼10.5841.04 ▲0.01
Posts /wp-admin/edit.php2,106 ▲62.01 ▲0.0139.27 ▲1.4836.00 ▲0.67
Add New Post /wp-admin/post-new.php1,532 ▲623.60 ▲0.38655.02 ▼26.1063.58 ▲9.83
Media Library /wp-admin/upload.php1,403 ▼04.18 ▲0.01103.77 ▲4.2945.92 ▼0.14
Customize Shop API /wp-admin/admin.php?page=woo-product-customizerort-options8532.0324.9426.99

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
The following items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments

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)
Good news, no errors were detected

SRP Passed 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need to be fixed: Please take inspiration from this readme.txt

customize-woocommerce-shop/customize-woocommerce-shop.php Passed 13 tests

The main PHP script in "Customize Woocommerce Shop" version 6.0 is automatically included on every request by WordPress
85 characters long description:
Customize every aspect of your Woocommerce Shop with this incredibly powerful Plugin.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Good job! No executable or dangerous file extensions detected7,199 lines of code in 30 files:
LanguageFilesBlank linesComment linesLines of code
PHP167933023,232
JavaScript10198511,547
CSS340261,439
XML100981

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.38
Average class complexity47.33
▷ Minimum class complexity4.00
▷ Maximum class complexity127.00
Average method complexity5.21
▷ Minimum method complexity1.00
▷ Maximum method complexity22.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods33
▷ Static methods13.03%
▷ Public methods33100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants5
▷ Global constants360.00%
▷ Class constants240.00%
▷ Public constants2100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
4 compressed PNG files occupy 0.00MB
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
includes/images/delete.png0.92KB1.29KB0.00%
includes/images/edit.png0.97KB0.86KB▼ 11.14%
includes/css/chosen-sprite@2x.png0.72KB0.83KB0.00%
includes/css/chosen-sprite.png0.53KB0.88KB0.00%