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.02MB] [CPU: ▼1.26ms] Passed 4 tests
This is a short check of server-side resources used by Reservation.Studio widget
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 38.26 ▼0.23 |
Dashboard /wp-admin | 3.33 ▲0.02 | 43.67 ▼3.34 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 46.53 ▼2.98 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.02 | 91.54 ▲1.51 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 39.57 ▲4.08 |
Server storage [IO: ▲0.23MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 92 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-comments |
db_upgraded |
widget_recent-posts |
can_compress_scripts |
Browser metrics Passed 4 tests
An overview of browser requirements for Reservation.Studio widget
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,856 ▲110 | 14.28 ▼0.07 | 1.94 ▲0.43 | 42.18 ▼5.48 |
Dashboard /wp-admin | 2,237 ▲59 | 5.51 ▼0.20 | 79.70 ▼29.16 | 72.95 ▲29.10 |
Posts /wp-admin/edit.php | 2,148 ▲48 | 1.98 ▼0.02 | 39.21 ▲0.42 | 33.76 ▼4.54 |
Add New Post /wp-admin/post-new.php | 1,728 ▲202 | 24.37 ▲1.43 | 734.36 ▲47.39 | 56.19 ▼4.70 |
Media Library /wp-admin/upload.php | 1,436 ▲33 | 4.20 ▼0.11 | 99.97 ▲2.15 | 89.19 ▲43.35 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_theysaidso_widget
- db_upgraded
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-posts
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following
- 47× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Rakit\\Validation\\Rule' not found in wp-content/plugins/reservation-studio-widget/vendor/rakit/validation/src/Rules/Ipv6.php:7
- > PHP Fatal error
Uncaught Error: Class 'Rakit\\Validation\\Rule' not found in wp-content/plugins/reservation-studio-widget/vendor/rakit/validation/src/Rules/Email.php:7
- > PHP Fatal error
Uncaught Error: Class 'Rakit\\Validation\\Rule' not found in wp-content/plugins/reservation-studio-widget/vendor/rakit/validation/src/Rules/In.php:8
- > PHP Fatal error
Uncaught Error: Class 'Rakit\\Validation\\Rule' not found in wp-content/plugins/reservation-studio-widget/vendor/rakit/validation/src/Rules/Lowercase.php:7
- > PHP Fatal error
Uncaught Error: Class 'Rakit\\Validation\\Rule' not found in wp-content/plugins/reservation-studio-widget/vendor/rakit/validation/src/Rules/AlphaDash.php:7
- > PHP Fatal error
Uncaught Error: Class 'Rakit\\Validation\\Rule' not found in wp-content/plugins/reservation-studio-widget/vendor/rakit/validation/src/Rules/Digits.php:7
- > PHP Fatal error
Uncaught Error: Class 'Rakit\\Validation\\Rule' not found in wp-content/plugins/reservation-studio-widget/vendor/rakit/validation/src/Rules/Nullable.php:7
- > PHP Fatal error
Uncaught Error: Class 'Rakit\\Validation\\Rule' not found in wp-content/plugins/reservation-studio-widget/vendor/rakit/validation/src/Rules/Json.php:7
- > PHP Fatal error
Uncaught Error: Class 'Rakit\\Validation\\Rule' not found in wp-content/plugins/reservation-studio-widget/vendor/rakit/validation/src/Rules/Present.php:7
- > PHP Fatal error
Uncaught Error: Class 'Rakit\\Validation\\Rule' not found in wp-content/plugins/reservation-studio-widget/vendor/rakit/validation/src/Rules/TypeArray.php:7
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that need to be fixed:
- Tags: You are using too many tags: 11 tag instead of maximum 10
reservation-studio-widget/widget.php 92% from 13 tests
The entry point to "Reservation.Studio widget" version 1.0.13 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("reservation-studio-widget.php" instead of "widget.php")
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
There were no executable files found in this plugin5,100 lines of code in 84 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 75 | 894 | 1,786 | 4,082 |
Markdown | 2 | 375 | 0 | 800 |
JSON | 3 | 0 | 0 | 96 |
CSS | 1 | 18 | 0 | 87 |
SVG | 2 | 0 | 0 | 25 |
XML | 1 | 3 | 4 | 10 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.41 |
Average class complexity | 6.70 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 61.00 |
Average method complexity | 2.54 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 7 | |
Interfaces | 2 | |
Traits | 5 | |
Classes | 59 | |
▷ Abstract classes | 1 | 1.69% |
▷ Concrete classes | 58 | 98.31% |
▷ Final classes | 0 | 0.00% |
Methods | 248 | |
▷ Static methods | 29 | 11.69% |
▷ Public methods | 213 | 85.89% |
▷ Protected methods | 31 | 12.50% |
▷ Private methods | 4 | 1.61% |
Functions | 5 | |
▷ Named functions | 1 | 20.00% |
▷ Anonymous functions | 4 | 80.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/laptop.png | 0.64KB | 0.64KB | 0.00% |