Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▲0.29MB] [CPU: ▼2.06ms] Passed 4 tests
This is a short check of server-side resources used by VIZE Tests - Basic
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.78 ▲0.31 | 47.51 ▲2.58 |
Dashboard /wp-admin | 3.63 ▲0.33 | 54.29 ▲5.47 |
Posts /wp-admin/edit.php | 3.68 ▲0.32 | 55.35 ▼0.58 |
Add New Post /wp-admin/post-new.php | 6.15 ▲0.26 | 88.51 ▼13.52 |
Media Library /wp-admin/upload.php | 3.49 ▲0.26 | 39.83 ▲3.28 |
Manage Questions /wp-admin/admin.php?page=questions_list | 3.46 | 39.61 |
Manage Tests /wp-admin/admin.php?page=tests_list | 3.46 | 35.14 |
Server storage [IO: ▲0.21MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 31 new files
Database: 3 new tables, 6 new options
New tables |
---|
vize_test_questions |
vize_tests |
vize_test_answers |
New WordPress options |
---|
theysaidso_admin_options |
db_upgraded |
widget_recent-comments |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-posts |
Browser metrics Passed 4 tests
An overview of browser requirements for VIZE Tests - Basic
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,902 ▲141 | 13.86 ▼0.32 | 10.28 ▲8.47 | 44.06 ▲4.82 |
Dashboard /wp-admin | 2,215 ▲45 | 5.52 ▼0.17 | 85.18 ▼8.13 | 41.83 ▲4.13 |
Posts /wp-admin/edit.php | 2,123 ▲23 | 2.04 ▲0.04 | 35.04 ▼3.07 | 41.99 ▲6.66 |
Add New Post /wp-admin/post-new.php | 1,564 ▲17 | 23.35 ▲0.16 | 663.23 ▼41.53 | 58.47 ▼2.55 |
Media Library /wp-admin/upload.php | 1,423 ▲26 | 4.23 ▼0.12 | 96.39 ▼18.36 | 41.51 ▼5.00 |
Manage Questions /wp-admin/admin.php?page=questions_list | 1,060 | 1.79 | 27.60 | 31.93 |
Manage Tests /wp-admin/admin.php?page=tests_list | 1,047 | 1.75 | 24.82 | 28.35 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
- The plugin did not uninstall successfully, leaving 3 tables in the database
- vize_test_questions
- vize_tests
- vize_test_answers
- Zombie WordPress options were found after uninstall: 6 options
- db_upgraded
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-posts
- widget_recent-comments
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking 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 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
- 16× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > 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/vize-tests-basic/admin/class-vize-test-questions-table.php on line 4
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/vize-tests-basic/admin/class-vize-tests-admin.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/vize-tests-basic/public/class-vize-tests-public.php:4
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHwp-admin/includes/upgrade.php' (include_path='.:/usr/share/php') in wp-content/plugins/vize-tests-basic/includes/class-vize-tests-activator.php on line 3
- > 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/vize-tests-basic/admin/class-vize-tests-table.php on line 4
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/vize-tests-basic/admin/class-vize-test-questions-table.php on line 4
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/vize-tests-basic/public/partials/vize-test-body-view.php:16
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/vize-tests-basic/admin/partials/test-form.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/vize-tests-basic/admin/partials/tests-list.php:9
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/vize-tests-basic/includes/class-vize-tests-activator.php on line 3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected
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
4 plugin tags: multiple choice questions, quiz, mcqs, test
vize-tests-basic/index.php 85% from 13 tests
"VIZE Tests - Basic" version 1.0.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please take the time to fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("vize-tests-basic.php" instead of "index.php")
- Description: Keep the plugin description shorter than 140 characters (currently 158 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable files found in this plugin3,496 lines of code in 26 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 20 | 594 | 1,168 | 1,687 |
JavaScript | 4 | 307 | 195 | 1,428 |
CSS | 2 | 71 | 21 | 381 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.37 |
Average class complexity | 14.33 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 54.00 |
Average method complexity | 2.84 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 15.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 | 87 | |
▷ Static methods | 10 | 11.49% |
▷ Public methods | 76 | 87.36% |
▷ Protected methods | 4 | 4.60% |
▷ Private methods | 7 | 8.05% |
Functions | 5 | |
▷ Named functions | 3 | 60.00% |
▷ Anonymous functions | 2 | 40.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.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
PNG images were not found in this plugin