74% flc-forma-lms-connector

Code Review | FLC forma.lms connector

WordPress plugin FLC forma.lms connector scored74%from 54 tests.

About plugin

  • Plugin page: flc-forma-lms-con...
  • Plugin version: 2.4.1
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.9.3
  • WordPress version: 6.3.1
  • First release: Jul 13, 2018
  • Latest release: Apr 20, 2022
  • Number of updates: 11
  • Update frequency: every 125.3 days
  • Top authors: jtdevel (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,071 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully

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

Analyzing server-side resources used by FLC forma.lms connector
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0644.09 ▲4.42
Dashboard /wp-admin3.42 ▲0.1255.13 ▲4.16
Posts /wp-admin/edit.php3.47 ▲0.1249.25 ▼0.00
Add New Post /wp-admin/post-new.php5.94 ▲0.0688.08 ▼12.58
Media Library /wp-admin/upload.php3.28 ▲0.0638.84 ▲4.83
Settings 1 /wp-admin/admin.php?page=flc-settings3.2632.99
Add-ons 0 /wp-admin/admin.php?page=flc-addons3.2533.25

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 20 new files
Database: no new tables, 7 new options
New WordPress options
db_upgraded
theysaidso_admin_options
widget_recent-comments
can_compress_scripts
widget_recent-posts
widget_theysaidso_widget
flc_plug-in_version

Browser metrics Passed 4 tests

Checking browser requirements for FLC forma.lms connector
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,858 ▲12314.44 ▼0.201.68 ▼0.1043.20 ▼3.94
Dashboard /wp-admin2,264 ▲735.88 ▲1.00100.18 ▼11.4842.78 ▼1.76
Posts /wp-admin/edit.php2,147 ▲552.01 ▼0.0437.07 ▼5.1935.28 ▼2.97
Add New Post /wp-admin/post-new.php1,571 ▲2923.37 ▲4.97683.07 ▲82.7865.93 ▲12.36
Media Library /wp-admin/upload.php1,443 ▲524.20 ▲0.0397.78 ▲2.6444.07 ▲2.05
Settings 1 /wp-admin/admin.php?page=flc-settings9482.0725.3530.22
Add-ons 0 /wp-admin/admin.php?page=flc-addons8692.0324.1926.28

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • Uninstall procedure had uncaught errors
    • > Notice in wp-content/plugins/flc-forma-lms-connector/includes/classes/class.ssopage.php+43
    Trying to get property 'ID' of non-object
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget

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 everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please take a closer look at the following
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Trait 'FLC_Singleton' not found in wp-content/plugins/flc-forma-lms-connector/includes/objectcache.php on line 73

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

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
9 plugin tags: lms, elearning, single-sign-on, sso, learning management system...

flc-forma-lms-connector/flc_formalms_connector.php 92% from 13 tests

The main PHP script in "FLC forma.lms connector" version 2.4.1 is automatically included on every request by WordPress
You should first fix the following items:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("flc-forma-lms-connector.php" instead of "flc_formalms_connector.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected1,267 lines of code in 18 files:
LanguageFilesBlank linesComment linesLines of code
PHP17381501,180
PO File1283587

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.30
Average class complexity10.00
▷ Minimum class complexity1.00
▷ Maximum class complexity59.00
Average method complexity2.18
▷ Minimum method complexity1.00
▷ Maximum method complexity15.00
Code structure
Namespaces0
Interfaces0
Traits1
Classes13
▷ Abstract classes17.69%
▷ Concrete classes1292.31%
▷ Final classes00.00%
Methods98
▷ Static methods1313.27%
▷ Public methods8485.71%
▷ Protected methods88.16%
▷ Private methods66.12%
Functions14
▷ Named functions857.14%
▷ Anonymous functions642.86%
Constants9
▷ Global constants444.44%
▷ Class constants555.56%
▷ Public constants5100.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
No PNG images were found in this plugin