Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲0.09MB] [CPU: ▼7.98ms] Passed 4 tests
Server-side resources used by Woo to Moodle
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.56 ▲0.09 | 35.10 ▼4.45 |
Dashboard /wp-admin | 3.41 ▲0.06 | 47.36 ▼11.54 |
Posts /wp-admin/edit.php | 3.46 ▲0.10 | 44.02 ▼1.55 |
Add New Post /wp-admin/post-new.php | 5.99 ▲0.10 | 85.57 ▼14.37 |
Media Library /wp-admin/upload.php | 3.33 ▲0.10 | 34.80 ▼0.09 |
Moodle /wp-admin/edit.php?post_type=product&page=wootomoolinks | 3.10 | 21.50 |
Moodle /wp-admin/options-general.php?page=wootomoo_settings_menu | 3.30 | 32.80 |
Server storage [IO: ▲0.08MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 18 new files
Database: 1 new table, 7 new options
New tables |
---|
wp_wootomoo_links |
New WordPress options |
---|
db_upgraded |
can_compress_scripts |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-comments |
wootomoo_version |
widget_recent-posts |
Browser metrics Passed 4 tests
Checking browser requirements for Woo to Moodle
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲32 | 14.28 ▼0.08 | 1.78 ▲0.15 | 42.95 ▼5.11 |
Dashboard /wp-admin | 2,196 ▲18 | 5.50 ▼0.20 | 87.09 ▼10.85 | 36.78 ▼14.85 |
Posts /wp-admin/edit.php | 2,083 ▼17 | 1.99 ▲0.02 | 35.96 ▼1.13 | 31.58 ▼1.98 |
Add New Post /wp-admin/post-new.php | 1,529 ▲3 | 22.98 ▼0.42 | 625.77 ▲18.32 | 74.01 ▲14.04 |
Media Library /wp-admin/upload.php | 1,404 ▲4 | 4.26 ▲0.03 | 96.25 ▼10.30 | 41.34 ▼3.42 |
Moodle /wp-admin/edit.php?post_type=product&page=wootomoolinks | 28 | 0.42 | 0.08 | 4.35 |
Moodle /wp-admin/options-general.php?page=wootomoo_settings_menu | 876 | 2.13 | 25.08 | 28.88 |
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
These items require your attention
- This plugin did not uninstall successfully, leaving 7 options in the database
- theysaidso_admin_options
- widget_recent-posts
- widget_recent-comments
- widget_theysaidso_widget
- wootomoo_version
- db_upgraded
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 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
The following issues need your attention
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/woo-to-moodle/wootomoo_admin_page_display.php:3
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Please fix the following user-side errors
- > GET request to /wp-admin/edit.php?post_type=product&page=wootomoolinks
- > Network (severe)
wp-admin/edit.php?post_type=product&page=wootomoolinks - Failed to load resource: the server responded with a status of 403 (Forbidden)
Optimizations
Plugin configuration Passed 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
4 plugin tags: register, woocommerce, course, moodle
woo-to-moodle/woo-to-moodle.php Passed 13 tests
Analyzing the main PHP file in "Woo to Moodle" version 1.1
92 characters long description:
This plugin will automatically enroll in Moodle customers who buy the course in WooCommerce.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Success! There were no dangerous files found in this plugin1,160 lines of code in 12 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 8 | 152 | 82 | 724 |
PO File | 4 | 176 | 200 | 436 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 19 | |
▷ Named functions | 19 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 6 | |
▷ Global constants | 6 | 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 were not PNG files found in your plugin