Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▼0.02MB] [CPU: ▼295.85ms] Passed 4 tests
A check of server-side resources used by Adaptive Learning With LearnDash
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.01 | 95.92 ▲45.17 |
Dashboard /wp-admin | 3.41 ▲0.00 | 37.04 ▲2.12 |
Posts /wp-admin/edit.php | 3.64 ▲0.00 | 35.78 ▼3.25 |
Add New Post /wp-admin/post-new.php | 6.88 ▼0.09 | 101.95 ▼1,185.33 |
Media Library /wp-admin/upload.php | 3.29 ▲0.00 | 28.54 ▲3.06 |
Server storage [IO: ▲0.15MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 20 new files
Database: no new tables, 1 new option
New WordPress options |
---|
al_version |
Browser metrics Passed 4 tests
An overview of browser requirements for Adaptive Learning With LearnDash
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,897 ▲143 | 16.44 ▲0.82 | 5.92 ▼0.23 | 2.10 ▼0.79 |
Dashboard /wp-admin | 2,895 ▲37 | 5.99 ▼0.13 | 122.38 ▼15.41 | 163.71 ▼3.06 |
Posts /wp-admin/edit.php | 2,691 ▼0 | 3.24 ▼0.13 | 96.24 ▲30.36 | 170.48 ▲25.14 |
Add New Post /wp-admin/post-new.php | 1,661 ▼29 | 16.18 ▼5.21 | 434.08 ▼5.63 | 195.32 ▲5.53 |
Media Library /wp-admin/upload.php | 1,698 ▲3 | 5.51 ▼0.02 | 141.98 ▲4.78 | 193.76 ▼53.22 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- This plugin does not fully uninstall, leaving 1 option in the database
- al_version
Smoke tests Passed 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 Passed 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
Looking good! No server-side errors or output on direct access of PHP files
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 90% from 29 tests
readme.txt 88% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that need to be fixed:
- Screenshots: Please add descriptions for these screenshots #2, #3, #4 in adaptive-learning-with-learndash/assets to your readme.txt
- Donate link: Please fix this invalid URI: ""
adaptive-learning-with-learndash/adaptive-learning-with-learndash.php 92% from 13 tests
Analyzing the main PHP file in "Adaptive Learning With LearnDash" version 1.6
You should first fix the following items:
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin1,042 lines of code in 13 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 8 | 224 | 298 | 856 |
JavaScript | 2 | 16 | 44 | 109 |
CSS | 3 | 0 | 0 | 77 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.46 |
Average class complexity | 24.00 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 98.00 |
Average method complexity | 4.54 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 17.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 6 | 100.00% |
▷ Final classes | 1 | 16.67% |
Methods | 39 | |
▷ Static methods | 29 | 74.36% |
▷ Public methods | 38 | 97.44% |
▷ Protected methods | 1 | 2.56% |
▷ Private methods | 0 | 0.00% |
Functions | 6 | |
▷ Named functions | 6 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 5 | |
▷ Global constants | 5 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
4 PNG files occupy 0.08MB with 0.04MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/screenshot-1.png | 49.41KB | 25.59KB | ▼ 48.21% |
assets/screenshot-2.png | 10.10KB | 5.51KB | ▼ 45.43% |
assets/screenshot-4.png | 11.41KB | 6.34KB | ▼ 44.38% |
assets/screenshot-3.png | 12.24KB | 7.07KB | ▼ 42.29% |