Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▲0.00MB] [CPU: ▼8.24ms] Passed 4 tests
A check of server-side resources used by Tutor LMS Divi Modules
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.00 | 39.68 ▼2.18 |
Dashboard /wp-admin | 3.31 ▲0.01 | 48.11 ▼8.85 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 51.71 ▼0.91 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 84.95 ▼21.00 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 35.68 ▼0.80 |
Server storage [IO: ▲1.15MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 162 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-comments |
can_compress_scripts |
widget_recent-posts |
Browser metrics Passed 4 tests
Tutor LMS Divi Modules: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲54 | 13.20 ▼1.39 | 4.92 ▲2.89 | 43.33 ▼0.98 |
Dashboard /wp-admin | 2,209 ▲18 | 5.91 ▲0.09 | 100.69 ▼5.78 | 39.89 ▼5.76 |
Posts /wp-admin/edit.php | 2,086 ▼6 | 2.04 ▲0.05 | 39.97 ▼13.53 | 34.22 ▼3.21 |
Add New Post /wp-admin/post-new.php | 1,533 ▲5 | 23.08 ▲4.88 | 624.03 ▼7.45 | 59.50 ▲2.77 |
Media Library /wp-admin/upload.php | 1,385 ▼6 | 4.20 ▼0.05 | 95.76 ▼4.06 | 46.31 ▲2.14 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- can_compress_scripts
- widget_recent-posts
- widget_recent-comments
- widget_theysaidso_widget
- theysaidso_admin_options
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
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
- 107× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Notice
Undefined variable: data in wp-content/plugins/tutor-lms-divi-modules/includes/templates/course/list/parts/level.php on line 1
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/tutor-lms-divi-modules/includes/templates/course/list/card.php:12
- > PHP Notice
Undefined variable: data in wp-content/plugins/tutor-lms-divi-modules/includes/templates/course/loop/course-in-cart.php on line 17
- > PHP Notice
Undefined variable: data in wp-content/plugins/tutor-lms-divi-modules/includes/templates/course/carousel/classic.php on line 10
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/tutor-lms-divi-modules/includes/templates/course/list/parts/footer.php on line 1
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/tutor-lms-divi-modules/includes/templates/course/carousel/overlayed.php:12
- > PHP Warning
Use of undefined constant DTLMS_TEMPLATES - assumed 'DTLMS_TEMPLATES' (this will throw an Error in a future version of PHP) in wp-content/plugins/tutor-lms-divi-modules/includes/templates/course/list/grid/classic.php on line 9
- > PHP Fatal error
Uncaught Error: Call to undefined function get_tutor_course_thumbnail() in wp-content/plugins/tutor-lms-divi-modules/includes/templates/course/list/parts/thumbnail.php:3
- > PHP Notice
Undefined variable: data in wp-content/plugins/tutor-lms-divi-modules/includes/templates/course/carousel/stacked.php on line 10
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/tutor-lms-divi-modules/includes/templates/course/list/classic.php on line 10
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
9 plugin tags: learning management system, lms, tutor lms, education, divi lms modules...
tutor-lms-divi-modules/tutor-lms-divi-modules.php Passed 13 tests
Analyzing the main PHP file in "Tutor LMS Divi Modules" version 2.0.2
69 characters long description:
Easily design your courses and lessons on Divi builder with Tutor LMS
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
Good job! No executable or dangerous file extensions detected18,783 lines of code in 156 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 112 | 1,524 | 2,606 | 17,661 |
CSS | 8 | 149 | 13 | 616 |
SVG | 28 | 1 | 23 | 368 |
JavaScript | 7 | 13 | 18 | 137 |
JSON | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.46 |
Average class complexity | 28.44 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 98.00 |
Average method complexity | 6.51 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 90.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 32 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 32 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 160 | |
▷ Static methods | 57 | 35.62% |
▷ Public methods | 159 | 99.38% |
▷ Protected methods | 1 | 0.62% |
▷ Private methods | 0 | 0.00% |
Functions | 16 | |
▷ Named functions | 7 | 43.75% |
▷ Anonymous functions | 9 | 56.25% |
Constants | 8 | |
▷ Global constants | 8 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 PNG file occupies 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/tutor-divi-logo.png | 6.27KB | 3.46KB | ▼ 44.81% |