Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▲0.00MB] [CPU: ▼6.02ms] Passed 4 tests
A check of server-side resources used by BadgeOS Tutor LMS Add-on
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.00 | 40.66 ▼3.60 |
Dashboard /wp-admin | 3.31 ▲0.00 | 46.74 ▼6.24 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 46.65 ▼2.16 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 85.11 ▼11.05 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 35.44 ▼3.17 |
Server storage [IO: ▲0.13MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-comments |
can_compress_scripts |
widget_theysaidso_widget |
db_upgraded |
widget_recent-posts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for BadgeOS Tutor LMS Add-on
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲39 | 14.42 ▲0.27 | 1.67 ▼0.06 | 44.03 ▲0.48 |
Dashboard /wp-admin | 2,195 ▲24 | 5.63 ▼0.03 | 98.18 ▼5.09 | 44.01 ▼3.66 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 1.95 ▼0.08 | 34.24 ▼7.72 | 33.73 ▼5.42 |
Add New Post /wp-admin/post-new.php | 1,526 ▼2 | 23.48 ▲0.29 | 671.57 ▼10.40 | 70.04 ▲16.24 |
Media Library /wp-admin/upload.php | 1,400 ▲3 | 4.18 ▼0.13 | 96.84 ▼6.00 | 44.01 ▼0.75 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-posts
- db_upgraded
- widget_recent-comments
- widget_theysaidso_widget
- theysaidso_admin_options
- can_compress_scripts
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 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following items
- 3× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/badgeos-tutorlms/includes/steps-ui.php:30
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/badgeos-tutorlms/badgeos-tutorlms.php:75
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/badgeos-tutorlms/includes/rules-engine.php:42
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need to be fixed:
- Requires at least: Invalid version format
- Tags: There are too many tags (18 tag instead of maximum 10)
badgeos-tutorlms/badgeos-tutorlms.php Passed 13 tests
This is the main PHP file of "BadgeOS Tutor LMS Add-on" version 1.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
61 characters long description:
This BadgeOS add-on integrates BadgeOS features with TutorLMS
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin1,620 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 371 | 657 | 1,514 |
PO File | 1 | 38 | 38 | 105 |
Markdown | 1 | 1 | 0 | 1 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.54 |
Average class complexity | 20.00 |
▷ Minimum class complexity | 20.00 |
▷ Maximum class complexity | 20.00 |
Average method complexity | 4.17 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 10.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 6 | |
▷ Static methods | 1 | 16.67% |
▷ Public methods | 6 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 16 | |
▷ Named functions | 16 | 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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
There are no PNG files in this plugin