Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.13MB] [CPU: ▼3.91ms] Passed 4 tests
A check of server-side resources used by Multiple Choice Question
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.59 ▲0.14 | 40.06 ▼4.96 |
Dashboard /wp-admin | 3.44 ▲0.14 | 49.72 ▲1.32 |
Posts /wp-admin/edit.php | 3.56 ▲0.20 | 50.48 ▲0.30 |
Add New Post /wp-admin/post-new.php | 6.02 ▲0.14 | 82.72 ▼12.29 |
Media Library /wp-admin/upload.php | 3.34 ▲0.11 | 35.09 ▲2.00 |
Add New /wp-admin/post-new.php?post_type=question | 3.42 | 47.98 |
All Given Tests /wp-admin/edit.php?post_type=given_test | 3.41 | 39.72 |
Add New /wp-admin/post-new.php?post_type=participant | 3.40 | 46.02 |
All Questions /wp-admin/edit.php?post_type=question | 3.41 | 39.73 |
Settings /wp-admin/admin.php?page=mcq_menu_settings | 3.47 | 36.34 |
Question Categories /wp-admin/edit-tags.php?taxonomy=question_cat&post_type=question | 3.36 | 37.86 |
All Participants /wp-admin/edit.php?post_type=participant | 3.41 | 43.57 |
Server storage [IO: ▲1.05MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 49 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
widget_recent-posts |
can_compress_scripts |
db_upgraded |
theysaidso_admin_options |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Multiple Choice Question
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,161 ▲426 | 15.16 ▲0.77 | 6.94 ▲5.17 | 37.33 ▼2.14 |
Dashboard /wp-admin | 2,438 ▲253 | 6.45 ▲0.63 | 127.32 ▲23.98 | 40.58 ▼2.47 |
Posts /wp-admin/edit.php | 2,344 ▲255 | 3.38 ▲1.38 | 48.16 ▲8.39 | 29.15 ▼7.15 |
Add New Post /wp-admin/post-new.php | 1,596 ▲68 | 23.51 ▲5.42 | 705.44 ▲104.79 | 37.27 ▼11.57 |
Media Library /wp-admin/upload.php | 1,487 ▲102 | 4.39 ▲0.20 | 84.32 ▼15.20 | 41.67 ▼2.84 |
Add New /wp-admin/post-new.php?post_type=question | 1,832 | 3.73 | 70.52 | 45.48 |
All Given Tests /wp-admin/edit.php?post_type=given_test | 1,312 | 3.41 | 42.74 | 26.05 |
Add New /wp-admin/post-new.php?post_type=participant | 1,858 | 3.64 | 67.45 | 35.37 |
All Questions /wp-admin/edit.php?post_type=question | 1,350 | 3.39 | 45.21 | 29.94 |
Settings /wp-admin/admin.php?page=mcq_menu_settings | 1,119 | 3.11 | 38.54 | 28.40 |
Question Categories /wp-admin/edit-tags.php?taxonomy=question_cat&post_type=question | 1,524 | 3.21 | 40.44 | 27.83 |
All Participants /wp-admin/edit.php?post_type=participant | 1,309 | 3.40 | 43.29 | 26.63 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-posts
- db_upgraded
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-comments
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 0% from 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
The following issues need your attention
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/mcq-test/templates/import_questions.php
- 5× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/mcq-test/templates/single-others.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function get_post_meta() in wp-content/plugins/mcq-test/templates/single-question/options.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/mcq-test/templates/mcq-test.php:11
- > PHP Fatal error
Uncaught Error: Class 'WP_Query' not found in wp-content/plugins/mcq-test/templates/single-question/related.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/mcq-test/templates/single-question/buttons.php:8
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration Passed 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
There were no plugin tags found
mcq-test/mcq-test.php Passed 13 tests
Analyzing the main PHP file in "Multiple Choice Question" version 1.2.1
45 characters long description:
This is a plug-in for Managing a MCQ webapps.
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
Success! There were no dangerous files found in this plugin8,203 lines of code in 41 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 9 | 297 | 60 | 4,801 |
PHP | 26 | 645 | 223 | 1,741 |
JavaScript | 5 | 318 | 969 | 1,006 |
SVG | 1 | 0 | 0 | 655 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
Average class complexity | 16.30 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 44.00 |
Average method complexity | 4.56 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 32.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 10 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 10 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 43 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 43 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 22 | |
▷ Named functions | 22 | 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
Using a strong compression for your PNG files is a great way to speed-up your plugin
1 PNG file occupies 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
resources/front/images/coming-soon.png | 7.66KB | 4.62KB | ▼ 39.74% |