89% wplms-sensei-migration

Code Review | WPLMS SENSEI MIGRATION

WordPress plugin WPLMS SENSEI MIGRATION scored89%from 54 tests.

About plugin

  • Plugin page: wplms-sensei-migr...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.6-4.8
  • WordPress version: 6.3.1
  • First release: May 11, 2017
  • Latest release: May 11, 2017
  • Number of updates: 5
  • Update frequency: every 6.8 days
  • Top authors: hklatiyan (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /992 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

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

This is a short check of server-side resources used by WPLMS SENSEI MIGRATION
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0739.86 ▲5.50
Dashboard /wp-admin3.38 ▲0.0847.36 ▲4.00
Posts /wp-admin/edit.php3.43 ▲0.0745.68 ▼3.57
Add New Post /wp-admin/post-new.php5.97 ▲0.0883.44 ▼9.80
Media Library /wp-admin/upload.php3.31 ▲0.0735.07 ▼4.48

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
can_compress_scripts
widget_theysaidso_widget
db_upgraded
theysaidso_admin_options
widget_recent-posts

Browser metrics Passed 4 tests

This is an overview of browser requirements for WPLMS SENSEI MIGRATION
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲2913.69 ▼0.921.76 ▼0.1043.73 ▼2.93
Dashboard /wp-admin2,206 ▲185.88 ▲0.99112.31 ▼2.0843.09 ▼0.65
Posts /wp-admin/edit.php2,089 ▼32.03 ▲0.0235.02 ▼7.0233.07 ▼4.09
Add New Post /wp-admin/post-new.php1,534 ▲1423.39 ▲0.43691.41 ▲22.0863.49 ▲2.52
Media Library /wp-admin/upload.php1,388 ▲34.21 ▲0.0396.30 ▼5.2042.77 ▲0.11

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though everything seems fine, this is not an exhaustive test

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
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
6 plugin tags: wplms migrate, woocommerce sensei, sensei migrate, sensei, migrate...

wplms-sensei-migration/wplms-sensei-migrate.php 85% from 13 tests

"WPLMS SENSEI MIGRATION" version 1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please take the time to fix the following:
  • 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-sensei-migration.php" instead of "wplms-sensei-migrate.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin461 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP28146461

PHP code Passed 2 tests

A short review 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.43
Average class complexity78.00
▷ Minimum class complexity78.00
▷ Maximum class complexity78.00
Average method complexity5.81
▷ Minimum method complexity1.00
▷ Maximum method complexity26.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods16
▷ Static methods16.25%
▷ Public methods1593.75%
▷ Protected methods00.00%
▷ Private methods16.25%
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