90% lh-logged-in-post-status

Code Review | LH Logged In Post Status

WordPress plugin LH Logged In Post Status scored 90% from 54 tests.

About plugin

  • Plugin page: lh-logged-in-post...
  • Plugin version: 1.09
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.0
  • WordPress version: 6.3.1
  • First release: Dec 19, 2017
  • Latest release: Aug 3, 2022
  • Number of updates: 12
  • Update frequency: every 140.7 days
  • Top authors: shawfactor (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 913 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.05MB] [CPU: ▼1.00ms] Passed 4 tests

Server-side resources used by LH Logged In Post Status
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0638.76 ▼4.26
Dashboard /wp-admin3.36 ▲0.0547.06 ▼1.40
Posts /wp-admin/edit.php3.47 ▲0.1248.65 ▲2.82
Add New Post /wp-admin/post-new.php5.92 ▲0.0386.38 ▼1.02
Media Library /wp-admin/upload.php3.28 ▲0.0533.42 ▲2.68

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 32 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-posts
can_compress_scripts
widget_recent-comments
widget_theysaidso_widget
theysaidso_admin_options

Browser metrics Passed 4 tests

An overview of browser requirements for LH Logged In Post Status
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.17 ▼1.581.65 ▼0.5742.38 ▼2.75
Dashboard /wp-admin2,209 ▲215.88 ▲1.0195.76 ▼16.9637.87 ▼11.55
Posts /wp-admin/edit.php2,130 ▲412.06 ▲0.0640.71 ▲5.0534.75 ▼1.46
Add New Post /wp-admin/post-new.php1,570 ▲5722.93 ▲5.47625.15 ▼14.3369.83 ▲14.97
Media Library /wp-admin/upload.php1,385 ▼04.18 ▼0.0294.93 ▼7.7241.29 ▼0.44

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

SRP Passed 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 SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
5 plugin tags: pages, posts, admin, status, workflow

lh-logged-in-post-status/lh-logged-in-post-status.php 92% from 13 tests

The primary PHP file in "LH Logged In Post Status" version 1.09 is used by WordPress to initiate all plugin functionality
The following require your attention:
  • Text Domain: The text domain should only use lowercase characters and dashes

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
Success! There were no dangerous files found in this plugin2,224 lines of code in 22 files:
LanguageFilesBlank linesComment linesLines of code
PHP74137161,064
PO File5329425778
JavaScript79343324
Markdown125056
JSON2002

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.49
Average class complexity30.25
▷ Minimum class complexity7.00
▷ Maximum class complexity85.00
Average method complexity3.92
▷ Minimum method complexity1.00
▷ Maximum method complexity16.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes125.00%
Methods40
▷ Static methods922.50%
▷ Public methods3587.50%
▷ Protected methods00.00%
▷ Private methods512.50%
Functions23
▷ Named functions23100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There were not PNG files found in your plugin