67% acl-woo-advanced-customer-dashboard

Code Review | ACL - Woo Advanced Customer Dashboard

WordPress plugin ACL - Woo Advanced Customer Dashboard scored67%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: 6.3.1
  • 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

10+ active /1,264 total downloads

Benchmarks

Plugin footprint 65% 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.01MB] [CPU: ▼3.23ms] Passed 4 tests

This is a short check of server-side resources used by ACL - Woo Advanced Customer Dashboard
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0136.38 ▼1.44
Dashboard /wp-admin3.31 ▲0.0144.72 ▼6.77
Posts /wp-admin/edit.php3.36 ▲0.0145.77 ▲1.67
Add New Post /wp-admin/post-new.php5.89 ▲0.0193.76 ▼6.36
Media Library /wp-admin/upload.php3.23 ▲0.0036.62 ▲3.58

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 94 new files
Database: 2 new tables, 12 new options
New tables
wp_wooacd_notifications
wp_wooacd_custom_cart
New WordPress options
acl_wooacd_custom_request
db_upgraded
acl_wooacd_traveller
can_compress_scripts
widget_recent-comments
acl_wooacd_estimated_delivery_time
widget_theysaidso_widget
acl_wooacd_menus
acl_wooacd_enable_notifications
widget_recent-posts
...

Browser metrics Passed 4 tests

This is an overview of browser requirements for ACL - Woo Advanced Customer Dashboard
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲5413.33 ▼0.852.02 ▼0.0342.55 ▼1.50
Dashboard /wp-admin2,206 ▲184.85 ▼0.20104.37 ▼10.7340.10 ▼5.07
Posts /wp-admin/edit.php2,068 ▼212.00 ▼0.0235.63 ▼7.9434.57 ▼0.00
Add New Post /wp-admin/post-new.php1,533 ▲1923.22 ▲5.80585.46 ▼8.1854.50 ▲3.50
Media Library /wp-admin/upload.php1,391 ▲64.24 ▼0.0499.28 ▼3.4745.23 ▲1.20

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
  • Zombie tables detected upon uninstall: 2 tables
    • wp_wooacd_custom_cart
    • wp_wooacd_notifications
  • Zombie WordPress options were found after uninstall: 12 options
    • acl_wooacd_custom_request
    • acl_wooacd_enable_notifications
    • can_compress_scripts
    • widget_theysaidso_widget
    • acl_wooacd_set_estimated_delivery_time
    • acl_wooacd_estimated_delivery_time
    • acl_wooacd_traveller
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments
    • ...

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, 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× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/acl-woo-advanced-customer-dashboard/includes/shipping_tracker/templates/wooacd-shipping-tracker.php
  • 6× PHP files trigger server errors when accessed directly:
    • > 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 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 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
    • > 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 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 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

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found

Optimizations

Plugin configuration 86% 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
6 plugin tags: creating a custom wordpress dashboard for your clients, wordpress user dashboard in frontend, advanced customer dashboard plugin, woocommerce client dashboard, ultimate client dash...

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

This is the main PHP file of "ACL - Woo Advanced Customer Dashboard" version 0.8.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("acl-woo-advanced-customer-dashboard.php" instead of "acl-wooacd.php")
  • Description: Keep the plugin description shorter than 140 characters (currently 166 characters long)
  • Domain Path: The domain path folder does not exist ("/lang/")
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
There were no executable files found in this plugin15,030 lines of code in 64 files:
LanguageFilesBlank linesComment linesLines of code
SVG30128,954
PHP263434672,734
CSS8151551,641
Sass16170101,009
JavaScript1155134692

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
No 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
Namespaces0
Interfaces0
Traits0
Classes19
▷ Abstract classes00.00%
▷ Concrete classes19100.00%
▷ Final classes15.26%
Methods129
▷ Static methods21.55%
▷ Public methods129100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
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/cancel.png3.97KB1.77KB▼ 55.41%
assets/images/total.png3.91KB1.78KB▼ 54.57%
assets/images/process.png5.50KB2.81KB▼ 48.85%
assets/images/approve.png3.52KB1.56KB▼ 55.76%