Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.51MB] [CPU: ▼2.20ms] Passed 4 tests
An overview of server-side resources used by Chained Quiz
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.98 ▲0.51 | 45.46 ▼7.39 |
Dashboard /wp-admin | 3.80 ▲0.50 | 54.64 ▲4.42 |
Posts /wp-admin/edit.php | 3.92 ▲0.56 | 57.13 ▲8.42 |
Add New Post /wp-admin/post-new.php | 6.40 ▲0.52 | 89.13 ▼7.42 |
Media Library /wp-admin/upload.php | 3.73 ▲0.50 | 39.91 ▲1.60 |
Settings /wp-admin/admin.php?page=chainedquiz_options | 3.73 | 38.28 |
Integrations /wp-admin/admin.php?page=chainedquiz_integrations | 3.71 | 36.31 |
Chained Quiz Results /wp-admin/admin.php?page=chainedquiz_results | 3.67 | 35.48 |
Quizzes /wp-admin/admin.php?page=chained_quizzes | 3.70 | 40.24 |
Chained Quiz Questions /wp-admin/admin.php?page=chainedquiz_questions | 3.67 | 34.87 |
Social Sharing /wp-admin/admin.php?page=chainedquiz_social_sharing | 3.71 | 39.93 |
Users Completed Quiz /wp-admin/admin.php?page=chainedquiz_list | 3.67 | 35.37 |
Server storage [IO: ▲0.27MB] [DB: ▲0.01MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 44 new files
Database: 7 new tables, 15 new options
New tables |
---|
wp_chained_completed |
wp_chained_questions |
wp_chained_mail_relations |
wp_chained_user_answers |
wp_chained_quizzes |
wp_chained_results |
wp_chained_choices |
New WordPress options |
---|
chainedquiz_cleanup |
chained_fixed_sort_order |
theysaidso_admin_options |
chainedquiz_version |
chained_csv_quotes |
chained_sender_name |
db_upgraded |
widget_recent-posts |
can_compress_scripts |
chained_admin_subject |
... |
Browser metrics Passed 4 tests
Checking browser requirements for Chained Quiz
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,953 ▲207 | 13.58 ▼0.60 | 8.17 ▲5.81 | 41.11 ▼2.64 |
Dashboard /wp-admin | 2,245 ▲57 | 5.85 ▲0.95 | 111.01 ▲6.16 | 39.64 ▼2.00 |
Posts /wp-admin/edit.php | 2,134 ▲42 | 2.02 ▲0.00 | 40.05 ▲0.09 | 34.99 ▼2.41 |
Add New Post /wp-admin/post-new.php | 1,548 ▲6 | 23.35 ▲5.04 | 664.68 ▲4.05 | 50.03 ▼10.67 |
Media Library /wp-admin/upload.php | 1,433 ▲45 | 4.26 ▲0.09 | 96.05 ▼9.64 | 48.11 ▲2.14 |
Settings /wp-admin/admin.php?page=chainedquiz_options | 1,060 | 2.03 | 23.04 | 28.99 |
Integrations /wp-admin/admin.php?page=chainedquiz_integrations | 843 | 2.06 | 26.22 | 28.09 |
Chained Quiz Results /wp-admin/admin.php?page=chainedquiz_results | 1,621 | 6.56 | 129.18 | 58.84 |
Quizzes /wp-admin/admin.php?page=chained_quizzes | 877 | 2.05 | 22.11 | 29.80 |
Chained Quiz Questions /wp-admin/admin.php?page=chainedquiz_questions | 869 | 2.03 | 26.15 | 28.95 |
Social Sharing /wp-admin/admin.php?page=chainedquiz_social_sharing | 983 | 2.03 | 23.31 | 27.43 |
Users Completed Quiz /wp-admin/admin.php?page=chainedquiz_list | 901 | 2.05 | 22.36 | 30.97 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- The plugin did not uninstall successfully, leaving 7 tables in the database
- wp_chained_user_answers
- wp_chained_mail_relations
- wp_chained_results
- wp_chained_questions
- wp_chained_quizzes
- wp_chained_choices
- wp_chained_completed
- Zombie WordPress options were found after uninstall: 15 options
- chained_sender_name
- chainedquiz_version
- db_upgraded
- chained_sender_email
- chained_admin_subject
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-posts
- widget_recent-comments
- widget_theysaidso_widget
- ...
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
These errors were triggered by the plugin
- 4 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=chainedquiz_list
- > Notice in wp-content/plugins/chained-quiz/controllers/completed.php+8
Undefined index: quiz_id
- 13 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=chainedquiz_list
- > Notice in wp-content/plugins/chained-quiz/views/completed.html.php+129
Trying to get property 'id' of non-object
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=chainedquiz_list
- > Notice in wp-content/plugins/chained-quiz/views/completed.html.php+2
Trying to get property 'title' of non-object
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at the following
- 29× 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 _e() in wp-content/plugins/chained-quiz/views/chained-quizzes.html.php:2
- > PHP Notice
Undefined variable: active in wp-content/plugins/chained-quiz/views/integrations-tabs.html.php on line 2
- > PHP Notice
Undefined variable: target_image in wp-content/plugins/chained-quiz/views/social-share-snippet.html.php on line 5
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/chained-quiz/views/integrations.html.php:2
- > PHP Notice
Undefined variable: og_title in wp-content/plugins/chained-quiz/views/social-share-snippet.html.php on line 4
- > PHP Notice
Undefined variable: _question in wp-content/plugins/chained-quiz/views/display-quiz.html.php on line 34
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/chained-quiz/views/choice.html.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/chained-quiz/views/quiz.html.php:2
- > PHP Notice
Trying to get property 'id' of non-object in wp-content/plugins/chained-quiz/views/display-quiz.html.php on line 26
- > PHP Notice
Trying to get property 'id' of non-object in wp-content/plugins/chained-quiz/views/display-quiz.html.php on line 33
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
5 plugin tags: exam, survey, questionnaire, test, quiz
chained-quiz/chained-quiz.php 92% from 13 tests
The entry point to "Chained Quiz" version 1.3.2.7 is a PHP file that has certain tags in its header comment area
It is important to 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
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 plugin3,393 lines of code in 36 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 33 | 617 | 252 | 2,737 |
PO File | 1 | 208 | 224 | 539 |
JavaScript | 1 | 19 | 11 | 90 |
CSS | 1 | 5 | 0 | 27 |
PHP code Passed 2 tests
An short overview of 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.50 |
Average class complexity | 33.75 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 74.00 |
Average method complexity | 8.28 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 64.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 12 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 12 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 54 | |
▷ Static methods | 35 | 64.81% |
▷ Public methods | 52 | 96.30% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 3.70% |
Functions | 9 | |
▷ Named functions | 9 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 12 | |
▷ Global constants | 12 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
3 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/arrow-down.png | 0.24KB | 0.25KB | 0.00% |
img/arrow-up.png | 0.23KB | 0.25KB | 0.00% |
img/share/facebook.png | 1.89KB | 0.74KB | ▼ 60.82% |