Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.24MB] [CPU: ▼292.40ms] Passed 4 tests
This is a short check of server-side resources used by Wp-Adv-Quiz
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.75 ▲0.24 | 56.90 ▲6.17 |
Dashboard /wp-admin | 3.73 ▲0.33 | 36.13 ▼3.04 |
Posts /wp-admin/edit.php | 3.90 ▲0.26 | 40.25 ▲1.97 |
Add New Post /wp-admin/post-new.php | 7.09 ▲0.12 | 95.49 ▼1,173.96 |
Media Library /wp-admin/upload.php | 3.68 ▲0.39 | 28.47 ▲5.42 |
Support & More /wp-admin/admin.php?page=wpAdvQuiz_waq_support | 3.56 | 23.79 |
Global settings /wp-admin/admin.php?page=wpAdvQuiz_glSettings | 3.78 | 30.70 |
WP-Adv-Quiz /wp-admin/admin.php?page=wpAdvQuiz | 4.00 | 26.73 |
Server storage [IO: ▲1.47MB] [DB: ▲0.01MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 158 new files
Database: 10 new tables, 2 new options
New tables |
---|
wp_wp_adv_quiz_category |
wp_wp_adv_quiz_toplist |
wp_wp_adv_quiz_statistic_ref |
wp_wp_adv_quiz_template |
wp_wp_adv_quiz_statistic |
wp_wp_adv_quiz_question |
wp_wp_adv_quiz_master |
wp_wp_adv_quiz_lock |
wp_wp_adv_quiz_prerequisite |
wp_wp_adv_quiz_form |
New WordPress options |
---|
wpAdvQuiz_dbVersion |
wpAdvQuiz_version |
Browser metrics Passed 4 tests
Wp-Adv-Quiz: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,909 ▲155 | 16.48 ▲1.19 | 9.51 ▲3.09 | 2.59 ▼0.38 |
Dashboard /wp-admin | 2,932 ▲74 | 6.14 ▼0.06 | 118.82 ▼12.39 | 153.98 ▼10.59 |
Posts /wp-admin/edit.php | 2,728 ▲43 | 3.24 ▼0.00 | 61.02 ▼1.19 | 138.63 ▼0.95 |
Add New Post /wp-admin/post-new.php | 1,690 ▲29 | 16.78 ▲0.02 | 412.02 ▼5.15 | 152.65 ▼2.30 |
Media Library /wp-admin/upload.php | 1,736 ▲38 | 5.52 ▲0.01 | 140.94 ▲6.22 | 186.96 ▼5.93 |
Support & More /wp-admin/admin.php?page=wpAdvQuiz_waq_support | 1,094 | 2.85 | 64.98 | 126.87 |
Global settings /wp-admin/admin.php?page=wpAdvQuiz_glSettings | 1,880 | 3.08 | 67.80 | 123.80 |
WP-Adv-Quiz /wp-admin/admin.php?page=wpAdvQuiz | 1,706 | 2.95 | 56.26 | 126.76 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Uninstall script ran successfully
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please take a closer look at the following
- 70× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'DPA_Extension' not found in wp-content/plugins/advanced-quiz/lib/plugin/WpAdvQuiz_Plugin_BpAchievementsV3.php:3
- > PHP Fatal error
Uncaught Error: Class 'WpAdvQuiz_Model_Mapper' not found in wp-content/plugins/advanced-quiz/lib/model/WpAdvQuiz_Model_ToplistMapper.php:3
- > PHP Fatal error
Uncaught Error: Class 'WpAdvQuiz_Controller_Controller' not found in wp-content/plugins/advanced-quiz/lib/controller/WpAdvQuiz_Controller_Toplist.php:3
- > PHP Fatal error
Uncaught Error: Class 'WpAdvQuiz_Controller_Controller' not found in wp-content/plugins/advanced-quiz/lib/controller/WpAdvQuiz_Controller_StatisticExport.php:3
- > PHP Fatal error
Uncaught Error: Class 'WpAdvQuiz_View_View' not found in wp-content/plugins/advanced-quiz/lib/view/WpAdvQuiz_View_QuestionImportPreview.php:10
- > PHP Fatal error
Uncaught Error: Class 'WpAdvQuiz_View_View' not found in wp-content/plugins/advanced-quiz/lib/view/WpAdvQuiz_View_WaqSupport.php:3
- > PHP Fatal error
Uncaught Error: Class 'WpAdvQuiz_Model_Mapper' not found in wp-content/plugins/advanced-quiz/lib/model/WpAdvQuiz_Model_QuestionMapper.php:3
- > PHP Fatal error
Uncaught Error: Class 'WpAdvQuiz_Controller_Controller' not found in wp-content/plugins/advanced-quiz/lib/controller/WpAdvQuiz_Controller_StyleManager.php:3
- > PHP Fatal error
Uncaught Error: Class 'WpAdvQuiz_Model_Model' not found in wp-content/plugins/advanced-quiz/lib/model/WpAdvQuiz_Model_Toplist.php:3
- > PHP Fatal error
Uncaught Error: Interface 'WpAdvQuiz_Helper_QuestionExporterInterface' not found in wp-content/plugins/advanced-quiz/lib/helper/WpAdvQuiz_Helper_JsonQuestionExporter.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration 93% 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: lead, question, test, score, quiz...
advanced-quiz/wp-adv-quiz.php 85% from 13 tests
Analyzing the main PHP file in "Wp-Adv-Quiz" version 1.0.0
Please make the necessary changes and fix the following:
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
- Main file name: The principal plugin file should be the same as the plugin slug ("advanced-quiz.php" instead of "wp-adv-quiz.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Everything looks great! No dangerous files found in this plugin22,859 lines of code in 115 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 102 | 3,911 | 838 | 17,274 |
JavaScript | 9 | 1,127 | 1,063 | 5,004 |
CSS | 3 | 98 | 5 | 516 |
Markdown | 1 | 7 | 0 | 65 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.27 |
Average class complexity | 15.76 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 175.00 |
Average method complexity | 2.56 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 54.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 5 | |
Traits | 0 | |
Classes | 95 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 95 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 954 | |
▷ Static methods | 53 | 5.56% |
▷ Public methods | 712 | 74.63% |
▷ Protected methods | 93 | 9.75% |
▷ Private methods | 149 | 15.62% |
Functions | 4 | |
▷ Named functions | 4 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 48 | |
▷ Global constants | 9 | 18.75% |
▷ Class constants | 39 | 81.25% |
▷ Public constants | 39 | 100.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
39 PNG files occupy 0.33MB with 0.19MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
css/images/ui-bg_glass_75_e6e6e6_1x400.png | 0.26KB | 0.15KB | ▼ 42.37% |
img/hideCorrectQuestion.png | 15.06KB | 5.85KB | ▼ 61.19% |
img/quizSummary.png | 9.56KB | 3.86KB | ▼ 59.62% |
img/hideAnswerMessageBox.png | 13.65KB | 5.49KB | ▼ 59.75% |
img/hideQuestionNumbering.png | 11.68KB | 4.65KB | ▼ 60.15% |