Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
You still need to fix the following installer errors
- The plugin cannot be installed
- > Warning in wp-includes/functions.php+6691
file_get_contents(wp-content/plugins/tutor/tutor.php): failed to open stream: No such file or directory
Server metrics [RAM: ▼1.93MB] [CPU: ▼51.90ms] Passed 4 tests
Server-side resources used by Tutor LMS - Migration Tool
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.07 ▼1.39 | 8.22 ▼30.68 |
Dashboard /wp-admin | 2.09 ▼1.25 | 7.64 ▼52.83 |
Posts /wp-admin/edit.php | 2.09 ▼1.27 | 6.68 ▼39.22 |
Add New Post /wp-admin/post-new.php | 2.09 ▼3.80 | 5.90 ▼84.85 |
Media Library /wp-admin/upload.php | 2.09 ▼1.14 | 6.60 ▼27.87 |
Server storage [IO: ▲0.44MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 31 new files
Database: 1 new table, 6 new options
New tables |
---|
wp_tutor_migration |
New WordPress options |
---|
theysaidso_admin_options |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-posts |
db_upgraded |
widget_recent-comments |
Browser metrics Passed 4 tests
A check of browser resources used by Tutor LMS - Migration Tool
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,824 ▲62 | 14.37 ▼0.26 | 1.68 ▼0.09 | 39.88 ▼4.65 |
Dashboard /wp-admin | 2,229 ▲52 | 5.56 ▼0.07 | 94.61 ▲8.64 | 80.84 ▲39.35 |
Posts /wp-admin/edit.php | 2,141 ▲44 | 2.07 ▲0.07 | 39.02 ▲5.13 | 36.23 ▲2.23 |
Add New Post /wp-admin/post-new.php | 1,576 ▲41 | 23.06 ▼2.26 | 689.86 ▲97.51 | 56.57 ▼11.38 |
Media Library /wp-admin/upload.php | 1,437 ▲37 | 4.15 ▼0.05 | 96.64 ▼1.17 | 85.06 ▲41.60 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- This plugin did not uninstall without warnings or errors
- > Warning in wp-includes/functions.php+6691
file_get_contents(wp-content/plugins/tutor/tutor.php): failed to open stream: No such file or directory
- This plugin does not fully uninstall, leaving 6 options in the database
- theysaidso_admin_options
- db_upgraded
- widget_recent-comments
- widget_recent-posts
- widget_theysaidso_widget
- can_compress_scripts
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test
SRP Passed 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
Congratulations! This plugin passed the SRP test
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
5 plugin tags: education, elearning, course, lms, migration
tutor-lms-migration-tool/tutor-lms-migration-tool.php 92% from 13 tests
"Tutor LMS - Migration Tool" version 2.2.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
It is important to fix the following:
- Requires at least: Required version does not match the one declared in readme.txt ("5.0" instead of "5.3")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Everything looks great! No dangerous files found in this plugin5,428 lines of code in 23 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 11 | 706 | 305 | 3,926 |
CSS | 1 | 8 | 3 | 672 |
SVG | 9 | 0 | 2 | 392 |
JavaScript | 1 | 33 | 20 | 332 |
PO File | 1 | 39 | 43 | 106 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
Average class complexity | 61.57 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 149.00 |
Average method complexity | 5.99 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 55.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 1 | 14.29% |
Methods | 85 | |
▷ Static methods | 1 | 1.18% |
▷ Public methods | 85 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 5 | |
▷ Named functions | 2 | 40.00% |
▷ Anonymous functions | 3 | 60.00% |
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
All PNG images should be compressed to minimize bandwidth usage for end users
1 compressed PNG file occupies 0.01MB
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/lifterlms-icon-color.png | 5.57KB | 6.02KB | 0.00% |