Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▼0.10MB] [CPU: ▼12.92ms] Passed 4 tests
A check of server-side resources used by Guestplan Booking Widget
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▼0.01 | 33.32 ▼11.72 |
Dashboard /wp-admin | 3.34 ▲0.03 | 48.10 ▼2.54 |
Posts /wp-admin/edit.php | 3.39 ▼0.46 | 42.22 ▼11.71 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.03 | 80.05 ▼24.07 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 31.09 ▼4.16 |
Guestplan Widget /wp-admin/options-general.php?page=guestplan | 3.25 | 33.70 |
Server storage [IO: ▲0.05MB] [DB: ▲0.07MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 19 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
theysaidso_admin_options |
widget_recent-comments |
db_upgraded |
widget_recent-posts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
An overview of browser requirements for Guestplan Booking Widget
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,807 ▲46 | 14.06 ▼0.25 | 1.47 ▼0.22 | 40.11 ▲2.36 |
Dashboard /wp-admin | 2,216 ▲36 | 5.61 ▼0.00 | 81.53 ▼5.82 | 38.92 ▼2.31 |
Posts /wp-admin/edit.php | 2,121 ▲24 | 2.00 ▼0.04 | 35.10 ▲2.13 | 31.16 ▼4.90 |
Add New Post /wp-admin/post-new.php | 1,552 ▲14 | 17.96 ▼5.23 | 618.57 ▼73.42 | 51.80 ▼6.85 |
Media Library /wp-admin/upload.php | 1,418 ▲21 | 4.19 ▼0.02 | 96.24 ▼10.58 | 40.70 ▼2.53 |
Guestplan Widget /wp-admin/options-general.php?page=guestplan | 872 | 2.14 | 23.95 | 27.20 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-comments
- db_upgraded
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-posts
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 50% 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
The following issues need your attention
- 2× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/guestplan-booking-widget/admin/partials/guestplan-admin-display.php
- > /wp-content/plugins/guestplan-booking-widget/public/partials/guestplan-public-display.php
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
3 plugin tags: bookings, restaurant, reservations
guestplan-booking-widget/guestplan.php 85% from 13 tests
The entry point to "Guestplan Booking Widget" version 1.0.9 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("guestplan-booking-widget.php" instead of "guestplan.php")
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
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
Success! There were no dangerous files found in this plugin459 lines of code in 13 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 13 | 190 | 518 | 459 |
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.12 |
Average class complexity | 3.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 8.00 |
Average method complexity | 1.40 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 40 | |
▷ Static methods | 2 | 5.00% |
▷ Public methods | 34 | 85.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 6 | 15.00% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 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
There are no PNG files in this plugin