Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.57MB] [CPU: ▼0.18ms] Passed 4 tests
This is a short check of server-side resources used by BookSlots - Simple Booking Form
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.04 ▲0.57 | 45.53 ▼2.28 |
Dashboard /wp-admin | 3.88 ▲0.57 | 49.06 ▼1.39 |
Posts /wp-admin/edit.php | 3.93 ▲0.57 | 55.30 ▲9.84 |
Add New Post /wp-admin/post-new.php | 6.46 ▲0.57 | 97.61 ▼2.77 |
Media Library /wp-admin/upload.php | 3.80 ▲0.57 | 39.67 ▲5.73 |
Settings /wp-admin/admin.php?page=bookslots-settings | 3.76 | 34.53 |
BookSlots /wp-admin/admin.php?page=bookslots | 3.86 | 38.40 |
Employees /wp-admin/admin.php?page=bookslots-employees | 3.91 | 38.14 |
Services /wp-admin/admin.php?page=bookslots-services | 3.85 | 33.14 |
Server storage [IO: ▲3.44MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 1,282 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-posts |
db_upgraded |
widget_theysaidso_widget |
widget_recent-comments |
bookslots |
can_compress_scripts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
BookSlots - Simple Booking Form: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,835 ▲89 | 14.39 ▼0.01 | 1.90 ▲0.01 | 37.24 ▼4.05 |
Dashboard /wp-admin | 2,241 ▲56 | 5.90 ▲1.00 | 109.81 ▲0.40 | 42.94 ▼3.23 |
Posts /wp-admin/edit.php | 2,124 ▲35 | 2.01 ▼0.03 | 38.76 ▲3.90 | 35.35 ▼0.41 |
Add New Post /wp-admin/post-new.php | 1,570 ▲50 | 18.03 ▼5.13 | 613.10 ▼72.05 | 52.34 ▼18.21 |
Media Library /wp-admin/upload.php | 1,426 ▲41 | 4.21 ▼0.03 | 98.10 ▼3.94 | 41.71 ▼5.29 |
Settings /wp-admin/admin.php?page=bookslots-settings | 1,311 | 2.34 | 39.68 | 55.77 |
BookSlots /wp-admin/admin.php?page=bookslots | 1,648 | 2.50 | 48.15 | 30.25 |
Employees /wp-admin/admin.php?page=bookslots-employees | 2,248 | 2.61 | 41.86 | 26.72 |
Services /wp-admin/admin.php?page=bookslots-services | 1,615 | 2.33 | 33.76 | 26.58 |
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
It is recommended to fix the following
- Zombie WordPress options were found after uninstall: 7 options
- can_compress_scripts
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-posts
- db_upgraded
- widget_recent-comments
- bookslots
Smoke tests 50% 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 0% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following items
- 6× PHP files output text when accessed directly:
- > /wp-content/plugins/bookslots-simple-booking-form/resources/views/partials/new-appointment.php
- > /wp-content/plugins/bookslots-simple-booking-form/app/Includes/BaseCpt.php
- > /wp-content/plugins/bookslots-simple-booking-form/resources/views/partials/new-service.php
- > /wp-content/plugins/bookslots-simple-booking-form/vendor/symfony/translation/Resources/bin/translation-status.php
- > /wp-content/plugins/bookslots-simple-booking-form/resources/views/partials/new-employee.php
- > /wp-content/plugins/bookslots-simple-booking-form/app/Includes/BaseModel.php
- 299× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Warning
require_once(ABSPATHwp-admin/Includes/class-wp-list-table.php): failed to open stream: No such file or directory in wp-content/plugins/bookslots-simple-booking-form/app/Includes/ServiceTable.php on line 9
- > PHP Fatal error
Uncaught Error: Class 'Rakit\\Validation\\Rule' not found in wp-content/plugins/bookslots-simple-booking-form/vendor/rakit/validation/src/Rules/NotIn.php:8
- > PHP Fatal error
Uncaught Error: Interface 'Symfony\\Component\\Translation\\Loader\\LoaderInterface' not found in wp-content/plugins/bookslots-simple-booking-form/vendor/symfony/translation/Loader/QtFileLoader.php:26
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/bookslots-simple-booking-form/vendor/composer/installers/src/Composer/Installers/DframeInstaller.php:5
- > PHP Fatal error
Uncaught Error: Interface 'Symfony\\Component\\Translation\\Formatter\\MessageFormatterInterface' not found in wp-content/plugins/bookslots-simple-booking-form/vendor/symfony/translation/Formatter/MessageFormatter.php:23
- > PHP Fatal error
Uncaught Error: Class 'Rakit\\Validation\\Rules\\Required' not found in wp-content/plugins/bookslots-simple-booking-form/vendor/rakit/validation/src/Rules/RequiredIf.php:7
- > PHP Fatal error
Uncaught Error: Interface 'Carbon\\Exceptions\\InvalidArgumentException' not found in wp-content/plugins/bookslots-simple-booking-form/vendor/nesbot/carbon/src/Carbon/Exceptions/UnknownGetterException.php:17
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHwp-admin/Includes/class-wp-list-table.php' (include_path='.:/usr/share/php') in wp-content/plugins/bookslots-simple-booking-form/app/Includes/ServiceTable.php on line 9
- > PHP Fatal error
Uncaught Error: Interface 'Symfony\\Component\\Translation\\Loader\\LoaderInterface' not found in wp-content/plugins/bookslots-simple-booking-form/vendor/symfony/translation/Loader/IcuResFileLoader.php:24
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/bookslots-simple-booking-form/vendor/composer/installers/src/Composer/Installers/PimcoreInstaller.php:4
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
9 plugin tags: instructors, appointment, reservation, salon, stripe...
bookslots-simple-booking-form/bookslots.php 85% from 13 tests
Analyzing the main PHP file in "BookSlots - Simple Booking Form" version 0.1.6
Please take the time to fix the following:
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
- Main file name: It is recommended to name the main PHP file as the plugin slug ("bookslots-simple-booking-form.php" instead of "bookslots.php")
Code Analysis 3% 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 distribute dangerous files with your plugin
- .bat - Batch File in Windows
- ☣ wp-content/plugins/bookslots-simple-booking-form/vendor/nesbot/carbon/bin/carbon.bat
- .bat - Batch File in Windows
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1,032 | 8,654 | 28,078 | 43,663 |
XSD | 3 | 92 | 48 | 2,803 |
JSON | 11 | 0 | 0 | 1,392 |
Markdown | 10 | 499 | 0 | 1,126 |
CSS | 3 | 45 | 46 | 385 |
YAML | 3 | 31 | 3 | 123 |
XML | 1 | 3 | 4 | 10 |
DOS Batch | 1 | 0 | 0 | 4 |
JavaScript | 2 | 0 | 0 | 2 |
SVG | 1 | 0 | 0 | 1 |
PHP code 50% from 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
These items need your attention
- Please reduce cyclomatic complexity of methods to less than 100 (currently 140)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.43 |
Average class complexity | 9.48 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 309.00 |
Average method complexity | 2.74 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 140.00 |
Code structure | ||
---|---|---|
Namespaces | 37 | |
Interfaces | 30 | |
Traits | 31 | |
Classes | 311 | |
▷ Abstract classes | 15 | 4.82% |
▷ Concrete classes | 296 | 95.18% |
▷ Final classes | 13 | 4.39% |
Methods | 2,088 | |
▷ Static methods | 389 | 18.63% |
▷ Public methods | 1,763 | 84.43% |
▷ Protected methods | 195 | 9.34% |
▷ Private methods | 130 | 6.23% |
Functions | 346 | |
▷ Named functions | 111 | 32.08% |
▷ Anonymous functions | 235 | 67.92% |
Constants | 122 | |
▷ Global constants | 15 | 12.30% |
▷ Class constants | 107 | 87.70% |
▷ Public constants | 104 | 97.20% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
PNG images were not found in this plugin