Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
It is recommended to fix the following installer errors
- The plugin cannot be installed
- > Deprecated in wp-content/plugins/moodle-course-list-widget/moodle-courselist-widget.php+18
Methods with the same name as their class will not be constructors in a future version of PHP; iLearn_Courses has a deprecated constructor
Server metrics [RAM: ▼1.91MB] [CPU: ▼60.24ms] Passed 4 tests
A check of server-side resources used by Moodle Course List Widget
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.08 ▼1.39 | 5.53 ▼35.55 |
Dashboard /wp-admin | 2.10 ▼1.21 | 5.86 ▼50.97 |
Posts /wp-admin/edit.php | 2.10 ▼1.26 | 6.05 ▼49.88 |
Add New Post /wp-admin/post-new.php | 2.10 ▼3.79 | 5.77 ▼104.55 |
Media Library /wp-admin/upload.php | 2.10 ▼1.13 | 5.62 ▼32.37 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 2 new files
Database: no new tables, 7 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_moodlecourses-widget |
can_compress_scripts |
db_upgraded |
widget_recent-posts |
widget_theysaidso_widget |
widget_recent-comments |
Browser metrics Passed 4 tests
A check of browser resources used by Moodle Course List Widget
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲28 | 14.25 ▼0.10 | 1.66 ▼0.09 | 37.50 ▼6.18 |
Dashboard /wp-admin | 2,192 ▲18 | 5.52 ▲0.00 | 82.74 ▼18.21 | 37.34 ▼10.44 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 1.95 ▼0.08 | 39.92 ▲2.87 | 35.69 ▼0.48 |
Add New Post /wp-admin/post-new.php | 1,526 ▼2 | 22.99 ▼0.19 | 671.74 ▲6.08 | 57.14 ▲3.25 |
Media Library /wp-admin/upload.php | 1,400 ▼0 | 4.14 ▼0.03 | 115.14 ▲8.55 | 46.89 ▼1.80 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
- The plugin did not uninstall gracefully
- > Deprecated in wp-content/plugins/moodle-course-list-widget/moodle-courselist-widget.php+18
Methods with the same name as their class will not be constructors in a future version of PHP; iLearn_Courses has a deprecated constructor
- Zombie WordPress options were found after uninstall: 7 options
- theysaidso_admin_options
- widget_moodlecourses-widget
- widget_recent-comments
- db_upgraded
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
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
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 add_action() in wp-content/plugins/moodle-course-list-widget/moodle-courselist-widget.php:11
- > 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 96% 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
9 plugin tags: learning, courses, students, teachers, moodle...
moodle-course-list-widget/moodle-courselist-widget.php 92% from 13 tests
Analyzing the main PHP file in "Moodle Course List Widget" version 1.0
You should first fix the following items:
- Main file name: The principal plugin file should be the same as the plugin slug ("moodle-course-list-widget.php" instead of "moodle-courselist-widget.php")
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 plugin80 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 37 | 10 | 80 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.10 |
Average class complexity | 6.00 |
▷ Minimum class complexity | 6.00 |
▷ Maximum class complexity | 6.00 |
Average method complexity | 2.25 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 6.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 4 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 4 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.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
PNG images were not found in this plugin