82% limelight-forms

Code Review | Limelight Forms

WordPress plugin Limelight Forms scored 82% from 54 tests.

About plugin

  • Plugin page: limelight-forms
  • Plugin version: 1.2.5
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.6.1
  • WordPress version: 5.9.2
  • First release: Apr 18, 2019
  • Latest release: Feb 10, 2021
  • Number of updates: 50
  • Update frequency: every 15.3 days
  • Top authors: limelightdept (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active / 1,327 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully

Server metrics [RAM: ▲0.83MB] [CPU: ▼294.57ms] 75% from 4 tests

This is a short check of server-side resources used by Limelight Forms
Please have a look at the following items
  • CPU: You should keep total CPU usage under 500.00ms (currently 762.30ms on /wp-admin/post-new.php?post_type=ll-form)
PageMemory (MB)CPU Time (ms)
Home /4.16 ▲0.6560.08 ▲1.50
Dashboard /wp-admin4.31 ▲0.9042.93 ▲8.97
Posts /wp-admin/edit.php4.53 ▲0.8947.35 ▼24.77
Add New Post /wp-admin/post-new.php7.84 ▲0.87100.96 ▼1,163.97
Media Library /wp-admin/upload.php4.26 ▲0.9639.11 ▲12.21
Limelight Logs /wp-admin/edit.php?post_type=ld-forms-log4.3036.15
Integrations /wp-admin/edit.php?post_type=ll-form&page=ll_form_integrations4.1832.88
Add New /wp-admin/post-new.php?post_type=ll-form8.23762.30
Form Submissions /wp-admin/edit.php?post_type=ll-form-submission4.3030.28
All Limelight Forms /wp-admin/edit.php?post_type=ll-form4.3036.49

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 273 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Limelight Forms: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /4,138 ▲41534.79 ▲19.88130.11 ▲124.392.17 ▼0.33
Dashboard /wp-admin3,230 ▲36921.40 ▲15.17238.57 ▲102.92169.14 ▼2.30
Posts /wp-admin/edit.php2,900 ▲20618.83 ▲15.60205.19 ▲139.47143.13 ▼4.68
Add New Post /wp-admin/post-new.php2,153 ▲40134.36 ▲12.76580.16 ▲114.53168.14 ▼33.72
Media Library /wp-admin/upload.php1,944 ▲25020.98 ▲15.46270.68 ▲71.62191.56 ▼1.69
Limelight Logs /wp-admin/edit.php?post_type=ld-forms-log1,56818.81181.35115.98
Integrations /wp-admin/edit.php?post_type=ll-form&page=ll_form_integrations92718.02203.13113.19
Add New /wp-admin/post-new.php?post_type=ll-form6,39749.51757.45210.32
Form Submissions /wp-admin/edit.php?post_type=ll-form-submission1,63518.79178.73110.82
All Limelight Forms /wp-admin/edit.php?post_type=ll-form1,59018.80178.42109.09

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Uninstall script ran successfully

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Please fix the following server-side errors
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/post-new.php?post_type=ll-form
    • > Notice in wp-content/plugins/limelight-forms/vendor/limelight/forms/app/Elements/Recaptcha.php+68
    Trying to access array offset on value of type bool

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
The following issues need your attention
  • 8× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/limelight-forms/vendor/limelight/forms/views/admin/styles.php
    • > /wp-content/plugins/limelight-forms/vendor/limelight/forms/views/admin/builder.php
    • > /wp-content/plugins/limelight-forms/vendor/limelight/forms/views/public/form.php
    • > /wp-content/plugins/limelight-forms/vendor/limelight/forms/views/admin/settings.php
    • > /wp-content/plugins/limelight-forms/vendor/limelight/forms/views/admin/events.php
    • > /wp-content/plugins/limelight-forms/vendor/limelight/forms/views/admin/meta.php
    • > /wp-content/plugins/limelight-forms/vendor/limelight/forms/views/admin/options.php
    • > /wp-content/plugins/limelight-forms/vendor/limelight/forms/views/admin/layout.php
  • 61× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
    • > PHP Notice
      Undefined variable: id in wp-content/plugins/limelight-forms/vendor/limelight/forms/views/admin/meta.php on line 1
    • > PHP Fatal error
      Uncaught Error: Class 'Limelight\\Forms\\Elements\\Element' not found in wp-content/plugins/limelight-forms/vendor/limelight/forms/app/Elements/BoxModel.php:5
    • > PHP Fatal error
      Uncaught Error: Class 'Limelight\\Forms\\Events\\Event' not found in wp-content/plugins/limelight-forms/vendor/limelight/forms/app/Events/Redirect.php:9
    • > PHP Fatal error
      Uncaught Error: Class 'Limelight\\Forms\\Elements\\Template' not found in wp-content/plugins/limelight-forms/vendor/limelight/forms/app/Templates/WPRegister.php:7
    • > PHP Notice
      Undefined variable: form in wp-content/plugins/limelight-forms/vendor/limelight/forms/views/admin/options.php on line 4
    • > PHP Fatal error
      Uncaught Error: Class 'Limelight\\Forms\\Elements\\Element' not found in wp-content/plugins/limelight-forms/vendor/limelight/forms/app/Elements/Media.php:5
    • > PHP Fatal error
      Uncaught Error: Class 'Limelight\\Forms\\Elements\\Element' not found in wp-content/plugins/limelight-forms/vendor/limelight/forms/app/Elements/Template.php:7
    • > PHP Notice
      Undefined variable: instanceID in wp-content/plugins/limelight-forms/vendor/limelight/forms/views/admin/meta.php on line 1
    • > PHP Fatal error
      Uncaught Error: Class 'Limelight\\Forms\\Events\\Event' not found in wp-content/plugins/limelight-forms/vendor/limelight/forms/app/Events/Custom.php:9
    • > PHP Fatal error
      Uncaught Error: Class 'Limelight\\Forms\\Elements\\Element' not found in wp-content/plugins/limelight-forms/vendor/limelight/forms/app/Elements/Button.php:7

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 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that require attention:
  • Donate link: Invalid URI ("")
The official readme.txt might help

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

The principal PHP file in "Limelight Forms" v. 1.2.5 is loaded by WordPress automatically on each request
You should first fix the following items:
  • Git Repository: An alternative Git repository was detected
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("limelight-forms.php" instead of "index.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 plugin109,607 lines of code in 219 files:
LanguageFilesBlank linesComment linesLines of code
PHP1152,6032,53036,809
JSON100029,692
JavaScript243,8901,76128,488
SVG3009,546
Vuejs Component55530172,727
Sass521262,302
Markdown517039
CSS20344

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.35
Average class complexity14.04
▷ Minimum class complexity1.00
▷ Maximum class complexity162.00
Average method complexity3.40
▷ Minimum method complexity1.00
▷ Maximum method complexity24.00
Code structure
Namespaces15
Interfaces0
Traits1
Classes80
▷ Abstract classes11.25%
▷ Concrete classes7998.75%
▷ Final classes45.06%
Methods429
▷ Static methods15435.90%
▷ Public methods38088.58%
▷ Protected methods00.00%
▷ Private methods4911.42%
Functions122
▷ Named functions11291.80%
▷ Anonymous functions108.20%
Constants20
▷ Global constants1470.00%
▷ Class constants630.00%
▷ Public constants6100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
PNG images were not found in this plugin