Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▲0.14MB] [CPU: ▼2.11ms] Passed 4 tests
Analyzing server-side resources used by Quick Restaurant Reservations
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.57 ▲0.11 | 47.05 ▲1.57 |
Dashboard /wp-admin | 3.45 ▲0.15 | 54.16 ▲2.41 |
Posts /wp-admin/edit.php | 3.57 ▲0.21 | 52.17 ▲2.84 |
Add New Post /wp-admin/post-new.php | 6.06 ▲0.17 | 94.93 ▼7.93 |
Media Library /wp-admin/upload.php | 3.37 ▲0.14 | 32.82 ▼4.48 |
Settings /wp-admin/edit.php?post_type=qrr_booking&page=qrr-settings | 3.34 | 35.20 |
Create Booking /wp-admin/edit.php?post_type=qrr_booking&page=qrr_create_booking | 3.37 | 38.24 |
All Bookings /wp-admin/edit.php?post_type=qrr_booking | 3.43 | 39.88 |
Restaurants /wp-admin/edit.php?post_type=qrr_restaurant | 3.42 | 40.65 |
Clients /wp-admin/edit.php?post_type=qrr_client | 3.42 | 35.37 |
Add-ons /wp-admin/edit.php?post_type=qrr_booking&page=qrr-addons | 3.38 | 34.36 |
Server storage [IO: ▲2.48MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 178 new files
Database: no new tables, 7 new options
New WordPress options |
---|
qrr_settings |
db_upgraded |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-comments |
theysaidso_admin_options |
widget_recent-posts |
Browser metrics Passed 4 tests
Quick Restaurant Reservations: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,854 ▲83 | 13.18 ▼1.16 | 1.72 ▼0.17 | 44.04 ▲1.95 |
Dashboard /wp-admin | 2,251 ▲63 | 5.86 ▲0.98 | 103.02 ▼5.15 | 41.20 ▼3.05 |
Posts /wp-admin/edit.php | 2,137 ▲51 | 2.06 ▲0.02 | 37.47 ▲0.90 | 35.37 ▼1.53 |
Add New Post /wp-admin/post-new.php | 1,551 ▲31 | 17.61 ▼5.63 | 693.58 ▲4.78 | 59.18 ▼0.39 |
Media Library /wp-admin/upload.php | 1,436 ▲48 | 4.21 ▲0.09 | 96.59 ▼19.58 | 46.50 ▼2.00 |
Settings /wp-admin/edit.php?post_type=qrr_booking&page=qrr-settings | 930 | 2.05 | 27.69 | 36.05 |
Create Booking /wp-admin/edit.php?post_type=qrr_booking&page=qrr_create_booking | 861 | 2.05 | 27.34 | 32.74 |
All Bookings /wp-admin/edit.php?post_type=qrr_booking | 1,336 | 2.39 | 36.65 | 35.76 |
Restaurants /wp-admin/edit.php?post_type=qrr_restaurant | 1,163 | 1.94 | 32.73 | 35.46 |
Clients /wp-admin/edit.php?post_type=qrr_client | 1,151 | 1.93 | 31.93 | 38.37 |
Add-ons /wp-admin/edit.php?post_type=qrr_booking&page=qrr-addons | 1,077 | 2.01 | 26.64 | 64.78 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% 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
- Zombie WordPress options were found after uninstall: 7 options
- widget_recent-posts
- widget_recent-comments
- theysaidso_admin_options
- can_compress_scripts
- db_upgraded
- widget_theysaidso_widget
- qrr_settings
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected
SRP 0% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please take a closer look at the following
- 5× PHP files output text when accessed directly:
- > /wp-content/plugins/quick-restaurant-reservations/includes/admin/templates/template-email-admin.php
- > /wp-content/plugins/quick-restaurant-reservations/includes/admin/templates/template-email-admin_confirmed.php
- > /wp-content/plugins/quick-restaurant-reservations/includes/admin/templates/template-email-pending.php
- > /wp-content/plugins/quick-restaurant-reservations/includes/admin/templates/template-email-confirmed.php
- > /wp-content/plugins/quick-restaurant-reservations/includes/admin/templates/template-email-rejected.php
- 14× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_enqueue_script() in wp-content/plugins/quick-restaurant-reservations/includes/admin/templates/template-fields.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/quick-restaurant-reservations/includes/banner.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/quick-restaurant-reservations/includes/admin/templates/template-notifications.php:16
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/quick-restaurant-reservations/includes/admin/settings/settings.php:494
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/quick-restaurant-reservations/includes/admin/templates/template-components.php:31
- > PHP Fatal error
Uncaught Error: Call to undefined function QRR_Active_plugin() in wp-content/plugins/quick-restaurant-reservations/includes/admin/template-addons/addon-fields.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/quick-restaurant-reservations/includes/admin/templates/template-email-tags.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function QRR_Active_plugin() in wp-content/plugins/quick-restaurant-reservations/includes/admin/template-addons/addon-capacity.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/quick-restaurant-reservations/includes/admin/settings/class-settings.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/quick-restaurant-reservations/quick-restaurant-reservations.php:116
- > 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)
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 90% from 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
5 plugin tags: restaurant reservations, bookings, table bookings, restaurant, reservations
quick-restaurant-reservations/quick-restaurant-reservations.php 77% from 13 tests
The primary PHP file in "Quick Restaurant Reservations" version 1.6.7 is used by WordPress to initiate all plugin functionality
The following require your attention:
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
- Domain Path: The domain path must begin with a forward slash character ("/languages")
- Domain Path: Note that the domain path follows the same naming rules as the domain name, using only dashes and lowercase characters ("languages")
Code Analysis Passed 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
Everything looks great! No dangerous files found in this plugin30,219 lines of code in 156 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 72 | 3,052 | 2,607 | 15,526 |
PHP | 50 | 1,986 | 896 | 6,225 |
CSS | 23 | 282 | 504 | 5,047 |
PO File | 3 | 765 | 947 | 2,136 |
LESS | 4 | 180 | 114 | 657 |
SVG | 2 | 0 | 1 | 609 |
Markdown | 2 | 9 | 0 | 19 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.37 |
Average class complexity | 29.45 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 124.00 |
Average method complexity | 3.52 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 27.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 22 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 22 | 100.00% |
▷ Final classes | 1 | 4.55% |
Methods | 248 | |
▷ Static methods | 7 | 2.82% |
▷ Public methods | 239 | 96.37% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 9 | 3.63% |
Functions | 56 | |
▷ Named functions | 56 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 6 | |
▷ Global constants | 6 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
7 PNG files occupy 0.21MB with 0.08MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/libs/ionrangeslider/img/sprite-skin-simple.png | 0.35KB | 0.35KB | ▼ 0.84% |
assets/libs/ionrangeslider/img/sprite-skin-modern.png | 0.49KB | 0.49KB | 0.00% |
assets/libs/ionrangeslider/img/sprite-skin-nice.png | 0.68KB | 0.71KB | 0.00% |
assets/libs/ionrangeslider/img/sprite-skin-flat-green.png | 3.28KB | 0.27KB | ▼ 91.79% |
assets/libs/ionrangeslider/img/sprite-skin-flat.png | 3.35KB | 0.34KB | ▼ 89.97% |