Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.10MB] [CPU: ▼0.97ms] Passed 4 tests
An overview of server-side resources used by Better LearnDash API
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.56 ▲0.10 | 43.49 ▲1.87 |
Dashboard /wp-admin | 3.41 ▲0.11 | 47.81 ▲0.02 |
Posts /wp-admin/edit.php | 3.52 ▲0.17 | 46.58 ▼2.53 |
Add New Post /wp-admin/post-new.php | 5.99 ▲0.10 | 79.68 ▼3.24 |
Media Library /wp-admin/upload.php | 3.33 ▲0.11 | 38.18 ▲2.02 |
Better LearnDash API /wp-admin/options-general.php?page=blda_admin_page | 3.28 | 34.20 |
Server storage [IO: ▲0.24MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 8 new files
Database: 1 new table, 8 new options
New tables |
---|
wp_blda_log |
New WordPress options |
---|
widget_recent-posts |
db_upgraded |
theysaidso_admin_options |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-comments |
blda_version |
blda_options_api_key |
Browser metrics Passed 4 tests
Better LearnDash API: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲58 | 14.78 ▲0.40 | 1.79 ▼0.10 | 43.17 ▼7.62 |
Dashboard /wp-admin | 2,213 ▲25 | 4.88 ▼0.97 | 111.53 ▲1.74 | 42.87 ▲1.24 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 1.99 ▲0.01 | 35.40 ▼4.10 | 34.56 ▼1.23 |
Add New Post /wp-admin/post-new.php | 1,537 ▲3 | 23.43 ▲0.37 | 667.62 ▲5.66 | 53.32 ▼1.01 |
Media Library /wp-admin/upload.php | 1,392 ▲4 | 4.13 ▼0.05 | 109.12 ▲10.74 | 51.87 ▲8.89 |
Better LearnDash API /wp-admin/options-general.php?page=blda_admin_page | 1,027 | 2.17 | 24.73 | 28.17 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 1 table in the database
- wp_blda_log
- The uninstall procedure has failed, leaving 8 options in the database
- blda_options_api_key
- widget_recent-comments
- widget_theysaidso_widget
- db_upgraded
- theysaidso_admin_options
- blda_version
- can_compress_scripts
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however 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 take a closer look at the following
- 1× 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/better-learndash-api/better-learndash-api.php:73
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found
Optimizations
Plugin configuration 93% 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
These attributes need your attention:
- Screenshots: Please a description for screenshot #3 in better-learndash-api/assets to your readme.txt
better-learndash-api/better-learndash-api.php 92% from 13 tests
The main file in "Better LearnDash API" v. 0.5.7 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please make the necessary changes and fix the following:
- Description: Please don't use more than 140 characters for the plugin description (currently 172 characters long)
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
There were no executable files found in this plugin697 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 250 | 161 | 663 |
CSS | 1 | 6 | 1 | 34 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.44 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 24 | |
▷ Named functions | 24 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
4 PNG files occupy 0.19MB with 0.12MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/screenshot-1.png | 99.20KB | 33.25KB | ▼ 66.48% |
img/Logo-Ram.png | 21.91KB | 8.29KB | ▼ 62.15% |
assets/screenshot-2.png | 53.25KB | 18.10KB | ▼ 66.02% |
assets/screenshot-3.png | 20.00KB | 7.78KB | ▼ 61.13% |