84% lh-archived-post-status

Code Review | LH Archived Post Status

WordPress plugin LH Archived Post Status scored84%from 54 tests.

About plugin

  • Plugin page: lh-archived-post-...
  • Plugin version: 3.10
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.3
  • WordPress version: 6.3.1
  • First release: Feb 17, 2015
  • Latest release: Oct 11, 2023
  • Number of updates: 36
  • Update frequency: every 87.8 days
  • Top authors: shawfactor (100%)

Code review

54 tests

User reviews

13 reviews

Install metrics

3,000+ active /29,356 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.37MB] [CPU: ▼4.80ms] Passed 4 tests

A check of server-side resources used by LH Archived Post Status
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.82 ▲0.3542.28 ▲0.77
Dashboard /wp-admin3.75 ▲0.4050.34 ▼15.03
Posts /wp-admin/edit.php3.80 ▲0.4548.71 ▲5.38
Add New Post /wp-admin/post-new.php6.24 ▲0.3684.65 ▼10.32
Media Library /wp-admin/upload.php3.61 ▲0.3837.67 ▲6.53

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 42 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
can_compress_scripts
widget_recent-comments
widget_recent-posts
db_upgraded
theysaidso_admin_options

Browser metrics Passed 4 tests

LH Archived Post Status: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.35 ▲0.111.79 ▲0.0944.57 ▲0.87
Dashboard /wp-admin2,195 ▲155.55 ▼0.1283.04 ▼3.4437.59 ▼2.87
Posts /wp-admin/edit.php2,155 ▲732.05 ▲0.0737.11 ▲1.1933.43 ▼2.58
Add New Post /wp-admin/post-new.php6,487 ▲4,95928.38 ▲5.16964.59 ▲346.8153.29 ▲3.10
Media Library /wp-admin/upload.php1,394 ▼64.18 ▲0.0197.45 ▼1.7643.36 ▲1.57

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, 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 esc_html() in wp-content/plugins/lh-archived-post-status/partials/option-settings.php:1

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)
There were no browser issues found

Optimizations

Plugin configuration 96% from 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
5 plugin tags: workflow, pages, posts, admin, status

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

Analyzing the main PHP file in "LH Archived Post Status" version 3.10
It is important to fix the following:
  • Text Domain: Please use dashes and lowercase characters for text domains

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Success! There were no dangerous files found in this plugin2,886 lines of code in 29 files:
LanguageFilesBlank linesComment linesLines of code
PHP88598251,652
PO File6332425797
JavaScript1010544377
Markdown125056
JSON3003
CSS1001

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.46
Average class complexity51.00
▷ Minimum class complexity7.00
▷ Maximum class complexity103.00
Average method complexity3.29
▷ Minimum method complexity1.00
▷ Maximum method complexity16.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes125.00%
Methods88
▷ Static methods2730.68%
▷ Public methods8394.32%
▷ Protected methods00.00%
▷ Private methods55.68%
Functions26
▷ Named functions26100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
PNG images were not found in this plugin