Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▼8.68MB] [CPU: ▼1,790,536.81ms] Passed 4 tests
This is a short check of server-side resources used by Video Resume for LearnDash
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.57 ▼34.82 | 40.40 ▼7,162,096.63 |
Dashboard /wp-admin | 3.40 ▲0.01 | 49.53 ▼17.63 |
Posts /wp-admin/edit.php | 3.51 ▲0.11 | 53.21 ▼4.27 |
Add New Post /wp-admin/post-new.php | 5.98 ▲0.05 | 83.76 ▼28.72 |
Media Library /wp-admin/upload.php | 3.32 ▲0.05 | 41.37 ▲1.49 |
Server storage [IO: ▲1.12MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 32 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
theysaidso_admin_options |
db_upgraded |
widget_recent-posts |
can_compress_scripts |
widget_recent-comments |
Browser metrics Passed 4 tests
Checking browser requirements for Video Resume for LearnDash
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,814 ▲68 | 14.34 ▼0.01 | 1.91 ▲0.07 | 42.13 ▼0.06 |
Dashboard /wp-admin | 2,198 ▲21 | 5.62 ▲0.05 | 89.20 ▼8.67 | 37.24 ▼7.36 |
Posts /wp-admin/edit.php | 2,100 ▼3 | 2.01 ▲0.06 | 41.17 ▲4.00 | 38.15 ▲0.39 |
Add New Post /wp-admin/post-new.php | 1,526 ▼0 | 23.21 ▼0.30 | 689.43 ▼14.71 | 64.62 ▲6.31 |
Media Library /wp-admin/upload.php | 1,400 ▼0 | 4.12 ▼0.07 | 109.22 ▼8.76 | 46.58 ▼3.33 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-comments
- theysaidso_admin_options
- db_upgraded
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 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
Please fix the following items
- 4× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function ld_video_resume_ns\\add_action() in wp-content/plugins/ld-video-resume/public/class-video_resume.php:28
- > PHP Fatal error
Uncaught Error: Call to undefined function ld_video_resume_ns\\add_filter() in wp-content/plugins/ld-video-resume/admin/class-video-resume-setting.php:28
- > PHP Fatal error
Uncaught Error: Call to undefined function ld_video_resume_ns\\add_action() in wp-content/plugins/ld-video-resume/public/class-video_resume.php:28
- > PHP Fatal error
Uncaught Error: Call to undefined function ld_video_resume_ns\\add_filter() in wp-content/plugins/ld-video-resume/admin/class-video-resume-setting.php:28
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Please fix the following attributes:
- Screenshots: Add images for these screenshots: #1 (screenshot-1.png Video setting on lesson/topic edit page), #2 (screenshot-2.png Front-end demo)
ld-video-resume/sfwd-video-resume.php 85% from 13 tests
Analyzing the main PHP file in "Video Resume for LearnDash" version 1.1.0.2
It is important to fix the following:
- Text Domain: The text domain should only use lowercase characters and dashes
- Main file name: Name the main plugin file the same as the plugin slug ("ld-video-resume.php" instead of "sfwd-video-resume.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Good job! No executable or dangerous file extensions detected414 lines of code in 14 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 6 | 45 | 40 | 233 |
PHP | 8 | 51 | 95 | 181 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
Average class complexity | 14.00 |
▷ Minimum class complexity | 12.00 |
▷ Maximum class complexity | 16.00 |
Average method complexity | 4.25 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 11.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 8 | |
▷ Static methods | 2 | 25.00% |
▷ Public methods | 8 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 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
2 PNG files occupy 1.09MB with 0.77MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-2.png | 1,011.21KB | 322.33KB | ▼ 68.12% |
screenshot-1.png | 109.36KB | 29.34KB | ▼ 73.17% |