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.11MB] [CPU: ▼6.48ms] Passed 4 tests
Analyzing server-side resources used by Manage Enrollment for LearnDash
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.57 ▲0.10 | 39.77 ▼1.67 |
Dashboard /wp-admin | 3.43 ▲0.08 | 51.03 ▼10.98 |
Posts /wp-admin/edit.php | 3.48 ▲0.12 | 48.91 ▼2.42 |
Add New Post /wp-admin/post-new.php | 6.01 ▲0.12 | 85.71 ▼10.85 |
Media Library /wp-admin/upload.php | 3.35 ▲0.12 | 36.14 ▲1.18 |
Manage Enrollment LearnDash /wp-admin/admin.php?page=grassblade-manage-enrollment-learndash | 3.32 | 30.71 |
GrassBlade /wp-admin/admin.php?page=grassblade-lrs-settings | 3.32 | 34.18 |
Server storage [IO: ▲0.63MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 78 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-comments |
widget_recent-posts |
widget_theysaidso_widget |
db_upgraded |
can_compress_scripts |
Browser metrics Passed 4 tests
An overview of browser requirements for Manage Enrollment for LearnDash
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,815 ▲54 | 14.34 ▼0.02 | 1.70 ▲0.06 | 40.44 ▲2.47 |
Dashboard /wp-admin | 2,209 ▲29 | 5.56 ▼0.10 | 83.96 ▼6.52 | 76.32 ▲33.44 |
Posts /wp-admin/edit.php | 2,126 ▲26 | 1.99 ▲0.01 | 36.36 ▲0.91 | 34.31 ▼1.72 |
Add New Post /wp-admin/post-new.php | 1,548 ▲22 | 23.60 ▲0.82 | 753.17 ▲156.03 | 49.59 ▼4.21 |
Media Library /wp-admin/upload.php | 1,417 ▲17 | 4.21 ▲0.01 | 97.07 ▼9.38 | 70.65 ▲24.08 |
Manage Enrollment LearnDash /wp-admin/admin.php?page=grassblade-manage-enrollment-learndash | 894 | 1.77 | 26.94 | 40.48 |
GrassBlade /wp-admin/admin.php?page=grassblade-lrs-settings | 894 | 1.85 | 24.56 | 31.76 |
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
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-comments
- can_compress_scripts
- widget_recent-posts
- widget_theysaidso_widget
- theysaidso_admin_options
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however this is by no means an exhaustive test
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 is_admin() in wp-content/plugins/manage-enrollment-learndash/functions.php:20
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that need to be fixed:
- Donate link: Invalid URI found ("")
manage-enrollment-learndash/functions.php 85% from 13 tests
The main PHP file in "Manage Enrollment for LearnDash" ver. 1.3 adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
- Main file name: Name the main plugin file the same as the plugin slug ("manage-enrollment-learndash.php" instead of "functions.php")
- Description: Please keep the plugin description shorter than 140 characters (currently 230 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin11,364 lines of code in 69 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 64 | 2,665 | 792 | 10,173 |
PHP | 2 | 90 | 36 | 649 |
CSS | 3 | 59 | 0 | 542 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.59 |
Average class complexity | 157.00 |
▷ Minimum class complexity | 157.00 |
▷ Maximum class complexity | 157.00 |
Average method complexity | 10.18 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 59.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 17 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 17 | 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 | 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
5 PNG files occupy 0.03MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/icon_128x128.png | 22.67KB | 6.87KB | ▼ 69.71% |
img/no.png | 1.01KB | 0.62KB | ▼ 39.05% |
img/check.png | 0.98KB | 0.47KB | ▼ 52.44% |
img/icon_30x30.png | 4.58KB | 1.60KB | ▼ 65.15% |
img/icon-gb.png | 3.43KB | 0.84KB | ▼ 75.48% |