78% accessally-lms-migration-from-zippy-courses

Code Review | AccessAlly™ LMS Migration from Zippy Courses®

WordPress plugin AccessAlly™ LMS Migration from Zippy Courses® 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: May 20, 2020
  • Latest release: May 3, 2021
  • Number of updates: 6
  • Update frequency: every 58.0 days
  • Top authors: rli (66.67%)accessally (50%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /708 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
This plugin's installer ran successfully

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

This is a short check of server-side resources used by AccessAlly™ LMS Migration from Zippy Courses®
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0933.45 ▼4.78
Dashboard /wp-admin3.40 ▲0.0946.61 ▼2.25
Posts /wp-admin/edit.php3.51 ▲0.1544.54 ▲0.12
Add New Post /wp-admin/post-new.php5.98 ▲0.0992.62 ▼0.31
Media Library /wp-admin/upload.php3.32 ▲0.0936.53 ▲2.66

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

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

Browser metrics Passed 4 tests

AccessAlly™ LMS Migration from Zippy Courses®: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,815 ▲6913.28 ▼1.511.51 ▼0.1040.65 ▼2.06
Dashboard /wp-admin2,224 ▲365.91 ▲0.09103.90 ▼13.3668.84 ▲22.38
Posts /wp-admin/edit.php2,104 ▲152.10 ▲0.0834.40 ▼5.3534.00 ▲0.60
Add New Post /wp-admin/post-new.php1,536 ▲323.00 ▲0.05674.01 ▼26.8663.74 ▲14.29
Media Library /wp-admin/upload.php1,406 ▲184.10 ▼0.1096.34 ▼1.8974.74 ▲31.86

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
  • The uninstall procedure has failed, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts

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: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
  • 3× PHP files output text when accessed directly:
    • > /wp-content/plugins/accessally-lms-migration-from-zippy-courses/backend/existing-template.php
    • > /wp-content/plugins/accessally-lms-migration-from-zippy-courses/backend/convert-template.php
    • > /wp-content/plugins/accessally-lms-migration-from-zippy-courses/backend/settings-template.php
  • 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/accessally-lms-migration-from-zippy-courses/accessally-lms-migrate-zippy-courses.php:27
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/accessally-lms-migration-from-zippy-courses/backend/settings-display.php:2

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 is important because it is parsed by WordPress.org for the public listing of your plugin
10 plugin tags: zippy courses migration, import lms, switch lms, accessally migration, migrate lms...

accessally-lms-migration-from-zippy-courses/accessally-lms-migrate-zippy-courses.php 85% from 13 tests

The primary PHP file in "AccessAlly™ LMS Migration from Zippy Courses®" version 1.0.1 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
  • Description: Please keep the plugin description shorter than 140 characters (currently 197 characters long)
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("accessally-lms-migration-from-zippy-courses.php" instead of "accessally-lms-migrate-zippy-courses.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin864 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP54230485
CSS102249
JavaScript157130

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.38
Average class complexity83.00
▷ Minimum class complexity83.00
▷ Maximum class complexity83.00
Average method complexity4.57
▷ Minimum method complexity1.00
▷ Maximum method complexity15.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods23
▷ Static methods23100.00%
▷ Public methods1147.83%
▷ Protected methods00.00%
▷ Private methods1252.17%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants6
▷ Global constants00.00%
▷ Class constants6100.00%
▷ Public constants6100.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/icon.png0.70KB0.75KB0.00%
backend/pencil.png15.01KB0.21KB▼ 98.63%
backend/revert.png0.38KB0.48KB0.00%
backend/completed.png1.43KB0.69KB▼ 51.40%
backend/error.png2.42KB2.56KB0.00%