10% tutor-lms-migration-tool

Code Review | Tutor LMS - Migration Tool

WordPress plugin Tutor LMS - Migration Tool scored10%from 54 tests.

About plugin

  • Plugin page: tutor-lms-migrati...
  • Plugin version: 2.2.0
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.3-6.4.1
  • WordPress version: 6.3.1
  • First release: Nov 28, 2019
  • Latest release: Nov 17, 2023
  • Number of updates: 17
  • Update frequency: every 85.6 days
  • Top authors: themeum (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

1,000+ active /15,949 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
You still need to fix the following installer errors
  • The plugin cannot be installed
    • > Warning in wp-includes/functions.php+6691
    file_get_contents(wp-content/plugins/tutor/tutor.php): failed to open stream: No such file or directory

Server metrics [RAM: ▼1.93MB] [CPU: ▼51.90ms] Passed 4 tests

Server-side resources used by Tutor LMS - Migration Tool
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.07 ▼1.398.22 ▼30.68
Dashboard /wp-admin2.09 ▼1.257.64 ▼52.83
Posts /wp-admin/edit.php2.09 ▼1.276.68 ▼39.22
Add New Post /wp-admin/post-new.php2.09 ▼3.805.90 ▼84.85
Media Library /wp-admin/upload.php2.09 ▼1.146.60 ▼27.87

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 31 new files
Database: 1 new table, 6 new options
New tables
wp_tutor_migration
New WordPress options
theysaidso_admin_options
widget_theysaidso_widget
can_compress_scripts
widget_recent-posts
db_upgraded
widget_recent-comments

Browser metrics Passed 4 tests

A check of browser resources used by Tutor LMS - Migration Tool
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,824 ▲6214.37 ▼0.261.68 ▼0.0939.88 ▼4.65
Dashboard /wp-admin2,229 ▲525.56 ▼0.0794.61 ▲8.6480.84 ▲39.35
Posts /wp-admin/edit.php2,141 ▲442.07 ▲0.0739.02 ▲5.1336.23 ▲2.23
Add New Post /wp-admin/post-new.php1,576 ▲4123.06 ▼2.26689.86 ▲97.5156.57 ▼11.38
Media Library /wp-admin/upload.php1,437 ▲374.15 ▼0.0596.64 ▼1.1785.06 ▲41.60

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • This plugin did not uninstall without warnings or errors
    • > Warning in wp-includes/functions.php+6691
    file_get_contents(wp-content/plugins/tutor/tutor.php): failed to open stream: No such file or directory
  • This plugin does not fully uninstall, leaving 6 options in the database
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test

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
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
5 plugin tags: education, elearning, course, lms, migration

tutor-lms-migration-tool/tutor-lms-migration-tool.php 92% from 13 tests

"Tutor LMS - Migration Tool" version 2.2.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
It is important to fix the following:
  • Requires at least: Required version does not match the one declared in readme.txt ("5.0" instead of "5.3")

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
Everything looks great! No dangerous files found in this plugin5,428 lines of code in 23 files:
LanguageFilesBlank linesComment linesLines of code
PHP117063053,926
CSS183672
SVG902392
JavaScript13320332
PO File13943106

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.33
Average class complexity61.57
▷ Minimum class complexity1.00
▷ Maximum class complexity149.00
Average method complexity5.99
▷ Minimum method complexity1.00
▷ Maximum method complexity55.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes114.29%
Methods85
▷ Static methods11.18%
▷ Public methods85100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions5
▷ Named functions240.00%
▷ Anonymous functions360.00%
Constants8
▷ Global constants8100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
1 compressed PNG file occupies 0.01MB
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/img/lifterlms-icon-color.png5.57KB6.02KB0.00%