94% software-license-manager-client

Code Review | Software License Manager Client

WordPress plugin Software License Manager Client scored 94% from 54 tests.

About plugin

  • Plugin page: software-license-...
  • Plugin version: 1.15
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-5.8
  • WordPress version: 5.9.2
  • First release: Jun 28, 2019
  • Latest release: Nov 5, 2021
  • Number of updates: 39
  • Update frequency: every 22.1 days
  • Top authors: Katsushi Kawamori (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 1,541 total downloads

Benchmarks

Plugin footprint Passed 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.10MB] [CPU: ▼301.06ms] Passed 4 tests

This is a short check of server-side resources used by Software License Manager Client
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.64 ▲0.1362.09 ▲6.82
Dashboard /wp-admin3.54 ▲0.1338.34 ▲1.01
Posts /wp-admin/edit.php3.76 ▲0.1238.77 ▼2.49
Add New Post /wp-admin/post-new.php7.00 ▲0.0398.38 ▼1,208.68
Media Library /wp-admin/upload.php3.41 ▲0.1232.22 ▲5.94
Software License Manager Client /wp-admin/options-general.php?page=slmclient3.3824.61

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 6 new files
Database: no new tables, 1 new option
New WordPress options
slmclient

Browser metrics Passed 4 tests

An overview of browser requirements for Software License Manager Client
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,776 ▲3415.61 ▼0.026.06 ▲0.282.33 ▲0.40
Dashboard /wp-admin2,883 ▲296.12 ▼0.03116.15 ▼25.34159.17 ▲1.21
Posts /wp-admin/edit.php2,693 ▲23.24 ▲0.0263.41 ▼1.00140.52 ▼3.36
Add New Post /wp-admin/post-new.php1,664 ▲317.38 ▲1.06417.43 ▼4.90158.59 ▲6.51
Media Library /wp-admin/upload.php1,706 ▲85.50 ▼0.03143.13 ▲1.90187.10 ▼4.42
Software License Manager Client /wp-admin/options-general.php?page=slmclient1,7072.4154.62125.43

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The plugin uninstalled completely, with no zombie files or tables

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

SRP 50% from 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
The following issues need your attention
  • 3× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/software-license-manager-client/lib/class-slmclientadmin.php:36
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/software-license-manager-client/lib/class-slmclientadmin.php:36
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/software-license-manager-client/license-checker/class-slmclient.php:46

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
2 plugin tags: license, license key

software-license-manager-client/slmclient.php 85% from 13 tests

The main file in "Software License Manager Client" v. 1.15 serves as a complement to information provided in readme.txt and as the entry point to the plugin
You should first fix the following items:
  • Requires at least: The required version number did not match the one declared in readme.txt ("4.7" instead of "3.0")
  • Main file name: Name the main plugin file the same as the plugin slug ("software-license-manager-client.php" instead of "slmclient.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Success! There were no dangerous files found in this plugin660 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP4112203621
JavaScript152239

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.28
Average class complexity33.00
▷ Minimum class complexity23.00
▷ Maximum class complexity43.00
Average method complexity5.57
▷ Minimum method complexity1.00
▷ Maximum method complexity15.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods14
▷ Static methods00.00%
▷ Public methods1071.43%
▷ Protected methods00.00%
▷ Private methods428.57%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
PNG images were not found in this plugin