Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully
Server metrics [RAM: ▼0.01MB] [CPU: ▼7.84ms] Passed 4 tests
An overview of server-side resources used by LifterLMS BadgeOS Integration
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 38.52 ▲0.20 |
Dashboard /wp-admin | 3.31 ▼0.04 | 42.79 ▼26.02 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 43.86 ▲0.36 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 88.01 ▲3.64 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 31.47 ▼5.90 |
Server storage [IO: ▲0.09MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 16 new files
Database: no new tables, 8 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-comments |
lifterlms_bos_options |
widget_theysaidso_widget |
can_compress_scripts |
lifterlms_bos_version |
db_upgraded |
widget_recent-posts |
Browser metrics Passed 4 tests
A check of browser resources used by LifterLMS BadgeOS Integration
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,819 ▲73 | 13.14 ▼1.24 | 4.57 ▲2.67 | 43.04 ▼0.38 |
Dashboard /wp-admin | 2,209 ▲18 | 4.85 ▼0.07 | 98.14 ▼6.59 | 38.92 ▼8.01 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.02 ▼0.04 | 34.58 ▼0.59 | 34.50 ▼1.75 |
Add New Post /wp-admin/post-new.php | 1,544 ▲30 | 18.44 ▲0.85 | 603.16 ▼61.34 | 55.75 ▲0.47 |
Media Library /wp-admin/upload.php | 1,391 ▼0 | 4.18 ▼0.12 | 95.92 ▼1.25 | 43.55 ▼2.52 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
- Zombie WordPress options detected upon uninstall: 8 options
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-comments
- widget_theysaidso_widget
- lifterlms_bos_version
- db_upgraded
- lifterlms_bos_options
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking 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 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The following issues need your attention
- 2× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/badgeos-lifterlms-integration/includes/integration/rules-engine.php:37
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/badgeos-lifterlms-integration/includes/integration/steps-ui.php:30
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration 90% from 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
7 plugin tags: lms, lifterlms, lifterlms lessons, lifterlms course, badgeos...
badgeos-lifterlms-integration/lifterlms-badgeos.php 77% from 13 tests
Analyzing the main PHP file in "LifterLMS BadgeOS Integration" version 1.1.0
Please take the time to fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("badgeos-lifterlms-integration.php" instead of "lifterlms-badgeos.php")
- Text Domain: Please use dashes and lowercase characters for text domains
- Description: Keep the plugin description shorter than 140 characters (currently 164 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected1,397 lines of code in 13 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 7 | 437 | 718 | 1,229 |
CSS | 2 | 1 | 0 | 103 |
Markdown | 2 | 21 | 0 | 39 |
JavaScript | 2 | 8 | 3 | 26 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.51 |
Average class complexity | 9.75 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 27.00 |
Average method complexity | 2.75 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 13.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 20 | |
▷ Static methods | 4 | 20.00% |
▷ Public methods | 17 | 85.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 3 | 15.00% |
Functions | 17 | |
▷ Named functions | 17 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 9 | |
▷ Global constants | 8 | 88.89% |
▷ Class constants | 1 | 11.11% |
▷ Public constants | 1 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
PNG images were not found in this plugin