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.09MB] [CPU: ▼5.12ms] Passed 4 tests
Analyzing server-side resources used by WP Courseware for MemberPress
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.57 ▲0.10 | 38.64 ▼4.65 |
Dashboard /wp-admin | 3.41 ▲0.06 | 48.31 ▼11.60 |
Posts /wp-admin/edit.php | 3.53 ▲0.17 | 46.98 ▼2.68 |
Add New Post /wp-admin/post-new.php | 6.00 ▲0.10 | 92.53 ▼1.54 |
Media Library /wp-admin/upload.php | 3.34 ▲0.10 | 35.39 ▼0.99 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
db_upgraded |
theysaidso_admin_options |
widget_recent-comments |
widget_theysaidso_widget |
can_compress_scripts |
Browser metrics Passed 4 tests
WP Courseware for MemberPress: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,795 ▲33 | 14.67 ▼0.04 | 1.50 ▼0.28 | 36.64 ▼7.67 |
Dashboard /wp-admin | 2,203 ▲29 | 5.62 ▲0.02 | 93.14 ▼5.91 | 42.64 ▲1.72 |
Posts /wp-admin/edit.php | 2,102 ▲2 | 1.96 ▼0.06 | 39.60 ▼1.58 | 35.69 ▼0.67 |
Add New Post /wp-admin/post-new.php | 1,531 ▲5 | 22.89 ▼0.27 | 582.00 ▼51.42 | 50.21 ▲2.21 |
Media Library /wp-admin/upload.php | 1,405 ▲8 | 4.24 ▲0.02 | 96.97 ▲1.26 | 42.39 ▲1.44 |
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
It is recommended to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-comments
- theysaidso_admin_options
- widget_recent-posts
- db_upgraded
- can_compress_scripts
- widget_theysaidso_widget
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP Passed 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
The SRP test was a success
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
2 plugin tags: selling online courses, learning management system
memberpress-addon-for-wp-courseware/wp-courseware-memberpress.php 85% from 13 tests
The primary PHP file in "WP Courseware for MemberPress" version 2.0 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("memberpress-addon-for-wp-courseware.php" instead of "wp-courseware-memberpress.php")
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin529 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 7 | 189 | 441 | 529 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
Average class complexity | 13.40 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 34.00 |
Average method complexity | 2.94 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 19.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 1 | 20.00% |
Methods | 32 | |
▷ Static methods | 1 | 3.12% |
▷ Public methods | 23 | 71.88% |
▷ Protected methods | 7 | 21.88% |
▷ Private methods | 2 | 6.25% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 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