10% lh-profile-page

Code Review | LH Profile Page

WordPress plugin LH Profile Page scored 10% from 54 tests.

About plugin

  • Plugin page: lh-profile-page
  • Plugin version: 1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.3
  • WordPress version: 5.8.1
  • First release: Sep 1, 2015
  • Latest release: Sep 17, 2015
  • Number of updates: 4
  • Update frequency: every 4.0 days
  • Top authors: shawfactor (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 944 total downloads

Benchmarks

Plugin footprint 75% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Please fix the following installer errors
  • The plugin cannot be installed
    • > Notice in wp-content/plugins/lh-profile-page/lh-profile-page.php+593
    Trying to access array offset on value of type bool

Server metrics [RAM: ▼0.01MB] [CPU: ▼142.59ms] Passed 4 tests

Analyzing server-side resources used by LH Profile Page
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.65 ▼0.0718.80 ▼3.62
Dashboard /wp-admin3.13 ▲0.0847.00 ▼4.82
Posts /wp-admin/edit.php3.01 ▼0.0930.71 ▼15.25
Add New Post /wp-admin/post-new.php5.49 ▲0.0691.26 ▼546.67
Media Library /wp-admin/upload.php3.07 ▲0.0734.05 ▼0.53
LH Profile Page /wp-admin/options-general.php?page=lh-profile-page/lh-profile-page.php3.0531.24

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 3 new files
Database: no new tables, 1 new option
New WordPress options
lh_profile_page-options

Browser metrics Passed 4 tests

Checking browser requirements for LH Profile Page
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,708 ▲11215.90 ▼0.0313.44 ▲4.2848.17 ▼1.42
Dashboard /wp-admin2,975 ▲416.12 ▲0.17159.38 ▲9.38104.89 ▼6.35
Posts /wp-admin/edit.php2,744 ▲52.72 ▲0.0067.59 ▲2.4187.91 ▼9.93
Add New Post /wp-admin/post-new.php3,690 ▲2,19015.10 ▼3.43488.36 ▲93.68104.48 ▼4.56
Media Library /wp-admin/upload.php1,815 ▲85.02 ▼0.00152.16 ▼1.17113.47 ▼0.78
LH Profile Page /wp-admin/options-general.php?page=lh-profile-page/lh-profile-page.php1,0352.0952.4361.20

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The plugin uninstalled successfully, without leaving any zombie files or tables

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test

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
Almost there! Just fix the following items
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/lh-profile-page/lh-profile-page.php:631

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
6 plugin tags: meta, front-end, users, profile, frontend...

lh-profile-page/lh-profile-page.php Passed 13 tests

This is the main PHP file of "LH Profile Page" version 1.2, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
76 characters long description:
Enables a front end user profile page that can be updated from the front end

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Everything looks great! No dangerous files found in this plugin308 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP132532305
JavaScript1203

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.36
Average class complexity53.00
▷ Minimum class complexity53.00
▷ Maximum class complexity53.00
Average method complexity3.48
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods21
▷ Static methods00.00%
▷ Public methods942.86%
▷ Protected methods00.00%
▷ Private methods1257.14%
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