Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▲0.43MB] [CPU: ▼1.32ms] Passed 4 tests
Server-side resources used by Premium Courses & eLearning with Paid Memberships Pro for LearnDash, LifterLMS, Sensei LMS & TutorLMS
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.92 ▲0.45 | 43.62 ▲2.86 |
Dashboard /wp-admin | 3.76 ▲0.41 | 50.63 ▼9.32 |
Posts /wp-admin/edit.php | 3.81 ▲0.45 | 48.67 ▲5.42 |
Add New Post /wp-admin/post-new.php | 6.49 ▲0.60 | 89.97 ▼0.83 |
Media Library /wp-admin/upload.php | 3.62 ▲0.39 | 37.20 ▲2.02 |
Course Settings /wp-admin/admin.php?page=pmpro-courses-settings | 3.60 | 34.62 |
Server storage [IO: ▲0.32MB] [DB: ▲0.07MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 36 new files
Database: no new tables, 9 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-comments |
pmpro_courses_modules |
widget_recent-posts |
db_upgraded |
can_compress_scripts |
recovery_mode_email_last_sent |
pmpro_courses_db_version |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Checking browser requirements for Premium Courses & eLearning with Paid Memberships Pro for LearnDash, LifterLMS, Sensei LMS & TutorLMS
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,854 ▲93 | 14.25 ▼0.13 | 1.72 ▲0.07 | 46.28 ▲8.33 |
Dashboard /wp-admin | 2,237 ▲60 | 5.67 ▼0.03 | 96.50 ▲8.97 | 45.30 ▲2.56 |
Posts /wp-admin/edit.php | 2,145 ▲45 | 1.97 ▼0.03 | 35.33 ▲0.33 | 32.30 ▼4.83 |
Add New Post /wp-admin/post-new.php | 1,565 ▲37 | 23.69 ▲0.67 | 678.60 ▼0.94 | 53.46 ▲4.19 |
Media Library /wp-admin/upload.php | 1,442 ▲45 | 4.21 ▲0.06 | 97.82 ▼1.55 | 44.10 ▼0.04 |
Course Settings /wp-admin/admin.php?page=pmpro-courses-settings | 728 | 1.62 | 8.92 | 20.86 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
- Zombie WordPress options detected upon uninstall: 9 options
- widget_recent-comments
- can_compress_scripts
- theysaidso_admin_options
- pmpro_courses_modules
- db_upgraded
- pmpro_courses_db_version
- recovery_mode_email_last_sent
- widget_theysaidso_widget
- widget_recent-posts
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Almost there, just fix the following server-side errors
- > GET request to /wp-admin/admin.php?page=pmpro-courses-settings
- > Warning in wp-content/plugins/pmpro-courses/includes/adminpages/settings.php+2
Use of undefined constant PMPRO_DIR - assumed 'PMPRO_DIR' (this will throw an Error in a future version of PHP)
- > GET request to /wp-admin/admin.php?page=pmpro-courses-settings
- > Warning in wp-content/plugins/pmpro-courses/includes/adminpages/settings.php+2
require_once(PMPRO_DIR/adminpages/admin_header.php): failed to open stream: No such file or directory
- > GET request to /wp-admin/admin.php?page=pmpro-courses-settings
- > Compile error in wp-content/plugins/pmpro-courses/includes/adminpages/settings.php+2
require_once(): Failed opening required 'PMPRO_DIR/adminpages/admin_header.php' (include_path='.:/usr/share/php')
SRP 0% from 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
Please fix the following
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/pmpro-courses/pmpro-courses.php
- 17× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Warning
require_once(PMPRO_DIR/adminpages/admin_header.php): failed to open stream: No such file or directory in wp-content/plugins/pmpro-courses/includes/adminpages/settings.php on line 2
- > PHP Fatal error
Uncaught Error: Class 'PMPro_Courses_Module' not found in wp-content/plugins/pmpro-courses/includes/modules/lifterlms.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/pmpro-courses/includes/post-types/lessons.php:65
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/pmpro-courses/includes/shortcodes/my-courses.php:26
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/pmpro-courses/includes/settings.php:24
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/pmpro-courses/includes/post-types/courses.php:76
- > PHP Warning
Use of undefined constant PMPRO_DIR - assumed 'PMPRO_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/pmpro-courses/includes/adminpages/settings.php on line 2
- > PHP Fatal error
require_once(): Failed opening required 'PMPRO_DIR/adminpages/admin_header.php' (include_path='.:/usr/share/php') in wp-content/plugins/pmpro-courses/includes/adminpages/settings.php on line 2
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/pmpro-courses/includes/admin.php:17
- > PHP Fatal error
Uncaught Error: Class 'PMPro_Courses_Module' not found in wp-content/plugins/pmpro-courses/includes/modules/learndash.php:2
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
6 plugin tags: pmpro, course, lms, membership, elearning...
pmpro-courses/pmpro-courses.php Passed 13 tests
The primary PHP file in "Premium Courses & eLearning with Paid Memberships Pro for LearnDash, LifterLMS, Sensei LMS & TutorLMS" version 1.2.5 is used by WordPress to initiate all plugin functionality
89 characters long description:
Create courses and lessons for members. Integrates LMS plugins with Paid Memberships Pro.
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
There were no executable files found in this plugin8,119 lines of code in 33 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 6 | 1,152 | 307 | 5,360 |
PHP | 20 | 367 | 637 | 1,744 |
CSS | 4 | 68 | 9 | 714 |
PO File | 1 | 118 | 228 | 259 |
JSON | 2 | 0 | 0 | 42 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 24.00 |
▷ Minimum class complexity | 6.00 |
▷ Maximum class complexity | 34.00 |
Average method complexity | 3.35 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 11.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 49 | |
▷ Static methods | 35 | 71.43% |
▷ Public methods | 48 | 97.96% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 2.04% |
Functions | 59 | |
▷ Named functions | 59 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
There were not PNG files found in your plugin