Benchmarks
Plugin footprint 47% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲5.68MB] [CPU: ▲32.04ms] 75% from 4 tests
A check of server-side resources used by License Manager for WooCommerce
Please take the time to fix the following items
- Extra RAM: Extra memory usage must be kept under 5MB (currently 5.68MB on /wp-admin/admin.php?page=freemius)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 9.18 ▲5.71 | 64.15 ▲24.98 |
Dashboard /wp-admin | 9.19 ▲5.89 | 85.60 ▲36.36 |
Posts /wp-admin/edit.php | 9.20 ▲5.84 | 90.34 ▲41.80 |
Add New Post /wp-admin/post-new.php | 11.18 ▲5.29 | 120.58 ▲28.07 |
Media Library /wp-admin/upload.php | 9.20 ▲5.97 | 70.79 ▲38.75 |
Generators /wp-admin/admin.php?page=lmfwc_generators | 9.20 | 66.45 |
License Keys /wp-admin/admin.php?page=lmfwc_licenses | 9.20 | 70.40 |
Activations /wp-admin/admin.php?page=lmfwc_activations | 9.20 | 65.30 |
Freemius Debug [v.2.5.10] /wp-admin/admin.php?page=freemius | 9.20 | 65.37 |
Server storage [IO: ▲14.58MB] [DB: ▲0.01MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 774 new files
Database: 5 new tables, 14 new options
New tables |
---|
wp_lmfwc_licenses_meta |
wp_lmfwc_api_keys |
wp_lmfwc_licenses |
wp_lmfwc_generators |
wp_lmfwc_activations |
New WordPress options |
---|
lmfwc_settings_general |
fs_debug_mode |
widget_recent-comments |
lmfwc_db_version |
widget_theysaidso_widget |
fs_accounts |
db_upgraded |
theysaidso_admin_options |
fs_active_plugins |
widget_recent-posts |
... |
Browser metrics Passed 4 tests
A check of browser resources used by License Manager for WooCommerce
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,830 ▲68 | 14.33 ▼0.02 | 1.68 ▼0.02 | 30.48 ▼15.97 |
Dashboard /wp-admin | 2,235 ▲55 | 5.52 ▼0.14 | 96.20 ▼3.47 | 46.08 ▼0.43 |
Posts /wp-admin/edit.php | 2,141 ▲41 | 1.97 ▼0.04 | 39.62 ▲1.37 | 38.39 ▲3.86 |
Add New Post /wp-admin/post-new.php | 1,560 ▲34 | 18.04 ▼5.49 | 622.58 ▼21.44 | 71.16 ▲11.67 |
Media Library /wp-admin/upload.php | 1,443 ▲40 | 4.24 ▲0.00 | 101.17 ▼1.06 | 46.05 ▲2.86 |
Generators /wp-admin/admin.php?page=lmfwc_generators | 1,195 | 1.95 | 29.15 | 36.09 |
License Keys /wp-admin/admin.php?page=lmfwc_licenses | 1,306 | 1.69 | 27.70 | 32.99 |
Activations /wp-admin/admin.php?page=lmfwc_activations | 1,162 | 1.70 | 29.29 | 33.82 |
Freemius Debug [v.2.5.10] /wp-admin/admin.php?page=freemius | 1,092 | 1.67 | 25.84 | 27.55 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 25% 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
- Uninstall procedure validation failed for this plugin
- > Notice in wp-content/plugins/license-manager-for-woocommerce/freemius/includes/class-freemius.php+8486
Undefined property: stdClass::$plugins
- This plugin does not fully uninstall, leaving 5 tables in the database
- wp_lmfwc_generators
- wp_lmfwc_api_keys
- wp_lmfwc_licenses_meta
- wp_lmfwc_licenses
- wp_lmfwc_activations
- This plugin does not fully uninstall, leaving 14 options in the database
- theysaidso_admin_options
- lmfwc_settings_tools
- can_compress_scripts
- widget_recent-comments
- fs_active_plugins
- fs_debug_mode
- widget_recent-posts
- lmfwc_settings_woocommerce
- fs_accounts
- lmfwc_settings_general
- ...
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 0% 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
Please fix the following items
- 9× PHP files output text when accessed directly:
- > /wp-content/plugins/license-manager-for-woocommerce/vendor/setasign/fpdf/tutorial/tuto4.php
- > /wp-content/plugins/license-manager-for-woocommerce/vendor/setasign/fpdf/tutorial/tuto3.php
- > /wp-content/plugins/license-manager-for-woocommerce/vendor/setasign/fpdf/tutorial/tuto7.php
- > /wp-content/plugins/license-manager-for-woocommerce/vendor/setasign/fpdf/tutorial/tuto5.php
- > /wp-content/plugins/license-manager-for-woocommerce/vendor/setasign/fpdf/tutorial/tuto2.php
- > /wp-content/plugins/license-manager-for-woocommerce/vendor/setasign/fpdf/tutorial/tuto6.php
- > /wp-content/plugins/license-manager-for-woocommerce/vendor/setasign/fpdf/tutorial/tuto1.php
- > /wp-content/plugins/license-manager-for-woocommerce/vendor/setasign/fpdf/tutorial/makefont.php
- > /wp-content/plugins/license-manager-for-woocommerce/vendor/masterminds/html5/bin/entities.php
- 142× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Sabberworm\\CSS\\Parsing\\SourceException' not found in wp-content/plugins/license-manager-for-woocommerce/vendor/sabberworm/php-css-parser/src/Parsing/UnexpectedTokenException.php:8
- > PHP Fatal error
Uncaught Error: Class 'Dompdf\\FrameReflower\\AbstractFrameReflower' not found in wp-content/plugins/license-manager-for-woocommerce/vendor/dompdf/dompdf/src/FrameReflower/Image.php:18
- > PHP Fatal error
Uncaught Error: Class 'Defuse\\Crypto\\Exception\\CryptoException' not found in wp-content/plugins/license-manager-for-woocommerce/vendor/defuse/php-encryption/src/Exception/WrongKeyOrModifiedCiphertextException.php:5
- > PHP Fatal error
Uncaught Error: Class 'Dompdf\\Renderer\\Block' not found in wp-content/plugins/license-manager-for-woocommerce/vendor/dompdf/dompdf/src/Renderer/TableCell.php:17
- > PHP Fatal error
Uncaught Error: Class 'FontLib\\TrueType\\Header' not found in wp-content/plugins/license-manager-for-woocommerce/vendor/phenx/php-font-lib/src/FontLib/WOFF/Header.php:16
- > PHP Fatal error
Uncaught Error: Class 'Dompdf\\FrameReflower\\AbstractFrameReflower' not found in wp-content/plugins/license-manager-for-woocommerce/vendor/dompdf/dompdf/src/FrameReflower/TableRowGroup.php:18
- > PHP Fatal error
Uncaught Error: Class 'Svg\\Tag\\AbstractTag' not found in wp-content/plugins/license-manager-for-woocommerce/vendor/phenx/php-svg-lib/src/Svg/Tag/Stop.php:11
- > PHP Fatal error
Uncaught Error: Class 'Dompdf\\FrameDecorator\\AbstractFrameDecorator' not found in wp-content/plugins/license-manager-for-woocommerce/vendor/dompdf/dompdf/src/FrameDecorator/Table.php:20
- > PHP Fatal error
Uncaught Error: Class 'Svg\\Tag\\Shape' not found in wp-content/plugins/license-manager-for-woocommerce/vendor/phenx/php-svg-lib/src/Svg/Tag/Polygon.php:11
- > PHP Fatal error
Uncaught Error: Class 'FontLib\\BinaryStream' not found in wp-content/plugins/license-manager-for-woocommerce/vendor/phenx/php-font-lib/src/FontLib/Table/DirectoryEntry.php:19
- > 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 Passed 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
8 plugin tags: wordpress, key, license, license key, serial key...
license-manager-for-woocommerce/license-manager-for-woocommerce.php Passed 13 tests
The main PHP file in "License Manager for WooCommerce" ver. 3.0.4 adds more information about the plugin and also serves as the entry point for this plugin
75 characters long description:
Easily sell and manage software license keys through your WooCommerce shop.
Code Analysis 3% from 3 tests
File types 0% from 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Almost there! Just fix the following issues
- For security reasons, never distribute binary or executable files with your plugin
- .bat - Batch File in Windows
- ☣ wp-content/plugins/license-manager-for-woocommerce/vendor/bin/generate-defuse-key.bat
- .bat - Batch File in Windows
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 473 | 19,743 | 39,093 | 91,381 |
HTML | 60 | 72 | 0 | 3,257 |
JSON | 18 | 0 | 0 | 3,183 |
Markdown | 26 | 1,048 | 0 | 3,150 |
JavaScript | 8 | 113 | 72 | 808 |
CSS | 17 | 134 | 46 | 748 |
YAML | 1 | 9 | 0 | 35 |
XML | 2 | 0 | 0 | 32 |
make | 1 | 9 | 4 | 26 |
SVG | 1 | 0 | 0 | 8 |
DOS Batch | 1 | 0 | 0 | 5 |
Bourne Shell | 1 | 2 | 0 | 3 |
PHP code 50% from 2 tests
A short review of cyclomatic complexity and code structure
These items need your attention
- Class cyclomatic complexity should be reduced to less than 1000 (currently 3,073)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.46 |
Average class complexity | 38.96 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 3,073.00 |
Average method complexity | 4.06 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 98.00 |
Code structure | ||
---|---|---|
Namespaces | 53 | |
Interfaces | 12 | |
Traits | 0 | |
Classes | 312 | |
▷ Abstract classes | 21 | 6.73% |
▷ Concrete classes | 291 | 93.27% |
▷ Final classes | 8 | 2.75% |
Methods | 4,133 | |
▷ Static methods | 428 | 10.36% |
▷ Public methods | 3,146 | 76.12% |
▷ Protected methods | 486 | 11.76% |
▷ Private methods | 501 | 12.12% |
Functions | 176 | |
▷ Named functions | 134 | 76.14% |
▷ Anonymous functions | 42 | 23.86% |
Constants | 466 | |
▷ Global constants | 119 | 25.54% |
▷ Class constants | 347 | 74.46% |
▷ Public constants | 342 | 98.56% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
7 PNG files occupy 0.06MB with 0.03MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
freemius/assets/img/wc-admin.png | 9.16KB | 5.26KB | ▼ 42.58% |
freemius/assets/img/theme-icon.png | 10.97KB | 5.78KB | ▼ 47.37% |
assets/img/lmfwc_qr.png | 22.16KB | 9.19KB | ▼ 58.53% |
vendor/dompdf/dompdf/lib/res/broken_image.png | 0.60KB | 0.47KB | ▼ 22.33% |
freemius/assets/img/plugin-icon.png | 9.16KB | 5.26KB | ▼ 42.58% |