Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.10MB] [CPU: ▼0.74ms] Passed 4 tests
An overview of server-side resources used by Unenroll For Learndash
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.59 ▲0.13 | 46.12 ▲5.79 |
Dashboard /wp-admin | 3.41 ▲0.10 | 58.57 ▲3.40 |
Posts /wp-admin/edit.php | 3.46 ▲0.10 | 56.23 ▲1.74 |
Add New Post /wp-admin/post-new.php | 5.99 ▲0.10 | 94.49 ▼9.97 |
Media Library /wp-admin/upload.php | 3.33 ▲0.10 | 42.37 ▲1.88 |
Unenroll /wp-admin/admin.php?page=learndash-unenroll | 3.30 | 38.17 |
Server storage [IO: ▲0.14MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 12 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
widget_recent-posts |
can_compress_scripts |
db_upgraded |
widget_theysaidso_widget |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Unenroll For Learndash: 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,909 ▲148 | 13.50 ▼1.20 | 13.33 ▲11.60 | 43.11 ▲4.78 |
Dashboard /wp-admin | 2,192 ▲15 | 5.58 ▲0.00 | 93.13 ▼1.36 | 44.54 ▲5.34 |
Posts /wp-admin/edit.php | 2,100 ▼3 | 2.00 ▲0.01 | 34.45 ▼6.18 | 36.04 ▼0.71 |
Add New Post /wp-admin/post-new.php | 1,536 ▲8 | 23.22 ▲0.14 | 689.52 ▲17.30 | 51.55 ▼11.59 |
Media Library /wp-admin/upload.php | 1,397 ▼0 | 4.16 ▲0.08 | 99.08 ▼17.77 | 44.67 ▼2.54 |
Unenroll /wp-admin/admin.php?page=learndash-unenroll | 1,061 | 1.99 | 23.21 | 40.28 |
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
- This plugin did not uninstall successfully, leaving 6 options in the database
- db_upgraded
- widget_recent-posts
- can_compress_scripts
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting 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
Almost there! Just fix the following items
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/unenroll-for-learndash/admin/trun-settings.php:6
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
5 plugin tags: learning, learndash, education, elearning, lms
unenroll-for-learndash/learndash-unenroll.php 85% from 13 tests
The main PHP script in "Unenroll For Learndash" version 1.0.1 is automatically included on every request by WordPress
Please take the time to fix the following:
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("unenroll-for-learndash.php" instead of "learndash-unenroll.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
No dangerous file extensions were detected934 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 80 | 50 | 528 |
CSS | 3 | 22 | 3 | 204 |
JavaScript | 2 | 12 | 4 | 131 |
PO File | 1 | 25 | 43 | 71 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.43 |
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 | 15 | |
▷ Named functions | 15 | 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
PNG files should be compressed to save space and minimize bandwidth usage
There were not PNG files found in your plugin