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 gracefully, with no errors
Server metrics [RAM: ▼0.01MB] [CPU: ▼4.48ms] Passed 4 tests
This is a short check of server-side resources used by BadgeOS LearnDash Add-on
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 40.07 ▲3.21 |
Dashboard /wp-admin | 3.31 ▼0.04 | 53.60 ▼6.00 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 43.75 ▼4.50 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 80.79 ▼6.73 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 33.46 ▼0.70 |
Server storage [IO: ▲0.19MB] [DB: ▲0.31MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 12 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
widget_theysaidso_widget |
can_compress_scripts |
theysaidso_admin_options |
db_upgraded |
widget_recent-posts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for BadgeOS LearnDash Add-on
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲43 | 14.40 ▲0.12 | 1.83 ▲0.25 | 42.07 ▲0.91 |
Dashboard /wp-admin | 2,189 ▲22 | 5.54 ▼0.12 | 81.13 ▼15.29 | 39.02 ▼2.24 |
Posts /wp-admin/edit.php | 2,097 ▼3 | 2.01 ▼0.00 | 35.07 ▼1.66 | 32.41 ▲0.27 |
Add New Post /wp-admin/post-new.php | 1,526 ▼2 | 23.76 ▲0.68 | 630.57 ▼44.98 | 54.25 ▼7.65 |
Media Library /wp-admin/upload.php | 1,397 ▼3 | 4.25 ▲0.07 | 100.85 ▲6.45 | 44.64 ▼0.15 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.31MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- theysaidso_admin_options
- widget_recent-comments
- db_upgraded
- widget_recent-posts
- widget_theysaidso_widget
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 50% 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
The following issues need your attention
- 3× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/badgeos-learndash-add-on/badgeos-learndash.php:57
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/badgeos-learndash-add-on/includes/rules-engine.php:42
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/badgeos-learndash-add-on/includes/steps-ui.php:31
- > PHP Fatal error
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 86% from 29 tests
readme.txt 81% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes:
- Requires at least: Version not formatted correctly
- Screenshots: These screenshots lack descriptions #4, #5, #6, #7 in badgeos-learndash-add-on/assets to your readme.txt
- Tags: Please reduce the number of tags, currently 17 tag instead of maximum 10
badgeos-learndash-add-on/badgeos-learndash.php 92% from 13 tests
"BadgeOS LearnDash Add-on" version 1.2.5's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
It is important to fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("badgeos-learndash-add-on.php" instead of "badgeos-learndash.php")
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
No dangerous file extensions were detected2,153 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 567 | 867 | 2,028 |
PO File | 1 | 38 | 38 | 105 |
JavaScript | 1 | 1 | 1 | 16 |
CSS | 1 | 1 | 1 | 3 |
Markdown | 1 | 1 | 0 | 1 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.64 |
Average class complexity | 16.00 |
▷ Minimum class complexity | 9.00 |
▷ Maximum class complexity | 23.00 |
Average method complexity | 3.31 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 10.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 13 | |
▷ Static methods | 1 | 7.69% |
▷ Public methods | 13 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 21 | |
▷ Named functions | 21 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
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
All PNG images should be compressed to minimize bandwidth usage for end users
There were not PNG files found in your plugin