Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
You still need to fix the following installer errors
- This plugin did not install gracefully
- > Error in wp-content/plugins/membermouse-addon-for-wp-courseware/wp-courseware-member-mouse.php+16
Uncaught Error: Class 'MM_Bundle' not found in wp-content/plugins/membermouse-addon-for-wp-courseware/wp-courseware-member-mouse.php:16
Stack trace:
#0 wp-includes/class-wp-hook.php(310): wpcw_mm_db_cleanup()
#1 wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters()
#2 wp-includes/plugin.php(517): WP_Hook->do_action()
#3 wp-admin/includes/plugin.php(693): do_action()
Server metrics [RAM: ▲0.00MB] [CPU: ▼7.91ms] Passed 4 tests
An overview of server-side resources used by WP Courseware for MemberMouse
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.00 | 46.43 ▲5.18 |
Dashboard /wp-admin | 3.35 ▲0.00 | 49.90 ▼10.91 |
Posts /wp-admin/edit.php | 3.40 ▲0.00 | 46.47 ▼4.26 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.00 | 87.67 ▼15.11 |
Media Library /wp-admin/upload.php | 3.27 ▲0.00 | 35.79 ▼1.35 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
theysaidso_admin_options |
widget_recent-posts |
widget_recent-comments |
db_upgraded |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
This is an overview of browser requirements for WP Courseware for MemberMouse
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲28 | 14.42 ▲0.06 | 1.70 ▲0.20 | 42.92 ▼0.91 |
Dashboard /wp-admin | 2,192 ▲12 | 5.54 ▼0.07 | 88.91 ▼1.86 | 40.87 ▼4.23 |
Posts /wp-admin/edit.php | 2,097 ▼6 | 1.99 ▼0.04 | 34.53 ▲0.27 | 38.08 ▲5.73 |
Add New Post /wp-admin/post-new.php | 1,547 ▲21 | 18.18 ▼5.23 | 650.51 ▼55.31 | 69.57 ▲18.58 |
Media Library /wp-admin/upload.php | 1,400 ▼0 | 4.24 ▲0.03 | 103.39 ▼13.87 | 43.40 ▼3.53 |
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
You still need to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-posts
- widget_recent-comments
- db_upgraded
- can_compress_scripts
- widget_theysaidso_widget
- theysaidso_admin_options
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 everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
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 register_activation_hook() in wp-content/plugins/membermouse-addon-for-wp-courseware/wp-courseware-member-mouse.php:26
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
2 plugin tags: learning management system, selling online courses
membermouse-addon-for-wp-courseware/wp-courseware-member-mouse.php 85% from 13 tests
The principal PHP file in "WP Courseware for MemberMouse" v. 1.9 is loaded by WordPress automatically on each request
Please take the time to fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("membermouse-addon-for-wp-courseware.php" instead of "wp-courseware-member-mouse.php")
- Description: Keep the plugin description shorter than 140 characters (currently 142 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
There were no executable files found in this plugin542 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 190 | 252 | 542 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
Average class complexity | 38.50 |
▷ Minimum class complexity | 28.00 |
▷ Maximum class complexity | 49.00 |
Average method complexity | 3.78 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.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 | 27 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 18 | 66.67% |
▷ Protected methods | 7 | 25.93% |
▷ Private methods | 2 | 7.41% |
Functions | 2 | |
▷ Named functions | 2 | 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 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
There are no PNG files in this plugin