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
Installer ran successfully
Server metrics [RAM: ▲0.05MB] [CPU: ▼0.13ms] Passed 4 tests
This is a short check of server-side resources used by myCred Tutor LMS - Gamification in eLearning
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.05 | 40.66 ▲2.96 |
Dashboard /wp-admin | 3.35 ▲0.05 | 46.36 ▼0.85 |
Posts /wp-admin/edit.php | 3.47 ▲0.11 | 52.23 ▲1.63 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.05 | 95.54 ▲8.09 |
Media Library /wp-admin/upload.php | 3.27 ▲0.05 | 35.39 ▼4.24 |
Server storage [IO: ▲0.10MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 11 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
db_upgraded |
theysaidso_admin_options |
widget_recent-posts |
widget_recent-comments |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
myCred Tutor LMS - Gamification in eLearning: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,820 ▲58 | 14.04 ▼0.12 | 1.95 ▲0.40 | 43.43 ▼3.34 |
Dashboard /wp-admin | 2,197 ▲20 | 5.59 ▼0.07 | 86.17 ▼8.49 | 40.20 ▼5.50 |
Posts /wp-admin/edit.php | 2,105 ▲2 | 2.01 ▲0.05 | 39.10 ▼1.76 | 36.93 ▲0.68 |
Add New Post /wp-admin/post-new.php | 1,601 ▲75 | 23.43 ▲0.21 | 602.36 ▼176.58 | 32.69 ▼16.09 |
Media Library /wp-admin/upload.php | 1,402 ▲8 | 4.15 ▼0.06 | 96.68 ▼6.66 | 41.75 ▼3.86 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- The uninstall procedure has failed, leaving 6 options in the database
- theysaidso_admin_options
- db_upgraded
- widget_recent-posts
- widget_recent-comments
- can_compress_scripts
- widget_theysaidso_widget
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
Even though no errors were found, this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The following issues need your attention
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/mycred-tutor-lms-gamification-in-elearning/mycred-tutor-lms.php:103
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
5 plugin tags: quiz, gamification, elearning, mycred, lms
mycred-tutor-lms-gamification-in-elearning/mycred-tutor-lms.php 85% from 13 tests
This is the main PHP file of "myCred Tutor LMS - Gamification in eLearning" version 1.0.2, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
The following require your attention:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("mycred-tutor-lms-gamification-in-elearning.php" instead of "mycred-tutor-lms.php")
- Text Domain: The text domain name must use dashes instead of underscores, and it must be lowercase
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected2,097 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 8 | 499 | 260 | 1,898 |
JavaScript | 1 | 58 | 0 | 199 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.46 |
Average class complexity | 39.00 |
▷ Minimum class complexity | 8.00 |
▷ Maximum class complexity | 51.00 |
Average method complexity | 5.43 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 21.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 1 | 14.29% |
Methods | 60 | |
▷ Static methods | 1 | 1.67% |
▷ Public methods | 57 | 95.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 3 | 5.00% |
Functions | 6 | |
▷ Named functions | 6 | 100.00% |
▷ Anonymous functions | 0 | 0.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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG images were found in this plugin