73% wc-serial-numbers

Code Review | WC Serial Numbers - Ultimate License Manager for Selling, Licensing & Securely Delivering Digital Content with WooCommerce

WordPress plugin WC Serial Numbers - Ultimate License Manager for Selling, Licensing & Securely Delivering Digital Content with WooCommerce scored73%from 54 tests.

About plugin

  • Plugin page: wc-serial-numbers
  • Plugin version: 1.6.6
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.4
  • WordPress version: 6.3.1
  • First release: Jan 21, 2019
  • Latest release: Nov 13, 2023
  • Number of updates: 112
  • Update frequency: every 15.7 days
  • Top authors: manikmist09 (66.07%)pluginever (26.79%)manzurahammed (5.36%)B-07 (4.46%)

Code review

54 tests

User reviews

65 reviews

Install metrics

1,000+ active /49,429 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.35MB] [CPU: ▼8.40ms] Passed 4 tests

An overview of server-side resources used by WC Serial Numbers - Ultimate License Manager for Selling, Licensing & Securely Delivering Digital Content with WooCommerce
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.84 ▲0.3844.30 ▲1.89
Dashboard /wp-admin3.69 ▲0.3447.21 ▼15.85
Posts /wp-admin/edit.php3.74 ▲0.3850.75 ▲2.80
Add New Post /wp-admin/post-new.php6.21 ▲0.3181.45 ▼22.42
Media Library /wp-admin/upload.php3.61 ▲0.3836.75 ▲6.13

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 72 new files
Database: 2 new tables, 16 new options
New tables
wp_serial_numbers_activations
wp_serial_numbers
New WordPress options
db_upgraded
wc_serial_numbers_install_date
widget_theysaidso_widget
theysaidso_admin_options
wc_serial_numbers_enable_stock_notification
wc_serial_numbers_revoke_keys
wc_serial_numbers_reuse_serial_number
wc_serial_numbers_version
wc_serial_numbers_disable_software_support
wc_serial_numbers_stock_threshold
...

Browser metrics Passed 4 tests

This is an overview of browser requirements for WC Serial Numbers - Ultimate License Manager for Selling, Licensing & Securely Delivering Digital Content with WooCommerce
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,798 ▲3614.25 ▼0.101.59 ▼0.2339.51 ▼4.53
Dashboard /wp-admin2,203 ▲255.60 ▼0.0691.26 ▼21.5242.25 ▼0.12
Posts /wp-admin/edit.php2,108 ▲81.95 ▼0.0738.96 ▲2.2635.33 ▼0.56
Add New Post /wp-admin/post-new.php1,534 ▼323.24 ▲0.10601.44 ▼56.1252.70 ▼0.56
Media Library /wp-admin/upload.php1,411 ▲84.17 ▲0.0399.83 ▼3.0043.49 ▼0.30

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
  • The uninstall procedure failed, leaving 2 tables in the database
    • wp_serial_numbers_activations
    • wp_serial_numbers
  • The uninstall procedure has failed, leaving 16 options in the database
    • widget_theysaidso_widget
    • wc_serial_numbers_notification_recipient
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts
    • wc_serial_numbers_revoke_keys
    • widget_recent-posts
    • wc_serial_numbers_reuse_serial_number
    • wc_serial_numbers_stock_threshold
    • wc_serial_numbers_hide_serial_number
    • ...

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/wc-serial-numbers/templates/email-stock-notification.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 88% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need to be fixed:
  • Tags: Too many tags (28 tag instead of maximum 10); only the first 5 tags are used in your directory listing
  • Screenshots: Screenshot #9 (Thank You Page with Keys) image required
Please take inspiration from this readme.txt

wc-serial-numbers/wc-serial-numbers.php Passed 13 tests

"WC Serial Numbers - Ultimate License Manager for Selling, Licensing & Securely Delivering Digital Content with WooCommerce" version 1.6.6's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
95 characters long description:
Sell and manage license keys/ serial numbers/ secret keys easily within your WooCommerce store.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin7,428 lines of code in 59 files:
LanguageFilesBlank linesComment linesLines of code
PHP541,3855,2877,422
CSS2002
JavaScript2002
XML1002

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.37
Average class complexity23.56
▷ Minimum class complexity1.00
▷ Maximum class complexity267.00
Average method complexity2.75
▷ Minimum method complexity1.00
▷ Maximum method complexity69.00
Code structure
Namespaces7
Interfaces1
Traits0
Classes33
▷ Abstract classes39.09%
▷ Concrete classes3090.91%
▷ Final classes00.00%
Methods445
▷ Static methods7416.63%
▷ Public methods36682.25%
▷ Protected methods7516.85%
▷ Private methods40.90%
Functions92
▷ Named functions7581.52%
▷ Anonymous functions1718.48%
Constants8
▷ Global constants225.00%
▷ Class constants675.00%
▷ Public constants6100.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
8 PNG files occupy 0.55MB with 0.23MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/dist/images/csv-import.png56.23KB32.37KB▼ 42.43%
assets/images/csv-export.png68.47KB40.52KB▼ 40.82%
assets/dist/images/add-generator.png80.73KB46.21KB▼ 42.76%
assets/dist/images/csv-export.png68.47KB40.52KB▼ 40.82%
assets/images/csv-import.png56.23KB32.37KB▼ 42.43%