Benchmarks
Plugin footprint 65% 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.96MB] [CPU: ▼41.59ms] Passed 4 tests
An overview of server-side resources used by Booking Works
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.00 | 36.20 ▼5.39 |
Dashboard /wp-admin | 3.03 ▼0.35 | 23.04 ▼40.03 |
Posts /wp-admin/edit.php | 3.03 ▼0.36 | 25.59 ▼23.56 |
Add New Post /wp-admin/post-new.php | 3.03 ▼2.89 | 24.25 ▼92.08 |
Media Library /wp-admin/upload.php | 3.03 ▼0.23 | 24.29 ▼10.67 |
Server storage [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: no files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
theysaidso_admin_options |
can_compress_scripts |
db_upgraded |
widget_recent-posts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
An overview of browser requirements for Booking Works
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲29 | 13.17 ▼1.21 | 1.62 ▼0.40 | 40.58 ▼5.96 |
Dashboard /wp-admin | 2,206 ▲18 | 5.88 ▲0.01 | 105.82 ▲7.02 | 41.63 ▼0.57 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 1.99 ▼0.04 | 39.02 ▲3.47 | 34.00 ▼0.23 |
Add New Post /wp-admin/post-new.php | 1,533 ▲5 | 23.20 ▲4.71 | 676.58 ▲55.65 | 55.08 ▲4.60 |
Media Library /wp-admin/upload.php | 1,388 ▲3 | 4.26 ▲0.03 | 111.84 ▲15.22 | 47.16 ▲4.86 |
Uninstaller [IO: ✅] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- Uninstall procedure had uncaught errors
- > Warning in wp-includes/class-wp-hook.php+310
call_user_func_array() expects parameter 1 to be a valid callback, function 'wpbw_admin_menu' not found or invalid function name
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-posts
- db_upgraded
- widget_theysaidso_widget
- can_compress_scripts
- theysaidso_admin_options
- 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 applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The following issues need your attention
- 2× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/booking-works/templates/wp_ca_rentable_items.php
- > /wp-content/plugins/booking-works/templates/wp_ca_ticket_view.php
- 8× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_the_terms() in wp-content/plugins/booking-works/templates/wp_ca_edit_fields.php:14
- > PHP Notice
Undefined variable: is_edit in wp-content/plugins/booking-works/templates/wp_ca_rentable_items.php on line 556
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/booking-works/inc/functions-user.php:3
- > PHP Notice
Undefined variable: is_edit in wp-content/plugins/booking-works/templates/wp_ca_rentable_items.php on line 546
- > PHP Fatal error
Uncaught Error: Call to undefined function the_title() in wp-content/plugins/booking-works/templates/wp_ca_rentable_items.php:572
- > PHP Fatal error
Uncaught Error: Call to undefined function WC() in wp-content/plugins/booking-works/templates/wp_ca_calendar_items.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/booking-works/inc/wp_ca_settings.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/booking-works/templates/wp_ca_ticket_view.php:550
- > 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 96% from 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
2 plugin tags: calendars, bookings
booking-works/index.php 92% from 13 tests
The principal PHP file in "Booking Works" v. 1.0.3 is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("booking-works.php" instead of "index.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin10,609 lines of code in 28 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 9 | 3,577 | 434 | 5,054 |
SVG | 5 | 0 | 4 | 2,764 |
CSS | 7 | 1,494 | 21 | 1,571 |
JavaScript | 7 | 1,069 | 649 | 1,220 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.48 |
Average class complexity | 19.00 |
▷ Minimum class complexity | 19.00 |
▷ Maximum class complexity | 19.00 |
Average method complexity | 4.20 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 11.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 6 | |
▷ Static methods | 6 | 100.00% |
▷ Public methods | 5 | 83.33% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 16.67% |
Functions | 96 | |
▷ Named functions | 88 | 91.67% |
▷ Anonymous functions | 8 | 8.33% |
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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
6 PNG files occupy 0.06MB with 0.03MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/check0.png | 3.83KB | 1.06KB | ▼ 72.38% |
images/check2.png | 2.15KB | 1.61KB | ▼ 25.43% |
images/step1.png | 14.45KB | 5.95KB | ▼ 58.80% |
images/step3.png | 16.11KB | 6.71KB | ▼ 58.36% |
images/check1.png | 5.13KB | 1.89KB | ▼ 63.13% |