90% wc-software-license-manager

Code Review | WooCommerce Software License Manager

WordPress plugin WooCommerce Software License Manager scored90%from 54 tests.

About plugin

  • Plugin page: wc-software-licen...
  • Plugin version: 2.0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5.1-5.7
  • WordPress version: 6.3.1
  • First release: Aug 19, 2015
  • Latest release: Apr 5, 2021
  • Number of updates: 17
  • Update frequency: every 121.0 days
  • Top authors: Goback2 (100%)

Code review

54 tests

User reviews

10 reviews

Install metrics

100+ active /6,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
The plugin installed successfully, without throwing any errors or notices

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

This is a short check of server-side resources used by WooCommerce Software License Manager
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0342.92 ▲2.31
Dashboard /wp-admin3.32 ▼0.0251.57 ▼13.47
Posts /wp-admin/edit.php3.37 ▲0.0249.24 ▼3.70
Add New Post /wp-admin/post-new.php5.90 ▲0.0289.05 ▼13.44
Media Library /wp-admin/upload.php3.24 ▲0.0240.30 ▲6.47

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for WooCommerce Software License Manager
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.35 ▲0.001.77 ▲0.2544.81 ▼1.91
Dashboard /wp-admin2,198 ▲215.61 ▼0.0597.88 ▲6.0242.27 ▲2.02
Posts /wp-admin/edit.php2,100 ▼32.03 ▲0.0438.86 ▲2.9932.98 ▼3.24
Add New Post /wp-admin/post-new.php1,526 ▼023.49 ▲0.70668.17 ▼2.5451.68 ▲0.79
Media Library /wp-admin/upload.php1,400 ▼04.20 ▲0.0193.86 ▼9.0243.01 ▼1.32

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP Passed 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
The SRP test was a success

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 96% 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
7 plugin tags: wc software license, wc license, software license, wc, software license manager...

wc-software-license-manager/wc-software-license-manager.php 92% from 13 tests

This is the main PHP file of "WooCommerce Software License Manager" version 2.0.2, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
The following require your attention:
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug

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
Everything looks great! No dangerous files found in this plugin741 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
PHP6133256506
PO File288107235

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.30
Average class complexity8.00
▷ Minimum class complexity8.00
▷ Maximum class complexity8.00
Average method complexity2.17
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods6
▷ Static methods350.00%
▷ Public methods466.67%
▷ Protected methods00.00%
▷ Private methods233.33%
Functions21
▷ Named functions21100.00%
▷ Anonymous functions00.00%
Constants7
▷ Global constants7100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There are no PNG files in this plugin