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
Install script ran successfully
Server metrics [RAM: ▲0.14MB] [CPU: ▼2.09ms] Passed 4 tests
Analyzing server-side resources used by Wp-Adv-Quiz
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.54 ▲0.08 | 39.09 ▼0.78 |
Dashboard /wp-admin | 3.50 ▲0.20 | 47.99 ▼2.96 |
Posts /wp-admin/edit.php | 3.58 ▲0.22 | 46.92 ▼1.26 |
Add New Post /wp-admin/post-new.php | 5.96 ▲0.07 | 83.28 ▼3.37 |
Media Library /wp-admin/upload.php | 3.48 ▲0.25 | 36.14 ▲0.09 |
WP-Adv-Quiz /wp-admin/admin.php?page=wpAdvQuiz | 3.60 | 42.52 |
Global settings /wp-admin/admin.php?page=wpAdvQuiz_glSettings | 3.53 | 49.14 |
Support & More /wp-admin/admin.php?page=wpAdvQuiz_waq_support | 3.34 | 31.34 |
Server storage [IO: ▲1.74MB] [DB: ▲0.01MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 163 new files
Database: 10 new tables, 8 new options
New tables |
---|
wp_wp_adv_quiz_toplist |
wp_wp_adv_quiz_statistic_ref |
wp_wp_adv_quiz_master |
wp_wp_adv_quiz_lock |
wp_wp_adv_quiz_question |
wp_wp_adv_quiz_category |
wp_wp_adv_quiz_statistic |
wp_wp_adv_quiz_template |
wp_wp_adv_quiz_form |
wp_wp_adv_quiz_prerequisite |
New WordPress options |
---|
widget_theysaidso_widget |
wpAdvQuiz_dbVersion |
widget_recent-posts |
wpAdvQuiz_version |
can_compress_scripts |
db_upgraded |
theysaidso_admin_options |
widget_recent-comments |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Wp-Adv-Quiz
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,937 ▲191 | 13.67 ▼1.01 | 5.28 ▲3.58 | 44.31 ▲0.07 |
Dashboard /wp-admin | 2,234 ▲46 | 5.82 ▲0.91 | 95.97 ▼12.58 | 37.99 ▲0.37 |
Posts /wp-admin/edit.php | 2,123 ▲34 | 2.05 ▲0.00 | 35.26 ▼4.98 | 34.83 ▼2.69 |
Add New Post /wp-admin/post-new.php | 6,205 ▲4,672 | 26.29 ▲3.13 | 926.94 ▲213.18 | 62.89 ▲14.96 |
Media Library /wp-admin/upload.php | 1,416 ▲25 | 4.20 ▼0.00 | 103.40 ▲3.38 | 46.64 ▲3.22 |
WP-Adv-Quiz /wp-admin/admin.php?page=wpAdvQuiz | 1,294 | 2.04 | 47.32 | 33.41 |
Global settings /wp-admin/admin.php?page=wpAdvQuiz_glSettings | 1,790 | 2.15 | 41.75 | 24.31 |
Support & More /wp-admin/admin.php?page=wpAdvQuiz_waq_support | 864 | 1.93 | 26.10 | 29.03 |
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
The following items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- theysaidso_admin_options
- widget_recent-posts
- can_compress_scripts
- widget_recent-comments
- db_upgraded
- widget_theysaidso_widget
Smoke tests 75% 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 50% 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
Please take a closer look at the following
- 72× PHP files trigger server errors when accessed directly (only 10 are shown):
- > 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_Controller_Controller' not found in wp-content/plugins/advanced-quiz/lib/controller/WpAdvQuiz_Controller_ImportExport.php:3
- > PHP Fatal error
Uncaught Error: Interface 'WpAdvQuiz_Helper_QuestionImpoterInterface' not found in wp-content/plugins/advanced-quiz/lib/helper/WpAdvQuiz_Helper_JsonQuestionImporter.php:3
- > PHP Fatal error
Uncaught Error: Class 'WpAdvQuiz_Model_Mapper' not found in wp-content/plugins/advanced-quiz/lib/model/WpAdvQuiz_Model_TemplateMapper.php:3
- > PHP Fatal error
Uncaught Error: Class 'WpAdvQuiz_Model_Mapper' not found in wp-content/plugins/advanced-quiz/lib/model/WpAdvQuiz_Model_StatisticMapper.php:3
- > PHP Fatal error
Uncaught Error: Class 'WpAdvQuiz_View_View' not found in wp-content/plugins/advanced-quiz/lib/view/WpAdvQuiz_View_QuizOverall.php:11
- > PHP Fatal error
Uncaught Error: Class 'WpAdvQuiz_Model_Mapper' not found in wp-content/plugins/advanced-quiz/lib/model/WpAdvQuiz_Model_LockMapper.php:3
- > PHP Fatal error
Uncaught Error: Interface 'WpAdvQuiz_Helper_StatisticExporterInterface' not found in wp-content/plugins/advanced-quiz/lib/helper/WpAdvQuiz_Helper_ExcelStatisticExporter.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: Class 'WpAdvQuiz_Model_Model' not found in wp-content/plugins/advanced-quiz/lib/model/WpAdvQuiz_Model_Template.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
9 plugin tags: answer, score, assessment, quiz, learning...
advanced-quiz/wp-adv-quiz.php 85% from 13 tests
The primary PHP file in "Wp-Adv-Quiz" version 1.0.2 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
- Main file name: Please rename the main PHP file in this plugin to 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 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected25,155 lines of code in 118 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 104 | 4,154 | 928 | 18,148 |
JavaScript | 9 | 1,131 | 1,063 | 5,005 |
PO File | 1 | 532 | 1,040 | 1,443 |
CSS | 3 | 98 | 5 | 516 |
Markdown | 1 | 8 | 0 | 43 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.26 |
Average class complexity | 16.22 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 175.00 |
Average method complexity | 2.59 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 56.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 5 | |
Traits | 0 | |
Classes | 97 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 97 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 983 | |
▷ Static methods | 53 | 5.39% |
▷ Public methods | 720 | 73.25% |
▷ Protected methods | 113 | 11.50% |
▷ Private methods | 150 | 15.26% |
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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
39 PNG files occupy 0.33MB with 0.15MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/formStatisticOverview.png | 38.97KB | 19.25KB | ▼ 50.61% |
img/hideAnswerMessageBox.png | 13.65KB | 5.49KB | ▼ 59.75% |
css/images/ui-bg_glass_55_fbf9ee_1x400.png | 0.33KB | 0.12KB | ▼ 62.09% |
img/questionOverview.png | 10.75KB | 4.91KB | ▼ 54.35% |
css/images/ui-icons_2e83ff_256x240.png | 4.44KB | 4.17KB | ▼ 6.02% |