89% learning-objects-lms

Code Review | Learning Objects LMS

WordPress plugin Learning Objects LMS scored89%from 54 tests.

About plugin

  • Plugin page: learning-objects-lms
  • Plugin version: 1.2.3
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.8-6.1
  • WordPress version: 6.3.1
  • First release: Jul 2, 2021
  • Latest release: Jan 26, 2023
  • Number of updates: 5
  • Update frequency: every 114.8 days
  • Top authors: qltechsrl (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /592 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.11MB] [CPU: ▼2.92ms] Passed 4 tests

This is a short check of server-side resources used by Learning Objects LMS
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.59 ▲0.1342.17 ▼1.95
Dashboard /wp-admin3.43 ▲0.0852.33 ▼11.54
Posts /wp-admin/edit.php3.54 ▲0.1851.01 ▼1.33
Add New Post /wp-admin/post-new.php6.01 ▲0.1298.29 ▲7.18
Media Library /wp-admin/upload.php3.35 ▲0.1238.80 ▲3.13
Configurazione Learning Objects /wp-admin/options-general.php?page=wcloi_config_wclo_integration3.3135.22

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 15 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-comments
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-posts
can_compress_scripts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Learning Objects LMS
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,821 ▲6014.23 ▼0.431.81 ▼0.1743.02 ▼0.11
Dashboard /wp-admin2,221 ▲445.55 ▼0.0386.87 ▼10.6038.19 ▼2.78
Posts /wp-admin/edit.php2,133 ▲302.17 ▲0.1637.91 ▼5.8835.22 ▼4.28
Add New Post /wp-admin/post-new.php1,547 ▲2123.06 ▼0.05684.85 ▲62.9865.82 ▲15.16
Media Library /wp-admin/upload.php1,435 ▲354.18 ▲0.05110.21 ▲0.3747.93 ▲2.10
Configurazione Learning Objects /wp-admin/options-general.php?page=wcloi_config_wclo_integration8542.1524.2630.39

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

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

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration 93% 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
6 plugin tags: learning management system, education, lms, course, woocommerce lms...

learning-objects-lms/learning-objects-lms.php 85% from 13 tests

"Learning Objects LMS" version 1.2.3's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
  • Description: The description should be shorter than 140 characters (currently 172 characters long)
  • Requires at least: Required version must be the same as the one declared in readme.txt ("5.6" instead of "4.8")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin826 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
PHP6188127571
PO File495102255

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.31
Average class complexity12.00
▷ Minimum class complexity12.00
▷ Maximum class complexity12.00
Average method complexity2.57
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods7
▷ Static methods00.00%
▷ Public methods7100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions18
▷ Named functions18100.00%
▷ Anonymous functions00.00%
Constants9
▷ Global constants9100.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
There are no PNG files in this plugin