Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲0.04MB] [CPU: ▼10.68ms] Passed 4 tests
This is a short check of server-side resources used by Booking Calendar - Clockwork SMS
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 36.07 ▼2.08 |
Dashboard /wp-admin | 3.36 ▲0.01 | 47.42 ▼23.30 |
Posts /wp-admin/edit.php | 3.47 ▲0.11 | 50.64 ▲1.45 |
Add New Post /wp-admin/post-new.php | 5.96 ▲0.07 | 91.38 ▼18.77 |
Media Library /wp-admin/upload.php | 3.28 ▲0.05 | 44.20 ▲3.65 |
Test /wp-admin/admin.php?page=clockwork_test_message | 3.28 | 35.36 |
Clockwork Options /wp-admin/admin.php?page=clockwork_options | 3.28 | 32.60 |
Booking Calendar /wp-admin/admin.php?page=clockwork_booking_calendar | 3.28 | 35.37 |
Server storage [IO: ▲0.26MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 17 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-posts |
db_upgraded |
theysaidso_admin_options |
widget_recent-comments |
Browser metrics Passed 4 tests
An overview of browser requirements for Booking Calendar - Clockwork SMS
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,837 ▲91 | 13.66 ▼0.57 | 1.64 ▲0.05 | 41.85 ▲0.30 |
Dashboard /wp-admin | 2,240 ▲49 | 5.87 ▲0.01 | 108.74 ▲0.82 | 84.98 ▲41.33 |
Posts /wp-admin/edit.php | 2,128 ▲42 | 2.01 ▲0.00 | 37.98 ▲3.33 | 37.49 ▲2.64 |
Add New Post /wp-admin/post-new.php | 1,700 ▲186 | 22.62 ▲4.97 | 730.43 ▲16.42 | 61.92 ▼5.86 |
Media Library /wp-admin/upload.php | 1,419 ▲34 | 4.11 ▼0.12 | 102.05 ▼16.95 | 51.98 ▲1.11 |
Test /wp-admin/admin.php?page=clockwork_test_message | 844 | 2.34 | 27.95 | 29.03 |
Clockwork Options /wp-admin/admin.php?page=clockwork_options | 879 | 1.68 | 27.11 | 28.39 |
Booking Calendar /wp-admin/admin.php?page=clockwork_booking_calendar | 976 | 2.07 | 30.88 | 40.65 |
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
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-posts
- widget_theysaidso_widget
- db_upgraded
- theysaidso_admin_options
- widget_recent-comments
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
These errors were triggered by the plugin
- > GET request to /wp-admin/admin.php?page=clockwork_test_message
- > Notice in wp-content/plugins/booking-sms/templates/clockwork-test-message.php+8
Undefined index: to
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
Almost there! Just fix the following items
- 3× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Class 'Clockwork' not found in wp-content/plugins/booking-sms/lib/clockwork/class-WordPressClockwork.php:15
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/booking-sms/booking-calendar-sms.php:74
- > PHP Fatal error
Uncaught Error: Class 'Clockwork_Plugin' not found in wp-content/plugins/booking-sms/main.php:2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found
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
These attributes need to be fixed:
- Screenshots: Screenshot #1 (SMS settings) image not found
booking-sms/booking-calendar-sms.php 92% from 13 tests
The main PHP script in "Booking Calendar - Clockwork SMS" version 1.1.3 is automatically included on every request by WordPress
The following require your attention:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("booking-sms.php" instead of "booking-calendar-sms.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin1,346 lines of code in 11 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 9 | 272 | 667 | 1,298 |
CSS | 1 | 4 | 0 | 25 |
JavaScript | 1 | 9 | 3 | 23 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
Average class complexity | 34.40 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 70.00 |
Average method complexity | 3.98 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 34.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 2 | 40.00% |
▷ Concrete classes | 3 | 60.00% |
▷ Final classes | 0 | 0.00% |
Methods | 59 | |
▷ Static methods | 1 | 1.69% |
▷ Public methods | 49 | 83.05% |
▷ Protected methods | 9 | 15.25% |
▷ Private methods | 1 | 1.69% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 13 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 13 | 100.00% |
▷ Public constants | 13 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
4 PNG files occupy 0.19MB with 0.11MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/logo_16px_16px.png | 0.43KB | 0.31KB | ▼ 27.56% |
images/logo_32px_32px.png | 0.76KB | 0.45KB | ▼ 40.95% |
images/badrobot.png | 92.94KB | 10.20KB | ▼ 89.03% |
screenshot-1.png | 99.09KB | 32.43KB | ▼ 67.27% |