83% woo-customize

Code Review | Customizer for WooCommerce

WordPress plugin Customizer for WooCommerce scored83%from 54 tests.

About plugin

  • Plugin page: woo-customize
  • Plugin version: 1.0.7
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.8
  • WordPress version: 6.3.1
  • First release: Dec 5, 2019
  • Latest release: Oct 18, 2021
  • Number of updates: 13
  • Update frequency: every 55.7 days
  • Top authors: ceylonthemes (100%)

Code review

54 tests

User reviews

1 review

Install metrics

2,000+ active /73,789 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully

Server metrics [RAM: ▲0.14MB] [CPU: ▼5.03ms] Passed 4 tests

This is a short check of server-side resources used by Customizer for WooCommerce
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.58 ▲0.1139.75 ▼1.93
Dashboard /wp-admin3.45 ▲0.1449.61 ▼4.01
Posts /wp-admin/edit.php3.56 ▲0.2055.92 ▲7.19
Add New Post /wp-admin/post-new.php6.05 ▲0.1686.04 ▼13.69
Media Library /wp-admin/upload.php3.37 ▲0.1434.88 ▼0.47

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
db_upgraded
theysaidso_admin_options
can_compress_scripts
widget_recent-comments
widget_recent-posts

Browser metrics Passed 4 tests

Checking browser requirements for Customizer for WooCommerce
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,851 ▲10513.46 ▼0.841.75 ▼0.0430.40 ▼13.52
Dashboard /wp-admin2,257 ▲665.07 ▼0.81123.03 ▲18.6045.97 ▲4.81
Posts /wp-admin/edit.php2,131 ▲422.32 ▲0.2941.72 ▲6.5138.41 ▲1.69
Add New Post /wp-admin/post-new.php1,548 ▲1123.22 ▲0.04648.02 ▼18.6333.60 ▼21.84
Media Library /wp-admin/upload.php1,428 ▲404.42 ▲0.1998.64 ▼10.9646.27 ▲0.16

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 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
The following issues need your attention
  • 2× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/woo-customize/woo-customize.php:21
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/woo-customize/functions.php:32

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 90% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
4 plugin tags: woocommerce filters, customize, woocommerce shop, woocommerce

woo-customize/woo-customize.php 77% from 13 tests

"Customizer for WooCommerce" version 1.0.7's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
It is important to fix the following:
  • Requires PHP: The required version number did not match the one declared in readme.txt ("5.5" instead of "5.4")
  • Description: Please don't use more than 140 characters for the plugin description (currently 175 characters long)
  • Requires at least: The required version number did not match the one declared in readme.txt ("4.6" instead of "4.0")

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
Everything looks great! No dangerous files found in this plugin869 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP3155124785
CSS218181
JavaScript1013

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.51
Average class complexity58.00
▷ Minimum class complexity58.00
▷ Maximum class complexity58.00
Average method complexity3.28
▷ Minimum method complexity1.00
▷ Maximum method complexity19.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods25
▷ Static methods00.00%
▷ Public methods25100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions11
▷ Named functions11100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
PNG images were not found in this plugin