78% woo-elite-licenser-addon

Code Review | Elite Licenser addon-lite for WooCommerce

WordPress plugin Elite Licenser addon-lite for WooCommerce scored78%from 54 tests.

About plugin

  • Plugin page: woo-elite-license...
  • Plugin version: 1.9
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-6.2
  • WordPress version: 6.3.1
  • First release: Jul 15, 2019
  • Latest release: Apr 11, 2023
  • Number of updates: 39
  • Update frequency: every 35.3 days
  • Top authors: sarwarcse (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

200+ active /4,309 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

Server metrics [RAM: ▲0.07MB] [CPU: ▼2.85ms] Passed 4 tests

This is a short check of server-side resources used by Elite Licenser addon-lite for WooCommerce
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0738.58 ▲0.05
Dashboard /wp-admin3.37 ▲0.0746.52 ▼2.18
Posts /wp-admin/edit.php3.48 ▲0.1348.10 ▲2.24
Add New Post /wp-admin/post-new.php5.95 ▲0.0786.20 ▼10.83
Media Library /wp-admin/upload.php3.29 ▲0.0636.65 ▲1.56
Elite Licenser Settings /wp-admin/admin.php?page=woocommerce-elite-licenser-addon3.2731.00

Server storage [IO: ▲3.62MB] [DB: ▲0.00MB] Passed 3 tests

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 81 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
theysaidso_admin_options
widget_recent-posts
widget_theysaidso_widget
can_compress_scripts
db_upgraded

Browser metrics Passed 4 tests

Checking browser requirements for Elite Licenser addon-lite for WooCommerce
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,794 ▲814.32 ▼0.211.81 ▼0.0438.64 ▼2.14
Dashboard /wp-admin2,198 ▲185.53 ▼0.1382.50 ▼3.4037.99 ▼6.33
Posts /wp-admin/edit.php2,103 ▲61.96 ▼0.0235.82 ▼4.2533.18 ▼1.38
Add New Post /wp-admin/post-new.php1,531 ▲523.58 ▲0.50682.11 ▼18.9752.33 ▲1.52
Media Library /wp-admin/upload.php1,403 ▲64.16 ▼0.0195.22 ▼3.1542.02 ▼1.57
Elite Licenser Settings /wp-admin/admin.php?page=woocommerce-elite-licenser-addon1,1473.0162.3742.18

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 50% 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 take a closer look at the following
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/woo-elite-licenser-addon/inc/elite_licenser_woocommerce_base.php:16

User-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Please fix the following user-side errors
    • > GET request to /wp-admin/admin.php?page=woocommerce-elite-licenser-addon
    • > Console-api (warning) in unknown
    /wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,wp-polyfill-inert,regenerator-runtime,wp-polyfill,wp-hooks&ver=6.3.1 1:28609 "jQuery.Deferred exception: Cannot read properties of undefined (reading 'replace')" "TypeError: Cannot read properties of undefined (reading 'replace')\n at HTMLInputElement.\u003Canonymous> (/wp-content/plugins/woo-elite-licenser-addon/js/main.min.js?ver=1.3:1:25504)\n at Function.each (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,wp-polyfill-inert,regenerator-runtime,wp-polyfill,wp-hooks&ver=6.3.1:2:3129)\n at e.\u003Ccomputed>.each (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,wp-polyfill-inert,regenerator-runtime,wp-polyfill,wp-hooks&ver=6.3.1:2:1594)\n at Object.SetDependable (/wp-content/plugins/woo-elite-licenser-addon/js/main.min.js?ver=1.3:1:25309)\n at Object.Initialize (/wp-content/plugins/woo-elite-licenser-addon/js/main.min.js?ver=1.3:1:1389)\n at HTMLDocument.\u003Canonymous> (/wp-content/plugins/woo-elite-licenser-addon/js/main.min.js?ver=1.3:1:2514)\n at e (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,wp-polyfill-inert,regenerator-runtime,wp-polyfill,wp-hooks&ver=6.3.1:2:26990)\n at t (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,wp-polyfill-inert,regenerator-runtime,wp-polyfill,wp-hooks&ver=6.3.1:2:27292)" undefined
    • > GET request to /wp-admin/admin.php?page=woocommerce-elite-licenser-addon
    • > Other (warning) in unknown
    /wp-admin/admin.php?page=woocommerce-elite-licenser-addon - Failed to decode downloaded font: /wp-content/plugins/woo-elite-licenser-addon/uilib/font-awesome/4.7.0/fonts/fontawesome-webfont.woff2?v=4.7.0
    • > GET request to /wp-admin/admin.php?page=woocommerce-elite-licenser-addon
    • > Javascript (severe) in unknown
    /wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,wp-polyfill-inert,regenerator-runtime,wp-polyfill,wp-hooks&ver=6.3.1 1:28721 Uncaught TypeError: Cannot read properties of undefined (reading 'replace')
    • > GET request to /wp-admin/admin.php?page=woocommerce-elite-licenser-addon
    • > Other (warning) in unknown
    /wp-admin/admin.php?page=woocommerce-elite-licenser-addon - Failed to decode downloaded font: /wp-content/plugins/woo-elite-licenser-addon/uilib/font-awesome/4.7.0/fonts/fontawesome-webfont.woff?v=4.7.0
    • > GET request to /wp-admin/admin.php?page=woocommerce-elite-licenser-addon
    • > Other (warning) in unknown
    /wp-admin/admin.php?page=woocommerce-elite-licenser-addon - Failed to decode downloaded font: /wp-content/plugins/woo-elite-licenser-addon/uilib/font-awesome/4.7.0/fonts/fontawesome-webfont.ttf?v=4.7.0

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
6 plugin tags: license key, software license, license manager, wordpress plugin license, woocommerce...

woo-elite-licenser-addon/woocommerce-product-license-manager.php 85% from 13 tests

The primary PHP file in "Elite Licenser addon-lite for WooCommerce" version 1.9 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("woo-elite-licenser-addon.php" instead of "woocommerce-product-license-manager.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin54,448 lines of code in 67 files:
LanguageFilesBlank linesComment linesLines of code
CSS312,33322730,920
JavaScript254,3384,96619,233
SVG4002,780
PHP5168501,456
PO File122057
LESS1002

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.41
Average class complexity54.25
▷ Minimum class complexity3.00
▷ Maximum class complexity152.00
Average method complexity3.96
▷ Minimum method complexity1.00
▷ Maximum method complexity23.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes125.00%
▷ Concrete classes375.00%
▷ Final classes00.00%
Methods74
▷ Static methods22.70%
▷ Public methods7398.65%
▷ Protected methods00.00%
▷ Private methods11.35%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG images were found in this plugin