89% wplms-clevercourse-migration

Code Review | WPLMS CLEVERCOURSE MIGRATION

WordPress plugin WPLMS CLEVERCOURSE MIGRATION scored89%from 54 tests.

About plugin

  • Plugin page: wplms-clevercours...
  • 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 /780 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully

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

Server-side resources used by WPLMS CLEVERCOURSE MIGRATION
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0742.46 ▲1.46
Dashboard /wp-admin3.37 ▲0.0751.90 ▼1.37
Posts /wp-admin/edit.php3.42 ▲0.0746.38 ▼1.99
Add New Post /wp-admin/post-new.php5.95 ▲0.0784.78 ▼16.70
Media Library /wp-admin/upload.php3.29 ▲0.0737.42 ▲0.07

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

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

Browser metrics Passed 4 tests

A check of browser resources used by WPLMS CLEVERCOURSE MIGRATION
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲2913.22 ▼1.151.84 ▼0.0347.70 ▲4.77
Dashboard /wp-admin2,203 ▲125.95 ▲1.09113.15 ▲3.3941.94 ▲4.60
Posts /wp-admin/edit.php2,086 ▼31.98 ▼0.0236.86 ▼3.2932.71 ▼3.70
Add New Post /wp-admin/post-new.php1,533 ▲1223.11 ▼0.39670.64 ▼0.3063.11 ▲1.08
Media Library /wp-admin/upload.php1,391 ▲34.24 ▲0.1693.78 ▼19.1244.95 ▼0.00

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded
    • 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 no errors were found, this is by no means 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 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
6 plugin tags: wplms, clevercourse, wplms migrate, goodlayer migrate, clevercourse migrate...

wplms-clevercourse-migration/wplms_clevercourse_migrate.php 85% from 13 tests

The main PHP script in "WPLMS CLEVERCOURSE MIGRATION" version 1.0 is automatically included on every request by WordPress
It is important to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("wplms-clevercourse-migration.php" instead of "wplms_clevercourse_migrate.php")
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug

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
Success! There were no dangerous files found in this plugin386 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP27032386

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.47
Average class complexity73.00
▷ Minimum class complexity73.00
▷ Maximum class complexity73.00
Average method complexity7.55
▷ Minimum method complexity2.00
▷ Maximum method complexity20.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods11
▷ Static methods19.09%
▷ Public methods1090.91%
▷ Protected methods00.00%
▷ Private methods19.09%
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

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG files were detected