77% limelight-checkout

Code Review | Limelight Checkout

WordPress plugin Limelight Checkout scored 77% from 54 tests.

About plugin

  • Plugin page: limelight-checkout
  • Plugin version: 1.2.6
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.6.1
  • WordPress version: 5.9.2
  • First release: Aug 12, 2019
  • Latest release: Feb 10, 2021
  • Number of updates: 43
  • Update frequency: every 12.8 days
  • Top authors: limelightdept (100%)

Code review

54 tests

User reviews

1 review

Install metrics

50+ active / 1,236 total downloads

Benchmarks

Plugin footprint 82% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully

Server metrics [RAM: ▼0.47MB] [CPU: ▼300.65ms] Passed 4 tests

This is a short check of server-side resources used by Limelight Checkout
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /7.58 ▲4.0773.12 ▲18.68
Dashboard /wp-admin3.82 ▲0.4238.56 ▲5.02
Posts /wp-admin/edit.php4.11 ▲0.4743.60 ▲6.48
Add New Post /wp-admin/post-new.php3.71 ▼3.2631.55 ▼1,215.85
Media Library /wp-admin/upload.php3.77 ▲0.4829.01 ▲1.77
Limelight Logs /wp-admin/edit.php?post_type=ld-forms-log3.8129.16
Subscriptions /wp-admin/edit.php?post_type=ld-checkout-sub3.8131.41
Licenses /wp-admin/edit.php?post_type=ld-checkout-license3.8130.25
Forms /wp-admin/edit.php?post_type=ld-checkout-form3.8133.43
Products /wp-admin/edit.php?post_type=ld-checkout-product3.8132.12
Coupons /wp-admin/edit.php?post_type=ld-checkout-coupon3.8132.66
Integrations /wp-admin/edit.php?post_type=ld-checkout-order&page=ll_checkout_integrations3.9032.33
Orders /wp-admin/edit.php?post_type=ld-checkout-order3.8142.20

Server storage [IO: ▲26.63MB] [DB: ▲0.00MB] 67% from 3 tests

A short overview of filesystem and database impact
Just a few items left to fix
  • Total filesystem usage should be limited to 25MB (currently using 26.63MB)
Filesystem: 340 new files
Database: no new tables, 1 new option
New WordPress options
ll_checkout_migrations

Browser metrics Passed 4 tests

Limelight Checkout: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /4,211 ▲45635.34 ▲19.71148.47 ▲142.072.99 ▲0.47
Dashboard /wp-admin3,251 ▲39021.34 ▲15.07249.95 ▲112.00161.77 ▼52.89
Posts /wp-admin/edit.php2,965 ▲27718.85 ▲15.61186.75 ▲118.20141.72 ▼2.04
Add New Post /wp-admin/post-new.php2,222 ▲50634.66 ▲13.93587.70 ▲101.72160.45 ▼2.44
Media Library /wp-admin/upload.php1,978 ▲28020.97 ▲15.43263.26 ▲119.49191.97 ▼1.38
Limelight Logs /wp-admin/edit.php?post_type=ld-forms-log1,66718.81181.05113.02
Subscriptions /wp-admin/edit.php?post_type=ld-checkout-sub1,70118.82180.46113.46
Licenses /wp-admin/edit.php?post_type=ld-checkout-license1,77818.82181.37120.72
Forms /wp-admin/edit.php?post_type=ld-checkout-form1,69218.89182.11112.41
Products /wp-admin/edit.php?post_type=ld-checkout-product1,60418.81183.33116.52
Coupons /wp-admin/edit.php?post_type=ld-checkout-coupon1,67418.74180.24110.67
Integrations /wp-admin/edit.php?post_type=ld-checkout-order&page=ll_checkout_integrations1,61719.90204.96110.13
Orders /wp-admin/edit.php?post_type=ld-checkout-order1,67318.81181.51112.57

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 1 option in the database
    • ll_checkout_migrations

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, 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
  • 10× PHP files output text when accessed directly:
    • > /wp-content/plugins/limelight-checkout/vendor/limelight/forms/views/admin/builder.php
    • > /wp-content/plugins/limelight-checkout/vendor/limelight/forms/views/admin/options.php
    • > /wp-content/plugins/limelight-checkout/vendor/limelight/forms/views/admin/events.php
    • > /wp-content/plugins/limelight-checkout/vendor/limelight/forms/views/public/form.php
    • > /wp-content/plugins/limelight-checkout/views/products.php
    • > /wp-content/plugins/limelight-checkout/vendor/limelight/forms/views/admin/meta.php
    • > /wp-content/plugins/limelight-checkout/vendor/limelight/forms/views/admin/layout.php
    • > /wp-content/plugins/limelight-checkout/vendor/limelight/forms/views/admin/settings.php
    • > /wp-content/plugins/limelight-checkout/views/account.php
    • > /wp-content/plugins/limelight-checkout/vendor/limelight/forms/views/admin/styles.php
  • 79× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'Limelight\\Forms\\Elements\\Element' not found in wp-content/plugins/limelight-checkout/vendor/limelight/forms/app/Elements/Tab.php:6
    • > PHP Fatal error
      Uncaught Error: Class 'Limelight\\Forms\\Elements\\Element' not found in wp-content/plugins/limelight-checkout/vendor/limelight/forms/app/Elements/AccordionItem.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'Limelight\\Forms\\Elements\\Element' not found in wp-content/plugins/limelight-checkout/vendor/limelight/forms/app/Elements/Group.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'Limelight\\Forms\\Events\\Event' not found in wp-content/plugins/limelight-checkout/vendor/limelight/forms/app/Events/WPLogin.php:9
    • > PHP Fatal error
      Uncaught Error: Class 'Limelight\\Forms\\Elements\\ComboBox' not found in wp-content/plugins/limelight-checkout/vendor/limelight/forms/app/Elements/FontSelect.php:6
    • > PHP Fatal error
      Uncaught Error: Class 'Limelight\\Forms\\Events\\Event' not found in wp-content/plugins/limelight-checkout/vendor/limelight/forms/app/Events/Mail.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'Limelight\\Forms\\Elements\\Element' not found in wp-content/plugins/limelight-checkout/vendor/limelight/forms/app/Elements/ComboBox.php:5
    • > PHP Fatal error
      Uncaught Error: Class 'Limelight\\Forms\\Events\\Event' not found in wp-content/plugins/limelight-checkout/app/Events/ApplyCoupon.php:11
    • > PHP Fatal error
      Uncaught Error: Class 'Limelight\\Forms\\Events\\Event' not found in wp-content/plugins/limelight-checkout/vendor/limelight/forms/app/Events/Custom.php:9
    • > PHP Fatal error
      Uncaught Error: Class 'Limelight\\Forms\\Elements\\Group' not found in wp-content/plugins/limelight-checkout/app/Elements/Coupon.php:7

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that require attention:
  • Donate link: Invalid URI found ("")
You can look at the official readme.txt

limelight-checkout/index.php 85% from 13 tests

The main PHP script in "Limelight Checkout" version 1.2.6 is automatically included on every request by WordPress
Please take the time to fix the following:
  • Git Repository: Please remove the Git repository from this plugin
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("limelight-checkout.php" instead of "index.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
No dangerous file extensions were detected119,933 lines of code in 271 files:
LanguageFilesBlank linesComment linesLines of code
PHP1604,2563,22342,778
JSON110029,777
JavaScript263,8901,76128,490
SVG60013,815
Vuejs Component55530172,727
Sass521262,302
Markdown416038
CSS40346

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.34
Average class complexity13.12
▷ Minimum class complexity1.00
▷ Maximum class complexity162.00
Average method complexity3.31
▷ Minimum method complexity1.00
▷ Maximum method complexity34.00
Code structure
Namespaces20
Interfaces0
Traits4
Classes120
▷ Abstract classes10.83%
▷ Concrete classes11999.17%
▷ Final classes43.36%
Methods633
▷ Static methods26441.71%
▷ Public methods56388.94%
▷ Protected methods00.00%
▷ Private methods7011.06%
Functions123
▷ Named functions11291.06%
▷ Anonymous functions118.94%
Constants20
▷ Global constants1470.00%
▷ Class constants630.00%
▷ Public constants6100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

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