64% elite-licenser-lite

Code Review | Elite Licenser Lite - Software License Key Manager

WordPress plugin Elite Licenser Lite - Software License Key Manager scored64%from 54 tests.

About plugin

  • Plugin page: elite-licenser-lite
  • Plugin version: 2.3
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-6.0
  • WordPress version: 6.3.1
  • First release: Mar 28, 2020
  • Latest release: Oct 11, 2022
  • Number of updates: 47
  • Update frequency: every 19.8 days
  • Top authors: sarwarcse (55.32%)appsbd (46.81%)

Code review

54 tests

User reviews

4 reviews

Install metrics

100+ active /7,584 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully

Server metrics [RAM: ▲2.16MB] [CPU: ▲5.70ms] Passed 4 tests

A check of server-side resources used by Elite Licenser Lite - Software License Key Manager
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /6.33 ▲2.8766.47 ▲16.60
Dashboard /wp-admin6.17 ▲2.8770.98 ▲15.91
Posts /wp-admin/edit.php6.22 ▲2.8673.44 ▲21.72
Add New Post /wp-admin/post-new.php5.98 ▲0.1068.16 ▼31.44
Media Library /wp-admin/upload.php6.03 ▲2.8064.68 ▲26.99

Server storage [IO: ▲7.61MB] [DB: ▲0.02MB] Passed 3 tests

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 398 new files
Database: 13 new tables, 9 new options
New tables
wp_apbd_license_type
wp_apbd_product_license
wp_apbd_email_templates
wp_apbd_request_manage
wp_apbd_apikey
wp_apbd_updateinfo
wp_apbd_ban_host
wp_apbd_client
wp_apbd_domain_log
wp_apbd_product
...
New WordPress options
widget_recent-comments
elite-licenser-lite_o_APBDLicenseSettingsLite
el_addon_last_check
can_compress_scripts
theysaidso_admin_options
widget_theysaidso_widget
db_upgraded
el_addon_info
widget_recent-posts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Elite Licenser Lite - Software License Key Manager
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,038 ▲29213.71 ▼0.705.66 ▲3.8735.05 ▼12.46
Dashboard /wp-admin2,340 ▲1524.88 ▲0.01107.68 ▼4.5244.11 ▼0.86
Posts /wp-admin/edit.php2,116 ▲272.01 ▲0.0240.13 ▲2.8535.35 ▲0.86
Add New Post /wp-admin/post-new.php1,538 ▲2417.37 ▼0.10678.35 ▲23.6854.75 ▲3.96
Media Library /wp-admin/upload.php1,415 ▲274.19 ▼0.0094.77 ▼5.5345.63 ▼0.09

Uninstaller [IO: ▲0.00MB] [DB: ▲0.02MB] 50% from 4 tests

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 13 tables in the database
    • wp_apbd_useddomain
    • wp_apbd_product_update
    • wp_apbd_email_templates
    • wp_apbd_client
    • wp_apbd_product_license
    • wp_apbd_license_type
    • wp_apbd_product
    • wp_apbd_domain_log
    • wp_apbd_ban_host
    • wp_apbd_apikey
    • ...
  • Zombie WordPress options were found after uninstall: 9 options
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-comments
    • el_addon_last_check
    • widget_theysaidso_widget
    • el_addon_info
    • elite-licenser-lite_o_APBDLicenseSettingsLite
    • widget_recent-posts
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

SRP 50% 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
  • 86× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'AppsBDModel' not found in wp-content/plugins/elite-licenser-lite/models/database/Mapbd_email_templates.php:8
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/elite-licenser-lite/views/apbdlicenselistlite/add.php:9
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/elite-licenser-lite/views/apbdproductlistlite/view.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'AppsBDModel' not found in wp-content/plugins/elite-licenser-lite/models/database/Mapbd_product_update.php:8
    • > PHP Fatal error
      Uncaught Error: Class 'APBDScriptGeneratorBase' not found in wp-content/plugins/elite-licenser-lite/libs/APBDScriptGeneratorJoomla.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'Mapbd_license_type' not found in wp-content/plugins/elite-licenser-lite/views/apbdlicensetypelite/add.php:5
    • > PHP Fatal error
      Uncaught Error: Class 'EliteLicenserLiteModule' not found in wp-content/plugins/elite-licenser-lite/modules/APBDClientLite.php:9
    • > PHP Fatal error
      Uncaught Error: Call to undefined function APBD_LoadCore() in wp-content/plugins/elite-licenser-lite/core/AppsBDModel.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_kses_no_null() in wp-content/plugins/elite-licenser-lite/template/main.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'EliteLicenserLiteModule' not found in wp-content/plugins/elite-licenser-lite/modules/APBDEmailTemplateLite.php:9

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that need to be fixed:
  • Screenshots: These screenshots need descriptions #0, #4, #5, #6, #7, #8, #9, #10, #11, #12, #13, #14 in elite-licenser-lite/assets to your readme.txt
The official readme.txt might help

elite-licenser-lite/elitelicenserlite.php 92% from 13 tests

The main PHP file in "Elite Licenser Lite - Software License Key Manager" ver. 2.3 adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("elite-licenser-lite.php" instead of "elitelicenserlite.php")

Code Analysis 5% from 3 tests

File types 0% from 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Please fix the following items
  • Do not include executable or dangerous files in your plugin
    • .app - FoxPro Application in Visual FoxPro
      • wp-content/plugins/elite-licenser-lite/sample_script/wp/base.app
      • wp-content/plugins/elite-licenser-lite/sample_script/php/example1.app
      • wp-content/plugins/elite-licenser-lite/sample_script/wp/form-header.app
      • wp-content/plugins/elite-licenser-lite/sample_script/wp/fullplugin.app
      • wp-content/plugins/elite-licenser-lite/sample_script/php/fullplugin.app
      • wp-content/plugins/elite-licenser-lite/sample_script/wp/theme/functions.app
      • wp-content/plugins/elite-licenser-lite/sample_script/wp/header.app
      • wp-content/plugins/elite-licenser-lite/sample_script/wp/plugin_or_function.app
79,794 lines of code in 338 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript1856,65210,43338,994
CSS361,95035417,627
PHP982,2571,52917,572
SVG7002,856
JSON3001,862
LESS23017456
Sass6260280
PO File1670147

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.29
Average class complexity36.52
▷ Minimum class complexity1.00
▷ Maximum class complexity363.00
Average method complexity3.25
▷ Minimum method complexity1.00
▷ Maximum method complexity74.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes54
▷ Abstract classes47.41%
▷ Concrete classes5092.59%
▷ Final classes00.00%
Methods856
▷ Static methods10912.73%
▷ Public methods82396.14%
▷ Protected methods232.69%
▷ Private methods101.17%
Functions78
▷ Named functions7393.59%
▷ Anonymous functions56.41%
Constants9
▷ Global constants111.11%
▷ Class constants888.89%
▷ Public constants8100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
7 PNG files occupy 0.04MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
uilib/grid/images/ui-icons_555555_256x240.png6.82KB4.17KB▼ 38.82%
uilib/grid/images/ui-icons_777777_256x240.png6.83KB4.17KB▼ 38.92%
images/menu_icon.png2.31KB1.71KB▼ 25.92%
uilib/grid/images/ui-icons_777620_256x240.png4.44KB4.17KB▼ 6.02%
uilib/grid/images/ui-icons_ffffff_256x240.png6.15KB4.17KB▼ 32.13%