88% accessally-lms-migrate-learndash

Code Review | AccessAlly™ LMS Migration from LearnDash®

WordPress plugin AccessAlly™ LMS Migration from LearnDash® scored 88% from 54 tests.

About plugin

  • Plugin page: accessally-lms-mi...
  • Plugin version: 1.0.1
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7.0-5.2.3
  • WordPress version: 5.8.1
  • First release: Mar 13, 2020
  • Latest release: Mar 13, 2020
  • Number of updates: 6
  • Update frequency: N/A
  • Top authors: rli (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 483 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲0.09MB] [CPU: ▼143.99ms] Passed 4 tests

A check of server-side resources used by AccessAlly™ LMS Migration from LearnDash®
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.93 ▲0.0923.86 ▲1.77
Dashboard /wp-admin3.15 ▲0.0936.53 ▼5.79
Posts /wp-admin/edit.php3.24 ▲0.1339.02 ▲5.17
Add New Post /wp-admin/post-new.php5.52 ▲0.0874.92 ▼572.69
Media Library /wp-admin/upload.php3.10 ▲0.0927.90 ▲0.74

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 14 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Checking browser requirements for AccessAlly™ LMS Migration from LearnDash®
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,687 ▲8615.61 ▼0.049.19 ▲3.9675.42 ▲3.81
Dashboard /wp-admin2,949 ▲506.14 ▲0.09125.81 ▼1.55194.96 ▲21.85
Posts /wp-admin/edit.php2,727 ▼133.14 ▼0.1063.25 ▼2.16140.69 ▼5.92
Add New Post /wp-admin/post-new.php3,820 ▲1317.94 ▼0.00427.23 ▼28.16164.68 ▼8.58
Media Library /wp-admin/upload.php1,766 ▲145.68 ▲0.18124.52 ▼26.49198.44 ▲4.77

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
The plugin uninstalled successfully, without leaving any zombie files or tables

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested

SRP 0% from 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
Almost there! Just fix the following items
  • 3× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/accessally-lms-migrate-learndash/backend/existing-template.php
    • > /wp-content/plugins/accessally-lms-migrate-learndash/backend/settings-template.php
    • > /wp-content/plugins/accessally-lms-migrate-learndash/backend/convert-template.php
  • 2× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/accessally-lms-migrate-learndash/accessally-lms-migrate-learndash.php:20
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/accessally-lms-migrate-learndash/backend/settings-display.php:2

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)
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Please fix the following attributes:
  • Tags: Please reduce the number of tags, currently 12 tag instead of maximum 10
You can look at the official readme.txt

accessally-lms-migrate-learndash/accessally-lms-migrate-learndash.php 92% from 13 tests

The main file in "AccessAlly™ LMS Migration from LearnDash®" v. 1.0.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please make the necessary changes and fix the following:
  • Description: The description should be shorter than 140 characters (currently 185 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Everything looks great! No dangerous files found in this plugin898 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP55324519
CSS102249
JavaScript157130

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.38
Average class complexity88.00
▷ Minimum class complexity88.00
▷ Maximum class complexity88.00
Average method complexity4.95
▷ Minimum method complexity1.00
▷ Maximum method complexity13.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods22
▷ Static methods22100.00%
▷ Public methods1150.00%
▷ Protected methods00.00%
▷ Private methods1150.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants00.00%
▷ Class constants3100.00%
▷ Public constants3100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
5 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
backend/completed.png1.43KB0.69KB▼ 51.40%
backend/error.png2.42KB2.56KB0.00%
backend/icon.png0.70KB0.75KB0.00%
backend/revert.png0.38KB0.48KB0.00%
backend/pencil.png15.01KB0.21KB▼ 98.63%