Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.16MB] [CPU: ▼5.70ms] Passed 4 tests
A check of server-side resources used by WP Courseware for WooCommerce
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.63 ▲0.17 | 40.56 ▼1.04 |
Dashboard /wp-admin | 3.47 ▲0.13 | 47.72 ▼14.16 |
Posts /wp-admin/edit.php | 3.59 ▲0.23 | 50.14 ▲0.71 |
Add New Post /wp-admin/post-new.php | 6.05 ▲0.17 | 93.99 ▼6.48 |
Media Library /wp-admin/upload.php | 3.40 ▲0.17 | 35.87 ▼1.10 |
Server storage [IO: ▲0.07MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-comments |
widget_recent-posts |
widget_theysaidso_widget |
db_upgraded |
theysaidso_admin_options |
Browser metrics Passed 4 tests
A check of browser resources used by WP Courseware for WooCommerce
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,794 ▲48 | 14.14 ▼0.21 | 1.65 ▲0.13 | 40.48 ▲0.94 |
Dashboard /wp-admin | 2,203 ▲23 | 5.62 ▼0.04 | 89.48 ▼0.98 | 42.59 ▲0.16 |
Posts /wp-admin/edit.php | 2,105 ▲5 | 2.03 ▲0.01 | 38.94 ▼3.54 | 37.45 ▼3.15 |
Add New Post /wp-admin/post-new.php | 1,536 ▲5 | 23.23 ▲0.07 | 624.59 ▲51.85 | 72.15 ▲5.22 |
Media Library /wp-admin/upload.php | 1,408 ▲8 | 4.23 ▲0.05 | 96.05 ▼3.68 | 43.30 ▲0.02 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- The uninstall procedure has failed, leaving 6 options in the database
- can_compress_scripts
- widget_recent-posts
- db_upgraded
- theysaidso_admin_options
- widget_recent-comments
- widget_theysaidso_widget
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 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Congratulations! This plugin passed the SRP test
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
2 plugin tags: selling online courses, learning management system
woo-commerce-addon-for-wp-courseware/wp-courseware-woo-commerce.php 85% from 13 tests
This is the main PHP file of "WP Courseware for WooCommerce" version 1.4.9, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
The following require your attention:
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
- Main file name: It is recommended to name the main PHP file as the plugin slug ("woo-commerce-addon-for-wp-courseware.php" instead of "wp-courseware-woo-commerce.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin896 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 8 | 304 | 742 | 896 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.46 |
Average class complexity | 27.33 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 101.00 |
Average method complexity | 3.98 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 24.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 6 | 100.00% |
▷ Final classes | 1 | 16.67% |
Methods | 53 | |
▷ Static methods | 1 | 1.89% |
▷ Public methods | 44 | 83.02% |
▷ Protected methods | 7 | 13.21% |
▷ Private methods | 2 | 3.77% |
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
All PNG images should be compressed to minimize bandwidth usage for end users
No PNG files were detected