Benchmarks
Plugin footprint 83% 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.03MB] [CPU: ▼2.21ms] Passed 4 tests
An overview of server-side resources used by Timely Booking Button
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 34.53 ▼7.07 |
Dashboard /wp-admin | 3.34 ▲0.04 | 44.27 ▼3.67 |
Posts /wp-admin/edit.php | 3.39 ▲0.04 | 48.13 ▲4.19 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.04 | 88.32 ▼2.28 |
Media Library /wp-admin/upload.php | 3.26 ▲0.04 | 35.26 ▲5.20 |
Timely /wp-admin/options-general.php?page=timely-booking-buttons | 3.23 | 35.77 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 12 new files
Database: no new tables, 8 new options
New WordPress options |
---|
widget_recent-posts |
widget_recent-comments |
theysaidso_admin_options |
can_compress_scripts |
widget_tbb-widget-new |
db_upgraded |
widget_tbw-widget-new |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Timely Booking Button
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲58 | 13.54 ▼0.84 | 1.73 ▼0.03 | 40.05 ▼3.44 |
Dashboard /wp-admin | 2,213 ▲22 | 4.85 ▼0.16 | 107.52 ▼7.05 | 40.91 ▼4.02 |
Posts /wp-admin/edit.php | 2,090 ▼2 | 2.06 ▲0.06 | 39.72 ▲3.59 | 34.70 ▼0.85 |
Add New Post /wp-admin/post-new.php | 1,536 ▲3 | 23.02 ▲0.01 | 649.63 ▲17.75 | 55.82 ▲4.37 |
Media Library /wp-admin/upload.php | 1,389 ▼2 | 4.19 ▲0.01 | 103.80 ▲3.53 | 43.79 ▼0.17 |
Timely /wp-admin/options-general.php?page=timely-booking-buttons | 889 | 2.03 | 30.95 | 30.05 |
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
These items require your attention
- This plugin does not fully uninstall, leaving 8 options in the database
- can_compress_scripts
- widget_recent-posts
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_tbb-widget-new
- db_upgraded
- widget_tbw-widget-new
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested
SRP 0% 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
Please fix the following items
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/timely-booking-button/tests/bootstrap.php
- 5× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/timely-booking-button/widget/timely-booking-button-widget.php:2
- > PHP Fatal error
Uncaught Error: Class 'WP_UnitTestCase' not found in wp-content/plugins/timely-booking-button/tests/test-sample.php:11
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/timely-booking-button/widget/timely-booking-frame-widget.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/timely-booking-button/admin/timely-booking-button-admin.php:6
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/timely-booking-button/widget/timely-booking-button-widget.php:2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need your attention:
- Tags: Too many tags (12 tag instead of maximum 10); only the first 5 tags are used in your directory listing
timely-booking-button/timely-booking-button.php 85% from 13 tests
"Timely Booking Button" version 2.0.2's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
You should first fix the following items:
- Description: Keep the plugin description shorter than 140 characters (currently 220 characters long)
- Domain Path: The domain path points to a folder that does not exist ("/languages")
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 plugin607 lines of code in 11 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 7 | 89 | 185 | 406 |
Bourne Shell | 1 | 21 | 11 | 123 |
JavaScript | 1 | 9 | 1 | 46 |
JSON | 1 | 1 | 0 | 16 |
XML | 1 | 0 | 0 | 16 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.25 |
Average class complexity | 6.20 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 14.00 |
Average method complexity | 2.13 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.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 | 23 | |
▷ Static methods | 3 | 13.04% |
▷ Public methods | 23 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 6 | |
▷ Named functions | 6 | 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 Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
There are no PNG files in this plugin