Benchmarks
Plugin footprint 82% 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.03MB] [CPU: ▼3.18ms] 75% from 4 tests
This is a short check of server-side resources used by Visibility Control for LearnDash
It is recommended to improve the following
- CPU: Total CPU usage must kept under 500.00ms (currently 3,812.69ms on /wp-admin/admin.php?page=grassblade-addons)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 39.76 ▼1.38 |
Dashboard /wp-admin | 3.33 ▲0.03 | 44.61 ▼4.17 |
Posts /wp-admin/edit.php | 3.44 ▲0.09 | 47.21 ▼0.24 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.03 | 84.44 ▼6.94 |
Media Library /wp-admin/upload.php | 3.25 ▲0.03 | 34.68 ▲3.75 |
GrassBlade /wp-admin/admin.php?page=grassblade-lrs-settings | 3.20 | 31.54 |
Visibility Control for LearnDash /wp-admin/admin.php?page=grassblade-visibility-control-learndash | 3.22 | 29.00 |
Add-ons /wp-admin/admin.php?page=grassblade-addons | 3.44 | 3,812.69 |
Server storage [IO: ▲0.07MB] [DB: ▲0.03MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 7 new files
Database: no new tables, 9 new options
New WordPress options |
---|
grassblade_free_addons |
can_compress_scripts |
grassblade_addons |
widget_recent-comments |
visibility_control_for_learndash |
db_upgraded |
widget_recent-posts |
theysaidso_admin_options |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
A check of browser resources used by Visibility Control for LearnDash
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,830 ▲95 | 13.60 ▼0.75 | 1.59 ▼0.04 | 40.89 ▼0.12 |
Dashboard /wp-admin | 2,236 ▲48 | 5.89 ▲1.02 | 98.93 ▼8.02 | 75.95 ▲31.24 |
Posts /wp-admin/edit.php | 2,122 ▲33 | 2.01 ▼0.01 | 37.39 ▼2.89 | 34.73 ▲0.17 |
Add New Post /wp-admin/post-new.php | 1,548 ▲12 | 23.15 ▼0.18 | 713.01 ▲28.59 | 64.56 ▲5.61 |
Media Library /wp-admin/upload.php | 1,418 ▲33 | 4.09 ▼0.08 | 97.65 ▼4.27 | 75.11 ▲30.89 |
GrassBlade /wp-admin/admin.php?page=grassblade-lrs-settings | 832 | 2.01 | 26.08 | 24.66 |
Visibility Control for LearnDash /wp-admin/admin.php?page=grassblade-visibility-control-learndash | 792 | 2.03 | 26.83 | 23.41 |
Add-ons /wp-admin/admin.php?page=grassblade-addons | 2,816 | 2.17 | 30.11 | 69.71 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.03MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
- Zombie WordPress options were found after uninstall: 9 options
- visibility_control_for_learndash
- widget_recent-comments
- grassblade_free_addons
- can_compress_scripts
- db_upgraded
- theysaidso_admin_options
- widget_theysaidso_widget
- grassblade_addons
- 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
Good news, no errors were detected
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
Please fix the following
- 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/visibility-control-for-learndash/visibility_control_for_learndash.php:17
- > 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 90% 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:
- Donate link: Invalid url: ""
visibility-control-for-learndash/visibility_control_for_learndash.php 85% from 13 tests
The main PHP script in "Visibility Control for LearnDash" version 1.7 is automatically included on every request by WordPress
Please take the time to fix the following:
- Description: Keep the plugin description shorter than 140 characters (currently 1055 characters long)
- Main file name: The principal plugin file should be the same as the plugin slug ("visibility-control-for-learndash.php" instead of "visibility_control_for_learndash.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected651 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 124 | 30 | 651 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.76 |
Average class complexity | 85.00 |
▷ Minimum class complexity | 54.00 |
▷ Maximum class complexity | 116.00 |
Average method complexity | 9.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 47.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 | 21 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 21 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.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
PNG files should be compressed to save space and minimize bandwidth usage
3 PNG files occupy 0.03MB with 0.02MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/icon_30x30.png | 4.58KB | 1.60KB | ▼ 65.15% |
img/icon-gb.png | 3.43KB | 0.84KB | ▼ 75.48% |
img/icon_128x128.png | 22.67KB | 6.87KB | ▼ 69.71% |