89% woo-better-customer-list

Code Review | Better Customer List for WooCommerce

WordPress plugin Better Customer List for WooCommerce scored89%from 54 tests.

About plugin

  • Plugin page: woo-better-custom...
  • Plugin version: 1.2.2
  • PHP version: 7.4.16
  • WordPress compatibility: 2.5.5-5.5.1
  • WordPress version: 6.3.1
  • First release: Feb 5, 2018
  • Latest release: Oct 27, 2020
  • Number of updates: 41
  • Update frequency: every 24.3 days
  • Top authors: blazeconcepts (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

300+ active /4,476 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully

Server metrics [RAM: ▼0.01MB] [CPU: ▼10.88ms] Passed 4 tests

An overview of server-side resources used by Better Customer List for WooCommerce
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0038.82 ▼1.65
Dashboard /wp-admin3.31 ▼0.0449.21 ▼17.67
Posts /wp-admin/edit.php3.36 ▲0.0050.38 ▼9.11
Add New Post /wp-admin/post-new.php5.89 ▲0.0088.95 ▼14.75
Media Library /wp-admin/upload.php3.23 ▲0.0037.56 ▼1.98

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_theysaidso_widget
widget_recent-posts
theysaidso_admin_options
db_upgraded
can_compress_scripts

Browser metrics Passed 4 tests

An overview of browser requirements for Better Customer List for WooCommerce
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,840 ▲7914.48 ▲0.102.04 ▲0.0745.63 ▲5.23
Dashboard /wp-admin2,224 ▲214.84 ▼1.03108.95 ▼7.5139.59 ▼6.04
Posts /wp-admin/edit.php2,103 ▼02.00 ▲0.0245.07 ▲7.0239.05 ▲0.78
Add New Post /wp-admin/post-new.php1,537 ▼323.29 ▲0.18607.66 ▼86.8868.29 ▲9.13
Media Library /wp-admin/upload.php1,397 ▼04.18 ▲0.04107.70 ▼4.8146.92 ▼0.26

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
  • The uninstall procedure has failed, leaving 6 options in the database
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Please fix the following attributes:
  • Tags: Too many tags (11 tag instead of maximum 10); only the first 5 tags are used in your directory listing
You can take inspiration from this readme.txt

woo-better-customer-list/woocommerce-better-cus-list.php 85% from 13 tests

"Better Customer List for WooCommerce" version 1.2.2's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
You should first fix the following items:
  • Requires at least: Required version must be the same as the one declared in readme.txt ("4.7" instead of "2.5.5")
  • Main file name: Name the main plugin file the same as the plugin slug ("woo-better-customer-list.php" instead of "woocommerce-better-cus-list.php")

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
Everything looks great! No dangerous files found in this plugin525 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP48940503
JavaScript12022

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.36
Average class complexity2.67
▷ Minimum class complexity1.00
▷ Maximum class complexity5.00
Average method complexity1.56
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods9
▷ Static methods666.67%
▷ Public methods9100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions9
▷ Named functions9100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
No PNG images were found in this plugin