Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲0.07MB] [CPU: ▼274.46ms] Passed 4 tests
Server-side resources used by WP Courseware for MemberSonic
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.90 ▲0.07 | 41.63 ▲8.79 |
Dashboard /wp-admin | 3.13 ▲0.07 | 41.29 ▼0.57 |
Posts /wp-admin/edit.php | 3.24 ▲0.13 | 42.56 ▲4.38 |
Add New Post /wp-admin/post-new.php | 5.49 ▲0.06 | 92.13 ▼1,098.01 |
Media Library /wp-admin/upload.php | 3.07 ▲0.06 | 33.29 ▼3.62 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 4 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
Checking browser requirements for WP Courseware for MemberSonic
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,682 ▲76 | 16.26 ▲0.70 | 10.83 ▲0.29 | 47.63 ▼2.31 |
Dashboard /wp-admin | 2,942 ▲92 | 5.92 ▲0.05 | 141.80 ▲8.30 | 97.30 ▼7.49 |
Posts /wp-admin/edit.php | 2,713 ▲7 | 2.68 ▼0.02 | 65.18 ▼2.01 | 81.47 ▼12.27 |
Add New Post /wp-admin/post-new.php | 1,859 ▲6 | 19.00 ▼0.04 | 370.70 ▼1.01 | 113.42 ▼1.00 |
Media Library /wp-admin/upload.php | 1,781 ▲80 | 5.00 ▲0.00 | 187.41 ▲30.47 | 117.00 ▲0.80 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Uninstaller ran successfully
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
Even though no errors were found, this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
- 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/membersonic-addon-for-wp-courseware/wp-courseware-membersonic.php:19
- > 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 93% from 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
2 plugin tags: learning management system, selling online courses
membersonic-addon-for-wp-courseware/wp-courseware-membersonic.php 85% from 13 tests
"WP Courseware for MemberSonic" version 1.3's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please take the time to fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("membersonic-addon-for-wp-courseware.php" instead of "wp-courseware-membersonic.php")
- Description: The description should be shorter than 140 characters (currently 142 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
No dangerous file extensions were detected384 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 158 | 206 | 384 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.26 |
Average class complexity | 20.50 |
▷ Minimum class complexity | 7.00 |
▷ Maximum class complexity | 34.00 |
Average method complexity | 2.50 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.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 | 26 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 17 | 65.38% |
▷ Protected methods | 7 | 26.92% |
▷ Private methods | 2 | 7.69% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 3 | 100.00% |
▷ Public constants | 3 | 100.00% |
Plugin size Passed 1 test
Image compression Passed 1 test
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG images were found in this plugin