78% customize-woo

Code Review | Customize Woo

WordPress plugin Customize Woo scored78%from 54 tests.

About plugin

  • Plugin page: customize-woo
  • Plugin version: 1.2.3
  • PHP compatiblity: 7.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5.1-5.9.1
  • WordPress version: 6.3.1
  • First release: Apr 16, 2020
  • Latest release: Mar 1, 2022
  • Number of updates: 9
  • Update frequency: every 76.2 days
  • Top authors: akshitsethi (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,035 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.09MB] [CPU: ▼11.31ms] Passed 4 tests

Server-side resources used by Customize Woo
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.57 ▲0.1139.05 ▼0.05
Dashboard /wp-admin3.41 ▲0.0648.17 ▼18.88
Posts /wp-admin/edit.php3.52 ▲0.1647.76 ▼1.48
Add New Post /wp-admin/post-new.php5.99 ▲0.1086.15 ▼24.83
Media Library /wp-admin/upload.php3.33 ▲0.1040.73 ▲4.38

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 41 new files
Database: no new tables, 7 new options
New WordPress options
customizewoo_settings
db_upgraded
widget_recent-posts
widget_theysaidso_widget
widget_recent-comments
theysaidso_admin_options
can_compress_scripts

Browser metrics Passed 4 tests

An overview of browser requirements for Customize Woo
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,826 ▲6514.32 ▼0.341.76 ▲0.0140.23 ▼2.99
Dashboard /wp-admin2,210 ▲305.50 ▼0.1786.66 ▼7.8941.01 ▲1.29
Posts /wp-admin/edit.php2,113 ▲131.96 ▼0.0637.97 ▼0.2936.24 ▲2.52
Add New Post /wp-admin/post-new.php1,540 ▲1223.48 ▲0.39602.14 ▼81.2558.55 ▲9.59
Media Library /wp-admin/upload.php1,409 ▲64.21 ▲0.10100.87 ▼5.3346.43 ▼4.06

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test

SRP 0% 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
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/customize-woo/php/admin/views/footer.php
  • 8× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/customize-woo/php/admin/views/settings-shop.php:13
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/customize-woo/php/admin/views/settings-authentication.php:13
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/customize-woo/php/admin/views/settings-misc.php:13
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/customize-woo/php/admin/views/settings-checkout.php:13
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/customize-woo/php/admin/views/settings-product.php:13
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/customize-woo/php/admin/views/settings-cart.php:13
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/customize-woo/php/admin/views/header.php:14
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/customize-woo/php/admin/views/header.php:14

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 93% from 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
5 plugin tags: woocommerce, customize woo, wc customize, customizer, woocommerce filters

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

The entry point to "Customize Woo" version 1.2.3 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
  • Domain Path: The domain path should use only dashes and lowercase characters ("i18n")
  • Domain Path: Please prefix the domain path with a forward slash character ("/i18n")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Good job! No executable or dangerous file extensions detected2,052 lines of code in 30 files:
LanguageFilesBlank linesComment linesLines of code
PHP273747131,373
CSS11237567
JavaScript13750107
JSON1005

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.36
Average class complexity19.33
▷ Minimum class complexity1.00
▷ Maximum class complexity47.00
Average method complexity3.50
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces3
Interfaces0
Traits0
Classes9
▷ Abstract classes00.00%
▷ Concrete classes9100.00%
▷ Final classes00.00%
Methods67
▷ Static methods2029.85%
▷ Public methods6292.54%
▷ Protected methods00.00%
▷ Private methods57.46%
Functions2
▷ Named functions150.00%
▷ Anonymous functions150.00%
Constants4
▷ Global constants00.00%
▷ Class constants4100.00%
▷ Public constants4100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
3 PNG files occupy 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/admin/images/lrg-icon.png10.93KB4.93KB▼ 54.90%
assets/admin/images/close.png0.43KB0.33KB▼ 24.43%
assets/admin/images/toggle.png0.97KB0.11KB▼ 89.07%