Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.64MB] [CPU: ▲1.20ms] Passed 4 tests
This is a short check of server-side resources used by CLUEVO LMS, E-Learning Platform
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.01 ▲0.54 | 45.68 ▲7.67 |
Dashboard /wp-admin | 3.97 ▲0.62 | 58.69 ▼5.03 |
Posts /wp-admin/edit.php | 4.10 ▲0.74 | 56.40 ▲8.01 |
Add New Post /wp-admin/post-new.php | 7.09 ▲1.20 | 98.61 ▼5.87 |
Media Library /wp-admin/upload.php | 3.89 ▲0.66 | 46.48 ▲11.05 |
Settings /wp-admin/admin.php?page=cluevo-settings | 3.96 | 50.43 |
Learning Management /wp-admin/admin.php?page=cluevo-lms | 3.89 | 96.20 |
User Management /wp-admin/admin.php?page=cluevo-users | 3.86 | 41.33 |
LMS Posts /wp-admin/edit.php?post_type=cluevo-lms-metadata | 4.02 | 72.18 |
Extensions /wp-admin/admin.php?page=cluevo-ext-page | 3.67 | 29.59 |
Competence /wp-admin/admin.php?page=cluevo-competence | 3.86 | 46.12 |
Reporting /wp-admin/admin.php?page=cluevo-reporting | 3.88 | 52.83 |
Module Ratings /wp-admin/admin.php?page=cluevo-module-ratings | 3.86 | 45.74 |
Server storage [IO: ▲14.73MB] [DB: ▲0.11MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 195 new files
Database: 20 new tables, 15 new options
New tables |
---|
wp_cluevo_tree_dependencies |
wp_cluevo_user_exp_log |
wp_cluevo_languages |
wp_cluevo_user_groups |
wp_cluevo_scorm_parameters |
wp_cluevo_tree_module_dependencies |
wp_cluevo_modules |
wp_cluevo_tree_modules |
wp_cluevo_user_data |
wp_cluevo_module_mime_types |
... |
New WordPress options |
---|
widget_theysaidso_widget |
cluevo-exp-first-level |
cluevo-lms-tree-1 |
cluevo-auto-add-new-users |
cluevo-max-level |
cluevo-modules-display-mode |
cluevo-prepared-tree-1 |
cluevo-modules-display-position |
db_upgraded |
can_compress_scripts |
... |
Browser metrics Passed 4 tests
This is an overview of browser requirements for CLUEVO LMS, E-Learning Platform
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,990 ▲229 | 14.80 ▲0.28 | 21.19 ▲19.59 | 28.54 ▼10.90 |
Dashboard /wp-admin | 2,262 ▲85 | 5.61 ▼0.04 | 85.56 ▼0.70 | 45.28 ▲1.55 |
Posts /wp-admin/edit.php | 2,174 ▲77 | 2.05 ▲0.04 | 36.50 ▼0.33 | 37.76 ▲2.78 |
Add New Post /wp-admin/post-new.php | 1,586 ▲60 | 23.10 ▼0.07 | 649.93 ▼27.29 | 57.53 ▲0.05 |
Media Library /wp-admin/upload.php | 1,464 ▲61 | 4.23 ▲0.05 | 99.65 ▲1.04 | 46.38 ▲3.12 |
Settings /wp-admin/admin.php?page=cluevo-settings | 3,560 | 2.93 | 61.77 | 54.47 |
Learning Management /wp-admin/admin.php?page=cluevo-lms | 2,295 | 3.81 | 70.27 | 40.27 |
User Management /wp-admin/admin.php?page=cluevo-users | 1,924 | 4.57 | 60.50 | 29.87 |
LMS Posts /wp-admin/edit.php?post_type=cluevo-lms-metadata | 2,338 | 2.04 | 35.23 | 34.87 |
Extensions /wp-admin/admin.php?page=cluevo-ext-page | 3,810 | 8.27 | 358.28 | 295.14 |
Competence /wp-admin/admin.php?page=cluevo-competence | 1,488 | 2.29 | 47.58 | 33.62 |
Reporting /wp-admin/admin.php?page=cluevo-reporting | 1,533 | 2.08 | 28.16 | 36.72 |
Module Ratings /wp-admin/admin.php?page=cluevo-module-ratings | 1,397 | 2.19 | 26.22 | 28.64 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.11MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- The uninstall procedure failed, leaving 20 tables in the database
- wp_cluevo_languages
- wp_cluevo_competence_areas
- wp_cluevo_competences_to_areas
- wp_cluevo_tree
- wp_cluevo_users_to_groups
- wp_cluevo_user_groups
- wp_cluevo_tree_dependencies
- wp_cluevo_tree_module_dependencies
- wp_cluevo_module_mime_types
- wp_cluevo_tree_modules
- ...
- Zombie WordPress options detected upon uninstall: 15 options
- db_upgraded
- widget_recent-posts
- theysaidso_admin_options
- cluevo-modules-display-mode
- cluevo-max-level
- widget_recent-comments
- widget_theysaidso_widget
- cluevo-exp-first-level
- can_compress_scripts
- cluevo-modules-display-position
- ...
Smoke tests 50% 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 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following
- 59× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/cluevo-lms/templates/content-module-post.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/cluevo-lms/help/posts.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/cluevo-lms/classes/class.competence_area.inc.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/cluevo-lms/admin-views/class.module-ratings-page.php:12
- > PHP Notice
Undefined variable: item in wp-content/plugins/cluevo-lms/templates/part-toc-item.php on line 1
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/cluevo-lms/help/permissions.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function cluevo_get_cluevo_lms() in wp-content/plugins/cluevo-lms/templates/part-dependency-list.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function cluevo_get_the_lms_user() in wp-content/plugins/cluevo-lms/templates/content-user-profile.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/cluevo-lms/admin-views/plugin-settings-page-general-settings.php:833
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/cluevo-lms/functions/functions.site-report.inc.php:6
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Please fix the following browser errors
- > GET request to /wp-admin/admin.php?page=cluevo-ext-page
- > Network (severe)
https://www.paypalobjects.com/en_AT/i/scr/pixel.gif - Failed to load resource: the server responded with a status of 404 ()
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Please fix the following attributes:
- Tags: You are using too many tags: 12 tag instead of maximum 10
cluevo-lms/cluevo-lms.php 92% from 13 tests
The principal PHP file in "CLUEVO LMS, E-Learning Platform" v. 1.12.4 is loaded by WordPress automatically on each request
It is important to fix the following:
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
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
There were no executable files found in this plugin140,124 lines of code in 144 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 33 | 15,470 | 14,234 | 106,446 |
PHP | 83 | 2,161 | 1,369 | 19,612 |
SVG | 21 | 3 | 5 | 9,689 |
PO File | 3 | 2,013 | 3,281 | 4,373 |
CSS | 4 | 0 | 5 | 4 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.41 |
Average class complexity | 33.45 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 77.00 |
Average method complexity | 3.33 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 17.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 11 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 11 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 150 | |
▷ Static methods | 83 | 55.33% |
▷ Public methods | 125 | 83.33% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 25 | 16.67% |
Functions | 730 | |
▷ Named functions | 597 | 81.78% |
▷ Anonymous functions | 133 | 18.22% |
Constants | 103 | |
▷ Global constants | 99 | 96.12% |
▷ Class constants | 4 | 3.88% |
▷ Public constants | 4 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
25 PNG files occupy 0.98MB with 0.28MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/icon-module-ui-pdf_256x256.png | 5.72KB | 3.51KB | ▼ 38.69% |
images/icon-module-ui-audio_256x256.png | 8.82KB | 4.35KB | ▼ 50.71% |
images/icon-module-ui-scorm-1-2_256x256.png | 11.10KB | 5.02KB | ▼ 54.76% |
assets/screenshot-2.png | 23.51KB | 24.15KB | 0.00% |
images/quiz_questions.png | 27.50KB | 28.15KB | 0.00% |