90% woocommerce-customizer

Code Review | Customizer for WooCommerce

WordPress plugin Customizer for WooCommerce scored90%from 54 tests.

About plugin

  • Plugin page: woocommerce-custo...
  • Plugin version: 2.8.0
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.9.4-6.2.2
  • WordPress version: 6.3.1
  • First release: Oct 11, 2012
  • Latest release: Jul 28, 2023
  • Number of updates: 68
  • Update frequency: every 58.2 days
  • Top authors: SkyVerge (76.47%)maxrice (25%)

Code review

54 tests

User reviews

31 reviews

Install metrics

40,000+ active /793,406 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.05MB] [CPU: ▼8.11ms] Passed 4 tests

Analyzing server-side resources used by Customizer for WooCommerce
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0541.20 ▼2.69
Dashboard /wp-admin3.35 ▲0.0546.37 ▼2.34
Posts /wp-admin/edit.php3.47 ▲0.1142.70 ▼7.33
Add New Post /wp-admin/post-new.php5.94 ▲0.0579.25 ▼20.09
Media Library /wp-admin/upload.php3.28 ▲0.0433.91 ▼0.21

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_theysaidso_widget
can_compress_scripts
theysaidso_admin_options
db_upgraded
widget_recent-comments

Browser metrics Passed 4 tests

A check of browser resources used by Customizer for WooCommerce
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,808 ▲3713.29 ▼1.344.57 ▲2.5644.16 ▲1.48
Dashboard /wp-admin2,217 ▲385.85 ▼0.16107.20 ▲2.2243.64 ▼1.09
Posts /wp-admin/edit.php2,096 ▲71.99 ▼0.0635.90 ▼5.3235.70 ▲1.21
Add New Post /wp-admin/post-new.php1,541 ▲2223.31 ▼0.05666.48 ▼2.9164.29 ▲8.95
Media Library /wp-admin/upload.php1,393 ▲24.21 ▼0.0299.88 ▼2.4139.86 ▼3.55

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
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
No browser errors were detected

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
4 plugin tags: woocommerce shop, woocommerce text, woocommerce, woocommerce filters

woocommerce-customizer/woocommerce-customizer.php 92% from 13 tests

The primary PHP file in "Customizer for WooCommerce" version 2.8.0 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
  • Requires at least: Required version does not match the one declared in readme.txt ("5.6" instead of "3.9.4")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin742 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP3290372531
PO File16670211

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.57
Average class complexity22.00
▷ Minimum class complexity9.00
▷ Maximum class complexity48.00
Average method complexity2.91
▷ Minimum method complexity1.00
▷ Maximum method complexity11.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods33
▷ Static methods412.12%
▷ Public methods2884.85%
▷ Protected methods13.03%
▷ Private methods412.12%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants00.00%
▷ Class constants2100.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
1 PNG file occupies 0.06MB with 0.05MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png65.11KB17.78KB▼ 72.69%