83% customize-my-account-for-woocommerce

Code Review | Customize My Account for WooCommerce

WordPress plugin Customize My Account for WooCommerce scored83%from 54 tests.

About plugin

  • Plugin page: customize-my-acco...
  • Plugin version: 2.0.11
  • PHP compatiblity: 5.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-6.4.1
  • WordPress version: 6.3.1
  • First release: Mar 11, 2021
  • Latest release: Nov 29, 2023
  • Number of updates: 170
  • Update frequency: every 5.8 days
  • Top authors: phppoet (100%)

Code review

54 tests

User reviews

13 reviews

Install metrics

8,000+ active /145,846 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
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.50MB] [CPU: ▼9.80ms] Passed 4 tests

An overview of server-side resources used by Customize My Account for WooCommerce
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.94 ▲0.4827.37 ▼15.33
Dashboard /wp-admin3.81 ▲0.4748.72 ▼13.14
Posts /wp-admin/edit.php3.93 ▲0.5751.15 ▲2.21
Add New Post /wp-admin/post-new.php6.41 ▲0.5389.62 ▼12.93
Media Library /wp-admin/upload.php3.74 ▲0.5137.83 ▲5.91

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 109 new files
Database: no new tables, 8 new options
New WordPress options
widget_theysaidso_widget
db_upgraded
can_compress_scripts
wcmamtx_endpoint_allowed_to_add
widget_recent-comments
wcmamtx_groups_allowed_to_add
widget_recent-posts
theysaidso_admin_options

Browser metrics Passed 4 tests

An overview of browser requirements for Customize My Account for WooCommerce
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,458 ▼28914.28 ▲0.010.48 ▼1.2817.91 ▼27.38
Dashboard /wp-admin2,196 ▲225.59 ▼0.0698.09 ▼1.5641.60 ▼2.61
Posts /wp-admin/edit.php2,104 ▲42.01 ▼0.0140.22 ▲1.3833.14 ▼0.86
Add New Post /wp-admin/post-new.php1,530 ▲423.41 ▲0.10665.66 ▼36.8865.24 ▲12.45
Media Library /wp-admin/upload.php1,398 ▲14.23 ▲0.0698.20 ▼0.3941.00 ▼0.81

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
  • Zombie WordPress options were found after uninstall: 8 options
    • widget_recent-comments
    • can_compress_scripts
    • wcmamtx_endpoint_allowed_to_add
    • widget_recent-posts
    • theysaidso_admin_options
    • wcmamtx_groups_allowed_to_add
    • widget_theysaidso_widget
    • db_upgraded

Smoke tests 75% 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 50% from 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
Please fix the following
  • 25× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'Elementor\\Widget_Base' not found in wp-content/plugins/customize-my-account-for-woocommerce/elementor-addon/widgets/payment-methods.php:2
    • > PHP Fatal error
      Uncaught Error: Class 'Elementor\\Widget_Base' not found in wp-content/plugins/customize-my-account-for-woocommerce/elementor-addon/widgets/my-address.php:2
    • > PHP Fatal error
      Uncaught Error: Class 'Elementor\\Widget_Base' not found in wp-content/plugins/customize-my-account-for-woocommerce/elementor-addon/widgets/navigation.php:2
    • > PHP Fatal error
      Uncaught Error: Class 'Elementor\\Widget_Base' not found in wp-content/plugins/customize-my-account-for-woocommerce/elementor-addon/widgets/downloads.php:2
    • > PHP Fatal error
      Uncaught Error: Class 'Elementor\\Widget_Base' not found in wp-content/plugins/customize-my-account-for-woocommerce/elementor-addon/widgets/form-add-payment-method.php:2
    • > PHP Fatal error
      Uncaught Error: Class 'Elementor\\Widget_Base' not found in wp-content/plugins/customize-my-account-for-woocommerce/elementor-addon/widgets/form-edit-account.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/customize-my-account-for-woocommerce/include/wcmamtx_frontend_customizer.php:11
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/customize-my-account-for-woocommerce/include/wcmamtx_extra_functions.php:869
    • > PHP Fatal error
      Uncaught Error: Class 'Elementor\\Widget_Base' not found in wp-content/plugins/customize-my-account-for-woocommerce/elementor-addon/widgets/dashboard.php:2
    • > PHP Fatal error
      Uncaught Error: Class 'Elementor\\Widget_Base' not found in wp-content/plugins/customize-my-account-for-woocommerce/elementor-addon/widgets/view-order.php:2

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

readme.txt 88% from 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
Attributes that need to be fixed: Please take inspiration from this readme.txt

customize-my-account-for-woocommerce/customize-my-account-for-woocommerce.php 92% from 13 tests

The main PHP script in "Customize My Account for WooCommerce" version 2.0.11 is automatically included on every request by WordPress
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.0" instead of "3.3")

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
There were no executable files found in this plugin8,237 lines of code in 75 files:
LanguageFilesBlank linesComment linesLines of code
PHP432,4274754,238
CSS162521242,061
JavaScript156801501,931
XML1107

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.52
Average class complexity28.65
▷ Minimum class complexity1.00
▷ Maximum class complexity292.00
Average method complexity4.71
▷ Minimum method complexity1.00
▷ Maximum method complexity69.00
Code structure
Namespaces2
Interfaces0
Traits0
Classes17
▷ Abstract classes00.00%
▷ Concrete classes17100.00%
▷ Final classes00.00%
Methods121
▷ Static methods00.00%
▷ Public methods10788.43%
▷ Protected methods1411.57%
▷ Private methods00.00%
Functions33
▷ Named functions2266.67%
▷ Anonymous functions1133.33%
Constants14
▷ Global constants14100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
7 PNG files occupy 0.04MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/css/images/ui-icons_cc0000_256x240.png4.57KB4.18KB▼ 8.43%
assets/css/images/ui-icons_777620_256x240.png4.57KB4.18KB▼ 8.43%
assets/images/icon.png0.75KB0.92KB0.00%
assets/css/images/ui-icons_444444_256x240.png6.92KB4.18KB▼ 39.61%
assets/css/images/ui-icons_555555_256x240.png6.91KB4.18KB▼ 39.47%