Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲3.54MB] [CPU: ▲16.47ms] Passed 4 tests
A check of server-side resources used by Five Star Restaurant Reservations - WordPress Booking Plugin
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 6.83 ▲3.37 | 60.64 ▲17.69 |
Dashboard /wp-admin | 6.89 ▲3.59 | 75.34 ▲24.13 |
Posts /wp-admin/edit.php | 6.94 ▲3.58 | 78.01 ▲26.87 |
Add New Post /wp-admin/post-new.php | 9.58 ▲3.70 | 101.89 ▼2.83 |
Media Library /wp-admin/upload.php | 6.83 ▲3.60 | 66.32 ▲31.43 |
Dashboard /wp-admin/admin.php?page=rtb-dashboard | 6.78 | 59.62 |
Five-Star Restaurant Reservations - Welcome! /wp-admin/index.php?page=rtb-getting-started | 6.78 | 60.54 |
About Us /wp-admin/admin.php?page=rtb-about-us | 6.77 | 58.27 |
Custom Fields /wp-admin/admin.php?page=cffrtb-editor | 6.76 | 58.55 |
Settings /wp-admin/admin.php?page=rtb-settings | 6.91 | 64.86 |
Bookings /wp-admin/admin.php?page=rtb-bookings | 7.11 | 82.77 |
Server storage [IO: ▲22.19MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 1,123 new files
Database: no new tables, 11 new options
New WordPress options |
---|
widget_rtb_booking_form_widget |
rtb-installation-time |
rtb-permission-level |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-posts |
rtb-version |
rtb_pending_count |
db_upgraded |
widget_recent-comments |
... |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Five Star Restaurant Reservations - WordPress Booking Plugin
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,834 ▲72 | 14.37 ▲0.03 | 1.60 ▼0.09 | 39.56 ▼5.33 |
Dashboard /wp-admin | 2,239 ▲62 | 5.57 ▲0.07 | 84.53 ▼19.18 | 40.49 ▼4.72 |
Posts /wp-admin/edit.php | 2,147 ▲47 | 2.03 ▲0.02 | 38.02 ▲1.74 | 33.50 ▼3.01 |
Add New Post /wp-admin/post-new.php | 1,529 ▲3 | 21.55 ▼1.61 | 695.13 ▼1.87 | 37.51 ▼15.49 |
Media Library /wp-admin/upload.php | 1,441 ▲41 | 4.33 ▲0.13 | 100.34 ▼0.58 | 41.04 ▼2.28 |
Dashboard /wp-admin/admin.php?page=rtb-dashboard | 1,352 | 2.05 | 33.96 | 70.08 |
Five-Star Restaurant Reservations - Welcome! /wp-admin/index.php?page=rtb-getting-started | 2,115 | 2.27 | 28.40 | 34.09 |
About Us /wp-admin/admin.php?page=rtb-about-us | 1,535 | 2.05 | 30.98 | 33.27 |
Custom Fields /wp-admin/admin.php?page=cffrtb-editor | 1,248 | 2.00 | 35.05 | 39.45 |
Settings /wp-admin/admin.php?page=rtb-settings | 1,833 | 10.10 | 296.40 | 39.61 |
Bookings /wp-admin/admin.php?page=rtb-bookings | 4,313 | 3.84 | 75.85 | 102.62 |
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
The following items require your attention
- Zombie WordPress options detected upon uninstall: 11 options
- can_compress_scripts
- rtb-installation-time
- widget_rtb_booking_form_widget
- rtb-version
- widget_theysaidso_widget
- db_upgraded
- rtb-permission-level
- widget_recent-posts
- theysaidso_admin_options
- rtb_pending_count
- ...
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 0% from 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
Please take a closer look at the following
- 13× PHP files perform the task of outputting text when accessed with GET requests (only 10 are shown):
- > /wp-content/plugins/restaurant-reservations/lib/zapcal/includes/framework.php
- > /wp-content/plugins/restaurant-reservations/lib/zapcal/examples/parseicalendar.php
- > /wp-content/plugins/restaurant-reservations/lib/zapcal/includes/timezone.php
- > /wp-content/plugins/restaurant-reservations/lib/zapcal/includes/date.php
- > /wp-content/plugins/restaurant-reservations/lib/zapcal/examples/recurringdate.php
- > /wp-content/plugins/restaurant-reservations/lib/stripe/update_certs.php
- > /wp-content/plugins/restaurant-reservations/lib/zapcal/includes/recurringdate.php
- > /wp-content/plugins/restaurant-reservations/lib/zapcal/includes/ical.php
- > /wp-content/plugins/restaurant-reservations/lib/zapcal/examples/timezoneevent.php
- > /wp-content/plugins/restaurant-reservations/lib/zapcal/examples/simpleevent.php
- 436× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Mpdf\\Barcode\\AbstractBarcode' not found in wp-content/plugins/restaurant-reservations/lib/mpdf/vendor/mpdf/mpdf/src/Barcode/Codabar.php:9
- > PHP Fatal error
Uncaught Error: Class 'sapAdminPageSetting_2_6_18' not found in wp-content/plugins/restaurant-reservations/lib/simple-admin-pages/classes/AdminPageSetting.HTML.class.php:17
- > PHP Fatal error
Uncaught Error: Class 'sapAdminPageSetting_2_6_18' not found in wp-content/plugins/restaurant-reservations/lib/simple-admin-pages/classes/AdminPageSetting.SelectTaxonomy.class.php:22
- > PHP Fatal error
Uncaught Error: Class 'setasign\\Fpdi\\PdfParser\\Type\\PdfType' not found in wp-content/plugins/restaurant-reservations/lib/mpdf/vendor/setasign/fpdi/src/PdfParser/Type/PdfDictionary.php:21
- > PHP Fatal error
Uncaught Error: Class 'Mpdf\\Tag\\InlineTag' not found in wp-content/plugins/restaurant-reservations/lib/mpdf/vendor/mpdf/mpdf/src/Tag/S.php:5
- > PHP Fatal error
Uncaught Error: Class 'Mpdf\\Tag\\InlineTag' not found in wp-content/plugins/restaurant-reservations/lib/mpdf/vendor/mpdf/mpdf/src/Tag/Bdo.php:5
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\Exception\\ApiErrorException' not found in wp-content/plugins/restaurant-reservations/lib/stripe/lib/Exception/CardException.php:9
- > PHP Fatal error
Uncaught Error: Class 'Mpdf\\Tag\\InlineTag' not found in wp-content/plugins/restaurant-reservations/lib/mpdf/vendor/mpdf/mpdf/src/Tag/Acronym.php:5
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\ApiResource' not found in wp-content/plugins/restaurant-reservations/lib/stripe/lib/TransferReversal.php:36
- > PHP Fatal error
Uncaught Error: Interface 'Stripe\\Util\\LoggerInterface' not found in wp-content/plugins/restaurant-reservations/lib/stripe/lib/Util/DefaultLogger.php:9
- > 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)
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% 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
Attributes that need to be fixed:
- Tags: Please delete some tags, you are using 28 tag instead of maximum 10
restaurant-reservations/restaurant-reservations.php 92% from 13 tests
Analyzing the main PHP file in "Five Star Restaurant Reservations - WordPress Booking Plugin" version 2.6.15
You should first fix the following items:
- Description: The description should be shorter than 140 characters (currently 152 characters long)
Code Analysis 0% from 3 tests
File types 0% from 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
These items require your attention
- Do not include executable or dangerous files in your plugin
- .crt - Security Certificate in Firefox, IE, Chrome, Safari
- ☣ wp-content/plugins/restaurant-reservations/lib/stripe/data/ca-certificates.crt
- .crt - Security Certificate in Firefox, IE, Chrome, Safari
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 719 | 19,251 | 39,254 | 147,860 |
PO File | 13 | 4,065 | 5,104 | 13,535 |
JavaScript | 80 | 1,783 | 1,006 | 7,236 |
CSS | 28 | 624 | 260 | 6,996 |
Markdown | 12 | 557 | 0 | 1,646 |
JSON | 11 | 32 | 0 | 548 |
XML | 4 | 11 | 0 | 93 |
YAML | 3 | 11 | 3 | 50 |
HTML | 1 | 0 | 0 | 6 |
Bourne Shell | 1 | 2 | 0 | 3 |
PHP code 0% from 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
These items need your attention
- Cyclomatic complexity of classes has to be reduced to less than 1000 (currently 7,007)
- Method cyclomatic complexity has to be reduced to less than 100 (currently 502)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.48 |
Average class complexity | 45.52 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 7,007.00 |
Average method complexity | 8.84 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 502.00 |
Code structure | ||
---|---|---|
Namespaces | 64 | |
Interfaces | 17 | |
Traits | 13 | |
Classes | 578 | |
▷ Abstract classes | 22 | 3.81% |
▷ Concrete classes | 556 | 96.19% |
▷ Final classes | 13 | 2.34% |
Methods | 3,448 | |
▷ Static methods | 429 | 12.44% |
▷ Public methods | 2,894 | 83.93% |
▷ Protected methods | 361 | 10.47% |
▷ Private methods | 193 | 5.60% |
Functions | 94 | |
▷ Named functions | 58 | 61.70% |
▷ Anonymous functions | 36 | 38.30% |
Constants | 1,255 | |
▷ Global constants | 128 | 10.20% |
▷ Class constants | 1,127 | 89.80% |
▷ Public constants | 1,127 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
43 PNG files occupy 1.54MB with 0.97MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/fivestartextlogo.png | 16.97KB | 7.38KB | ▼ 56.50% |
assets/img/dash-asset-badge.png | 33.32KB | 10.39KB | ▼ 68.80% |
assets/img/ewd-support-icon-forum.png | 5.77KB | 2.17KB | ▼ 62.41% |
assets/img/options-asset-star.png | 0.78KB | 0.32KB | ▼ 58.92% |
assets/img/premium-screenshots/export.png | 71.65KB | 23.06KB | ▼ 67.82% |