Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
These installer errors require your attention
- The plugin did not install without errors
- > Deprecated in wp-content/plugins/super-simple-quiz/includes/class-simple-quiz-initialization.php+17
define(): Declaration of case-insensitive constants is deprecated
Server metrics [RAM: ▼1.93MB] [CPU: ▼55.26ms] Passed 4 tests
Analyzing server-side resources used by Super Simple Quiz
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.06 ▼1.41 | 5.03 ▼41.54 |
Dashboard /wp-admin | 2.08 ▼1.23 | 5.08 ▼45.60 |
Posts /wp-admin/edit.php | 2.08 ▼1.28 | 6.45 ▼42.51 |
Add New Post /wp-admin/post-new.php | 2.08 ▼3.81 | 5.75 ▼91.38 |
Media Library /wp-admin/upload.php | 2.08 ▼1.15 | 4.87 ▼32.65 |
Add new question /wp-admin/admin.php?page=do_question | 2.08 | 5.23 |
Simple Quiz List /wp-admin/admin.php?page=wp_simple_quiz | 2.08 | 8.78 |
/wp-admin/admin.php?page=do_quiz | 2.08 | 5.35 |
List of quiz results /wp-admin/admin.php?page=quiz_results | 2.08 | 6.60 |
Server storage [IO: ▲0.48MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 49 new files
Database: 4 new tables, 6 new options
New tables |
---|
wp_ssq_quizzes_questions |
wp_ssq_quizzes_answers |
wp_ssq_quizzes_results |
wp_ssq_quizzes |
New WordPress options |
---|
widget_recent-comments |
can_compress_scripts |
db_upgraded |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-posts |
Browser metrics Passed 4 tests
A check of browser resources used by Super Simple Quiz
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,925 ▲164 | 13.73 ▼0.62 | 10.68 ▲8.59 | 42.32 ▼4.33 |
Dashboard /wp-admin | 2,244 ▲64 | 5.60 ▼0.07 | 95.35 ▲6.71 | 42.92 ▲3.02 |
Posts /wp-admin/edit.php | 2,135 ▲35 | 2.03 ▲0.05 | 35.96 ▼2.27 | 32.88 ▼2.85 |
Add New Post /wp-admin/post-new.php | 1,554 ▲26 | 21.86 ▼1.60 | 648.03 ▲13.01 | 56.52 ▲6.23 |
Media Library /wp-admin/upload.php | 1,429 ▲26 | 4.22 ▼0.02 | 101.65 ▼4.30 | 42.81 ▲0.40 |
Add new question /wp-admin/admin.php?page=do_question | 1,570 | 6.54 | 137.01 | 69.16 |
Simple Quiz List /wp-admin/admin.php?page=wp_simple_quiz | 1,056 | 1.67 | 27.77 | 29.44 |
/wp-admin/admin.php?page=do_quiz | 1,586 | 6.57 | 131.72 | 48.54 |
List of quiz results /wp-admin/admin.php?page=quiz_results | 1,045 | 1.66 | 27.81 | 25.70 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- This plugin cannot be uninstalled
- > Deprecated in wp-content/plugins/super-simple-quiz/includes/class-simple-quiz-initialization.php+17
define(): Declaration of case-insensitive constants is deprecated
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-comments
- widget_theysaidso_widget
- widget_recent-posts
- db_upgraded
- can_compress_scripts
- theysaidso_admin_options
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
These errors were triggered by the plugin
- 44 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=quiz_results
- > Deprecated in wp-content/plugins/super-simple-quiz/includes/class-simple-quiz-initialization.php+33
define(): Declaration of case-insensitive constants is deprecated
- > GET request to /wp-admin/admin.php?page=do_question
- > Notice in wp-content/plugins/super-simple-quiz/admin/partials/class-render-question-form.php+29
Undefined index: id_quiz
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
Please take a closer look at the following
- 23× 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 plugin_dir_path() in wp-content/plugins/super-simple-quiz/admin/classes/class-controller-table-results.php:10
- > PHP Notice
Trying to get property 'prefix' of non-object in wp-content/plugins/super-simple-quiz/includes/class-simple-quiz-initialization.php on line 10
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/super-simple-quiz/admin/classes/class-render-table-quizzes.php on line 11
- > PHP Warning
require_once(ABSPATHwp-admin/includes/class-wp-list-table.php): failed to open stream: No such file or directory in wp-content/plugins/super-simple-quiz/admin/classes/class-render-table-questions.php on line 11
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHwp-admin/includes/class-wp-list-table.php' (include_path='.:/usr/share/php') in wp-content/plugins/super-simple-quiz/admin/classes/class-render-table-questions.php on line 11
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/super-simple-quiz/admin/classes/class-controller-table-quizzes.php:10
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHwp-admin/includes/upgrade.php' (include_path='.:/usr/share/php') in wp-content/plugins/super-simple-quiz/includes/class-simple-quiz-activator.php on line 13
- > PHP Notice
Trying to get property 'prefix' of non-object in wp-content/plugins/super-simple-quiz/includes/class-simple-quiz-initialization.php on line 10
- > PHP Warning
require_once(ABSPATHwp-admin/includes/upgrade.php): failed to open stream: No such file or directory in wp-content/plugins/super-simple-quiz/includes/class-simple-quiz-activator.php on line 13
- > PHP Fatal error
require(): Failed opening required 'ABSPATHWPINC/class-wp-editor.php' (include_path='.:/usr/share/php') in wp-content/plugins/super-simple-quiz/admin/partials/class-render-question-form.php on line 11
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Please take a look at the following user-side issues
- 4 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=quiz_results
- > Console-api (warning) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1 1:28609 "jQuery.Deferred exception: $(...).die is not a function" "TypeError: $(...).die is not a function\n at HTMLDocument.\u003Canonymous> (/wp-content/plugins/super-simple-quiz/admin/js/simple-quiz-admin.js?ver=1.0.0:75:27)\n at e (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:2:26990)\n at t (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:2:27292)" undefined
- 4 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=quiz_results
- > Javascript (severe) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1 1:28721 Uncaught TypeError: $(...).die is not a function
Optimizations
Plugin configuration 90% from 29 tests
readme.txt Passed 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
2 plugin tags: quiz, questionnaire
super-simple-quiz/simple-quiz.php 77% from 13 tests
The primary PHP file in "Super Simple Quiz" version 1.0.1 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
- Description: Please don't use more than 140 characters for the plugin description (currently 168 characters long)
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("super-simple-quiz.php" instead of "simple-quiz.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin1,998 lines of code in 28 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 23 | 424 | 725 | 1,522 |
JavaScript | 2 | 60 | 20 | 202 |
PO File | 1 | 62 | 86 | 145 |
CSS | 2 | 8 | 12 | 129 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.40 |
Average class complexity | 10.65 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 41.00 |
Average method complexity | 2.58 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 25.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 6 | |
Classes | 14 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 14 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 114 | |
▷ Static methods | 9 | 7.89% |
▷ Public methods | 109 | 95.61% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 4.39% |
Functions | 8 | |
▷ Named functions | 5 | 62.50% |
▷ Anonymous functions | 3 | 37.50% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
6 PNG files occupy 0.35MB with 0.15MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/banner-1544x500.png | 89.53KB | 33.00KB | ▼ 63.13% |
assets/banners/banner-1544x500.png | 89.53KB | 33.00KB | ▼ 63.13% |
public/img/right.png | 0.30KB | 0.27KB | ▼ 10.78% |
public/img/left.png | 0.33KB | 0.28KB | ▼ 16.08% |
assets/banner-772x250.png | 89.53KB | 33.00KB | ▼ 63.13% |