78% accessally-lms-migrate-learndash

Code Review | AccessAlly™ LMS Migration from LearnDash®

WordPress plugin AccessAlly™ LMS Migration from LearnDash® scored78%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: 6.3.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 /726 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully

Server metrics [RAM: ▲0.10MB] [CPU: ▼2.23ms] Passed 4 tests

A check of server-side resources used by AccessAlly™ LMS Migration from LearnDash®
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0937.84 ▼3.78
Dashboard /wp-admin3.40 ▲0.1046.98 ▼3.48
Posts /wp-admin/edit.php3.51 ▲0.1655.53 ▲9.65
Add New Post /wp-admin/post-new.php5.98 ▲0.1096.90 ▼5.13
Media Library /wp-admin/upload.php3.32 ▲0.1037.80 ▲3.49

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 14 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-posts
db_upgraded
can_compress_scripts

Browser metrics Passed 4 tests

A check of browser resources used by AccessAlly™ LMS Migration from LearnDash®
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,815 ▲6913.60 ▼0.991.62 ▼0.1442.27 ▼2.04
Dashboard /wp-admin2,224 ▲395.80 ▼0.06101.01 ▼18.2674.15 ▲26.62
Posts /wp-admin/edit.php2,104 ▲151.97 ▼0.0840.52 ▼0.6435.65 ▼0.05
Add New Post /wp-admin/post-new.php1,527 ▲1323.11 ▲5.58762.74 ▲102.2371.04 ▲23.02
Media Library /wp-admin/upload.php1,403 ▲184.17 ▼0.09100.87 ▼1.2569.82 ▲25.17

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded

Smoke tests 50% from 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 0% from 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
Please take a closer look at the following
  • 3× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/accessally-lms-migrate-learndash/backend/convert-template.php
    • > /wp-content/plugins/accessally-lms-migrate-learndash/backend/existing-template.php
    • > /wp-content/plugins/accessally-lms-migrate-learndash/backend/settings-template.php
  • 2× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/accessally-lms-migrate-learndash/backend/settings-display.php:2
    • > 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

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues 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
These attributes need to be fixed:
  • Tags: Too many tags (12 tag instead of maximum 10); only the first 5 tags are used in your directory listing
Please take inspiration from this readme.txt

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

The principal PHP file in "AccessAlly™ LMS Migration from LearnDash®" v. 1.0.1 is loaded by WordPress automatically on each request
It is important to fix the following:
  • Description: Keep the plugin description shorter than 140 characters (currently 185 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Success! There were 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

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
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/revert.png0.38KB0.48KB0.00%
backend/icon.png0.70KB0.75KB0.00%
backend/completed.png1.43KB0.69KB▼ 51.40%
backend/error.png2.42KB2.56KB0.00%
backend/pencil.png15.01KB0.21KB▼ 98.63%