Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
These installer errors require your attention
- The plugin cannot be installed
- > Warning in wp-content/plugins/task-randomizer/task-randomizer.php+41
Use of undefined constant p - assumed 'p' (this will throw an Error in a future version of PHP)
Server metrics [RAM: ▼1.90MB] [CPU: ▼51.11ms] Passed 4 tests
A check of server-side resources used by Task Randomizer
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.08 ▼1.38 | 4.16 ▼39.95 |
Dashboard /wp-admin | 2.10 ▼1.20 | 6.05 ▼42.47 |
Posts /wp-admin/edit.php | 2.10 ▼1.25 | 7.45 ▼38.81 |
Add New Post /wp-admin/post-new.php | 2.10 ▼3.78 | 6.40 ▼83.20 |
Media Library /wp-admin/upload.php | 2.10 ▼1.12 | 5.25 ▼31.30 |
Server storage [IO: ▲3.56MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 30 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
widget_recent-comments |
db_upgraded |
theysaidso_admin_options |
widget_theysaidso_widget |
can_compress_scripts |
Browser metrics Passed 4 tests
A check of browser resources used by Task Randomizer
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,802 ▲56 | 13.19 ▼1.20 | 1.76 ▲0.00 | 44.99 ▲5.42 |
Dashboard /wp-admin | 2,203 ▲12 | 5.76 ▲0.89 | 98.14 ▼4.62 | 38.05 ▼3.04 |
Posts /wp-admin/edit.php | 2,089 ▼3 | 2.03 ▲0.04 | 39.82 ▲0.26 | 34.49 ▲0.34 |
Add New Post /wp-admin/post-new.php | 1,533 ▼0 | 23.19 ▼0.06 | 661.76 ▼4.38 | 52.09 ▼9.90 |
Media Library /wp-admin/upload.php | 1,388 ▼3 | 4.17 ▼0.02 | 94.83 ▼1.35 | 41.13 ▼3.00 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- This plugin did not uninstall without warnings or errors
- > Warning in wp-content/plugins/task-randomizer/task-randomizer.php+41
Use of undefined constant p - assumed 'p' (this will throw an Error in a future version of PHP)
- Zombie WordPress options were found after uninstall: 6 options
- widget_theysaidso_widget
- widget_recent-comments
- theysaidso_admin_options
- widget_recent-posts
- can_compress_scripts
- db_upgraded
Smoke tests Passed 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 Passed 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Congratulations! This plugin passed the SRP test
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found
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
3 plugin tags: tasks, education, lms
task-randomizer/task-randomizer.php Passed 13 tests
The primary PHP file in "Task Randomizer" version 1.0.0 is used by WordPress to initiate all plugin functionality
114 characters long description:
Составление базы заданий и предъявление задания обучающемуся
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
There were no executable files found in this plugin21,066 lines of code in 18 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 6 | 1,474 | 41 | 13,014 |
JavaScript | 4 | 2,026 | 1,690 | 7,751 |
PHP | 7 | 263 | 80 | 297 |
Markdown | 1 | 4 | 0 | 4 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.36 |
Average class complexity | 8.50 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 30.00 |
Average method complexity | 3.14 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 9.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 6 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 21 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 19 | 90.48% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 9.52% |
Functions | 3 | |
▷ Named functions | 3 | 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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
There are no PNG files in this plugin