Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully
Server metrics [RAM: ▼0.00MB] [CPU: ▼295.95ms] Passed 4 tests
A check of server-side resources used by Software License Manager for WooCommerce
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.54 ▲0.03 | 63.80 ▲16.07 |
Dashboard /wp-admin | 3.44 ▲0.03 | 32.79 ▼2.10 |
Posts /wp-admin/edit.php | 3.66 ▲0.02 | 36.92 ▼0.50 |
Add New Post /wp-admin/post-new.php | 6.91 ▼0.06 | 94.81 ▼1,178.44 |
Media Library /wp-admin/upload.php | 3.31 ▲0.01 | 24.94 ▼2.76 |
Software License Manager for WooCommerce /wp-admin/options-general.php?page=slmforwoocommerce | 3.28 | 22.53 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 5 new files
Database: no new tables, 1 new option
New WordPress options |
---|
slmforwoocommerce |
Browser metrics Passed 4 tests
Checking browser requirements for Software License Manager for WooCommerce
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,769 ▲47 | 15.80 ▲0.01 | 6.39 ▲0.46 | 2.02 ▼0.07 |
Dashboard /wp-admin | 2,893 ▲32 | 6.23 ▲0.10 | 115.24 ▼22.93 | 152.45 ▼7.89 |
Posts /wp-admin/edit.php | 2,696 ▲8 | 3.25 ▲0.01 | 64.18 ▲2.44 | 139.16 ▲2.87 |
Add New Post /wp-admin/post-new.php | 1,703 ▲42 | 21.34 ▲4.59 | 458.43 ▲42.84 | 153.22 ▼5.52 |
Media Library /wp-admin/upload.php | 1,703 ▲2 | 5.53 ▼0.03 | 141.75 ▲0.41 | 186.22 ▼4.14 |
Software License Manager for WooCommerce /wp-admin/options-general.php?page=slmforwoocommerce | 1,146 | 2.42 | 54.35 | 112.52 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
This plugin's uninstaller ran successfully
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
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-for-woocommerce/lib/class-slmforwoocommerceadmin.php:37
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/software-license-manager-for-woocommerce/lib/class-slmforwoocommerceadmin.php:37
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/software-license-manager-for-woocommerce/lib/class-slmforwoocommerce.php:38
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
3 plugin tags: license key, woocommerce, license
software-license-manager-for-woocommerce/slmforwoocommerce.php 85% from 13 tests
The principal PHP file in "Software License Manager for WooCommerce" v. 1.22 is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
- 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: The principal plugin file should be the same as the plugin slug ("software-license-manager-for-woocommerce.php" instead of "slmforwoocommerce.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
There were no executable files found in this plugin378 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 91 | 205 | 378 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 27.50 |
▷ Minimum class complexity | 27.00 |
▷ Maximum class complexity | 28.00 |
Average method complexity | 3.94 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 10.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 18 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 15 | 83.33% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 3 | 16.67% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
There were not PNG files found in your plugin