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: ▲0.08MB] [CPU: ▼0.17ms] Passed 4 tests
Server-side resources used by Course Redirects for Learndash Plugin
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.54 ▲0.09 | 37.39 ▼3.59 |
Dashboard /wp-admin | 3.39 ▲0.08 | 45.06 ▼2.71 |
Posts /wp-admin/edit.php | 3.44 ▲0.08 | 49.35 ▲0.79 |
Add New Post /wp-admin/post-new.php | 5.97 ▲0.08 | 94.30 ▲4.91 |
Media Library /wp-admin/upload.php | 3.31 ▲0.08 | 36.08 ▲4.83 |
Visitor & Views Counter /wp-admin/admin.php?page=visitor-views-counter | 3.28 | 30.77 |
Dashboard /wp-admin/admin.php?page=vvc-counter | 3.28 | 26.52 |
Course Redirects for Learndash /wp-admin/admin.php?page=page-settings | 3.27 | 31.54 |
Server storage [IO: ▲0.43MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 6 new files
Database: 2 new tables, 9 new options
New tables |
---|
wp_redirect_course |
wp_visitor_views_counter |
New WordPress options |
---|
db_upgraded |
migrated_to_version |
can_compress_scripts |
vvc_simple_hits_counter_version |
vvc_update_ran |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-posts |
widget_recent-comments |
Browser metrics Passed 4 tests
Course Redirects for Learndash Plugin: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,976 ▲241 | 14.03 ▼0.36 | 10.19 ▲8.54 | 37.22 ▼4.51 |
Dashboard /wp-admin | 2,232 ▲41 | 5.88 ▲0.01 | 96.92 ▼2.81 | 42.30 ▼0.31 |
Posts /wp-admin/edit.php | 2,140 ▲51 | 2.00 ▼0.04 | 40.41 ▼1.56 | 35.71 ▼0.02 |
Add New Post /wp-admin/post-new.php | 1,569 ▲36 | 18.38 ▼4.88 | 582.82 ▼77.93 | 56.57 ▼9.15 |
Media Library /wp-admin/upload.php | 1,417 ▲29 | 4.31 ▲0.15 | 96.70 ▼1.00 | 43.33 ▲2.30 |
Visitor & Views Counter /wp-admin/admin.php?page=visitor-views-counter | 853 | 3.86 | 115.95 | 24.62 |
Dashboard /wp-admin/admin.php?page=vvc-counter | 858 | 3.90 | 113.68 | 21.28 |
Course Redirects for Learndash /wp-admin/admin.php?page=page-settings | 804 | 2.05 | 24.95 | 28.65 |
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 9 options in the database
- can_compress_scripts
- theysaidso_admin_options
- vvc_simple_hits_counter_version
- widget_recent-comments
- migrated_to_version
- db_upgraded
- widget_theysaidso_widget
- widget_recent-posts
- vvc_update_ran
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected
SRP 50% 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
Almost there! Just fix the following items
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/course-redirects-for-learndash/redirect_course.php:32
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected
Optimizations
Plugin configuration 86% from 29 tests
readme.txt 81% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Please fix the following attributes:
- Donate link: Invalid URI ("paypal.me/cbs1989")
- Screenshots: Please add an image for screenshot #2 (Page Id's)
- Screenshots: Please describe screenshot #0 in course-redirects-for-learndash/assets to your readme.txt
course-redirects-for-learndash/redirect_course.php 92% from 13 tests
The primary PHP file in "Course Redirects for Learndash Plugin" version 0.3 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
- Main file name: The principal plugin file should be the same as the plugin slug ("course-redirects-for-learndash.php" instead of "redirect_course.php")
Code Analysis Passed 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
Good job! No executable or dangerous file extensions detected414 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 82 | 24 | 403 |
JavaScript | 3 | 0 | 14 | 11 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.24 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 18 | |
▷ Named functions | 16 | 88.89% |
▷ Anonymous functions | 2 | 11.11% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
No PNG files were detected