Benchmarks
Plugin footprint 48% 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.46MB] [CPU: ▲1.07ms] Passed 4 tests
A check of server-side resources used by YaExam
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.90 ▲0.44 | 53.63 ▲13.21 |
Dashboard /wp-admin | 3.79 ▲0.49 | 54.69 ▲3.33 |
Posts /wp-admin/edit.php | 3.82 ▲0.46 | 62.67 ▲7.36 |
Add New Post /wp-admin/post-new.php | 6.55 ▲0.66 | 83.29 ▼9.34 |
Media Library /wp-admin/upload.php | 3.68 ▲0.45 | 43.16 ▲2.93 |
Extensions /wp-admin/admin.php?page=em-extensions | 3.64 | 48.59 |
Add Exam /wp-admin/post-new.php?post_type=exam | 6.57 | 101.58 |
Settings /wp-admin/admin.php?page=em-settings | 3.63 | 46.82 |
Dashboard /wp-admin/admin.php?page=yaexam | 3.63 | 46.84 |
Questions /wp-admin/admin.php?page=em-questions | 3.75 | 45.15 |
Exams /wp-admin/edit.php?post_type=exam | 3.66 | 50.77 |
Categories /wp-admin/edit-tags.php?taxonomy=exam_cat&post_type=exam | 3.75 | 45.25 |
Results /wp-admin/edit.php?post_type=exam&page=em-results | 3.64 | 45.96 |
Tags /wp-admin/edit-tags.php?taxonomy=exam_tag&post_type=exam | 3.62 | 43.03 |
Server storage [IO: ▲17.85MB] [DB: ▲0.03MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 1,040 new files
Database: 10 new tables, 28 new options
New tables |
---|
wp_yaexam_results |
wp_yaexam_question_categories |
wp_yaexam_save_later |
wp_yaexam_questions |
wp_yaexam_user_sessions |
wp_yaexam_sessions |
wp_yaexam_exam_questions |
wp_yaexam_exam_sessions |
wp_yaexam_exam_results |
wp_yaexam_user_questions |
New WordPress options |
---|
yaexam_email_setting_user_registered_subject |
yaexam_email_setting_footer |
yaexam_default_exam_orderby |
yaexam_db_version |
yaexam_login_page_id |
widget_yaexam_exam_categories |
yaexam_myaccount_page_id |
yaexam_version |
yaexam_email_setting_user_registered_content |
yaexam_is_uninstall_remove_data |
... |
Browser metrics Passed 4 tests
This is an overview of browser requirements for YaExam
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,876 ▲115 | 14.18 ▼0.19 | 1.85 ▲0.16 | 40.89 ▼6.11 |
Dashboard /wp-admin | 2,262 ▲91 | 5.56 ▼0.11 | 91.22 ▼0.75 | 42.80 ▼1.03 |
Posts /wp-admin/edit.php | 2,176 ▲73 | 2.00 ▲0.01 | 39.74 ▼6.27 | 36.63 ▲0.16 |
Add New Post /wp-admin/post-new.php | 1,593 ▲65 | 23.06 ▼0.08 | 718.45 ▲104.80 | 63.13 ▲10.59 |
Media Library /wp-admin/upload.php | 1,470 ▲70 | 4.17 ▲0.09 | 97.63 ▼10.93 | 43.33 ▼5.32 |
Extensions /wp-admin/admin.php?page=em-extensions | 1,119 | 12.06 | 223.59 | 90.67 |
Add Exam /wp-admin/post-new.php?post_type=exam | 6,462 | 28.41 | 1,192.94 | 58.04 |
Settings /wp-admin/admin.php?page=em-settings | 1,301 | 11.74 | 179.76 | 42.01 |
Dashboard /wp-admin/admin.php?page=yaexam | 1,116 | 11.86 | 172.76 | 62.65 |
Questions /wp-admin/admin.php?page=em-questions | 1,277 | 12.17 | 177.15 | 44.23 |
Exams /wp-admin/edit.php?post_type=exam | 1,338 | 10.13 | 204.36 | 41.55 |
Categories /wp-admin/edit-tags.php?taxonomy=exam_cat&post_type=exam | 1,350 | 2.12 | 31.92 | 31.98 |
Results /wp-admin/edit.php?post_type=exam&page=em-results | 1,133 | 12.02 | 171.86 | 33.51 |
Tags /wp-admin/edit-tags.php?taxonomy=exam_tag&post_type=exam | 1,319 | 2.24 | 32.54 | 30.98 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.03MB] 25% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
- This plugin did not uninstall without warnings or errors
- > Notice in wp-admin/includes/plugin.php+1242
Constant WP_UNINSTALL_PLUGIN already defined
- The uninstall procedure failed, leaving 10 tables in the database
- wp_yaexam_user_questions
- wp_yaexam_results
- wp_yaexam_save_later
- wp_yaexam_exam_questions
- wp_yaexam_questions
- wp_yaexam_question_categories
- wp_yaexam_user_sessions
- wp_yaexam_exam_results
- wp_yaexam_sessions
- wp_yaexam_exam_sessions
- This plugin does not fully uninstall, leaving 28 options in the database
- yaexam_default_exam_orderby
- yaexam_archive_exam_page_id
- yaexam_email_setting_new_result_content
- yaexam_db_version
- widget_yaexam_exams
- can_compress_scripts
- yaexam_register_page_id
- yaexam_email_setting_footer
- theysaidso_admin_options
- yaexam_email_setting_new_result_header
- ...
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected
SRP 0% 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
Almost there! Just fix the following items
- 124× PHP files output non-empty strings when accessed directly via GET requests (only 10 are shown):
- > /wp-content/plugins/yaexam/vendor/phpoffice/phpspreadsheet/samples/Calculations/DateTime/TIME.php
- > /wp-content/plugins/yaexam/vendor/phpoffice/phpspreadsheet/samples/Basic/01_Simple_download_xls.php
- > /wp-content/plugins/yaexam/vendor/phpoffice/phpspreadsheet/samples/Reading_workbook_data/Custom_property_names.php
- > /wp-content/plugins/yaexam/vendor/phpoffice/phpspreadsheet/samples/Chart/33_Chart_create_bar_stacked.php
- > /wp-content/plugins/yaexam/vendor/phpoffice/phpspreadsheet/samples/Basic/11_Documentsecurity.php
- > /wp-content/plugins/yaexam/vendor/phpoffice/phpspreadsheet/samples/Reading_workbook_data/Worksheet_count_and_names.php
- > /wp-content/plugins/yaexam/vendor/phpoffice/phpspreadsheet/samples/Basic/26_Utf8.php
- > /wp-content/plugins/yaexam/vendor/phpoffice/phpspreadsheet/samples/Basic/17_Html.php
- > /wp-content/plugins/yaexam/vendor/phpoffice/phpspreadsheet/samples/Basic/42_RichText.php
- > /wp-content/plugins/yaexam/vendor/phpoffice/phpspreadsheet/samples/Calculations/DateTime/DATEVALUE.php
- 234× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'TCPDF' not found in wp-content/plugins/yaexam/vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Writer/Pdf/Tcpdf.php:21
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/yaexam/vendor/maennchen/zipstream-php/test/ZipStreamTest.php:18
- > PHP Fatal error
Uncaught Error: Class 'PhpOffice\\PhpSpreadsheet\\Worksheet\\Dimension' not found in wp-content/plugins/yaexam/vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Worksheet/RowDimension.php:5
- > PHP Fatal error
Uncaught Error: Class 'PhpOffice\\PhpSpreadsheet\\RichText\\TextElement' not found in wp-content/plugins/yaexam/vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/RichText/Run.php:7
- > PHP Fatal error
Uncaught Error: Class 'PhpOffice\\PhpSpreadsheet\\Reader\\BaseReader' not found in wp-content/plugins/yaexam/vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Reader/Xls.php:61
- > PHP Fatal error
Uncaught Error: Class 'ZipStream\\Exception' not found in wp-content/plugins/yaexam/vendor/maennchen/zipstream-php/src/Exception/IncompatibleOptionsException.php:11
- > PHP Fatal error
Uncaught Error: Class 'Ramsey\\Uuid\\Uuid' not found in wp-content/plugins/yaexam/vendor/ramsey/uuid/src/DegradedUuid.php:23
- > PHP Fatal error
Uncaught Error: Class 'Brick\\Math\\Exception\\MathException' not found in wp-content/plugins/yaexam/vendor/brick/math/src/Exception/NegativeNumberException.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/yaexam/includes/admin/views/html-admin-question-category.php:5
- > PHP Fatal error
Uncaught Error: Class 'PhpOffice\\PhpSpreadsheet\\Reader\\Xlsx\\BaseParserClass' not found in wp-content/plugins/yaexam/vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Reader/Xlsx/ColumnAndRowAttributes.php:9
- > 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)
There were no browser issues found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes:
- Screenshots: These screenshots lack descriptions #1, #2, #3 in yaexam/assets to your readme.txt
yaexam/yaexam.php Passed 13 tests
"YaExam" version 1.0.7's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
26 characters long description:
Create Custom Exams Online
Code Analysis 95% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Success! There were no dangerous files found in this plugin148,031 lines of code in 835 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 743 | 23,059 | 43,611 | 89,287 |
XML | 7 | 25 | 2 | 39,715 |
Markdown | 42 | 2,949 | 0 | 11,480 |
CSS | 11 | 0 | 14 | 4,009 |
SVG | 2 | 1 | 1 | 1,630 |
JSON | 16 | 0 | 0 | 1,597 |
HTML | 1 | 24 | 0 | 106 |
JavaScript | 6 | 10 | 6 | 92 |
YAML | 6 | 13 | 1 | 91 |
Bourne Again Shell | 1 | 6 | 3 | 24 |
PHP code 0% from 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
These items need your attention
- Class cyclomatic complexity has to be reduced to less than 1000 (currently 1,011)
- Method cyclomatic complexity has to be reduced to less than 100 (currently 387)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.36 |
Average class complexity | 26.25 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 1,011.00 |
Average method complexity | 3.88 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 387.00 |
Code structure | ||
---|---|---|
Namespaces | 95 | |
Interfaces | 44 | |
Traits | 8 | |
Classes | 424 | |
▷ Abstract classes | 31 | 7.31% |
▷ Concrete classes | 393 | 92.69% |
▷ Final classes | 30 | 7.63% |
Methods | 4,404 | |
▷ Static methods | 946 | 21.48% |
▷ Public methods | 3,569 | 81.04% |
▷ Protected methods | 146 | 3.32% |
▷ Private methods | 689 | 15.64% |
Functions | 483 | |
▷ Named functions | 447 | 92.55% |
▷ Anonymous functions | 36 | 7.45% |
Constants | 927 | |
▷ Global constants | 22 | 2.37% |
▷ Class constants | 905 | 97.63% |
▷ Public constants | 889 | 98.23% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
34 PNG files occupy 0.98MB with 0.62MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
vendor/phpoffice/phpspreadsheet/docs/topics/images/08-styling-border-options.png | 18.44KB | 3.22KB | ▼ 82.55% |
vendor/phpoffice/phpspreadsheet/docs/topics/images/04-05-topten-autofilter-2.png | 22.31KB | 8.30KB | ▼ 62.81% |
vendor/phpoffice/phpspreadsheet/docs/topics/images/04-03-custom-autofilter-1.png | 50.57KB | 16.99KB | ▼ 66.40% |
vendor/phpoffice/phpspreadsheet/docs/topics/images/09-formula-in-cell-1.png | 25.44KB | 10.81KB | ▼ 57.50% |
assets/images/certificate.png | 9.60KB | 4.99KB | ▼ 48.04% |