90% sensei-course-progress

Code Review | Sensei LMS Course Progress

WordPress plugin Sensei LMS Course Progress scored90%from 54 tests.

About plugin

  • Plugin page: sensei-course-pro...
  • Plugin version: 2.0.4
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.6-5.8
  • WordPress version: 6.3.1
  • First release: Nov 22, 2019
  • Latest release: Oct 19, 2021
  • Number of updates: 11
  • Update frequency: every 63.4 days
  • Top authors: donnapep (63.64%)renathoc (27.27%)nurguly (18.18%)gikaragia (18.18%)

Code review

54 tests

User reviews

1 review

Install metrics

5,000+ active /49,110 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 successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.04MB] [CPU: ▼2.69ms] Passed 4 tests

Server-side resources used by Sensei LMS Course Progress
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0442.56 ▼0.81
Dashboard /wp-admin3.34 ▲0.0443.65 ▼5.95
Posts /wp-admin/edit.php3.45 ▲0.1046.13 ▲1.84
Add New Post /wp-admin/post-new.php5.92 ▲0.0478.82 ▼2.25
Media Library /wp-admin/upload.php3.26 ▲0.0336.75 ▼1.75

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 15 new files
Database: no new tables, 7 new options
New WordPress options
can_compress_scripts
widget_recent-comments
theysaidso_admin_options
sensei_course_progress_version
widget_recent-posts
db_upgraded
widget_theysaidso_widget

Browser metrics Passed 4 tests

A check of browser resources used by Sensei LMS Course Progress
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,812 ▲5513.32 ▼1.054.15 ▲2.0541.91 ▼2.87
Dashboard /wp-admin2,212 ▲385.80 ▲0.91101.75 ▼20.2843.12 ▼14.05
Posts /wp-admin/edit.php2,092 ▲31.99 ▼0.0536.61 ▲1.2635.21 ▼0.46
Add New Post /wp-admin/post-new.php1,533 ▼123.56 ▲0.15667.69 ▼40.1452.57 ▼5.68
Media Library /wp-admin/upload.php1,391 ▼04.18 ▼0.05108.75 ▲11.3947.70 ▲0.82

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 did not uninstall successfully, leaving 7 options in the database
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded
    • sensei_course_progress_version
    • widget_theysaidso_widget
    • can_compress_scripts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Good news, no errors were detected

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
3 plugin tags: widget, sensei lms, course progress

sensei-course-progress/sensei-course-progress.php Passed 13 tests

"Sensei LMS Course Progress" version 2.0.4's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
115 characters long description:
Sensei LMS extension that displays the student's progress in the current course/module in a widget on lesson pages.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
No dangerous file extensions were detected727 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
PHP6154278621
PO File22437105
CSS1001

PHP code Passed 2 tests

A short review 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.32
Average class complexity19.75
▷ Minimum class complexity3.00
▷ Maximum class complexity33.00
Average method complexity3.64
▷ Minimum method complexity1.00
▷ Maximum method complexity29.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods29
▷ Static methods931.03%
▷ Public methods2482.76%
▷ Protected methods00.00%
▷ Private methods517.24%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants5
▷ Global constants360.00%
▷ Class constants240.00%
▷ Public constants2100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
There were not PNG files found in your plugin