89% wplms-learnpress-migration

Code Review | WPLMS LEARNPRESS MIGRATION

WordPress plugin WPLMS LEARNPRESS MIGRATION scored89%from 54 tests.

About plugin

  • Plugin page: wplms-learnpress-...
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.6-5.2.2
  • WordPress version: 6.3.1
  • First release: May 11, 2017
  • Latest release: Jun 28, 2019
  • Number of updates: 6
  • Update frequency: every 130.0 days
  • Top authors: hklatiyan (83.33%)VibeThemes (33.33%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /2,115 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼6.96ms] Passed 4 tests

Server-side resources used by WPLMS LEARNPRESS MIGRATION
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0039.86 ▼6.22
Dashboard /wp-admin3.31 ▲0.0152.01 ▲3.92
Posts /wp-admin/edit.php3.36 ▲0.0048.75 ▼7.72
Add New Post /wp-admin/post-new.php5.89 ▲0.0082.60 ▼10.26
Media Library /wp-admin/upload.php3.23 ▲0.0036.67 ▼3.65

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_theysaidso_widget
theysaidso_admin_options
db_upgraded
widget_recent-comments
can_compress_scripts

Browser metrics Passed 4 tests

A check of browser resources used by WPLMS LEARNPRESS MIGRATION
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲3914.35 ▼0.211.97 ▼0.1046.68 ▲8.13
Dashboard /wp-admin2,195 ▲185.59 ▼0.0885.19 ▼12.3538.95 ▼11.05
Posts /wp-admin/edit.php2,100 ▼02.07 ▲0.0539.43 ▲2.0935.50 ▼0.73
Add New Post /wp-admin/post-new.php1,526 ▼223.35 ▲0.24671.73 ▼22.2443.10 ▼13.37
Media Library /wp-admin/upload.php1,397 ▼34.24 ▲0.11101.04 ▼4.1642.78 ▼1.37

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
You still need to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
5 plugin tags: learnpress migrate, migrate, wplms migrate, wplms, learnpress

wplms-learnpress-migration/wplms_learnpress_migrate.php 85% from 13 tests

The principal PHP file in "WPLMS LEARNPRESS MIGRATION" v. 1.1 is loaded by WordPress automatically on each request
You should first fix the following items:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("wplms-learnpress-migration.php" instead of "wplms_learnpress_migrate.php")
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin527 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP28555527

PHP code Passed 2 tests

An overview 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.40
Average class complexity89.00
▷ Minimum class complexity89.00
▷ Maximum class complexity89.00
Average method complexity6.18
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods17
▷ Static methods15.88%
▷ Public methods1694.12%
▷ Protected methods00.00%
▷ Private methods15.88%
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

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG files were detected