Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲4.89MB] [CPU: ▲35.91ms] Passed 4 tests
Server-side resources used by VikRestaurants Table Reservations and Take-Away
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 7.28 ▲3.81 | 77.55 ▲42.12 |
Dashboard /wp-admin | 8.78 ▲5.44 | 106.05 ▲42.80 |
Posts /wp-admin/edit.php | 8.78 ▲5.43 | 81.97 ▲34.08 |
Add New Post /wp-admin/post-new.php | 10.76 ▲4.87 | 125.24 ▲24.62 |
Media Library /wp-admin/upload.php | 8.78 ▲5.55 | 121.75 ▲87.97 |
Server storage [IO: ▲17.67MB] [DB: ▲0.10MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 3,016 new files
Database: 80 new tables, 14 new options
New tables |
---|
wp_vikrestaurants_reservation |
wp_vikrestaurants_res_code |
wp_vikrestaurants_lang_takeaway_menus_attribute |
wp_vikrestaurants_api_login_event_options |
wp_vikrestaurants_sd_menus |
wp_vikrestaurants_operator |
wp_vikrestaurants_table |
wp_vikrestaurants_mail_text |
wp_vikrestaurants_specialdays |
wp_vikrestaurants_lang_section_product |
... |
New WordPress options |
---|
widget_mod_vikrestaurants_takeaway_cart |
vikrestaurants_software_version |
theysaidso_admin_options |
db_upgraded |
vikrestaurants_license_hash |
widget_recent-comments |
widget_mod_vikrestaurants_worktimes |
vikrestaurants_license_key |
widget_recent-posts |
widget_theysaidso_widget |
... |
Browser metrics Passed 4 tests
A check of browser resources used by VikRestaurants Table Reservations and Take-Away
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,035 ▲263 | 13.99 ▼0.77 | 7.37 ▲5.66 | 40.64 ▼3.93 |
Dashboard /wp-admin | 2,340 ▲165 | 4.87 ▼0.74 | 112.54 ▼0.75 | 50.99 ▲8.54 |
Posts /wp-admin/edit.php | 2,136 ▲33 | 2.23 ▲0.25 | 35.42 ▼9.27 | 30.98 ▼4.74 |
Add New Post /wp-admin/post-new.php | 1,695 ▲150 | 23.25 ▼1.83 | 599.14 ▼17.35 | 60.11 ▼7.90 |
Media Library /wp-admin/upload.php | 1,439 ▲36 | 4.25 ▲0.09 | 117.45 ▲22.03 | 50.89 ▲9.79 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- This plugin did not uninstall successfully, leaving 9 options in the database
- theysaidso_admin_options
- widget_mod_vikrestaurants_takeaway_cart
- widget_mod_vikrestaurants_search
- widget_recent-comments
- widget_mod_vikrestaurants_worktimes
- can_compress_scripts
- widget_recent-posts
- db_upgraded
- widget_theysaidso_widget
Smoke tests 50% 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 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
Please fix the following items
- 1764× PHP files output non-empty strings when accessed directly via GET requests (only 10 are shown):
- > /wp-content/plugins/vikrestaurants/admin/models/tkdealday.php
- > /wp-content/plugins/vikrestaurants/site/helpers/src/libraries/Backup/Import/Rules/FolderImportRule.php
- > /wp-content/plugins/vikrestaurants/site/helpers/src/libraries/Update/Adapters/Update1_9/TakeAwayDeliveryAreasFixer.php
- > /wp-content/plugins/vikrestaurants/site/helpers/src/libraries/Deals/Rules/DiscountItemDealRule.php
- > /wp-content/plugins/vikrestaurants/modules/mod_vikrestaurants_takeaway_map/languages/handler.php
- > /wp-content/plugins/vikrestaurants/site/helpers/tk_mail_tmpls/takeaway_review_email_tmpl.php
- > /wp-content/plugins/vikrestaurants/site/views/orderdishes/tmpl/default_overlay.php
- > /wp-content/plugins/vikrestaurants/site/helpers/library/mail/factory.php
- > /wp-content/plugins/vikrestaurants/libraries/html/feedback/thickbox.php
- > /wp-content/plugins/vikrestaurants/site/helpers/library/banking/brands/amex.php
- 2× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Trait 'IvoPetkov\\HTML5DOMDocument\\Internal\\QuerySelectors' not found in wp-content/plugins/vikrestaurants/site/helpers/src/vendor/ivopetkov/html5-dom-document-php/src/HTML5DOMDocument.php on line 21
- > PHP Fatal error
Trait 'IvoPetkov\\HTML5DOMDocument\\Internal\\QuerySelectors' not found in wp-content/plugins/vikrestaurants/site/helpers/src/vendor/ivopetkov/html5-dom-document-php/src/HTML5DOMElement.php on line 21
- > 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 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Please fix the following attributes:
- Tags: There are too many tags (11 tag instead of maximum 10)
vikrestaurants/vikrestaurants.php Passed 13 tests
The main PHP script in "VikRestaurants Table Reservations and Take-Away" version 1.3.1 is automatically included on every request by WordPress
83 characters long description:
A professional tool for managing your restaurant reservations and take-away orders.
Code Analysis 95% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected259,231 lines of code in 2,004 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1,802 | 53,112 | 110,842 | 217,168 |
CSS | 46 | 1,140 | 645 | 18,160 |
JavaScript | 92 | 3,089 | 6,548 | 10,348 |
SVG | 3 | 0 | 0 | 9,552 |
SQL | 7 | 288 | 448 | 1,764 |
Markdown | 7 | 632 | 0 | 1,236 |
XML | 35 | 203 | 128 | 707 |
JSON | 7 | 0 | 0 | 237 |
Bourne Shell | 1 | 24 | 0 | 55 |
HTML | 4 | 1 | 0 | 4 |
PHP code 0% from 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Please tend to the following items
- Cyclomatic complexity of classes has to be reduced to less than 1000 (currently 4,412)
- Cyclomatic complexity of methods has to be reduced to less than 100 (currently 2,293)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
Average class complexity | 20.63 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 4,412.00 |
Average method complexity | 4.89 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 2,293.00 |
Code structure | ||
---|---|---|
Namespaces | 104 | |
Interfaces | 33 | |
Traits | 16 | |
Classes | 1,068 | |
▷ Abstract classes | 123 | 11.52% |
▷ Concrete classes | 945 | 88.48% |
▷ Final classes | 23 | 2.43% |
Methods | 5,713 | |
▷ Static methods | 917 | 16.05% |
▷ Public methods | 4,805 | 84.11% |
▷ Protected methods | 770 | 13.48% |
▷ Private methods | 138 | 2.42% |
Functions | 282 | |
▷ Named functions | 9 | 3.19% |
▷ Anonymous functions | 273 | 96.81% |
Constants | 247 | |
▷ Global constants | 173 | 70.04% |
▷ Class constants | 74 | 29.96% |
▷ Public constants | 74 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
497 compressed PNG files occupy 2.40MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
site/assets/css/flags/mm.png | 0.43KB | 0.42KB | ▼ 0.91% |
site/assets/css/flags/kh.png | 0.37KB | 0.35KB | ▼ 4.23% |
site/assets/css/flags/mg.png | 0.16KB | 0.14KB | ▼ 10.69% |
site/assets/media/main_courses.png | 2.91KB | 1.93KB | ▼ 33.60% |
site/assets/css/flags/bj.png | 0.16KB | 0.14KB | ▼ 11.80% |