89% progress-bar-correction-for-lifterlms

Code Review | Progress Bar Correction For LifterLMS

WordPress plugin Progress Bar Correction For LifterLMS scored89%from 54 tests.

About plugin

  • Plugin page: progress-bar-corr...
  • Plugin version: 0.0.2
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-6.3
  • WordPress version: 6.3.1
  • First release: Jan 25, 2023
  • Latest release: Aug 9, 2023
  • Number of updates: 9
  • Update frequency: every 21.8 days
  • Top authors: giuse (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /493 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼8.56ms] Passed 4 tests

Server-side resources used by Progress Bar Correction For LifterLMS
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0034.12 ▼10.88
Dashboard /wp-admin3.31 ▲0.0046.60 ▼9.34
Posts /wp-admin/edit.php3.36 ▲0.0045.25 ▼4.39
Add New Post /wp-admin/post-new.php5.89 ▲0.0084.58 ▼9.64
Media Library /wp-admin/upload.php3.23 ▲0.0033.40 ▼1.44

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Progress Bar Correction For LifterLMS
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.38 ▲0.041.61 ▼0.0738.65 ▼3.63
Dashboard /wp-admin2,195 ▲185.54 ▼0.1180.61 ▼20.3937.44 ▼7.33
Posts /wp-admin/edit.php2,100 ▼01.99 ▲0.0434.36 ▼0.4234.95 ▼2.48
Add New Post /wp-admin/post-new.php1,526 ▼023.26 ▲0.13660.99 ▼14.0178.17 ▲25.33
Media Library /wp-admin/upload.php1,400 ▼34.20 ▼0.0196.55 ▲0.3043.85 ▲1.24

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded

Smoke tests Passed 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 Passed 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
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration 93% 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
2 plugin tags: lifterlms, progress bar

progress-bar-correction-for-lifterlms/llms-progress-bar-correction.php 85% from 13 tests

The main PHP script in "Progress Bar Correction For LifterLMS" version 0.0.2 is automatically included on every request by WordPress
The following require your attention:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("progress-bar-correction-for-lifterlms.php" instead of "llms-progress-bar-correction.php")
  • Domain Path: The domain path folder was not found ("/languages/")

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
Good job! No executable or dangerous file extensions detected25 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP221825

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code1.50
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions00.00%
▷ Anonymous functions1100.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
PNG images were not found in this plugin