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
This plugin's installer ran successfully
Server metrics [RAM: ▲0.19MB] [CPU: ▼3.42ms] Passed 4 tests
This is a short check of server-side resources used by Visibility Control for LearnPress
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.65 ▲0.19 | 37.82 ▼2.62 |
Dashboard /wp-admin | 3.50 ▲0.20 | 47.91 ▼0.79 |
Posts /wp-admin/edit.php | 3.61 ▲0.26 | 48.38 ▲2.56 |
Add New Post /wp-admin/post-new.php | 6.08 ▲0.19 | 87.61 ▼12.84 |
Media Library /wp-admin/upload.php | 3.42 ▲0.19 | 37.39 ▲3.79 |
Add-ons /wp-admin/admin.php?page=grassblade-addons | 3.20 | 26.22 |
Visibility Control /wp-admin/admin.php?page=grassblade-visibility-control-learnpress | 3.37 | 36.46 |
Server storage [IO: ▲0.07MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 7 new files
Database: no new tables, 7 new options
New WordPress options |
---|
db_upgraded |
widget_recent-posts |
widget_recent-comments |
visibility_control_for_learnpress |
theysaidso_admin_options |
widget_theysaidso_widget |
can_compress_scripts |
Browser metrics Passed 4 tests
Visibility Control for LearnPress: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,852 ▲117 | 13.25 ▼1.50 | 2.00 ▲0.28 | 45.10 ▲0.04 |
Dashboard /wp-admin | 2,236 ▲47 | 5.95 ▲0.02 | 112.64 ▼6.25 | 76.29 ▲27.71 |
Posts /wp-admin/edit.php | 2,116 ▲27 | 2.01 ▲0.05 | 37.96 ▼2.56 | 38.16 ▼2.07 |
Add New Post /wp-admin/post-new.php | 1,537 ▲8 | 17.56 ▼0.72 | 744.73 ▲111.09 | 59.97 ▼16.59 |
Media Library /wp-admin/upload.php | 1,415 ▲27 | 4.24 ▲0.05 | 94.67 ▼9.95 | 65.32 ▲22.39 |
Add-ons /wp-admin/admin.php?page=grassblade-addons | 28 | 0.44 | 0.08 | 4.81 |
Visibility Control /wp-admin/admin.php?page=grassblade-visibility-control-learnpress | 826 | 2.02 | 25.36 | 26.07 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
- Zombie WordPress options detected upon uninstall: 7 options
- db_upgraded
- widget_recent-posts
- can_compress_scripts
- theysaidso_admin_options
- visibility_control_for_learnpress
- widget_recent-comments
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected
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
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/visibility-control-for-learnpress/functions.php:13
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
These are user-side errors you should fix
- > GET request to /wp-admin/admin.php?page=grassblade-addons
- > Network (severe)
wp-admin/admin.php?page=grassblade-addons - Failed to load resource: the server responded with a status of 403 (Forbidden)
Optimizations
Plugin configuration 90% 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 require attention:
- Donate link: Please fix this invalid url: ""
visibility-control-for-learnpress/functions.php 85% from 13 tests
The main file in "Visibility Control for LearnPress" v. 1.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:
- Main file name: The principal plugin file should be the same as the plugin slug ("visibility-control-for-learnpress.php" instead of "functions.php")
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 826 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
No dangerous file extensions were detected605 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 125 | 19 | 605 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.77 |
Average class complexity | 81.50 |
▷ Minimum class complexity | 47.00 |
▷ Maximum class complexity | 116.00 |
Average method complexity | 8.67 |
▷ Minimum method complexity | 2.00 |
▷ Maximum method complexity | 36.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-gb.png | 3.43KB | 0.84KB | ▼ 75.48% |
img/icon_128x128.png | 22.67KB | 6.87KB | ▼ 69.71% |
img/icon_30x30.png | 4.58KB | 1.60KB | ▼ 65.15% |