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.19MB] [CPU: ▼5.82ms] Passed 4 tests
This is a short check of server-side resources used by Just Keeping Hotel Booking Records
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.65 ▲0.18 | 38.89 ▼17.38 |
Dashboard /wp-admin | 3.48 ▲0.18 | 48.23 ▼3.59 |
Posts /wp-admin/edit.php | 3.59 ▲0.24 | 44.49 ▼2.46 |
Add New Post /wp-admin/post-new.php | 6.17 ▲0.29 | 81.23 ▲0.16 |
Media Library /wp-admin/upload.php | 3.40 ▲0.17 | 35.16 ▲2.55 |
Accommodation /wp-admin/edit-tags.php?taxonomy=accommodation&post_type=just-my-hotel | 3.39 | 36.05 |
All Bookings /wp-admin/edit.php?post_type=just-my-booking | 3.35 | 31.49 |
All Hotels /wp-admin/edit.php?post_type=just-my-hotel | 3.44 | 32.06 |
Server storage [IO: ▲0.30MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 27 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-comments |
can_compress_scripts |
widget_recent-posts |
theysaidso_admin_options |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
A check of browser resources used by Just Keeping Hotel Booking Records
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,859 ▲88 | 14.47 ▼0.28 | 1.79 ▼1.04 | 44.80 ▼5.45 |
Dashboard /wp-admin | 2,237 ▲46 | 4.84 ▼1.04 | 111.64 ▲4.43 | 41.43 ▲0.97 |
Posts /wp-admin/edit.php | 2,120 ▲28 | 1.97 ▼0.07 | 37.72 ▼0.36 | 30.72 ▲0.91 |
Add New Post /wp-admin/post-new.php | 1,559 ▲40 | 23.33 ▲0.02 | 666.05 ▲71.27 | 54.79 ▲6.31 |
Media Library /wp-admin/upload.php | 1,419 ▲28 | 4.17 ▼0.07 | 98.04 ▼4.20 | 42.25 ▼3.87 |
Accommodation /wp-admin/edit-tags.php?taxonomy=accommodation&post_type=just-my-hotel | 1,267 | 2.14 | 26.26 | 27.34 |
All Bookings /wp-admin/edit.php?post_type=just-my-booking | 1,176 | 2.22 | 34.74 | 32.71 |
All Hotels /wp-admin/edit.php?post_type=just-my-hotel | 1,084 | 2.00 | 29.83 | 28.93 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- theysaidso_admin_options
- widget_recent-comments
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-posts
- db_upgraded
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Almost there, just fix the following server-side errors
- > GET request to /wp-admin/edit.php?post_type=just-my-booking
- > Warning in wp-content/plugins/just-keeping-hotel-booking-records/admin/class-my-booking.php+421
filemtime(): stat failed for wp-content/plugins/just-keeping-hotel-booking-records/admin/assets/js/custom_filter_handler.js
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following items
- 6× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function justkeepingrecords\\add_action() in wp-content/plugins/just-keeping-hotel-booking-records/admin/class-my-booking.php:30
- > PHP Fatal error
Uncaught Error: Call to undefined function test_name_space\\add_action() in wp-content/plugins/just-keeping-hotel-booking-records/admin/templates/class-hotelfilter.php:29
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/just-keeping-hotel-booking-records/admin/templates/location_HTML.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function justkeepingrecords\\add_action() in wp-content/plugins/just-keeping-hotel-booking-records/admin/class-hotelhandler.php:28
- > PHP Fatal error
Uncaught Error: Call to undefined function justkeepingrecords\\add_action() in wp-content/plugins/just-keeping-hotel-booking-records/admin/class-my-booking.php:30
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/just-keeping-hotel-booking-records/admin/templates/hotel_HTML.php:5
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Please take a look at the following user-side issues
- > GET request to /wp-admin/edit.php?post_type=just-my-booking
- > Network (severe)
wp-content/plugins/just-keeping-hotel-booking-records/admin/assets/js/custom_filter_handler.js?ver=6.3.1 - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes:
- Screenshots: These screenshots have no corresponding images in /assets: #1 (screenshot-1.png adding hotel), #2 (screenshot-2.png adding booking details manually)
just-keeping-hotel-booking-records/just-keeping-records.php 85% from 13 tests
The primary PHP file in "Just Keeping Hotel Booking Records" version 1.0 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("just-keeping-hotel-booking-records.php" instead of "just-keeping-records.php")
- Text Domain: The text domain should only use lowercase characters and dashes
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected744 lines of code in 14 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 10 | 160 | 225 | 662 |
JavaScript | 3 | 4 | 3 | 81 |
CSS | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.31 |
Average class complexity | 24.67 |
▷ Minimum class complexity | 7.00 |
▷ Maximum class complexity | 44.00 |
Average method complexity | 3.37 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 10.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 30 | |
▷ Static methods | 3 | 10.00% |
▷ Public methods | 30 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 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
2 PNG files occupy 0.17MB with 0.13MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-2.png | 82.83KB | 21.61KB | ▼ 73.91% |
screenshot-1.png | 92.89KB | 23.52KB | ▼ 74.67% |