Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▲6.61MB] [CPU: ▲32.43ms] 75% from 4 tests
Analyzing server-side resources used by WordPress Restaurant Bookings Plugin: Alex Reservations
Please have a look at the following items
- Extra RAM: The extra memory usage must be under 5MB (currently 6.61MB on /wp-admin/admin.php?page=admin-alex-reservations#/t/1/app/settings/general)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 10.01 ▲6.54 | 72.20 ▲26.88 |
Dashboard /wp-admin | 9.92 ▲6.61 | 80.65 ▲29.26 |
Posts /wp-admin/edit.php | 10.03 ▲6.67 | 96.51 ▲49.89 |
Add New Post /wp-admin/post-new.php | 12.91 ▲7.02 | 125.97 ▲37.05 |
Media Library /wp-admin/upload.php | 9.84 ▲6.61 | 73.93 ▲36.51 |
Reservations /wp-admin/admin.php?page=admin-alex-reservations | 9.75 | 72.27 |
Server storage [IO: ▲12.44MB] [DB: ▲0.04MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 735 new files
Database: 30 new tables, 38 new options
New tables |
---|
wp_srr_booking_notifications |
wp_srr_booking_reviews |
wp_srr_notifications |
wp_srr_user_meta |
wp_srr_btags |
wp_srr_ctags |
wp_srr_combinations |
wp_srr_tables |
wp_srr_customer_meta |
wp_srr_actions |
... |
New WordPress options |
---|
widget_theysaidso_widget |
theysaidso_admin_options |
db_upgraded |
can_compress_scripts |
wp_srr_ctaggroups_db_version |
_srr_tables_checked_release_67 |
wp_srr_user_meta_db_version |
wp_srr_customer_ctag_db_version |
wp_srr_restaurants_db_version |
wp_srr_booking_meta_db_version |
... |
Browser metrics Passed 4 tests
An overview of browser requirements for WordPress Restaurant Bookings Plugin: Alex Reservations
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,854 ▲92 | 14.70 ▲0.30 | 1.80 ▲0.18 | 37.69 ▼7.86 |
Dashboard /wp-admin | 2,234 ▲60 | 5.57 ▼0.08 | 94.14 ▼1.42 | 41.82 ▼2.48 |
Posts /wp-admin/edit.php | 2,142 ▲42 | 2.02 ▲0.02 | 38.31 ▼0.66 | 34.78 ▲0.33 |
Add New Post /wp-admin/post-new.php | 1,557 ▲31 | 22.05 ▼0.94 | 621.54 ▲25.66 | 54.17 ▼6.25 |
Media Library /wp-admin/upload.php | 1,442 ▲42 | 4.15 ▼0.00 | 95.30 ▲1.65 | 42.24 ▲1.88 |
Reservations /wp-admin/admin.php?page=admin-alex-reservations | 946 | 13.90 | 331.11 | 23.53 |
Support /wp-admin/admin.php?page=admin-alex-reservations#/app/support | 946 | 13.85 | 309.32 | 8.97 |
Customers /wp-admin/admin.php?page=admin-alex-reservations#/t/1/customers/list | 946 | 13.31 | 119.80 | 9.64 |
Bookings /wp-admin/admin.php?page=admin-alex-reservations#/t/1/bookings/list | 946 | 13.40 | 113.28 | 9.57 |
Settings /wp-admin/admin.php?page=admin-alex-reservations#/t/1/app/settings/general | 946 | 13.36 | 118.09 | 8.90 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.04MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
- Zombie tables detected upon uninstall: 30 tables
- wp_srr_bookings
- wp_srr_btaggroups
- wp_srr_ctaggroups
- wp_srr_combination_table
- wp_srr_booking_meta
- wp_srr_actions
- wp_srr_user_meta
- wp_srr_daily_notifications
- wp_srr_notifications
- wp_srr_restaurant_user
- ...
- This plugin did not uninstall successfully, leaving 38 options in the database
- wp_srr_booking_notifications_db_version
- wp_srr_booking_meta_db_version
- wp_srr_booking_btag_db_version
- wp_srr_booking_reviews_db_version
- wp_srr_booking_table_db_version
- wp_srr_ctags_db_version
- can_compress_scripts
- wp_srr_daily_notifications_db_version
- wp_srr_user_meta_db_version
- wp_srr_combination_table_db_version
- ...
Smoke tests 0% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Almost there, just fix the following server-side errors
- > GET request to /wp-admin/admin.php?page=admin-alex-reservations
- > User notice in wp-includes/functions.php+5905
Function WP_Scripts::localize was called incorrectly. The $l10n parameter must be an array. To pass arbitrary data to scripts, use the wp_add_inline_script() function instead. Please see Debugging in WordPress for more information. (This message was added in version 5.7.0.)
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
- 3× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/alex-reservations/includes/dashboard/templates/email-layout/layout.php
- > /wp-content/plugins/alex-reservations/includes/dashboard/templates/email-layout/logo/logo-image-only.php
- > /wp-content/plugins/alex-reservations/includes/dashboard/templates/email-layout/logo/logo-image-with-link.php
- 264× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Evavel\\Eva' not found in wp-content/plugins/alex-reservations/includes/framework/src/Evavel/bootstrap.php:24
- > PHP Warning
Use of undefined constant ALEXR_PLUGIN_DIR - assumed 'ALEXR_PLUGIN_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/alex-reservations/includes/framework/app-constants.php on line 19
- > PHP Warning
Use of undefined constant ALEXR_PLUGIN_DIR - assumed 'ALEXR_PLUGIN_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/alex-reservations/includes/framework/app-constants.php on line 21
- > PHP Fatal error
Trait 'Evavel\\Resources\\Traits\\ResolvesFields' not found in wp-content/plugins/alex-reservations/includes/framework/src/Evavel/Resources/Resource.php on line 17
- > PHP Fatal error
Uncaught Error: Class 'Evavel\\Http\\Controllers\\Controller' not found in wp-content/plugins/alex-reservations/includes/application/Alexr/Http/Controllers/CTagsController.php:10
- > PHP Fatal error
Uncaught Error: Class 'Evavel\\Http\\Controllers\\Controller' not found in wp-content/plugins/alex-reservations/includes/framework/src/Evavel/Http/Controllers/ResourceIndexController.php:10
- > PHP Fatal error
Uncaught Error: Class 'Evavel\\Cards\\Element' not found in wp-content/plugins/alex-reservations/includes/framework/src/Evavel/Cards/Card.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/alex-reservations/includes/auto-update.php:15
- > PHP Fatal error
Uncaught Error: Class 'Evavel\\Resources\\Fields\\Text' not found in wp-content/plugins/alex-reservations/includes/framework/src/Evavel/Resources/Fields/Number.php:5
- > PHP Fatal error
Uncaught Error: Class 'Evavel\\Http\\Request\\Request' not found in wp-content/plugins/alex-reservations/includes/framework/src/Evavel/Http/Request/UpdateRequest.php:8
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Please take a look at the following user-side issues
- 50 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=admin-alex-reservations#/t/1/app/settings/general
- > Network (severe)
wp-json/srr/v1/application/config - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need your attention:
- Tags: Please reduce the number of tags, currently 16 tag instead of maximum 10
alex-reservations/alex-reservations.php 92% from 13 tests
The principal PHP file in "WordPress Restaurant Bookings Plugin: Alex Reservations" v. 1.6.7 is loaded by WordPress automatically on each request
The following require your attention:
- 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
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 plugin98,433 lines of code in 686 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JSON | 44 | 0 | 0 | 37,480 |
PHP | 409 | 7,929 | 8,812 | 31,841 |
JavaScript | 7 | 4,967 | 2,778 | 26,144 |
HTML | 202 | 728 | 0 | 1,729 |
reStructuredText | 5 | 320 | 5 | 924 |
PO File | 6 | 30 | 42 | 156 |
Markdown | 2 | 47 | 0 | 106 |
Python | 5 | 26 | 26 | 33 |
SVG | 2 | 1 | 0 | 12 |
CSS | 3 | 0 | 0 | 4 |
Dockerfile | 1 | 3 | 3 | 4 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.31 |
Average class complexity | 8.51 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 148.00 |
Average method complexity | 2.30 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 32.00 |
Code structure | ||
---|---|---|
Namespaces | 66 | |
Interfaces | 11 | |
Traits | 73 | |
Classes | 283 | |
▷ Abstract classes | 15 | 5.30% |
▷ Concrete classes | 268 | 94.70% |
▷ Final classes | 1 | 0.37% |
Methods | 2,212 | |
▷ Static methods | 321 | 14.51% |
▷ Public methods | 1,936 | 87.52% |
▷ Protected methods | 265 | 11.98% |
▷ Private methods | 11 | 0.50% |
Functions | 274 | |
▷ Named functions | 142 | 51.82% |
▷ Anonymous functions | 132 | 48.18% |
Constants | 156 | |
▷ Global constants | 30 | 19.23% |
▷ Class constants | 126 | 80.77% |
▷ Public constants | 126 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG files were detected