99% wplms-academy-migration

Code Review | WPLMS ACADEMY MIGRATION

WordPress plugin WPLMS ACADEMY MIGRATION scored 99% from 54 tests.

About plugin

  • Plugin page: wplms-academy-mig...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.6-4.8
  • WordPress version: 5.8.1
  • First release: May 11, 2017
  • Latest release: May 11, 2017
  • Number of updates: 6
  • Update frequency: every 22.0 days
  • Top authors: hklatiyan (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 646 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.05MB] [CPU: ▼144.89ms] Passed 4 tests

A check of server-side resources used by WPLMS ACADEMY MIGRATION
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.89 ▲0.0636.72 ▲0.20
Dashboard /wp-admin3.12 ▲0.0647.27 ▼8.48
Posts /wp-admin/edit.php3.16 ▲0.0649.82 ▲6.21
Add New Post /wp-admin/post-new.php5.47 ▲0.0488.63 ▼572.99
Media Library /wp-admin/upload.php3.06 ▲0.0635.70 ▲1.70

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 4 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Checking browser requirements for WPLMS ACADEMY MIGRATION
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,679 ▲8315.91 ▲0.299.53 ▼1.1849.37 ▼3.74
Dashboard /wp-admin2,967 ▲365.87 ▼0.13141.87 ▼33.68124.20 ▲4.83
Posts /wp-admin/edit.php2,739 ▼02.70 ▲0.0065.25 ▼4.2999.79 ▲1.96
Add New Post /wp-admin/post-new.php1,683 ▲7918.78 ▼0.10357.37 ▼18.20111.10 ▼12.15
Media Library /wp-admin/upload.php1,807 ▼05.04 ▲0.03155.36 ▼5.75127.85 ▲1.51

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
This plugin's uninstaller ran successfully

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
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
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
5 plugin tags: academy migrate, wplms, academy, wplms migrate, migrate

wplms-academy-migration/wplms_academy_migrate.php 85% from 13 tests

Analyzing the main PHP file in "WPLMS ACADEMY MIGRATION" version 1.0
Please make the necessary changes and fix the following:
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("wplms-academy-migration.php" instead of "wplms_academy_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
Good job! No executable or dangerous file extensions detected360 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP25634360

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.43
Average class complexity54.00
▷ Minimum class complexity54.00
▷ Maximum class complexity54.00
Average method complexity4.31
▷ Minimum method complexity1.00
▷ Maximum method complexity15.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

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG images were found in this plugin