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 successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.00MB] [CPU: ▼3.42ms] Passed 4 tests
An overview of server-side resources used by BadgeOS Learndash Gateway
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 36.60 ▼5.29 |
Dashboard /wp-admin | 3.31 ▲0.00 | 45.72 ▼5.27 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 48.20 ▼2.74 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 92.84 ▼0.38 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 36.31 ▲4.14 |
Server storage [IO: ▲0.20MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 21 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
can_compress_scripts |
widget_recent-posts |
db_upgraded |
theysaidso_admin_options |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
A check of browser resources used by BadgeOS Learndash Gateway
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,841 ▲84 | 13.32 ▼1.05 | 4.82 ▲2.39 | 40.92 ▼5.44 |
Dashboard /wp-admin | 2,206 ▲18 | 4.85 ▼0.01 | 108.12 ▼7.10 | 44.03 ▼6.58 |
Posts /wp-admin/edit.php | 2,092 ▲6 | 2.01 ▼0.01 | 41.27 ▲6.01 | 36.37 ▲1.11 |
Add New Post /wp-admin/post-new.php | 1,537 ▲1 | 23.59 ▲0.36 | 641.06 ▼23.46 | 58.05 ▲5.28 |
Media Library /wp-admin/upload.php | 1,385 ▼6 | 4.17 ▼0.05 | 96.39 ▼9.00 | 41.11 ▼7.85 |
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 did not uninstall successfully, leaving 6 options in the database
- widget_recent-posts
- can_compress_scripts
- theysaidso_admin_options
- db_upgraded
- widget_theysaidso_widget
- widget_recent-comments
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 everything seems fine, this is not 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
Almost there! Just fix the following items
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/badgeos-learndash-gateway/badgeos-learndash-gateway.php:356
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that need to be fixed:
- Tags: Too many tags (17 tag instead of maximum 10); only the first 5 tags are used in your directory listing
badgeos-learndash-gateway/badgeos-learndash-gateway.php 92% from 13 tests
The main file in "BadgeOS Learndash Gateway" v. 1.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
It is important to fix the following:
- Description: The description should be shorter than 140 characters (currently 218 characters long)
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
Good job! No executable or dangerous file extensions detected1,444 lines of code in 17 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 11 | 402 | 430 | 1,290 |
JavaScript | 3 | 26 | 6 | 118 |
Markdown | 1 | 16 | 0 | 27 |
CSS | 2 | 0 | 0 | 9 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
Average class complexity | 28.80 |
▷ Minimum class complexity | 12.00 |
▷ Maximum class complexity | 48.00 |
Average method complexity | 3.57 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 19.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 | 54 | |
▷ Static methods | 1 | 1.85% |
▷ Public methods | 50 | 92.59% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 4 | 7.41% |
Functions | 4 | |
▷ Named functions | 4 | 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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG images were found in this plugin