Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
You still need to fix the following installer errors
- The plugin did not install without errors
- > Compile error in wp-content/plugins/booking-chatwing/classes/DataModel.php+4
Cannot use BookingChatwing\Object as Object because 'Object' is a special class name
Server metrics [RAM: ▲0.00MB] [CPU: ▼5.90ms] Passed 4 tests
A check of server-side resources used by Plugin Name: ScheduleWing – Online Booking and Appointment Schedule
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 53.80 ▲8.68 |
Dashboard /wp-admin | 3.31 ▲0.00 | 46.66 ▼5.79 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 46.73 ▼1.02 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 83.97 ▼21.95 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 38.97 ▲5.17 |
Server storage [IO: ▲0.08MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 36 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-posts |
db_upgraded |
widget_theysaidso_widget |
widget_recent-comments |
can_compress_scripts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Plugin Name: ScheduleWing – Online Booking and Appointment Schedule
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲3 | 14.26 ▼0.03 | 3.92 ▲1.85 | 49.36 ▲4.82 |
Dashboard /wp-admin | 2,198 ▲24 | 5.60 ▲0.03 | 82.45 ▼19.18 | 39.78 ▼6.93 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 1.98 ▲0.01 | 36.52 ▼0.94 | 36.83 ▼2.96 |
Add New Post /wp-admin/post-new.php | 1,526 ▼3 | 23.54 ▲0.37 | 648.58 ▼7.42 | 55.42 ▼9.67 |
Media Library /wp-admin/upload.php | 1,400 ▲6 | 4.16 ▲0.00 | 100.37 ▼0.79 | 43.71 ▲2.12 |
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: 6 options
- widget_theysaidso_widget
- db_upgraded
- widget_recent-posts
- theysaidso_admin_options
- widget_recent-comments
- can_compress_scripts
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
Everything seems fine, however this is by no means an exhaustive test
SRP 50% 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 fix the following
- 3× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Cannot use BookingChatwing\\Object as Object because 'Object' is a special class name in wp-content/plugins/booking-chatwing/classes/DataModel.php on line 4
- > PHP Fatal error
Cannot use 'Object' as class name as it is reserved in wp-content/plugins/booking-chatwing/chatwing-sdk/src/BookingChatwing/Object.php on line 12
- > PHP Fatal error
Cannot use BookingChatwing\\Object as Object because 'Object' is a special class name in wp-content/plugins/booking-chatwing/chatwing-sdk/src/BookingChatwing/Api/Action.php on line 10
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that need to be fixed:
- Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line (
=== Plugin Name: ScheduleWing – Online Booking and Appointment Schedule===
) - Screenshots: These screenshots require images: #1 (Login ChatWing website), #2 (Customize chatbox settings in chatwing), #3 (Get access token in chatwing.com), #4 (Insert access token in Access token textbox), #5 (Get application ID in chatwing), #6 (Insert App ID and Customize booking plugin settings), #7 (Insert Booking as widget)
booking-chatwing/booking-chatwing.php 92% from 13 tests
"Plugin Name: ScheduleWing – Online Booking and Appointment Schedule" version 0.0.2's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
It is important to fix the following:
- Text Domain: The text domain should only use lowercase characters and dashes
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
There were no executable files found in this plugin1,437 lines of code in 29 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 26 | 326 | 588 | 1,413 |
JSON | 1 | 0 | 0 | 22 |
CSS | 2 | 0 | 12 | 2 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
Average class complexity | 9.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 19.00 |
Average method complexity | 2.03 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 14.00 |
Code structure | ||
---|---|---|
Namespaces | 5 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 19 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 19 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 147 | |
▷ Static methods | 15 | 10.20% |
▷ Public methods | 127 | 86.39% |
▷ Protected methods | 19 | 12.93% |
▷ Private methods | 1 | 0.68% |
Functions | 7 | |
▷ Named functions | 4 | 57.14% |
▷ Anonymous functions | 3 | 42.86% |
Constants | 18 | |
▷ Global constants | 17 | 94.44% |
▷ Class constants | 1 | 5.56% |
▷ Public constants | 1 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
PNG images were not found in this plugin