89% wplms-learndash-migration

Code Review | WPLMS LEARNDASH MIGRATION

WordPress plugin WPLMS LEARNDASH MIGRATION scored 89% from 54 tests.

About plugin

  • Plugin page: wplms-learndash-m...
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.6-5.9.2
  • WordPress version: 6.3.1
  • First release: May 11, 2017
  • Latest release: Apr 3, 2022
  • Number of updates: 6
  • Update frequency: every 298.3 days
  • Top authors: hklatiyan (83.33%)VibeThemes (33.33%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 1,393 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.02MB] [CPU: ▼5.63ms] Passed 4 tests

This is a short check of server-side resources used by WPLMS LEARNDASH MIGRATION
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0235.07 ▼9.68
Dashboard /wp-admin3.32 ▲0.0248.24 ▼4.67
Posts /wp-admin/edit.php3.37 ▲0.0248.96 ▼2.71
Add New Post /wp-admin/post-new.php5.90 ▲0.02100.48 ▼5.44
Media Library /wp-admin/upload.php3.24 ▲0.0237.34 ▲3.39

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for WPLMS LEARNDASH MIGRATION
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,831 ▲6013.28 ▼1.331.88 ▼0.1639.54 ▼6.89
Dashboard /wp-admin2,237 ▲495.86 ▼0.04106.95 ▲1.7440.23 ▼3.95
Posts /wp-admin/edit.php2,120 ▲341.98 ▼0.0639.83 ▲2.2737.69 ▲5.35
Add New Post /wp-admin/post-new.php1,562 ▲4523.41 ▲5.84647.50 ▼1.7556.82 ▲3.07
Media Library /wp-admin/upload.php1,419 ▲314.24 ▲0.06106.83 ▲9.4851.70 ▲10.54

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested

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

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
5 plugin tags: wplms migrate, learndash migrate, wplms, migrate, learndash

wplms-learndash-migration/wplms_learndash_migrate.php 85% from 13 tests

The entry point to "WPLMS LEARNDASH MIGRATION" version 1.1 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("wplms-learndash-migration.php" instead of "wplms_learndash_migrate.php")

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
Everything looks great! No dangerous files found in this plugin576 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP28641546
PO File15930

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.50
Average class complexity108.00
▷ Minimum class complexity108.00
▷ Maximum class complexity108.00
Average method complexity8.13
▷ Minimum method complexity1.00
▷ Maximum method complexity31.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods15
▷ Static methods16.67%
▷ Public methods1493.33%
▷ Protected methods00.00%
▷ Private methods16.67%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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 were not PNG files found in your plugin