Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▼0.13MB] [CPU: ▼18.23ms] Passed 4 tests
This is a short check of server-side resources used by qnotsquiz
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.00 ▲0.54 | 35.18 ▼4.43 |
Dashboard /wp-admin | 3.88 ▲0.53 | 45.74 ▼13.18 |
Posts /wp-admin/edit.php | 3.93 ▲0.57 | 47.14 ▼1.08 |
Add New Post /wp-admin/post-new.php | 3.70 ▼2.19 | 36.22 ▼54.24 |
Media Library /wp-admin/upload.php | 3.81 ▲0.58 | 36.14 ▲1.09 |
General /wp-admin/admin.php?page=qnotsquiz | 3.70 | 31.97 |
Export /wp-admin/edit.php?post_type=acf&page=acf-export | 3.71 | 31.22 |
Quizzes /wp-admin/edit.php?post_type=quiz | 3.84 | 40.94 |
Add-ons /wp-admin/edit.php?post_type=acf&page=acf-addons | 3.71 | 32.13 |
Questions /wp-admin/edit.php?post_type=questions | 3.84 | 36.27 |
Server storage [IO: ▲3.01MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 138 new files
Database: no new tables, 7 new options
New WordPress options |
---|
db_upgraded |
widget_theysaidso_widget |
widget_recent-comments |
acf_version |
widget_recent-posts |
can_compress_scripts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for qnotsquiz
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,952 ▲206 | 14.61 ▲0.23 | 15.71 ▲14.23 | 44.20 ▲3.82 |
Dashboard /wp-admin | 2,243 ▲55 | 5.85 ▲0.04 | 97.52 ▼8.06 | 37.55 ▼3.94 |
Posts /wp-admin/edit.php | 2,123 ▲34 | 1.99 ▼0.07 | 42.14 ▲3.57 | 34.22 ▼3.15 |
Add New Post /wp-admin/post-new.php | 6,704 ▲5,190 | 24.82 ▲1.28 | 968.10 ▲295.06 | 40.10 ▼13.76 |
Media Library /wp-admin/upload.php | 1,425 ▲37 | 4.20 ▼0.02 | 96.96 ▼2.26 | 44.53 ▼2.29 |
General /wp-admin/admin.php?page=qnotsquiz | 807 | 2.06 | 27.06 | 27.26 |
Export /wp-admin/edit.php?post_type=acf&page=acf-export | 959 | 2.02 | 24.66 | 29.17 |
Quizzes /wp-admin/edit.php?post_type=quiz | 1,095 | 2.02 | 29.84 | 31.59 |
Add-ons /wp-admin/edit.php?post_type=acf&page=acf-addons | 1,030 | 2.34 | 25.97 | 26.90 |
Questions /wp-admin/edit.php?post_type=questions | 1,087 | 1.98 | 29.34 | 28.05 |
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
You still need to fix the following
- Zombie WordPress options detected upon uninstall: 7 options
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-comments
- acf_version
- widget_recent-posts
- widget_theysaidso_widget
- db_upgraded
Smoke tests 50% 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 0% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The following issues need your attention
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/qnotsquiz/qnotsquiz_settings.php
- 40× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/qnotsquiz/acf/core/api.php:866
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/qnotsquiz/acf/core/fields/_functions.php:25
- > PHP Fatal error
Uncaught Error: Class 'acf_field' not found in wp-content/plugins/qnotsquiz/acf/core/fields/wysiwyg.php:3
- > PHP Fatal error
Uncaught Error: Class 'acf_field' not found in wp-content/plugins/qnotsquiz/acf/core/fields/radio.php:3
- > PHP Fatal error
Uncaught Error: Class 'acf_field' not found in wp-content/plugins/qnotsquiz/acf/core/fields/color_picker.php:3
- > PHP Fatal error
Uncaught Error: Class 'acf_field' not found in wp-content/plugins/qnotsquiz/acf/core/fields/email.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/qnotsquiz/acf/core/views/meta_box_location.php:18
- > PHP Fatal error
Uncaught Error: Class 'acf_field' not found in wp-content/plugins/qnotsquiz/acf/core/fields/post_object.php:3
- > PHP Fatal error
Uncaught Error: Class 'acf_field' not found in wp-content/plugins/qnotsquiz/acf/core/fields/checkbox.php:3
- > PHP Fatal error
Uncaught Error: Class 'acf_field' not found in wp-content/plugins/qnotsquiz/acf/core/fields/number.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
2 plugin tags: quizmaker, quiz
qnotsquiz/qnotsquiz.php Passed 13 tests
This is the main PHP file of "qnotsquiz" version 1.0.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
33 characters long description:
Create quiz with easy navigation.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
There were no executable files found in this plugin38,268 lines of code in 84 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PO File | 24 | 9,701 | 14,112 | 21,302 |
PHP | 47 | 4,175 | 4,711 | 9,859 |
JavaScript | 7 | 2,239 | 1,631 | 4,519 |
CSS | 6 | 748 | 379 | 2,588 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
Average class complexity | 24.44 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 106.00 |
Average method complexity | 4.29 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 62.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 39 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 39 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 278 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 278 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 73 | |
▷ Named functions | 61 | 83.56% |
▷ Anonymous functions | 12 | 16.44% |
Constants | 1 | |
▷ Global constants | 1 | 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
17 compressed PNG files occupy 0.04MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
acf/images/arrows@2x.png | 0.84KB | 0.88KB | 0.00% |
acf/core/fields/date_picker/images/ui-bg_highlight-soft_0_444444_1x100.png | 0.08KB | 0.08KB | 0.00% |
acf/images/sprite.png | 5.94KB | 2.82KB | ▼ 52.51% |
acf/core/fields/date_picker/images/ui-icons_222222_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |
acf/core/fields/date_picker/images/ui-icons_2e83ff_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |