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
Install script ran successfully
Server metrics [RAM: ▲0.43MB] [CPU: ▼1.13ms] Passed 4 tests
Server-side resources used by PowerPack for LearnDash
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.90 ▲0.44 | 41.57 ▲0.08 |
Dashboard /wp-admin | 3.74 ▲0.43 | 47.73 ▼1.88 |
Posts /wp-admin/edit.php | 3.85 ▲0.50 | 46.63 ▲2.00 |
Add New Post /wp-admin/post-new.php | 6.32 ▲0.43 | 96.73 ▼4.70 |
Media Library /wp-admin/upload.php | 3.66 ▲0.43 | 44.60 ▲9.39 |
PowerPack /wp-admin/admin.php?page=learndash-powerpack | 3.64 | 41.63 |
Server storage [IO: ▲4.92MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 68 new files
Database: no new tables, 7 new options
New WordPress options |
---|
ld_powerpack_version |
widget_recent-comments |
db_upgraded |
widget_recent-posts |
can_compress_scripts |
theysaidso_admin_options |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
A check of browser resources used by PowerPack for LearnDash
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,816 ▲81 | 13.61 ▼1.08 | 1.52 ▼0.25 | 40.35 ▼2.93 |
Dashboard /wp-admin | 2,225 ▲37 | 5.89 ▼0.02 | 102.91 ▼10.00 | 41.06 ▼9.74 |
Posts /wp-admin/edit.php | 2,104 ▲15 | 2.04 ▲0.04 | 38.06 ▼0.54 | 38.49 ▲2.57 |
Add New Post /wp-admin/post-new.php | 1,544 ▲11 | 23.10 ▼0.31 | 648.17 ▼2.75 | 60.93 ▲0.78 |
Media Library /wp-admin/upload.php | 1,404 ▲16 | 4.19 ▼0.09 | 113.95 ▲9.72 | 48.72 ▲0.36 |
PowerPack /wp-admin/admin.php?page=learndash-powerpack | 2,168 | 2.08 | 25.70 | 34.98 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 7 options in the database
- theysaidso_admin_options
- can_compress_scripts
- db_upgraded
- ld_powerpack_version
- widget_recent-posts
- widget_recent-comments
- widget_theysaidso_widget
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected
SRP Passed 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Everything seems fine, however this is by no means an exhaustive test
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)
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
5 plugin tags: education, learndash, elearning, lms, learning
powerpack-for-learndash/learndash-powerpack.php 85% from 13 tests
The entry point to "PowerPack for LearnDash" version 1.3.2 is a PHP file that has certain tags in its header comment area
Please make the necessary changes and fix the following:
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
- Main file name: It is recommended to name the main PHP file as the plugin slug ("powerpack-for-learndash.php" instead of "learndash-powerpack.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
There were no executable files found in this plugin2,688 lines of code in 57 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 51 | 587 | 1,800 | 2,360 |
CSS | 3 | 29 | 6 | 201 |
JavaScript | 2 | 12 | 14 | 126 |
SVG | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.40 |
Average class complexity | 5.81 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 26.00 |
Average method complexity | 2.34 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 16.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 48 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 48 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 170 | |
▷ Static methods | 5 | 2.94% |
▷ Public methods | 170 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 12 | |
▷ Named functions | 11 | 91.67% |
▷ Anonymous functions | 1 | 8.33% |
Constants | 4 | |
▷ Global constants | 4 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
7 PNG files occupy 1.34MB with 0.90MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
.wordpress-org/screenshot-2.png | 149.40KB | 41.20KB | ▼ 72.42% |
.wordpress-org/screenshot-1.png | 231.56KB | 70.45KB | ▼ 69.58% |
.wordpress-org/screenshot-3.png | 344.76KB | 98.92KB | ▼ 71.31% |
.wordpress-org/icon-256x256.png | 56.40KB | 20.39KB | ▼ 63.84% |
.wordpress-org/banner-1544x500.png | 384.55KB | 166.96KB | ▼ 56.58% |