84% sensei-post-to-course

Code Review | Sensei LMS Post to Course Creator

WordPress plugin Sensei LMS Post to Course Creator scored84%from 54 tests.

About plugin

  • Plugin page: sensei-post-to-co...
  • Plugin version: 1.2.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.7-5.9
  • WordPress version: 6.3.1
  • First release: Sep 9, 2020
  • Latest release: Mar 22, 2022
  • Number of updates: 15
  • Update frequency: every 37.3 days
  • Top authors: donnapep (73.33%)nurguly (33.33%)

Code review

54 tests

User reviews

1 review

Install metrics

1,000+ active /15,151 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

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

Analyzing server-side resources used by Sensei LMS Post to Course Creator
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0746.84 ▲4.45
Dashboard /wp-admin3.38 ▲0.0748.68 ▼1.92
Posts /wp-admin/edit.php3.49 ▲0.1346.13 ▼9.46
Add New Post /wp-admin/post-new.php5.96 ▲0.0788.99 ▼13.89
Media Library /wp-admin/upload.php3.30 ▲0.0739.76 ▲2.48

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Sensei LMS Post to Course Creator
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,812 ▲6613.24 ▼1.151.77 ▲0.1244.84 ▲2.46
Dashboard /wp-admin2,218 ▲304.86 ▼0.95102.93 ▼1.3838.13 ▼3.38
Posts /wp-admin/edit.php2,086 ▼61.99 ▼0.0333.82 ▼7.2737.36 ▲0.64
Add New Post /wp-admin/post-new.php1,524 ▲323.28 ▲0.11627.94 ▼32.2956.78 ▼2.56
Media Library /wp-admin/upload.php1,388 ▼04.24 ▲0.0294.65 ▼12.1241.26 ▼4.49

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
Please fix the following items
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments

Smoke tests 75% 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)
The smoke test was a success, however most plugin functionality was not tested

SRP 50% 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
Please take a closer look at the following
  • 4× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Background_Process' not found in wp-content/plugins/sensei-post-to-course/admin/class-sptc-lesson-process.php:12
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Async_Request' not found in wp-content/plugins/sensei-post-to-course/vendor/deliciousbrains/wp-background-processing/classes/wp-background-process.php:14
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/sensei-post-to-course/vendor/deliciousbrains/wp-background-processing/wp-background-processing.php:20
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/sensei-post-to-course/admin/partials/sptc-admin-display.php:17

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
3 plugin tags: online course, sensei lms, course

sensei-post-to-course/sensei-post-to-course.php Passed 13 tests

The main PHP file in "Sensei LMS Post to Course Creator" ver. 1.2.0 adds more information about the plugin and also serves as the entry point for this plugin
41 characters long description:
Turn your blog posts into online courses.

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
Everything looks great! No dangerous files found in this plugin1,229 lines of code in 25 files:
LanguageFilesBlank linesComment linesLines of code
PHP203099771,026
Markdown1600112
JSON20064
CSS14416
JavaScript11011

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.32
Average class complexity11.36
▷ Minimum class complexity1.00
▷ Maximum class complexity44.00
Average method complexity2.33
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes11
▷ Abstract classes218.18%
▷ Concrete classes981.82%
▷ Final classes00.00%
Methods89
▷ Static methods1011.24%
▷ Public methods5966.29%
▷ Protected methods2022.47%
▷ Private methods1011.24%
Functions4
▷ Named functions250.00%
▷ Anonymous functions250.00%
Constants4
▷ Global constants250.00%
▷ Class constants250.00%
▷ Public constants2100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
There were not PNG files found in your plugin