Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.00MB] [CPU: ▼4.02ms] Passed 4 tests
This is a short check of server-side resources used by Woocommerce Product License Manager
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 40.87 ▼2.63 |
Dashboard /wp-admin | 3.31 ▲0.00 | 67.61 ▲15.01 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 50.71 ▲3.84 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 90.10 ▼15.57 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 37.07 ▼1.73 |
Server storage [IO: ▲0.18MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 31 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
widget_theysaidso_widget |
db_upgraded |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-posts |
Browser metrics Passed 4 tests
An overview of browser requirements for Woocommerce Product License Manager
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲29 | 13.33 ▼1.32 | 1.92 ▼0.40 | 47.04 ▼0.43 |
Dashboard /wp-admin | 2,200 ▲18 | 5.98 ▲0.89 | 106.22 ▲1.42 | 40.80 ▲0.30 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.04 ▼0.00 | 35.97 ▼3.50 | 36.11 ▼0.35 |
Add New Post /wp-admin/post-new.php | 1,533 ▲14 | 23.28 ▲0.43 | 659.99 ▼19.29 | 53.91 ▲1.71 |
Media Library /wp-admin/upload.php | 1,391 ▲6 | 4.13 ▼0.11 | 121.22 ▲5.92 | 52.45 ▲3.53 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
- Zombie WordPress options were found after uninstall: 6 options
- theysaidso_admin_options
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-posts
- widget_recent-comments
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 0% 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 take a closer look at the following
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/product-license-manager/admin/templates/ads.tpl.php
- 11× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/product-license-manager/admin/classes/class-script.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/product-license-manager/admin/templates/license.tpl.php:2
- > PHP Warning
Use of undefined constant PLM_URL - assumed 'PLM_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/product-license-manager/admin/templates/ads.tpl.php on line 3
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/product-license-manager/admin/templates/settings.tpl.php:2
- > PHP Warning
Use of undefined constant PLM_PATH - assumed 'PLM_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/product-license-manager/admin/classes/class-log-debug.php on line 14
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/product-license-manager/admin/templates/integration.tpl.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/product-license-manager/admin/classes/class-listener.php:245
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/product-license-manager/admin/classes/class-log-debug.php:16
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/product-license-manager/admin/templates/manage-license.tpl.php:2
- > PHP Fatal error
Uncaught Error: Class 'PLM_List_Table' not found in wp-content/plugins/product-license-manager/admin/classes/class-license-table.php:2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that require attention:
- Screenshots: Add descriptions for screenshots #1, #2, #3, #4, #5, #6, #7 in product-license-manager/assets to your readme.txt
product-license-manager/product-license-manager.php 92% from 13 tests
Analyzing the main PHP file in "Woocommerce Product License Manager" version 4.0.1
Please make the necessary changes and fix the following:
- Description: The description should be shorter than 140 characters (currently 314 characters long)
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 plugin3,454 lines of code in 21 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 17 | 228 | 429 | 1,927 |
CSS | 2 | 54 | 62 | 1,475 |
JavaScript | 2 | 1 | 5 | 52 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.24 |
Average class complexity | 24.50 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 85.00 |
Average method complexity | 3.07 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 17.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 91 | |
▷ Static methods | 7 | 7.69% |
▷ Public methods | 91 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 3 | |
▷ Named functions | 2 | 66.67% |
▷ Anonymous functions | 1 | 33.33% |
Constants | 11 | |
▷ Global constants | 11 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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
1 PNG file occupies 0.03MB with 0.02MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/assets/images/product-license-manager-logo.png | 25.70KB | 3.75KB | ▼ 85.42% |