Benchmarks
Plugin footprint 75% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Please fix the following installer errors
- The plugin cannot be installed
- > Warning in wp-content/plugins/elements-for-lifterlms/admin/class-elements-for-lifterlms-admin.php+133
require_once(wp-content/plugins/elements-for-lifterlms/admin/partials/elements-for-lifterlms-hide-elements.php): failed to open stream: No such file or directory
Server metrics [RAM: ▼0.00MB] [CPU: ▼148.57ms] Passed 4 tests
An overview of server-side resources used by Elements for LifterLMS
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.84 ▲0.00 | 34.92 ▲8.44 |
Dashboard /wp-admin | 3.06 ▼0.00 | 38.06 ▼4.75 |
Posts /wp-admin/edit.php | 3.11 ▲0.00 | 35.59 ▼2.27 |
Add New Post /wp-admin/post-new.php | 5.42 ▼0.02 | 73.88 ▼586.92 |
Media Library /wp-admin/upload.php | 3.00 ▲0.00 | 24.65 ▼0.32 |
Server storage [IO: ▲4.21MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 228 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
A check of browser resources used by Elements for LifterLMS
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,666 ▲65 | 15.98 ▲0.02 | 4.83 ▼0.10 | 75.02 ▼0.48 |
Dashboard /wp-admin | 2,930 ▲34 | 6.12 ▼0.14 | 113.10 ▼20.66 | 163.96 ▼9.32 |
Posts /wp-admin/edit.php | 2,740 ▼0 | 3.22 ▼0.00 | 61.87 ▼2.07 | 138.69 ▲4.98 |
Add New Post /wp-admin/post-new.php | 3,736 ▲1 | 18.32 ▲0.58 | 443.52 ▼16.55 | 154.57 ▼18.21 |
Media Library /wp-admin/upload.php | 1,752 ▼0 | 5.54 ▲0.01 | 135.37 ▼0.75 | 183.34 ▼4.06 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
This plugin's uninstaller ran successfully
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following
- 2× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/elements-for-lifterlms/freemius/templates/ajax-loader.php
- > /wp-content/plugins/elements-for-lifterlms/public/partials/elements-for-lifterlms-public-display.php
- 29× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function freemius() in wp-content/plugins/elements-for-lifterlms/freemius/templates/partials/network-activation.php:6
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/elements-for-lifterlms/freemius/templates/account/partials/addon.php on line 8
- > PHP Notice
Undefined variable: VARS in wp-content/plugins/elements-for-lifterlms/freemius/templates/account/partials/addon.php on line 7
- > PHP Fatal error
Uncaught Error: Class 'Elementor\\Widget_Base' not found in wp-content/plugins/elements-for-lifterlms/includes/widgets/lesson-navigation.php:8
- > PHP Fatal error
Uncaught Error: Class 'Elementor\\Widget_Base' not found in wp-content/plugins/elements-for-lifterlms/includes/widgets/lesson-progress-bar.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function current_user_can() in wp-content/plugins/elements-for-lifterlms/admin/partials/elements-for-lifterlms-admin-settings-page.php:14
- > PHP Fatal error
Uncaught Error: Class 'Elementor\\Widget_Base' not found in wp-content/plugins/elements-for-lifterlms/includes/widgets/course-pricing-table.php:8
- > PHP Fatal error
Uncaught Error: Class 'Elementor\\Widget_Base' not found in wp-content/plugins/elements-for-lifterlms/includes/widgets/course-continue-button.php:8
- > PHP Fatal error
Uncaught Error: Class 'Elementor\\Widget_Base' not found in wp-content/plugins/elements-for-lifterlms/includes/widgets/course-syllabus.php:8
- > PHP Fatal error
Uncaught Error: Class 'Elementor\\Widget_Base' not found in wp-content/plugins/elements-for-lifterlms/includes/widgets/course-prerequisite.php:7
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that require attention:
- Tags: Please reduce the number of tags, currently 13 tag instead of maximum 10
elements-for-lifterlms/elements-for-lifterlms.php 92% from 13 tests
This is the main PHP file of "Elements for LifterLMS" version 1.1.2, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please take the time to fix the following:
- Description: Please don't use more than 140 characters for the plugin description (currently 158 characters long)
Code Analysis 97% from 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
Everything looks great! No dangerous files found in this plugin58,149 lines of code in 172 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 136 | 9,361 | 17,958 | 39,838 |
PO File | 10 | 5,710 | 6,913 | 12,558 |
CSS | 14 | 617 | 112 | 2,952 |
JavaScript | 7 | 908 | 107 | 2,366 |
Sass | 2 | 27 | 5 | 262 |
LESS | 1 | 11 | 5 | 152 |
SVG | 1 | 1 | 0 | 13 |
Ruby | 1 | 2 | 0 | 8 |
PHP code 50% from 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Please fix the following
- Cyclomatic complexity of classes has to be reduced to less than 1000 (currently 2,895)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.58 |
Average class complexity | 64.39 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 2,895.00 |
Average method complexity | 4.55 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 86.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 72 | |
▷ Abstract classes | 2 | 2.78% |
▷ Concrete classes | 70 | 97.22% |
▷ Final classes | 0 | 0.00% |
Methods | 1,317 | |
▷ Static methods | 176 | 13.36% |
▷ Public methods | 935 | 70.99% |
▷ Protected methods | 49 | 3.72% |
▷ Private methods | 333 | 25.28% |
Functions | 102 | |
▷ Named functions | 102 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 127 | |
▷ Global constants | 100 | 78.74% |
▷ Class constants | 27 | 21.26% |
▷ Public constants | 27 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
5 PNG files occupy 0.05MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/img/elements-for-lifterlms-logo.png | 2.66KB | 2.32KB | ▼ 13.05% |
freemius/assets/img/plugin-icon.png | 9.16KB | 5.26KB | ▼ 42.58% |
freemius/assets/img/theme-icon.png | 10.97KB | 5.78KB | ▼ 47.37% |
admin/img/elements-for-lifterlms.png | 0.76KB | 0.74KB | ▼ 2.81% |
admin/img/llmse-logo-freemius.png | 24.82KB | 12.00KB | ▼ 51.63% |