89% wplms-courseware-migration

Code Review | WPLMS COURSEWARE MIGRATION

WordPress plugin WPLMS COURSEWARE MIGRATION scored89%from 54 tests.

About plugin

  • Plugin page: wplms-courseware-...
  • 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: Dec 22, 2017
  • Number of updates: 6
  • Update frequency: every 37.8 days
  • Top authors: hklatiyan (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /973 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼2.85ms] Passed 4 tests

This is a short check of server-side resources used by WPLMS COURSEWARE MIGRATION
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0140.53 ▲0.74
Dashboard /wp-admin3.31 ▲0.0146.20 ▼3.33
Posts /wp-admin/edit.php3.36 ▲0.0147.18 ▲0.88
Add New Post /wp-admin/post-new.php5.89 ▲0.0183.41 ▼6.96
Media Library /wp-admin/upload.php3.23 ▲0.0032.96 ▼1.86

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
can_compress_scripts
db_upgraded
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for WPLMS COURSEWARE MIGRATION
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲4313.33 ▼1.051.75 ▼0.1845.96 ▲6.09
Dashboard /wp-admin2,209 ▲214.87 ▼0.0494.64 ▼17.9836.81 ▼7.47
Posts /wp-admin/edit.php2,089 ▼02.00 ▼0.0539.44 ▼0.8935.84 ▼0.04
Add New Post /wp-admin/post-new.php1,533 ▲1423.18 ▲0.06597.88 ▼92.4849.09 ▼5.17
Media Library /wp-admin/upload.php1,391 ▲34.20 ▲0.0194.32 ▼6.1642.31 ▼5.04

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 6 options
    • db_upgraded
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts

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 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
5 plugin tags: courseware, courseware migrate, migrate, wplms migrate, wplms

wplms-courseware-migration/wplms_courseware_migrate.php 85% from 13 tests

The principal PHP file in "WPLMS COURSEWARE MIGRATION" v. 1.0 is loaded by WordPress automatically on each request
The following require your attention:
  • 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-courseware-migration.php" instead of "wplms_courseware_migrate.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
There were no executable files found in this plugin340 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP24432312
PO File14728

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.44
Average class complexity50.00
▷ Minimum class complexity50.00
▷ Maximum class complexity50.00
Average method complexity4.77
▷ Minimum method complexity1.00
▷ Maximum method complexity12.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods13
▷ Static methods17.69%
▷ Public methods1292.31%
▷ Protected methods00.00%
▷ Private methods17.69%
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 are no PNG files in this plugin