78% quick-license-manager

Code Review | Quick License Manager - WooCommerce Plugin

WordPress plugin Quick License Manager - WooCommerce Plugin scored78%from 54 tests.

About plugin

  • Plugin page: quick-license-man...
  • Plugin version: 2.4.15
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0.0-6.3.1
  • WordPress version: 6.3.1
  • First release: Nov 13, 2015
  • Latest release: Sep 25, 2023
  • Number of updates: 134
  • Update frequency: every 21.6 days
  • Top authors: soraco (100%)

Code review

54 tests

User reviews

1 review

Install metrics

40+ active /4,394 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
This plugin's installer ran successfully

Server metrics [RAM: ▼0.36MB] [CPU: ▼13.82ms] Passed 4 tests

Analyzing server-side resources used by Quick License Manager - WooCommerce Plugin
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.78 ▲0.3138.90 ▲0.95
Dashboard /wp-admin3.61 ▲0.3147.02 ▼2.18
Posts /wp-admin/edit.php3.73 ▲0.3750.58 ▲5.21
Add New Post /wp-admin/post-new.php3.53 ▼2.3541.15 ▼56.68
Media Library /wp-admin/upload.php3.54 ▲0.3137.24 ▲2.64
Settings /wp-admin/admin.php?page=mnu_qlm3.4841.94
Email Templates /wp-admin/admin.php?page=qlm_templates3.5535.42

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 13 new files
Database: no new tables, 7 new options
New WordPress options
recovery_mode_email_last_sent
theysaidso_admin_options
widget_recent-comments
can_compress_scripts
widget_theysaidso_widget
widget_recent-posts
db_upgraded

Browser metrics Passed 4 tests

This is an overview of browser requirements for Quick License Manager - WooCommerce Plugin
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,904 ▲14313.56 ▼0.7910.18 ▲8.6038.98 ▼1.99
Dashboard /wp-admin2,214 ▲405.72 ▲0.1883.54 ▼3.6767.20 ▲24.73
Posts /wp-admin/edit.php2,134 ▲342.20 ▲0.2439.36 ▲4.1734.10 ▼4.46
Add New Post /wp-admin/post-new.php1,553 ▲2423.46 ▲0.28717.08 ▲66.4860.16 ▲15.12
Media Library /wp-admin/upload.php1,431 ▲284.41 ▲0.1792.48 ▼5.1281.98 ▲36.68
Settings /wp-admin/admin.php?page=mnu_qlm7121.619.2421.23
Email Templates /wp-admin/admin.php?page=qlm_templates1,4735.89111.2673.78

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • This plugin does not fully uninstall, leaving 7 options in the database
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget
    • recovery_mode_email_last_sent
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Almost there, just fix the following server-side errors
    • > GET request to /wp-admin/admin.php?page=mnu_qlm
    • > Error in wp-content/plugins/quick-license-manager/classes/qlm_api_view.php+10
    Uncaught Error: Call to undefined function WC() in wp-content/plugins/quick-license-manager/classes/qlm_api_view.php:10
    Stack trace:
    #0 wp-content/plugins/quick-license-manager/wc_qlm.php(1502): QLM_Api_View->__construct()
    #1 wp-includes/class-wp-hook.php(310): QLM_Main->setting_api()
    #2 wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters()
    #3 wp-includes/plugin.php(517): WP_Hook->do_action()
    #4 wp-admin/admin.php(259): do_action()
    #5 {main}
    thrown

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following
  • 4× PHP files output text when accessed directly:
    • > /wp-content/plugins/quick-license-manager/template/api-settings.php
    • > /wp-content/plugins/quick-license-manager/utils/woo-subs-helper-functions.php
    • > /wp-content/plugins/quick-license-manager/classes/qlm_webhook.php
    • > /wp-content/plugins/quick-license-manager/wc_qlm.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 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
3 plugin tags: ecommerce, software protection, quick license manager

quick-license-manager/wc_qlm.php 85% from 13 tests

The primary PHP file in "Quick License Manager - WooCommerce Plugin" version 2.4.15 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("quick-license-manager.php" instead of "wc_qlm.php")
  • Requires at least: Required version must be the same as the one declared in readme.txt ("4.2" instead of "4.0.0")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Everything looks great! No dangerous files found in this plugin8,012 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
CSS14145,767
PHP86682792,244
JavaScript1051

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.24
Average class complexity25.75
▷ Minimum class complexity1.00
▷ Maximum class complexity123.00
Average method complexity4.19
▷ Minimum method complexity1.00
▷ Maximum method complexity24.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes8
▷ Abstract classes00.00%
▷ Concrete classes8100.00%
▷ Final classes00.00%
Methods62
▷ Static methods00.00%
▷ Public methods62100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions10
▷ Named functions10100.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
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
images/certificate.png1.19KB1.23KB0.00%