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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.07 | 46.84 ▲4.45 |
Dashboard /wp-admin | 3.38 ▲0.07 | 48.68 ▼1.92 |
Posts /wp-admin/edit.php | 3.49 ▲0.13 | 46.13 ▼9.46 |
Add New Post /wp-admin/post-new.php | 5.96 ▲0.07 | 88.99 ▼13.89 |
Media Library /wp-admin/upload.php | 3.30 ▲0.07 | 39.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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,812 ▲66 | 13.24 ▼1.15 | 1.77 ▲0.12 | 44.84 ▲2.46 |
Dashboard /wp-admin | 2,218 ▲30 | 4.86 ▼0.95 | 102.93 ▼1.38 | 38.13 ▼3.38 |
Posts /wp-admin/edit.php | 2,086 ▼6 | 1.99 ▼0.03 | 33.82 ▼7.27 | 37.36 ▲0.64 |
Add New Post /wp-admin/post-new.php | 1,524 ▲3 | 23.28 ▲0.11 | 627.94 ▼32.29 | 56.78 ▼2.56 |
Media Library /wp-admin/upload.php | 1,388 ▼0 | 4.24 ▲0.02 | 94.65 ▼12.12 | 41.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
- > PHP Fatal error
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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 20 | 309 | 977 | 1,026 |
Markdown | 1 | 60 | 0 | 112 |
JSON | 2 | 0 | 0 | 64 |
CSS | 1 | 4 | 4 | 16 |
JavaScript | 1 | 1 | 0 | 11 |
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 code | 0.32 |
Average class complexity | 11.36 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 44.00 |
Average method complexity | 2.33 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 11 | |
▷ Abstract classes | 2 | 18.18% |
▷ Concrete classes | 9 | 81.82% |
▷ Final classes | 0 | 0.00% |
Methods | 89 | |
▷ Static methods | 10 | 11.24% |
▷ Public methods | 59 | 66.29% |
▷ Protected methods | 20 | 22.47% |
▷ Private methods | 10 | 11.24% |
Functions | 4 | |
▷ Named functions | 2 | 50.00% |
▷ Anonymous functions | 2 | 50.00% |
Constants | 4 | |
▷ Global constants | 2 | 50.00% |
▷ Class constants | 2 | 50.00% |
▷ Public constants | 2 | 100.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