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
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.03MB] [CPU: ▼3.43ms] Passed 4 tests
Analyzing server-side resources used by Dashing Memberships
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 42.08 ▲0.75 |
Dashboard /wp-admin | 3.34 ▲0.03 | 47.79 ▼5.80 |
Posts /wp-admin/edit.php | 3.39 ▲0.03 | 52.50 ▲1.57 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.04 | 92.86 ▼10.22 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 38.25 ▲2.34 |
Dashing Memberships /wp-admin/admin.php?page=learndash_lms_settings&page=ldmp_settings_screen | 3.23 | 32.27 |
Start Here /wp-admin/admin.php?page=learndash_lms_settings&page=ldmp_welcome_page | 3.27 | 37.80 |
Server storage [IO: ▲0.12MB] [DB: ▲0.07MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 24 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
can_compress_scripts |
widget_recent-comments |
widget_theysaidso_widget |
theysaidso_admin_options |
db_upgraded |
Browser metrics Passed 4 tests
Checking browser requirements for Dashing Memberships
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,816 ▲55 | 14.16 ▼0.45 | 1.98 ▲0.20 | 45.29 ▲3.87 |
Dashboard /wp-admin | 2,222 ▲42 | 5.60 ▼0.09 | 87.08 ▼4.81 | 42.12 ▼4.05 |
Posts /wp-admin/edit.php | 2,127 ▲27 | 2.01 ▲0.03 | 44.12 ▲1.36 | 41.41 ▲6.13 |
Add New Post /wp-admin/post-new.php | 6,294 ▲4,749 | 18.90 ▼4.22 | 906.19 ▲276.67 | 57.53 ▲5.30 |
Media Library /wp-admin/upload.php | 1,421 ▲18 | 4.28 ▼0.04 | 101.65 ▼4.69 | 44.67 ▲0.02 |
Dashing Memberships /wp-admin/admin.php?page=learndash_lms_settings&page=ldmp_settings_screen | 856 | 2.05 | 24.11 | 26.41 |
Start Here /wp-admin/admin.php?page=learndash_lms_settings&page=ldmp_welcome_page | 1,336 | 9.22 | 281.58 | 111.47 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-comments
- db_upgraded
- widget_recent-posts
- can_compress_scripts
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP Passed 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
Looking good! No server-side errors or output on direct access of PHP files
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
5 plugin tags: learndash, member, memberships, elearning, membership
dashing-memberships/learndash-membership.php 85% from 13 tests
The entry point to "Dashing Memberships" version 1.1 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("dashing-memberships.php" instead of "learndash-membership.php")
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected847 lines of code in 18 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 13 | 196 | 471 | 681 |
CSS | 3 | 10 | 8 | 122 |
Markdown | 1 | 22 | 0 | 36 |
JavaScript | 1 | 0 | 0 | 8 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.37 |
Average class complexity | 8.38 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 16.00 |
Average method complexity | 2.53 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 9.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 39 | |
▷ Static methods | 6 | 15.38% |
▷ Public methods | 36 | 92.31% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 3 | 7.69% |
Functions | 4 | |
▷ Named functions | 4 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 7 | |
▷ Global constants | 7 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
There are no PNG files in this plugin