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
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.00MB] [CPU: ▼4.37ms] Passed 4 tests
Analyzing server-side resources used by BuddyPress for LearnDash
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.00 | 41.70 ▼0.09 |
Dashboard /wp-admin | 3.31 ▲0.00 | 47.40 ▼8.13 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 52.28 ▼2.32 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 83.91 ▼5.14 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 37.45 ▼1.88 |
Server storage [IO: ▲0.32MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 33 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
db_upgraded |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-comments |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Checking browser requirements for BuddyPress for LearnDash
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲28 | 14.63 ▲0.27 | 2.49 ▲0.89 | 42.41 ▲1.12 |
Dashboard /wp-admin | 2,195 ▲18 | 5.64 ▼0.05 | 93.96 ▼2.03 | 38.99 ▼3.86 |
Posts /wp-admin/edit.php | 2,103 ▲3 | 2.00 ▼0.02 | 42.55 ▲4.18 | 38.75 ▲2.19 |
Add New Post /wp-admin/post-new.php | 1,531 ▲5 | 23.01 ▲5.42 | 658.40 ▲42.63 | 64.08 ▼0.01 |
Media Library /wp-admin/upload.php | 1,400 ▲3 | 4.22 ▲0.01 | 99.82 ▼3.95 | 43.78 ▼2.57 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- Zombie WordPress options detected upon uninstall: 6 options
- db_upgraded
- can_compress_scripts
- widget_recent-posts
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function locate_template() in wp-content/plugins/buddypress-learndash/templates/courses.php:8
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that require attention:
- Tags: Please reduce the number of tags, currently 21 tag instead of maximum 10
buddypress-learndash/buddypress-learndash.php Passed 13 tests
The main PHP file in "BuddyPress for LearnDash" ver. 1.3.0 adds more information about the plugin and also serves as the entry point for this plugin
98 characters long description:
Integrate the LearnDash LMS plugin with BuddyPress, so you can add courses to your social network.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Success! There were no dangerous files found in this plugin4,883 lines of code in 27 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 15 | 638 | 933 | 2,451 |
JSON | 2 | 0 | 0 | 1,608 |
PO File | 3 | 270 | 362 | 649 |
JavaScript | 3 | 22 | 72 | 162 |
CSS | 4 | 2 | 3 | 13 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
Average class complexity | 29.75 |
▷ Minimum class complexity | 7.00 |
▷ Maximum class complexity | 89.00 |
Average method complexity | 3.28 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 20.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 101 | |
▷ Static methods | 7 | 6.93% |
▷ Public methods | 96 | 95.05% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 4.95% |
Functions | 56 | |
▷ Named functions | 56 | 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
PNG files should be compressed to save space and minimize bandwidth usage
There were not PNG files found in your plugin