Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲0.24MB] [CPU: ▼4.33ms] Passed 4 tests
Analyzing server-side resources used by Software License Manager
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.64 ▲0.18 | 41.71 ▲4.36 |
Dashboard /wp-admin | 3.57 ▲0.26 | 46.95 ▲1.94 |
Posts /wp-admin/edit.php | 3.68 ▲0.32 | 46.36 ▼0.02 |
Add New Post /wp-admin/post-new.php | 6.15 ▲0.26 | 84.91 ▼23.60 |
Media Library /wp-admin/upload.php | 3.49 ▲0.26 | 37.40 ▲4.70 |
Add/Edit Licenses /wp-admin/admin.php?page=wp_lic_mgr_addedit | 3.43 | 33.62 |
Manage Licenses /wp-admin/admin.php?page=slm-main | 3.50 | 36.97 |
Admin Functions /wp-admin/admin.php?page=wp_lic_mgr_admin_fnc | 3.46 | 29.79 |
Settings /wp-admin/admin.php?page=wp_lic_mgr_settings | 3.43 | 28.97 |
Integration Help /wp-admin/admin.php?page=lic_mgr_integration_help_page | 3.43 | 29.65 |
Server storage [IO: ▲0.13MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 26 new files
Database: 2 new tables, 8 new options
New tables |
---|
wp_lic_key_tbl |
wp_lic_reg_domain_tbl |
New WordPress options |
---|
theysaidso_admin_options |
db_upgraded |
widget_recent-posts |
widget_recent-comments |
can_compress_scripts |
widget_theysaidso_widget |
slm_plugin_options |
wp_lic_mgr_db_version |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Software License Manager
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,922 ▲151 | 13.98 ▼0.55 | 8.72 ▲7.03 | 45.27 ▲3.71 |
Dashboard /wp-admin | 2,249 ▲69 | 4.98 ▼0.69 | 92.36 ▲6.75 | 40.10 ▼1.21 |
Posts /wp-admin/edit.php | 2,159 ▲59 | 2.50 ▲0.47 | 36.34 ▼0.01 | 31.82 ▼0.11 |
Add New Post /wp-admin/post-new.php | 1,570 ▲42 | 22.89 ▼0.28 | 653.24 ▼2.39 | 35.84 ▼19.68 |
Media Library /wp-admin/upload.php | 1,454 ▲51 | 4.46 ▲0.24 | 109.47 ▲13.61 | 48.39 ▲3.01 |
Add/Edit Licenses /wp-admin/admin.php?page=wp_lic_mgr_addedit | 1,121 | 2.06 | 31.56 | 30.43 |
Manage Licenses /wp-admin/admin.php?page=slm-main | 1,142 | 2.03 | 29.78 | 26.42 |
Admin Functions /wp-admin/admin.php?page=wp_lic_mgr_admin_fnc | 872 | 1.99 | 27.76 | 28.02 |
Settings /wp-admin/admin.php?page=wp_lic_mgr_settings | 997 | 2.02 | 28.06 | 27.31 |
Integration Help /wp-admin/admin.php?page=lic_mgr_integration_help_page | 866 | 1.99 | 29.99 | 30.62 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
- This plugin does not fully uninstall, leaving 2 tables in the database
- wp_lic_key_tbl
- wp_lic_reg_domain_tbl
- The uninstall procedure has failed, leaving 8 options in the database
- db_upgraded
- widget_theysaidso_widget
- slm_plugin_options
- widget_recent-posts
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-comments
- wp_lic_mgr_db_version
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Please fix the following server-side errors
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=wp_lic_mgr_settings
- > Notice in wp-content/plugins/software-license-manager/menu/slm-lic-settings.php+107
Undefined index: lic_prefix
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=lic_mgr_integration_help_page
- > Notice in wp-content/plugins/software-license-manager/menu/slm-integration-help-page.php+12
Undefined index: lic_creation_secret
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=lic_mgr_integration_help_page
- > Notice in wp-content/plugins/software-license-manager/menu/slm-integration-help-page.php+13
Undefined index: lic_verification_secret
- > GET request to /wp-admin/admin.php?page=wp_lic_mgr_settings
- > Notice in wp-content/plugins/software-license-manager/menu/slm-lic-settings.php+113
Undefined index: default_max_domains
- > GET request to /wp-admin/admin.php?page=wp_lic_mgr_settings
- > Notice in wp-content/plugins/software-license-manager/menu/slm-lic-settings.php+143
Undefined index: enable_debug
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
Please take a closer look at the following
- 11× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHwp-admin/includes/class-wp-list-table.php' (include_path='.:/usr/share/php') in wp-content/plugins/software-license-manager/menu/slm-list-licenses-class.php on line 4
- > PHP Warning
require_once(ABSPATHwp-admin/includes/class-wp-list-table.php): failed to open stream: No such file or directory in wp-content/plugins/software-license-manager/menu/slm-list-licenses-class.php on line 4
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/software-license-manager/menu/slm-list-licenses-class.php on line 4
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/software-license-manager/includes/slm-third-party-integration.php:6
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHwp-admin/includes/upgrade.php' (include_path='.:/usr/share/php') in wp-content/plugins/software-license-manager/slm_installer.php on line 4
- > PHP Fatal error
Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/software-license-manager/slm_plugin_core.php:7
- > PHP Warning
require_once(ABSPATHwp-admin/includes/upgrade.php): failed to open stream: No such file or directory in wp-content/plugins/software-license-manager/slm_installer.php on line 4
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/software-license-manager/menu/slm-admin-init.php:8
- > PHP Notice
Trying to get property 'prefix' of non-object in wp-content/plugins/software-license-manager/slm_plugin_core.php on line 5
- > PHP Notice
Trying to get property 'prefix' of non-object in wp-content/plugins/software-license-manager/slm_plugin_core.php on line 6
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
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 need to be fixed:
- Tags: Too many tags (12 tag instead of maximum 10); only the first 5 tags are used in your directory listing
software-license-manager/slm_bootstrap.php 92% from 13 tests
Analyzing the main PHP file in "Software License Manager" version 4.5.5
You should first fix the following items:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("software-license-manager.php" instead of "slm_bootstrap.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
There were no executable files found in this plugin2,949 lines of code in 19 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 17 | 356 | 200 | 1,800 |
CSS | 1 | 33 | 50 | 1,142 |
JavaScript | 1 | 2 | 2 | 7 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.19 |
Average class complexity | 12.43 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 36.00 |
Average method complexity | 2.95 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 14.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 41 | |
▷ Static methods | 11 | 26.83% |
▷ Public methods | 41 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 22 | |
▷ Named functions | 22 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 23 | |
▷ Global constants | 12 | 52.17% |
▷ Class constants | 11 | 47.83% |
▷ Public constants | 11 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
PNG images were not found in this plugin