78% lh-signing

Code Review | LH Signing

WordPress plugin LH Signing scored78%from 54 tests.

About plugin

  • Plugin page: lh-signing
  • Plugin version: 2.83
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.8
  • WordPress version: 6.3.1
  • First release: Feb 11, 2016
  • Latest release: Aug 4, 2017
  • Number of updates: 49
  • Update frequency: every 48.3 days
  • Top authors: shawfactor (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

80+ active /4,952 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.26MB] [CPU: ▼6.24ms] Passed 4 tests

Analyzing server-side resources used by LH Signing
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.73 ▲0.2737.89 ▼2.68
Dashboard /wp-admin3.57 ▲0.2348.93 ▼9.86
Posts /wp-admin/edit.php3.69 ▲0.3341.07 ▼0.94
Add New Post /wp-admin/post-new.php6.15 ▲0.2792.63 ▼11.49
Media Library /wp-admin/upload.php3.49 ▲0.2734.81 ▲1.18
Signing Options /wp-admin/options-general.php?page=lh-signing/lh-signing.php3.4630.56

Server storage [IO: ▲0.08MB] [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: 12 new files
Database: no new tables, 7 new options
New WordPress options
widget_theysaidso_widget
can_compress_scripts
db_upgraded
widget_recent-comments
widget_recent-posts
widget_lh_signing_widget
theysaidso_admin_options

Browser metrics Passed 4 tests

A check of browser resources used by LH Signing
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,829 ▲8313.55 ▼1.041.59 ▼0.1337.44 ▼4.97
Dashboard /wp-admin2,207 ▲165.80 ▲0.9397.58 ▼3.4336.64 ▼1.61
Posts /wp-admin/edit.php2,093 ▲42.16 ▲0.1240.05 ▼1.2036.75 ▲3.01
Add New Post /wp-admin/post-new.php1,536 ▼623.19 ▲4.99636.53 ▲12.1553.78 ▼12.14
Media Library /wp-admin/upload.php1,386 ▼54.21 ▲0.0295.90 ▼4.3740.55 ▼3.78
Signing Options /wp-admin/options-general.php?page=lh-signing/lh-signing.php7952.0325.9126.26

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • Zombie WordPress options were found after uninstall: 7 options
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options
    • widget_lh_signing_widget
    • widget_theysaidso_widget
    • widget_recent-comments

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
These server-side errors were triggered
  • 4 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=lh-signing/lh-signing.php
    • > Notice in wp-content/plugins/lh-signing/partials/option-settings.php+11
    Trying to access array offset on value of type bool

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
The following issues need your attention
  • 8× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/lh-signing/partials/confirmed_email_message_metabox_content-output.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/lh-signing/lh-signing.php:2142
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/lh-signing/partials/initial_form_metabox_content-output.php:5
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/lh-signing/partials/email_message_metabox_content-output.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_editor() in wp-content/plugins/lh-signing/partials/confirmed_message_metabox_content-output.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_editor() in wp-content/plugins/lh-signing/partials/unconfirmed_message_metabox_content-output.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/lh-signing/partials/option-settings.php:1
    • > PHP Fatal error
      Uncaught Error: Call to undefined function language_attributes() in wp-content/plugins/lh-signing/lh_signing-template.php:2

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected

Optimizations

Plugin configuration 97% 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
These attributes need your attention:
  • Tags: You are using too many tags: 13 tag instead of maximum 10
You can take inspiration from this readme.txt

lh-signing/lh-signing.php Passed 13 tests

"LH Signing" version 2.83's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
65 characters long description:
Adds signing functionality, create petitions, validated lists etc

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
Everything looks great! No dangerous files found in this plugin1,515 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code
PHP101,3943271,506
JavaScript1809

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.31
Average class complexity55.25
▷ Minimum class complexity3.00
▷ Maximum class complexity153.00
Average method complexity3.24
▷ Minimum method complexity1.00
▷ Maximum method complexity38.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods97
▷ Static methods22.06%
▷ Public methods5253.61%
▷ Protected methods00.00%
▷ Private methods4546.39%
Functions1
▷ Named functions1100.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
PNG images were not found in this plugin