Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully
Server metrics [RAM: ▲0.03MB] [CPU: ▼3.95ms] Passed 4 tests
A check of server-side resources used by Appointment Scheduling and Online Booking by CozyCal
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 36.58 ▼4.75 |
Dashboard /wp-admin | 3.34 ▲0.04 | 45.42 ▼7.08 |
Posts /wp-admin/edit.php | 3.39 ▲0.03 | 43.19 ▼2.02 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.03 | 84.04 ▼1.94 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 34.32 ▲0.40 |
CozyCal /wp-admin/options-general.php?page=online-booking | 3.23 | 32.49 |
Server storage [IO: ▲4.43MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 9 new files
Database: no new tables, 8 new options
New WordPress options |
---|
widget_recent-comments |
widget_theysaidso_widget |
theysaidso_admin_options |
cozycal_embed_code |
can_compress_scripts |
widget_recent-posts |
db_upgraded |
cozycal_hide_notice |
Browser metrics Passed 4 tests
Checking browser requirements for Appointment Scheduling and Online Booking by CozyCal
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,898 ▲163 | 13.31 ▼1.11 | 1.97 ▲0.30 | 40.66 ▼7.91 |
Dashboard /wp-admin | 2,250 ▲62 | 5.79 ▼0.01 | 110.08 ▲3.15 | 42.48 ▼4.54 |
Posts /wp-admin/edit.php | 2,139 ▲50 | 2.01 ▼0.04 | 36.30 ▲0.45 | 31.36 ▼3.98 |
Add New Post /wp-admin/post-new.php | 1,555 ▲8 | 17.62 ▼0.73 | 681.80 ▲75.95 | 51.61 ▲2.02 |
Media Library /wp-admin/upload.php | 1,438 ▲47 | 4.29 ▲0.09 | 116.80 ▲15.83 | 49.46 ▲2.72 |
CozyCal /wp-admin/options-general.php?page=online-booking | 832 | 2.03 | 25.25 | 49.29 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-posts
- theysaidso_admin_options
- widget_recent-comments
- widget_theysaidso_widget
- can_compress_scripts
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested
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
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function register_deactivation_hook() in wp-content/plugins/online-booking/cozycal.php:13
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 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
Attributes that require attention:
- Screenshots: These screenshots do not have images: #1 (CozyCal's "Schedule Appointment" widget), #2 (Team booking page), #3 (Choosing a date), #4 (Guest intake form), #5 (Guest event confirmation), #6 (Internal calendar), #7 (Contacts and previous clients)
online-booking/cozycal.php 92% from 13 tests
The main PHP script in "Appointment Scheduling and Online Booking by CozyCal" version 2.9.8 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("online-booking.php" instead of "cozycal.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin169 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 44 | 23 | 169 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.17 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 11 | |
▷ Named functions | 11 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
6 PNG files occupy 4.30MB with 3.56MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-2.png | 802.81KB | 81.10KB | ▼ 89.90% |
screenshot-3.png | 777.35KB | 67.72KB | ▼ 91.29% |
screenshot-7.png | 235.75KB | 60.73KB | ▼ 74.24% |
screenshot-6.png | 644.68KB | 202.93KB | ▼ 68.52% |
screenshot-5.png | 1,077.00KB | 99.60KB | ▼ 90.75% |