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.23MB] [CPU: ▲3.47ms] Passed 4 tests
This is a short check of server-side resources used by Tour Booking
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.68 ▲0.21 | 49.08 ▲9.35 |
Dashboard /wp-admin | 3.54 ▲0.23 | 57.43 ▲5.52 |
Posts /wp-admin/edit.php | 3.64 ▲0.28 | 56.55 ▲3.80 |
Add New Post /wp-admin/post-new.php | 6.15 ▲0.26 | 93.05 ▼4.47 |
Media Library /wp-admin/upload.php | 3.46 ▲0.23 | 42.56 ▲9.03 |
Categories /wp-admin/edit-tags.php?taxonomy=category&post_type=tour_listing | 3.46 | 47.71 |
Tour Booking Settings /wp-admin/options-general.php?page=options_page_slug | 3.45 | 41.13 |
Add New /wp-admin/post-new.php?post_type=tour | 3.60 | 62.00 |
Tags /wp-admin/edit-tags.php?taxonomy=post_tag&post_type=tour | 3.46 | 45.21 |
Add New /wp-admin/post-new.php?post_type=tour_listing | 3.54 | 55.18 |
Categories /wp-admin/edit-tags.php?taxonomy=category&post_type=tour | 3.47 | 44.00 |
All Tours /wp-admin/edit.php?post_type=tour | 3.50 | 45.93 |
All Tour Listings /wp-admin/edit.php?post_type=tour_listing | 3.50 | 43.38 |
Tags /wp-admin/edit-tags.php?taxonomy=post_tag&post_type=tour_listing | 3.46 | 41.22 |
Server storage [IO: ▲0.34MB] [DB: ▲0.01MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 39 new files
Database: no new tables, 8 new options
New WordPress options |
---|
widget_tb_tour_selector |
can_compress_scripts |
widget_recent-comments |
widget_theysaidso_widget |
category_children |
theysaidso_admin_options |
widget_recent-posts |
db_upgraded |
Browser metrics Passed 4 tests
An overview of browser requirements for Tour Booking
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,980 ▲219 | 13.57 ▼0.78 | 9.78 ▲8.10 | 47.67 ▲4.92 |
Dashboard /wp-admin | 2,287 ▲113 | 5.71 ▲0.18 | 89.80 ▼0.71 | 44.80 ▲6.07 |
Posts /wp-admin/edit.php | 2,194 ▲94 | 2.31 ▲0.28 | 35.90 ▼5.98 | 36.45 ▼0.62 |
Add New Post /wp-admin/post-new.php | 1,605 ▲77 | 23.03 ▲0.01 | 658.03 ▲46.98 | 35.74 ▼16.32 |
Media Library /wp-admin/upload.php | 1,492 ▲95 | 4.39 ▲0.21 | 97.88 ▼13.66 | 42.10 ▼4.90 |
Categories /wp-admin/edit-tags.php?taxonomy=category&post_type=tour_listing | 1,555 | 2.07 | 32.76 | 34.33 |
Tour Booking Settings /wp-admin/options-general.php?page=options_page_slug | 2,308 | 3.06 | 81.43 | 29.80 |
Add New /wp-admin/post-new.php?post_type=tour | 2,813 | 8.05 | 210.05 | 75.42 |
Tags /wp-admin/edit-tags.php?taxonomy=post_tag&post_type=tour | 1,422 | 2.06 | 33.68 | 31.47 |
Add New /wp-admin/post-new.php?post_type=tour_listing | 1,853 | 2.99 | 60.69 | 30.71 |
Categories /wp-admin/edit-tags.php?taxonomy=category&post_type=tour | 1,558 | 2.07 | 33.26 | 34.55 |
All Tours /wp-admin/edit.php?post_type=tour | 1,216 | 2.25 | 33.93 | 28.93 |
All Tour Listings /wp-admin/edit.php?post_type=tour_listing | 1,207 | 2.21 | 33.68 | 31.47 |
Tags /wp-admin/edit-tags.php?taxonomy=post_tag&post_type=tour_listing | 1,422 | 2.03 | 32.74 | 31.10 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
- Zombie WordPress options were found after uninstall: 8 options
- widget_tb_tour_selector
- theysaidso_admin_options
- widget_recent-comments
- can_compress_scripts
- db_upgraded
- widget_recent-posts
- category_children
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP Passed 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Congratulations! This plugin passed the SRP test
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Please fix the following user-side errors
- > GET request to /wp-admin/post-new.php?post_type=tour
- > Console-api (warning) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=6.3.1 1:28609 "jQuery.Deferred exception: google is not defined" "ReferenceError: google is not defined\n at admin_map_initialize (/wp-content/plugins/tour-booking/admin/js/admin_scripts.js?ver=1.0:23:22)\n at HTMLDocument.\u003Canonymous> (/wp-content/plugins/tour-booking/admin/js/admin_scripts.js?ver=1.0:14:4)\n at e (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=6.3.1:2:26990)\n at t (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=6.3.1:2:27292)" undefined
- > GET request to /wp-admin/post-new.php?post_type=tour
- > Javascript (severe) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=6.3.1 1:28721 Uncaught ReferenceError: google is not defined
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
7 plugin tags: sightseeing, tourist agency, travel, tour, tourism...
tour-booking/tour-booking.php 92% from 13 tests
"Tour Booking" version 1.0.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please take the time to fix the following:
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin2,467 lines of code in 33 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 17 | 238 | 30 | 1,222 |
CSS | 3 | 93 | 20 | 452 |
PO File | 2 | 194 | 196 | 444 |
JavaScript | 3 | 38 | 14 | 200 |
SVG | 8 | 1 | 6 | 149 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.36 |
Average class complexity | 2.50 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 3.00 |
Average method complexity | 1.33 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 2.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 9 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 9 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 35 | |
▷ Named functions | 35 | 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
PNG files should be compressed to save space and minimize bandwidth usage
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
front/images/close.png | 0.91KB | 0.75KB | ▼ 18.07% |