84% lh-signup

Code Review | LH Signup

WordPress plugin LH Signup scored84%from 54 tests.

About plugin

  • Plugin page: lh-signup
  • Plugin version: 1.16
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.1
  • WordPress version: 6.3.1
  • First release: Jan 30, 2016
  • Latest release: Nov 29, 2022
  • Number of updates: 21
  • Update frequency: every 118.9 days
  • Top authors: shawfactor (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,294 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.21MB] [CPU: ▼1.60ms] Passed 4 tests

Server-side resources used by LH Signup
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.72 ▲0.2146.07 ▲4.86
Dashboard /wp-admin3.55 ▲0.2053.50 ▼0.48
Posts /wp-admin/edit.php3.66 ▲0.2648.66 ▼4.30
Add New Post /wp-admin/post-new.php6.13 ▲0.2087.47 ▼6.47
Media Library /wp-admin/upload.php3.47 ▲0.2038.87 ▲4.84

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 18 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
theysaidso_admin_options
widget_recent-posts
widget_theysaidso_widget
db_upgraded
can_compress_scripts

Browser metrics Passed 4 tests

An overview of browser requirements for LH Signup
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,791 ▲3014.31 ▼0.041.68 ▲0.0143.47 ▼1.36
Dashboard /wp-admin2,198 ▲185.63 ▼0.0297.84 ▲10.7343.56 ▲0.66
Posts /wp-admin/edit.php2,100 ▼31.94 ▼0.0734.71 ▼7.1936.09 ▼2.66
Add New Post /wp-admin/post-new.php1,526 ▼223.30 ▲0.39644.90 ▲23.1961.08 ▲5.82
Media Library /wp-admin/upload.php1,400 ▼04.18 ▲0.0197.96 ▼36.3243.86 ▼13.26

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
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following items
  • 5× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/lh-signup/partials/settings.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/lh-signup/lib/lang.php:8
    • > PHP Fatal error
      Uncaught Error: Cannot access self:: when no class scope is active in wp-content/plugins/lh-signup/partials/shortcode.php:1
    • > PHP Fatal error
      Uncaught Error: Cannot access self:: when no class scope is active in wp-content/plugins/lh-signup/templates/lh_signup-template.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/lh-signup/lib/duplicate.php:8

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
8 plugin tags: clone, network, copy site, copier, copy...

lh-signup/lh-signup.php 92% from 13 tests

"LH Signup" version 1.16's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
You should first fix the following items:
  • Text Domain: The text domain name must use dashes instead of underscores, and it must be lowercase

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin1,908 lines of code in 16 files:
LanguageFilesBlank linesComment linesLines of code
PHP131,1014841,834
JavaScript356674

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.35
Average class complexity37.00
▷ Minimum class complexity5.00
▷ Maximum class complexity154.00
Average method complexity3.04
▷ Minimum method complexity1.00
▷ Maximum method complexity31.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes8
▷ Abstract classes00.00%
▷ Concrete classes8100.00%
▷ Final classes00.00%
Methods137
▷ Static methods9972.26%
▷ Public methods13699.27%
▷ Protected methods00.00%
▷ Private methods10.73%
Functions1
▷ Named functions00.00%
▷ Anonymous functions1100.00%
Constants67
▷ Global constants67100.00%
▷ Class constants00.00%
▷ Public constants00.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
No PNG images were found in this plugin