Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▲1.62MB] [CPU: ▲12.02ms] Passed 4 tests
A check of server-side resources used by Digital License Manager
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.82 ▲1.36 | 47.68 ▲7.13 |
Dashboard /wp-admin | 4.99 ▲1.69 | 64.73 ▲12.51 |
Posts /wp-admin/edit.php | 5.07 ▲1.71 | 60.94 ▲17.27 |
Add New Post /wp-admin/post-new.php | 7.78 ▲1.89 | 99.42 ▲11.18 |
Media Library /wp-admin/upload.php | 4.95 ▲1.72 | 53.08 ▲22.18 |
Activations /wp-admin/admin.php?page=dlm_activations | 5.36 | 48.61 |
Settings /wp-admin/admin.php?page=dlm_settings | 4.94 | 48.09 |
Generators /wp-admin/admin.php?page=dlm_generators | 5.32 | 47.01 |
Licenses /wp-admin/admin.php?page=dlm_licenses | 5.42 | 51.28 |
Server storage [IO: ▲4.30MB] [DB: ▲0.08MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 454 new files
Database: 6 new tables, 8 new options
New tables |
---|
wp_dlm_licenses |
wp_dlm_api_keys |
wp_dlm_license_activations |
wp_dlm_product_downloads |
wp_dlm_license_meta |
wp_dlm_generators |
New WordPress options |
---|
dlm_db_version |
db_upgraded |
can_compress_scripts |
widget_recent-posts |
widget_recent-comments |
widget_theysaidso_widget |
dlm_settings_general |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Checking browser requirements for Digital License Manager
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,961 ▲214 | 14.38 ▼0.39 | 2.02 ▲0.27 | 30.14 ▼16.34 |
Dashboard /wp-admin | 2,335 ▲155 | 5.69 ▲0.05 | 98.09 ▲5.98 | 56.87 ▲14.42 |
Posts /wp-admin/edit.php | 2,243 ▲143 | 2.09 ▲0.15 | 37.63 ▲0.64 | 46.71 ▲13.05 |
Add New Post /wp-admin/post-new.php | 1,836 ▲309 | 22.16 ▼0.86 | 677.75 ▲44.89 | 37.07 ▼27.27 |
Media Library /wp-admin/upload.php | 1,543 ▲143 | 4.22 ▲0.03 | 98.24 ▲3.04 | 51.40 ▲11.22 |
Activations /wp-admin/admin.php?page=dlm_activations | 1,377 | 2.00 | 43.23 | 74.98 |
Settings /wp-admin/admin.php?page=dlm_settings | 1,246 | 3.19 | 62.49 | 91.03 |
Generators /wp-admin/admin.php?page=dlm_generators | 1,308 | 1.76 | 28.52 | 45.53 |
Licenses /wp-admin/admin.php?page=dlm_licenses | 1,601 | 1.91 | 34.07 | 48.13 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.08MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- Zombie tables were found after uninstall: 6 tables
- wp_dlm_license_activations
- wp_dlm_generators
- wp_dlm_license_meta
- wp_dlm_licenses
- wp_dlm_product_downloads
- wp_dlm_api_keys
- This plugin did not uninstall successfully, leaving 8 options in the database
- db_upgraded
- widget_theysaidso_widget
- dlm_db_version
- widget_recent-comments
- dlm_settings_general
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-posts
Smoke tests 50% 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)
The smoke test was a success, however most plugin functionality was not tested
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 fix the following
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/digital-license-manager/vendor/tecnickcom/tcpdf/tools/tcpdf_addfont.php
- 175× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'WP_REST_Controller' not found in wp-content/plugins/digital-license-manager/includes/Abstracts/AbstractRestController.php:39
- > PHP Fatal error
Uncaught Error: Class 'Spipu\\Html2Pdf\\Tests\\CrossVersionCompatibility\\PhpUnit5\\TagParserTestCase' not found in wp-content/plugins/digital-license-manager/vendor/spipu/html2pdf/Tests/CrossVersionCompatibility/TagParserTestCase.php:10
- > PHP Fatal error
Uncaught Error: Class 'IdeoLogix\\DigitalLicenseManager\\Database\\Models\\ApiKey' not found in wp-content/plugins/digital-license-manager/includes/Database/Models/Resources/ApiKey.php:33
- > PHP Fatal error
Uncaught Error: Class 'Spipu\\Html2Pdf\\Tag\\Html\\I' not found in wp-content/plugins/digital-license-manager/vendor/spipu/html2pdf/src/Tag/Html/Samp.php:17
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/digital-license-manager/vendor/spipu/html2pdf/Tests/CrossVersionCompatibility/PhpUnit5/HtmlTestCase.php:18
- > PHP Fatal error
Uncaught Error: Class 'Spipu\\Html2Pdf\\Tests\\AbstractTest' not found in wp-content/plugins/digital-license-manager/vendor/spipu/html2pdf/Tests/Tag/Svg/PathInvalidTest.php:21
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/digital-license-manager/vendor/spipu/html2pdf/Tests/ExamplesTest.php:20
- > PHP Warning
Use of undefined constant HTML2PDF_PHPUNIT_VERSION - assumed 'HTML2PDF_PHPUNIT_VERSION' (this will throw an Error in a future version of PHP) in wp-content/plugins/digital-license-manager/vendor/spipu/html2pdf/Tests/CrossVersionCompatibility/ExceptionFormatterTestCase.php on line 5
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/digital-license-manager/templates/woocommerce/dlm/my-account/licenses/partials/single-certificate.php:30
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/digital-license-manager/vendor/spipu/html2pdf/Tests/CrossVersionCompatibility/PhpUnit9/AbstractTestCase.php:8
- > PHP Fatal error
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
5 plugin tags: serial key, woocommerce, license key, software license, license manager
digital-license-manager/digital-license-manager.php 92% from 13 tests
The main PHP script in "Digital License Manager" version 1.5.6 is automatically included on every request by WordPress
The following require your attention:
- Requires at least: The required version number did not match the one declared in readme.txt ("4.7" instead of "2.7")
Code Analysis 95% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected79,727 lines of code in 405 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 333 | 7,946 | 28,690 | 74,314 |
Markdown | 25 | 960 | 0 | 2,553 |
JavaScript | 17 | 132 | 245 | 1,249 |
CSS | 19 | 126 | 124 | 787 |
JSON | 5 | 0 | 0 | 498 |
HTML | 1 | 9 | 1 | 242 |
XML | 2 | 0 | 0 | 34 |
make | 1 | 9 | 4 | 26 |
SVG | 1 | 9 | 0 | 21 |
Bourne Shell | 1 | 2 | 0 | 3 |
PHP code 0% from 2 tests
This is a very shot review of cyclomatic complexity and code structure
Please fix the following
- Please reduce cyclomatic complexity of classes to less than 1000 (currently 4,422)
- Cyclomatic complexity of methods should be reduced to less than 100 (currently 500)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.41 |
Average class complexity | 37.43 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 4,422.00 |
Average method complexity | 5.76 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 500.00 |
Code structure | ||
---|---|---|
Namespaces | 55 | |
Interfaces | 15 | |
Traits | 3 | |
Classes | 258 | |
▷ Abstract classes | 48 | 18.60% |
▷ Concrete classes | 210 | 81.40% |
▷ Final classes | 8 | 3.81% |
Methods | 2,156 | |
▷ Static methods | 350 | 16.23% |
▷ Public methods | 1,533 | 71.10% |
▷ Protected methods | 524 | 24.30% |
▷ Private methods | 99 | 4.59% |
Functions | 34 | |
▷ Named functions | 17 | 50.00% |
▷ Anonymous functions | 17 | 50.00% |
Constants | 246 | |
▷ Global constants | 165 | 67.07% |
▷ Class constants | 81 | 32.93% |
▷ Public constants | 81 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
1 PNG file occupies 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
vendor/spipu/html2pdf/Tests/Image/res/logo.png | 20.53KB | 7.63KB | ▼ 62.85% |