Benchmarks
Plugin footprint 65% 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 gracefully, with no errors
Server metrics [RAM: ▼0.69MB] [CPU: ▼37.31ms] Passed 4 tests
An overview of server-side resources used by Easy Quiz Maker
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.66 ▲0.20 | 43.02 ▲3.57 |
Dashboard /wp-admin | 3.25 ▼0.05 | 25.78 ▼25.67 |
Posts /wp-admin/edit.php | 3.25 ▼0.11 | 24.66 ▼26.31 |
Add New Post /wp-admin/post-new.php | 3.25 ▼2.64 | 25.12 ▼83.45 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 24.60 ▼13.80 |
WP Simple Quiz /wp-admin/edit.php?post_type=wqt | 3.25 | 23.57 |
Result /wp-admin/edit.php?post_type=wqt_result | 3.25 | 26.12 |
Server storage [IO: ▲3.81MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 117 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-comments |
theysaidso_admin_options |
widget_recent-posts |
widget_theysaidso_widget |
can_compress_scripts |
Browser metrics Passed 4 tests
A check of browser resources used by Easy Quiz Maker
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,812 ▲66 | 14.39 ▼0.37 | 1.91 ▲0.40 | 45.11 ▲4.62 |
Dashboard /wp-admin | 2,206 ▲26 | 5.55 ▼0.10 | 92.67 ▲4.29 | 79.22 ▲34.10 |
Posts /wp-admin/edit.php | 2,126 ▲29 | 2.00 ▼0.02 | 36.51 ▼0.28 | 32.43 ▼3.79 |
Add New Post /wp-admin/post-new.php | 1,561 ▲35 | 23.15 ▼0.05 | 722.82 ▲22.86 | 49.39 ▼6.13 |
Media Library /wp-admin/upload.php | 1,417 ▲17 | 4.18 ▼0.05 | 95.41 ▼22.94 | 83.01 ▲34.59 |
WP Simple Quiz /wp-admin/edit.php?post_type=wqt | 1,135 | 1.93 | 31.04 | 29.96 |
Result /wp-admin/edit.php?post_type=wqt_result | 1,102 | 1.96 | 30.17 | 29.12 |
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
- > User notice in wp-includes/functions.php+5905
Function add_submenu_page was called incorrectly. The seventh parameter passed to add_submenu_page() should be numeric representing menu position. Please see Debugging in WordPress for more information. (This message was added in version 5.3.0.)
- The uninstall procedure has failed, leaving 6 options in the database
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-posts
- db_upgraded
- widget_theysaidso_widget
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Smoke test failed, please fix the following
- 2 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=wqt_result
- > User notice in wp-includes/functions.php+5905
Function add_submenu_page was called incorrectly. The seventh parameter passed to add_submenu_page() should be numeric representing menu position. Please see Debugging in WordPress for more information. (This message was added in version 5.3.0.)
SRP 50% 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
Almost there! Just fix the following items
- 19× PHP files perform the task of outputting text when accessed with GET requests (only 10 are shown):
- > /wp-content/plugins/n-media-wp-simple-quiz/inc/shortcodes.php
- > /wp-content/plugins/n-media-wp-simple-quiz/templates/shortcodes/quiz-rander.php
- > /wp-content/plugins/n-media-wp-simple-quiz/templates/admin/result-print-pdf.php
- > /wp-content/plugins/n-media-wp-simple-quiz/templates/admin/quiz-result-email.php
- > /wp-content/plugins/n-media-wp-simple-quiz/templates/admin/submit-member-list.php
- > /wp-content/plugins/n-media-wp-simple-quiz/templates/admin/user-info.php
- > /wp-content/plugins/n-media-wp-simple-quiz/templates/admin/quiz-result.php
- > /wp-content/plugins/n-media-wp-simple-quiz/inc/cpt.php
- > /wp-content/plugins/n-media-wp-simple-quiz/inc/helpers.php
- > /wp-content/plugins/n-media-wp-simple-quiz/templates/admin/quiz-form-style.php
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Attributes that need to be fixed:
- Tags: Please reduce the number of tags, currently 21 tag instead of maximum 10
n-media-wp-simple-quiz/wp-simple-quiz.php 85% from 13 tests
This is the main PHP file of "Easy Quiz Maker" version 2.0, 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:
- Main file name: The principal plugin file should be the same as the plugin slug ("n-media-wp-simple-quiz.php" instead of "wp-simple-quiz.php")
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
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 plugin22,456 lines of code in 76 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 11 | 243 | 133 | 5,691 |
SVG | 4 | 0 | 3 | 5,435 |
JavaScript | 7 | 1,262 | 326 | 4,860 |
PHP | 23 | 582 | 215 | 1,788 |
Sass | 14 | 34 | 34 | 1,768 |
LESS | 14 | 34 | 44 | 1,758 |
PO File | 3 | 405 | 423 | 1,156 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.25 |
Average class complexity | 6.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 12.00 |
Average method complexity | 1.37 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 5.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 41 | |
▷ Static methods | 2 | 4.88% |
▷ Public methods | 41 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 35 | |
▷ Named functions | 35 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
15 PNG files occupy 0.07MB with 0.03MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
css/ui/css/smoothness/images/ui-bg_highlight-soft_75_cccccc_1x100.png | 0.27KB | 0.18KB | ▼ 35.00% |
css/ui/css/smoothness/images/ui-bg_glass_65_ffffff_1x400.png | 0.20KB | 0.09KB | ▼ 57.49% |
css/ui/css/smoothness/images/ui-bg_glass_75_dadada_1x400.png | 0.26KB | 0.16KB | ▼ 38.93% |
css/ui/css/smoothness/images/ui-icons_454545_256x240.png | 6.83KB | 4.17KB | ▼ 38.86% |
css/ui/css/smoothness/images/ui-bg_glass_95_fef1ec_1x400.png | 0.32KB | 0.15KB | ▼ 54.82% |