Benchmarks
Plugin footprint 23% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
These installer errors require your attention
- Install procedure validation failed for this plugin
- > Deprecated in wp-content/plugins/online-restaurant-reservation/includes/orr-formatting-functions.php+235
Array and string offset access syntax with curly braces is deprecated
Server metrics [RAM: ▼1.60MB] [CPU: ▼48.23ms] Passed 4 tests
Server-side resources used by Online Restaurant Reservation
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.38 ▼1.08 | 7.45 ▼33.34 |
Dashboard /wp-admin | 2.40 ▼0.90 | 8.27 ▼40.72 |
Posts /wp-admin/edit.php | 2.40 ▼0.95 | 8.06 ▼38.46 |
Add New Post /wp-admin/post-new.php | 2.40 ▼3.48 | 9.20 ▼80.41 |
Media Library /wp-admin/upload.php | 2.40 ▼0.82 | 9.06 ▼24.07 |
Reservations /wp-admin/edit.php?post_type=table_reservation | 2.41 | 7.11 |
Settings /wp-admin/admin.php?page=orr-settings | 2.40 | 9.17 |
Reservations /wp-admin/admin.php?page=reservation | 2.40 | 9.14 |
Server storage [IO: ▲1.53MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 155 new files
Database: 2 new tables, 12 new options
New tables |
---|
wp_orr_sessions |
wp_orr_exceptions |
New WordPress options |
---|
theysaidso_admin_options |
online_restaurant_reservation_max_party_size |
can_compress_scripts |
online_restaurant_reservation_time_range_steps |
online_restaurant_reservation_min_party_size |
online_restaurant_reservation_admin_notices |
widget_recent-posts |
widget_theysaidso_widget |
online_restaurant_reservation_version |
db_upgraded |
... |
Browser metrics Passed 4 tests
An overview of browser requirements for Online Restaurant Reservation
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,831 ▲70 | 14.34 ▼0.21 | 1.82 ▲0.05 | 43.88 ▲0.20 |
Dashboard /wp-admin | 2,220 ▲43 | 5.50 ▼0.03 | 87.15 ▼14.77 | 39.58 ▼5.99 |
Posts /wp-admin/edit.php | 2,131 ▲31 | 1.98 ▲0.00 | 34.37 ▼2.33 | 35.86 ▼2.18 |
Add New Post /wp-admin/post-new.php | 1,560 ▲31 | 18.22 ▼5.00 | 631.00 ▼17.94 | 71.88 ▲17.95 |
Media Library /wp-admin/upload.php | 1,431 ▲31 | 4.17 ▼0.02 | 97.03 ▼12.37 | 42.63 ▼3.70 |
Reservations /wp-admin/edit.php?post_type=table_reservation | 1,293 | 3.06 | 57.37 | 49.87 |
Settings /wp-admin/admin.php?page=orr-settings | 1,065 | 2.40 | 49.62 | 32.36 |
Reservations /wp-admin/admin.php?page=reservation | 28 | 0.42 | 0.06 | 3.22 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 25% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- Uninstall procedure validation failed for this plugin
- > Deprecated in wp-content/plugins/online-restaurant-reservation/includes/orr-formatting-functions.php+235
Array and string offset access syntax with curly braces is deprecated
- The plugin did not uninstall successfully, leaving 2 tables in the database
- wp_orr_sessions
- wp_orr_exceptions
- Zombie WordPress options were found after uninstall: 12 options
- db_upgraded
- online_restaurant_reservation_min_party_size
- theysaidso_admin_options
- widget_recent-comments
- widget_recent-posts
- online_restaurant_reservation_version
- widget_theysaidso_widget
- online_restaurant_reservation_time_range_steps
- can_compress_scripts
- online_restaurant_reservation_admin_notices
- ...
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Please fix the following server-side errors
- 24 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=reservation
- > Deprecated in wp-content/plugins/online-restaurant-reservation/includes/orr-formatting-functions.php+237
Array and string offset access syntax with curly braces is deprecated
SRP Passed 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Everything seems fine, however this is by no means an exhaustive test
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Please fix the following browser errors
- > GET request to /wp-admin/admin.php?page=reservation
- > Network (severe)
wp-admin/admin.php?page=reservation - Failed to load resource: the server responded with a status of 500 (Internal Server Error)
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
5 plugin tags: bookings, restaurant, table reservation, reservations, table bookings
online-restaurant-reservation/online-restaurant-reservation.php Passed 13 tests
The entry point to "Online Restaurant Reservation" version 1.0.0 is a PHP file that has certain tags in its header comment area
67 characters long description:
Accept online restaurant reservations and table bookings with ease.
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
There were no executable files found in this plugin27,415 lines of code in 145 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 26 | 2,672 | 872 | 10,866 |
PHP | 96 | 2,318 | 6,310 | 8,894 |
JSON | 1 | 0 | 0 | 5,054 |
Sass | 10 | 361 | 3 | 2,543 |
SVG | 2 | 0 | 1 | 46 |
CSS | 10 | 0 | 0 | 12 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
Average class complexity | 18.60 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 107.00 |
Average method complexity | 2.60 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 51.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 53 | |
▷ Abstract classes | 8 | 15.09% |
▷ Concrete classes | 45 | 84.91% |
▷ Final classes | 1 | 2.22% |
Methods | 589 | |
▷ Static methods | 117 | 19.86% |
▷ Public methods | 443 | 75.21% |
▷ Protected methods | 72 | 12.22% |
▷ Private methods | 74 | 12.56% |
Functions | 92 | |
▷ Named functions | 92 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 22 | |
▷ Global constants | 9 | 40.91% |
▷ Class constants | 13 | 59.09% |
▷ Public constants | 13 | 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
2 compressed PNG files occupy 0.00MB
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/select2.png | 0.60KB | 0.99KB | 0.00% |
assets/images/select2x2.png | 0.83KB | 0.77KB | ▼ 6.15% |