94% lh-logged-in-static-frontpage

Code Review | LH Logged In Static Frontpage

WordPress plugin LH Logged In Static Frontpage scored 94% from 54 tests.

About plugin

  • Plugin page: lh-logged-in-stat...
  • Plugin version: 1.02
  • PHP version: 7.4.16
  • WordPress version: 5.8.1
  • First release: Jul 23, 2016
  • Latest release: Dec 16, 2017
  • Number of updates: 5
  • Update frequency: every 101.2 days
  • Top authors: shawfactor (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active / 887 total downloads

Benchmarks

Plugin footprint Passed 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.01MB] [CPU: ▼133.88ms] Passed 4 tests

Analyzing server-side resources used by LH Logged In Static Frontpage
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.84 ▲0.1234.16 ▲11.75
Dashboard /wp-admin3.07 ▲0.0249.14 ▲9.14
Posts /wp-admin/edit.php3.13 ▲0.0243.42 ▼2.12
Add New Post /wp-admin/post-new.php5.44 ▲0.0192.75 ▼536.29
Media Library /wp-admin/upload.php3.02 ▲0.0131.44 ▼6.24

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 2 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Checking browser requirements for LH Logged In Static Frontpage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,703 ▲10715.83 ▲0.2910.97 ▲1.3744.97 ▲1.41
Dashboard /wp-admin2,970 ▲366.06 ▲0.12130.71 ▼5.74110.32 ▲3.47
Posts /wp-admin/edit.php2,739 ▲32.68 ▼0.0160.52 ▼1.9482.69 ▼10.37
Add New Post /wp-admin/post-new.php1,870 ▲37019.49 ▲0.76371.42 ▼3.74104.06 ▼5.69
Media Library /wp-admin/upload.php1,807 ▼05.00 ▼0.05166.83 ▲25.52114.04 ▼9.08

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
Uninstaller ran successfully

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

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
Please fix the following
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/lh-logged-in-static-frontpage/lh-logged-in-static-frontpage.php:187

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)
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that require attention:
  • Requires at least: Invalid plugin version format
The official readme.txt is a good inspiration

lh-logged-in-static-frontpage/lh-logged-in-static-frontpage.php Passed 13 tests

The entry point to "LH Logged In Static Frontpage" version 1.02 is a PHP file that has certain tags in its header comment area
51 characters long description:
Adds site specific content for your WordPress theme

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin106 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1898106

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.64
Average class complexity18.00
▷ Minimum class complexity18.00
▷ Maximum class complexity18.00
Average method complexity2.89
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods9
▷ Static methods00.00%
▷ Public methods9100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
There are no PNG files in this plugin