Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▲0.57MB] [CPU: ▼0.57ms] Passed 4 tests
An overview of server-side resources used by Topic Progression Using Storyline/Captivate for LearnDash
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.79 ▲0.33 | 42.88 ▼0.49 |
Dashboard /wp-admin | 3.96 ▲0.66 | 55.96 ▼3.77 |
Posts /wp-admin/edit.php | 3.98 ▲0.62 | 53.51 ▼0.53 |
Add New Post /wp-admin/post-new.php | 6.55 ▲0.66 | 109.83 ▲2.51 |
Media Library /wp-admin/upload.php | 3.88 ▲0.65 | 41.69 ▲4.22 |
Server storage [IO: ▲2.77MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 342 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
db_upgraded |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-posts |
widget_recent-comments |
Browser metrics Passed 4 tests
A check of browser resources used by Topic Progression Using Storyline/Captivate for LearnDash
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,808 ▲47 | 14.34 ▼0.21 | 1.87 ▼0.37 | 44.04 ▼0.48 |
Dashboard /wp-admin | 2,211 ▲40 | 5.72 ▲0.13 | 88.07 ▼6.12 | 41.37 ▲0.43 |
Posts /wp-admin/edit.php | 2,119 ▲19 | 2.05 ▲0.01 | 38.13 ▲0.09 | 35.86 ▼2.67 |
Add New Post /wp-admin/post-new.php | 1,541 ▲13 | 23.28 ▼0.00 | 653.73 ▼20.23 | 50.84 ▼13.07 |
Media Library /wp-admin/upload.php | 1,422 ▲22 | 4.26 ▲0.08 | 101.80 ▲5.48 | 50.34 ▲3.81 |
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
It is recommended to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-posts
- widget_recent-comments
- db_upgraded
- widget_theysaidso_widget
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)
Good news, no errors were detected
SRP 0% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please take a closer look at the following
- 2× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/learndash-topic-progression-using-storyline-or-captivate/partials/quiz-mark-as-complete.php
- > /wp-content/plugins/learndash-topic-progression-using-storyline-or-captivate/partials/quiz-next-page.php
- 43× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/learndash-topic-progression-using-storyline-or-captivate/CMB2/includes/helper-functions.php:131
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Base' not found in wp-content/plugins/learndash-topic-progression-using-storyline-or-captivate/CMB2/includes/CMB2_Field.php:17
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Taxonomy_Base' not found in wp-content/plugins/learndash-topic-progression-using-storyline-or-captivate/CMB2/includes/types/CMB2_Type_Taxonomy_Multicheck.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function cmb2_dir() in wp-content/plugins/learndash-topic-progression-using-storyline-or-captivate/CMB2/includes/rest-api/CMB2_REST_Controller.php:4
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_File_Base' not found in wp-content/plugins/learndash-topic-progression-using-storyline-or-captivate/CMB2/includes/types/CMB2_Type_File_List.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_create_nonce() in wp-content/plugins/learndash-topic-progression-using-storyline-or-captivate/partials/sfwd-mark-complete-form.php:3
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Multi_Base' not found in wp-content/plugins/learndash-topic-progression-using-storyline-or-captivate/CMB2/includes/types/CMB2_Type_Select.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/learndash-topic-progression-using-storyline-or-captivate/learndash-topic-progression-storyline.php:105
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Text' not found in wp-content/plugins/learndash-topic-progression-using-storyline-or-captivate/CMB2/includes/types/CMB2_Type_Picker_Base.php:13
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Taxonomy_Base' not found in wp-content/plugins/learndash-topic-progression-using-storyline-or-captivate/CMB2/includes/types/CMB2_Type_Taxonomy_Radio.php:13
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration 96% from 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
5 plugin tags: captivate, lms, learndash, elearning, storyline
learndash-topic-progression-using-storyline-or-captivate/learndash-topic-progression-storyline.php 92% from 13 tests
Analyzing the main PHP file in "Topic Progression Using Storyline/Captivate for LearnDash" version 1.2.4.3
You should first fix the following items:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("learndash-topic-progression-using-storyline-or-captivate.php" instead of "learndash-topic-progression-storyline.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin45,704 lines of code in 199 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PO File | 120 | 14,315 | 18,502 | 32,323 |
PHP | 60 | 2,202 | 6,361 | 7,396 |
CSS | 12 | 250 | 1,190 | 4,554 |
JavaScript | 7 | 361 | 583 | 1,431 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.48 |
Average class complexity | 19.09 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 188.00 |
Average method complexity | 3.29 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 31.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 69 | |
▷ Abstract classes | 9 | 13.04% |
▷ Concrete classes | 60 | 86.96% |
▷ Final classes | 0 | 0.00% |
Methods | 548 | |
▷ Static methods | 91 | 16.61% |
▷ Public methods | 456 | 83.21% |
▷ Protected methods | 89 | 16.24% |
▷ Private methods | 3 | 0.55% |
Functions | 36 | |
▷ Named functions | 36 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 9 | |
▷ Global constants | 3 | 33.33% |
▷ Class constants | 6 | 66.67% |
▷ Public constants | 6 | 100.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
14 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
CMB2/images/ui-bg_flat_0_aaaaaa_40x100.png | 0.18KB | 0.08KB | ▼ 51.67% |
CMB2/images/ui-bg_flat_75_ffffff_40x100.png | 0.17KB | 0.08KB | ▼ 51.12% |
CMB2/images/ui-bg_glass_75_e6e6e6_1x400.png | 0.11KB | 0.14KB | 0.00% |
CMB2/images/ui-bg_glass_75_dadada_1x400.png | 0.11KB | 0.16KB | 0.00% |
CMB2/images/ui-bg_glass_65_ffffff_1x400.png | 0.10KB | 0.10KB | ▼ 5.71% |