67% acl-woo-advanced-customer-dashboard

Code Review | ACL - Woo Advanced Customer Dashboard

WordPress plugin ACL - Woo Advanced Customer Dashboard scored 67% from 54 tests.

About plugin

  • Plugin page: acl-woo-advanced-...
  • Plugin version: 0.8.0
  • PHP compatiblity: 5.4.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.2
  • WordPress version: 5.9.2
  • First release: Feb 18, 2020
  • Latest release: Feb 18, 2020
  • Number of updates: 3
  • Update frequency: every 0.3 days
  • Top authors: amadercode (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active / 816 total downloads


Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

Server metrics [RAM: ▼0.02MB] [CPU: ▼295.36ms] Passed 4 tests

This is a short check of server-side resources used by ACL - Woo Advanced Customer Dashboard
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.4093.00 ▲73.65
Dashboard /wp-admin3.41 ▲0.0039.99 ▼0.07
Posts /wp-admin/edit.php3.64 ▲0.0039.62 ▼1.47
Add New Post /wp-admin/post-new.php6.88 ▼0.0994.35 ▼1,179.19
Media Library /wp-admin/upload.php3.29 ▲0.0025.59 ▼0.69

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 94 new files
Database: 2 new tables, 6 new options
New tables
New WordPress options

Browser metrics Passed 4 tests

ACL - Woo Advanced Customer Dashboard: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,769 ▲1515.94 ▲0.307.51 ▲0.362.40 ▲0.07
Dashboard /wp-admin2,874 ▲136.07 ▼0.16126.59 ▼13.35152.64 ▼49.75
Posts /wp-admin/edit.php2,691 ▼03.23 ▼0.0163.95 ▲1.63155.48 ▲19.10
Add New Post /wp-admin/post-new.php1,661 ▼5016.59 ▼4.79423.47 ▼50.54189.91 ▲28.85
Media Library /wp-admin/upload.php1,698 ▼05.56 ▲0.04146.67 ▼36.68190.56 ▼1.49

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • The uninstall procedure failed, leaving 2 tables in the database
    • wp_wooacd_custom_cart
    • wp_wooacd_notifications
  • This plugin does not fully uninstall, leaving 6 options in the database
    • acl_wooacd_traveller
    • acl_wooacd_enable_notifications
    • acl_wooacd_set_estimated_delivery_time
    • acl_wooacd_custom_request
    • acl_wooacd_estimated_delivery_time
    • acl_wooacd_menus

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 0% 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 items
  • 1× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/acl-woo-advanced-customer-dashboard/includes/shipping_tracker/templates/wooacd-shipping-tracker.php
  • 6× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/acl-woo-advanced-customer-dashboard/includes/admin/wooacd-info-page.php:7
    • > PHP Notice
      Trying to get property 'prefix' of non-object in wp-content/plugins/acl-woo-advanced-customer-dashboard/includes/notifications/templates/wooacd-notifications-page.php on line 6
    • > PHP Fatal error
      Uncaught Error: Call to a member function get_results() on null in wp-content/plugins/acl-woo-advanced-customer-dashboard/includes/notifications/templates/wooacd-notifications-page.php:12
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_current_user_id() in wp-content/plugins/acl-woo-advanced-customer-dashboard/includes/notifications/templates/wooacd-notifications.php:8
    • > PHP Notice
      Trying to get property 'prefix' of non-object in wp-content/plugins/acl-woo-advanced-customer-dashboard/includes/notifications/templates/wooacd-notifications.php on line 4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/acl-woo-advanced-customer-dashboard/includes/cart/templates/wooacd_cart.php:1

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test


Plugin configuration 86% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
6 plugin tags: woocommerce client dashboard, woocommerce custom request plugin, advanced customer dashboard plugin, ultimate client dash, creating a custom wordpress dashboard for your clients...

acl-woo-advanced-customer-dashboard/acl-wooacd.php 69% from 13 tests

The primary PHP file in "ACL - Woo Advanced Customer Dashboard" version 0.8.0 is used by WordPress to initiate all plugin functionality
The following require your attention:
  • Description: The description should be shorter than 140 characters (currently 166 characters long)
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("acl-woo-advanced-customer-dashboard.php" instead of "acl-wooacd.php")
  • Domain Path: The domain path points to an invalid folder, "/lang/" does not exist
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug

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
Good job! No executable or dangerous file extensions detected15,030 lines of code in 64 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.30
Average class complexity12.32
▷ Minimum class complexity1.00
▷ Maximum class complexity64.00
Average method complexity2.67
▷ Minimum method complexity1.00
▷ Maximum method complexity46.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes19100.00%
▷ Final classes15.26%
▷ Static methods21.55%
▷ Public methods129100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions6100.00%
▷ Anonymous functions00.00%
▷ Global constants4100.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
4 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/total.png3.91KB1.78KB▼ 54.57%
assets/images/cancel.png3.97KB1.77KB▼ 55.41%
assets/images/process.png5.50KB2.81KB▼ 48.85%
assets/images/approve.png3.52KB1.56KB▼ 55.76%