90% extended-woocommerce-customer-management-for-users-insights

Code Review | Extended WooCommerce Customer Management for Users Insights

WordPress plugin Extended WooCommerce Customer Management for Users Insights scored90%from 54 tests.

About plugin

  • Plugin page: extended-woocomme...
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-5.9
  • WordPress version: 6.3.1
  • First release: Mar 10, 2017
  • Latest release: Jan 31, 2022
  • Number of updates: 11
  • Update frequency: every 162.8 days
  • Top authors: denizz (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /2,161 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
Install script ran successfully

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

A check of server-side resources used by Extended WooCommerce Customer Management for Users Insights
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0139.94 ▲1.25
Dashboard /wp-admin3.33 ▼0.0248.77 ▼14.30
Posts /wp-admin/edit.php3.38 ▲0.0250.04 ▼0.55
Add New Post /wp-admin/post-new.php5.91 ▲0.0286.23 ▼19.44
Media Library /wp-admin/upload.php3.25 ▲0.0236.62 ▼0.09

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Extended WooCommerce Customer Management for Users Insights
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,798 ▲5214.37 ▲0.081.74 ▼0.2643.81 ▲2.09
Dashboard /wp-admin2,204 ▲305.48 ▼0.0983.89 ▼5.3840.10 ▼2.03
Posts /wp-admin/edit.php2,113 ▲131.95 ▼0.0836.25 ▼5.6038.23 ▲0.04
Add New Post /wp-admin/post-new.php1,537 ▲423.35 ▲0.60653.80 ▲16.1852.79 ▲1.42
Media Library /wp-admin/upload.php1,412 ▲94.17 ▼0.0399.31 ▼0.8943.47 ▲1.17

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
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected

SRP Passed 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Congratulations! This plugin passed the SRP test

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 Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
10 plugin tags: woocommerce ordered products, users insights, woocommerce customer notes, woocommerce order notes, woocommerce customer management...

extended-woocommerce-customer-management-for-users-insights/extended-woocommerce-customer-management-for-users-insights.php Passed 13 tests

The primary PHP file in "Extended WooCommerce Customer Management for Users Insights" version 1.0.1 is used by WordPress to initiate all plugin functionality
48 characters long description:
Extends the WooCommerce module of Users Insights

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin292 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP58346266
CSS13017
HTML1209

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.42
Average class complexity9.25
▷ Minimum class complexity6.00
▷ Maximum class complexity13.00
Average method complexity2.43
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods23
▷ Static methods00.00%
▷ Public methods1982.61%
▷ Protected methods417.39%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.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
There were not PNG files found in your plugin