Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲2.04MB] [CPU: ▲2.68ms] Passed 4 tests
Server-side resources used by Restaurant Bookings
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 5.66 ▲2.20 | 52.74 ▲16.66 |
Dashboard /wp-admin | 5.35 ▲2.01 | 53.52 ▼4.86 |
Posts /wp-admin/edit.php | 5.40 ▲2.05 | 59.51 ▲9.22 |
Add New Post /wp-admin/post-new.php | 7.95 ▲2.07 | 89.61 ▼10.32 |
Media Library /wp-admin/upload.php | 5.27 ▲2.05 | 49.87 ▲16.85 |
Restaurant Bookings /wp-admin/options-general.php?page=rbk-options | 5.18 | 42.29 |
Server storage [IO: ▲8.80MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 403 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-posts |
widget_recent-comments |
widget_theysaidso_widget |
can_compress_scripts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Checking browser requirements for Restaurant Bookings
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,703 ▲957 | 13.65 ▼0.79 | 1.77 ▲0.10 | 40.42 ▼0.48 |
Dashboard /wp-admin | 2,246 ▲54 | 5.06 ▲0.08 | 101.99 ▼3.40 | 36.06 ▼7.45 |
Posts /wp-admin/edit.php | 2,129 ▲40 | 2.03 ▲0.02 | 35.98 ▼7.62 | 31.45 ▼5.16 |
Add New Post /wp-admin/post-new.php | 1,560 ▲46 | 23.08 ▲5.59 | 697.52 ▲20.24 | 61.13 ▲9.22 |
Media Library /wp-admin/upload.php | 1,428 ▲40 | 4.26 ▲0.06 | 98.05 ▲3.72 | 41.21 ▼4.04 |
Restaurant Bookings /wp-admin/options-general.php?page=rbk-options | 1,113 | 2.03 | 25.57 | 75.25 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- db_upgraded
- widget_recent-comments
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-posts
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 50% 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
Almost there! Just fix the following items
- 154× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Interface 'Listae\\Client\\Model\\ModelInterface' not found in wp-content/plugins/restaurant-bookings/inc/ae-api/lib/Model/Review.php:43
- > PHP Fatal error
Uncaught Error: Interface 'Listae\\Client\\Model\\ModelInterface' not found in wp-content/plugins/restaurant-bookings/inc/ae-api/lib/Model/Phone.php:42
- > PHP Fatal error
Uncaught Error: Interface 'Listae\\Client\\Model\\ModelInterface' not found in wp-content/plugins/restaurant-bookings/inc/ae-api/lib/Model/DeliveryCfg.php:42
- > PHP Fatal error
Uncaught Error: Interface 'Listae\\Client\\Model\\ModelInterface' not found in wp-content/plugins/restaurant-bookings/inc/ae-api/lib/Model/DiningArea.php:42
- > PHP Fatal error
Uncaught Error: Class 'GuzzleHttp\\Exception\\TransferException' not found in wp-content/plugins/restaurant-bookings/inc/ae-api/vendor/guzzlehttp/guzzle/src/Exception/ConnectException.php:13
- > PHP Fatal error
Uncaught Error: Interface 'Listae\\Client\\Model\\ModelInterface' not found in wp-content/plugins/restaurant-bookings/inc/ae-api/lib/Model/CategoryFilterRoot.php:42
- > PHP Fatal error
Uncaught Error: Interface 'GuzzleHttp\\Promise\\PromiseInterface' not found in wp-content/plugins/restaurant-bookings/inc/ae-api/vendor/guzzlehttp/promises/src/Promise.php:10
- > PHP Fatal error
Uncaught Error: Interface 'Listae\\Client\\Model\\ModelInterface' not found in wp-content/plugins/restaurant-bookings/inc/ae-api/lib/Model/ItemField.php:42
- > PHP Fatal error
Uncaught Error: Interface 'Listae\\Client\\Model\\ModelInterface' not found in wp-content/plugins/restaurant-bookings/inc/ae-api/lib/Model/EasyTimeRanges.php:43
- > PHP Fatal error
Uncaught Error: Interface 'Listae\\Client\\Model\\ModelInterface' not found in wp-content/plugins/restaurant-bookings/inc/ae-api/lib/Model/OrderCfg.php:42
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side
Optimizations
Plugin configuration 83% from 29 tests
readme.txt 75% 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
These attributes need your attention:
- Plugin Name: You should set the name of your plugin on the first line (
=== restaurant-bookings ===
) - Tags: Please delete some tags, you are using 17 tag instead of maximum 10
- Screenshots: Please add an image for screenshot #1 (Detail of insertion of content from Listae in a post)
- Screenshots: Please add descriptions for these screenshots #5, #6, #7 in restaurant-bookings/assets to your readme.txt
restaurant-bookings/restaurant-bookings.php 92% from 13 tests
The main PHP file in "Restaurant Bookings" ver. 2.2.3 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
- Description: A good plugin description is longer than 10 characters (currently 0 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
No dangerous file extensions were detected120,569 lines of code in 337 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 243 | 10,377 | 36,826 | 51,142 |
HTML | 3 | 195 | 4 | 35,444 |
CSS | 8 | 1,426 | 70 | 11,319 |
JavaScript | 29 | 2,337 | 2,376 | 9,240 |
JSON | 12 | 0 | 0 | 5,506 |
Markdown | 12 | 1,132 | 0 | 3,453 |
SVG | 27 | 37 | 5 | 2,768 |
PO File | 1 | 797 | 1,188 | 1,673 |
XML | 1 | 0 | 0 | 15 |
make | 1 | 4 | 0 | 9 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 25.08 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 818.00 |
Average method complexity | 2.40 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 57.00 |
Code structure | ||
---|---|---|
Namespaces | 12 | |
Interfaces | 21 | |
Traits | 3 | |
Classes | 216 | |
▷ Abstract classes | 4 | 1.85% |
▷ Concrete classes | 212 | 98.15% |
▷ Final classes | 20 | 9.43% |
Methods | 4,163 | |
▷ Static methods | 737 | 17.70% |
▷ Public methods | 3,890 | 93.44% |
▷ Protected methods | 102 | 2.45% |
▷ Private methods | 171 | 4.11% |
Functions | 362 | |
▷ Named functions | 61 | 16.85% |
▷ Anonymous functions | 301 | 83.15% |
Constants | 295 | |
▷ Global constants | 6 | 2.03% |
▷ Class constants | 289 | 97.97% |
▷ Public constants | 289 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
35 PNG files occupy 1.11MB with 0.52MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/ae-icon.png | 12.75KB | 5.14KB | ▼ 59.68% |
rbktmce/img/menu.png | 106.18KB | 48.61KB | ▼ 54.22% |
img/icon-128x128.png | 4.70KB | 2.26KB | ▼ 51.90% |
img/ae_feedback_verified.png | 11.74KB | 4.75KB | ▼ 59.58% |
img/jqueryui/ui-icons_228ef1_256x240.png | 4.44KB | 4.17KB | ▼ 6.02% |