78% lamboz-registration-link-on-checkout-page

Code Review | Lamboz Registration Link On Checkout Page

WordPress plugin Lamboz Registration Link On Checkout Page scored78%from 54 tests.

About plugin

  • Plugin page: lamboz-registrati...
  • Plugin version: 1.0
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.3.2
  • WordPress version: 6.3.1
  • First release: Dec 24, 2019
  • Latest release: Dec 24, 2019
  • Number of updates: 3
  • Update frequency: every 0.3 days
  • Top authors: lambozgroup (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /412 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼2.28ms] Passed 4 tests

This is a short check of server-side resources used by Lamboz Registration Link On Checkout Page
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0140.58 ▲1.43
Dashboard /wp-admin3.32 ▲0.0247.79 ▼6.19
Posts /wp-admin/edit.php3.38 ▲0.0251.80 ▲2.58
Add New Post /wp-admin/post-new.php5.90 ▲0.0298.30 ▼6.94
Media Library /wp-admin/upload.php3.25 ▲0.0238.24 ▲4.35
Lamboz Custom Registration Link /wp-admin/options-general.php?page=lamboz-registration-link-on-checkout3.2134.90

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 6 new files
Database: no new tables, 9 new options
New WordPress options
db_upgraded
widget_recent-posts
lrlwc_registration_question
lrlwc_registration_title
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-comments
lrlwc_registration_link
can_compress_scripts

Browser metrics Passed 4 tests

Checking browser requirements for Lamboz Registration Link On Checkout Page
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲4314.30 ▲0.031.70 ▲0.0341.22 ▼2.44
Dashboard /wp-admin2,210 ▲365.55 ▼0.1289.71 ▼4.3142.35 ▼1.93
Posts /wp-admin/edit.php2,115 ▲121.99 ▼0.0540.00 ▼1.9737.48 ▲1.03
Add New Post /wp-admin/post-new.php1,540 ▲1422.92 ▼0.87680.47 ▼12.3253.74 ▼2.42
Media Library /wp-admin/upload.php1,415 ▲214.22 ▼0.05104.88 ▲2.4346.06 ▼2.21
Lamboz Custom Registration Link /wp-admin/options-general.php?page=lamboz-registration-link-on-checkout8962.3127.1634.96

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • Zombie WordPress options were found after uninstall: 9 options
    • widget_theysaidso_widget
    • can_compress_scripts
    • lrlwc_registration_link
    • theysaidso_admin_options
    • lrlwc_registration_question
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded
    • lrlwc_registration_title

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
These errors were triggered by the plugin
    • > GET request to /wp-admin/options-general.php?page=lamboz-registration-link-on-checkout
    • > User deprecated in wp-includes/functions.php+5463
    Function screen_icon is deprecated since version 3.8.0 with no alternative available.
    • > GET request to /wp-admin/options-general.php?page=lamboz-registration-link-on-checkout
    • > User deprecated in wp-includes/functions.php+5463
    Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The following issues need your attention
  • 3× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/lamboz-registration-link-on-checkout-page/includes/class-lamboz-checkout-link.php:7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function screen_icon() in wp-content/plugins/lamboz-registration-link-on-checkout-page/includes/lamboz-admin-menu.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/lamboz-registration-link-on-checkout-page/lamboz-registration-link-on-checkout-page.php:22

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
7 plugin tags: woocommerce, customization, wordpress, custom registration link, registration...

lamboz-registration-link-on-checkout-page/lamboz-registration-link-on-checkout-page.php 92% from 13 tests

The primary PHP file in "Lamboz Registration Link On Checkout Page" version 1.0 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug

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 plugin137 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP31221114
CSS10023

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.21
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
includes/img/paypal.png3.53KB2.19KB▼ 37.94%