Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▲0.67MB] [CPU: ▲7.73ms] Passed 4 tests
A check of server-side resources used by LSX Tour Operator
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.05 ▲0.59 | 45.78 ▲6.45 |
Dashboard /wp-admin | 4.02 ▲0.72 | 54.86 ▲8.80 |
Posts /wp-admin/edit.php | 4.07 ▲0.72 | 52.60 ▲5.80 |
Add New Post /wp-admin/post-new.php | 7.11 ▲1.22 | 108.90 ▲15.17 |
Media Library /wp-admin/upload.php | 3.88 ▲0.65 | 46.76 ▲9.88 |
Facilities /wp-admin/edit-tags.php?taxonomy=facility | 3.88 | 47.99 |
Accommodation Types /wp-admin/edit-tags.php?taxonomy=accommodation-type | 3.88 | 40.55 |
Tours /wp-admin/edit.php?post_type=tour | 4.01 | 47.22 |
Settings /wp-admin/admin.php?page=lsx-to-settings | 3.92 | 40.49 |
Continents /wp-admin/edit-tags.php?taxonomy=continent | 3.88 | 49.19 |
Accommodation /wp-admin/edit.php?post_type=accommodation | 4.01 | 42.45 |
Destinations /wp-admin/edit.php?post_type=destination | 4.01 | 44.37 |
Travel Styles /wp-admin/edit-tags.php?taxonomy=travel-style | 3.88 | 41.36 |
Brands /wp-admin/edit-tags.php?taxonomy=accommodation-brand | 3.88 | 42.00 |
Help /wp-admin/admin.php?page=to-help | 3.93 | 38.94 |
Server storage [IO: ▲11.82MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 1,146 new files
Database: no new tables, 9 new options
New WordPress options |
---|
widget_recent-posts |
widget_theysaidso_widget |
db_upgraded |
widget_recent-comments |
lsx_to_scporder_install |
widget_lsx_to_taxonomy_widget |
theysaidso_admin_options |
widget_lsx_to_widget |
can_compress_scripts |
Browser metrics Passed 4 tests
An overview of browser requirements for LSX Tour Operator
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,061 ▲326 | 13.74 ▼0.51 | 7.30 ▲5.45 | 39.70 ▼4.57 |
Dashboard /wp-admin | 2,336 ▲145 | 5.92 ▲1.03 | 99.52 ▼6.40 | 42.50 ▲1.16 |
Posts /wp-admin/edit.php | 2,221 ▲132 | 2.06 ▲0.05 | 38.29 ▲2.95 | 33.78 ▼0.82 |
Add New Post /wp-admin/post-new.php | 7,714 ▲6,179 | 25.90 ▲2.77 | 928.61 ▲254.62 | 54.79 ▼9.03 |
Media Library /wp-admin/upload.php | 1,518 ▲130 | 4.27 ▲0.10 | 96.41 ▼9.91 | 43.22 ▼1.29 |
Facilities /wp-admin/edit-tags.php?taxonomy=facility | 1,411 | 2.14 | 35.98 | 30.22 |
Accommodation Types /wp-admin/edit-tags.php?taxonomy=accommodation-type | 1,408 | 2.16 | 35.30 | 30.07 |
Tours /wp-admin/edit.php?post_type=tour | 1,221 | 2.34 | 38.10 | 28.59 |
Settings /wp-admin/admin.php?page=lsx-to-settings | 3,785 | 4.55 | 92.29 | 30.71 |
Continents /wp-admin/edit-tags.php?taxonomy=continent | 1,408 | 2.16 | 36.60 | 29.24 |
Accommodation /wp-admin/edit.php?post_type=accommodation | 1,226 | 2.36 | 36.87 | 29.71 |
Destinations /wp-admin/edit.php?post_type=destination | 1,222 | 2.39 | 38.40 | 28.69 |
Travel Styles /wp-admin/edit-tags.php?taxonomy=travel-style | 1,411 | 2.16 | 36.80 | 30.55 |
Brands /wp-admin/edit-tags.php?taxonomy=accommodation-brand | 1,411 | 2.13 | 38.66 | 31.41 |
Help /wp-admin/admin.php?page=to-help | 1,242 | 2.20 | 27.00 | 39.21 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- This plugin did not uninstall successfully, leaving 9 options in the database
- lsx_to_scporder_install
- widget_recent-posts
- widget_lsx_to_taxonomy_widget
- widget_theysaidso_widget
- widget_recent-comments
- can_compress_scripts
- db_upgraded
- theysaidso_admin_options
- widget_lsx_to_widget
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Please fix the following server-side errors
- > GET request to /wp-admin/admin.php?page=to-help
- > Notice in wp-content/plugins/tour-operator/includes/partials/add-ons.php+75
Undefined variable: teams_link_doc
SRP 50% from 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
Please take a closer look at the following
- 78× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'lsx\\legacy\\Tour_Operator' not found in wp-content/plugins/tour-operator/includes/classes/legacy/class-admin.php:20
- > PHP Fatal error
Uncaught Error: Call to undefined function lsx_entry_before() in wp-content/plugins/tour-operator/templates/content-destination.php:16
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html__() in wp-content/plugins/tour-operator/includes/taxonomies/config-travel-style.php:25
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/tour-operator/templates/archive-tour.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function lsx_entry_before() in wp-content/plugins/tour-operator/templates/content.php:9
- > PHP Fatal error
Uncaught Error: Class 'TO_Banners' not found in wp-content/plugins/tour-operator/vendor/lsx-banners/class-lsx-banners-frontend.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/tour-operator/templates/taxonomy-travel-style.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/tour-operator/includes/partials/display.php:29
- > PHP Fatal error
Uncaught Error: Call to undefined function lsx_entry_before() in wp-content/plugins/tour-operator/templates/content-destination-continent.php:12
- > PHP Fatal error
Uncaught Error: Class 'lsx\\Frame' not found in wp-content/plugins/tour-operator/includes/classes/class-metaboxes.php:20
- > 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
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that need to be fixed:
- Screenshots: These screenshots need descriptions #10, #6, #7, #8, #9 in tour-operator/assets to your readme.txt
tour-operator/tour-operator.php 92% from 13 tests
The main PHP file in "LSX Tour Operator" ver. 1.4.9 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
- Description: Please don't use more than 140 characters for the plugin description (currently 285 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Success! There were no dangerous files found in this plugin52,601 lines of code in 975 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 182 | 3,639 | 2,990 | 18,201 |
PHP | 124 | 3,914 | 5,714 | 17,348 |
Sass | 100 | 1,839 | 2,248 | 8,321 |
CSS | 47 | 1,233 | 188 | 6,312 |
PO File | 3 | 508 | 868 | 1,062 |
SVG | 503 | 0 | 0 | 513 |
Markdown | 2 | 139 | 0 | 354 |
YAML | 4 | 5 | 0 | 185 |
JSON | 5 | 0 | 0 | 138 |
XML | 2 | 13 | 9 | 63 |
Bourne Shell | 1 | 24 | 0 | 55 |
HTML | 2 | 1 | 0 | 49 |
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.45 |
Average class complexity | 29.78 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 196.00 |
Average method complexity | 4.35 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 96.00 |
Code structure | ||
---|---|---|
Namespaces | 4 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 64 | |
▷ Abstract classes | 2 | 3.12% |
▷ Concrete classes | 62 | 96.88% |
▷ Final classes | 0 | 0.00% |
Methods | 552 | |
▷ Static methods | 40 | 7.25% |
▷ Public methods | 523 | 94.75% |
▷ Protected methods | 6 | 1.09% |
▷ Private methods | 23 | 4.17% |
Functions | 184 | |
▷ Named functions | 178 | 96.74% |
▷ Anonymous functions | 6 | 3.26% |
Constants | 15 | |
▷ Global constants | 15 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
45 compressed PNG files occupy 0.18MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/markers/accommodation-marker.png | 1.06KB | 1.56KB | 0.00% |
assets/img/mystery-man-square.png | 2.46KB | 1.66KB | ▼ 32.70% |
vendor/Custom-Meta-Boxes/css/vendor/jquery-ui/images/ui-icons_888888_256x240.png | 4.86KB | 4.17KB | ▼ 14.14% |
assets/img/tour-operators-activities.png | 9.26KB | 9.94KB | 0.00% |
assets/img/tour-operators-search.png | 9.03KB | 9.56KB | 0.00% |