Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▼0.01MB] [CPU: ▼293.38ms] Passed 4 tests
This is a short check of server-side resources used by Time Slots for WooCommerce
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.01 | 51.41 ▼0.67 |
Dashboard /wp-admin | 3.43 ▲0.03 | 32.64 ▼1.17 |
Posts /wp-admin/edit.php | 3.66 ▲0.02 | 39.84 ▼5.81 |
Add New Post /wp-admin/post-new.php | 6.93 ▼0.07 | 90.87 ▼1,165.85 |
Media Library /wp-admin/upload.php | 3.31 ▲0.02 | 24.31 ▲0.47 |
Time Slots /wp-admin/admin.php?page=time-slots-options-page | 3.31 | 22.95 |
Server storage [IO: ▲0.06MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 25 new files
Database: no new tables, 1 new option
New WordPress options |
---|
ebxwcts_option_settings |
Browser metrics Passed 4 tests
A check of browser resources used by Time Slots for WooCommerce
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,797 ▲75 | 16.14 ▲0.37 | 6.00 ▼0.54 | 2.85 ▲0.59 |
Dashboard /wp-admin | 2,894 ▲33 | 6.14 ▼0.03 | 115.70 ▼16.55 | 150.96 ▼6.12 |
Posts /wp-admin/edit.php | 2,696 ▲2 | 3.24 ▲0.00 | 63.39 ▼1.41 | 143.16 ▲1.42 |
Add New Post /wp-admin/post-new.php | 1,670 ▼111 | 18.91 ▼3.79 | 384.70 ▼30.38 | 156.58 ▼3.87 |
Media Library /wp-admin/upload.php | 1,700 ▲2 | 5.53 ▲0.02 | 142.52 ▼0.72 | 184.76 ▲0.87 |
Time Slots /wp-admin/admin.php?page=time-slots-options-page | 2,488 | 2.39 | 53.82 | 155.06 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- This plugin cannot be uninstalled
- > Notice in wp-content/plugins/time-slots-for-woocommerce/uninstall.php+11
Undefined index: ebxwcts_remove_data
- The uninstall procedure has failed, leaving 1 option in the database
- ebxwcts_option_settings
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 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please take a closer look at the following
- 2× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/time-slots-for-woocommerce/includes/settings-instructions.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/time-slots-for-woocommerce/admin/loader/plugin-dependancy.php:46
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
6 plugin tags: booking, appointments, consulting, paid calls, woocommerce...
time-slots-for-woocommerce/wc-time-slots.php 92% from 13 tests
The principal PHP file in "Time Slots for WooCommerce" v. 1.0.4 is loaded by WordPress automatically on each request
It is important to fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("time-slots-for-woocommerce.php" instead of "wc-time-slots.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable files found in this plugin843 lines of code in 14 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 13 | 63 | 126 | 743 |
CSS | 1 | 21 | 3 | 100 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.40 |
Average class complexity | 4.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 9.00 |
Average method complexity | 2.40 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 9.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 11 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 11 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 19 | |
▷ Named functions | 19 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/img/time-slots-logo.png | 4.76KB | 2.54KB | ▼ 46.73% |