Benchmarks
Plugin footprint 39% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Please fix the following installer errors
- The plugin did not install without errors
- > Warning in wp-content/plugins/jomres/jomres/libraries/jomres/cms_specific/wordpress/init_config_vars.php+40
include(wp-content/plugins/jomres//jomres/configuration.php): failed to open stream: No such file or directory
Server metrics [RAM: ▲0.11MB] [CPU: ▼0.02ms] Passed 4 tests
An overview of server-side resources used by Jomres Hotel Booking Engine for WordPress
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.57 ▲0.11 | 43.08 ▼2.43 |
Dashboard /wp-admin | 3.41 ▲0.11 | 53.40 ▲0.70 |
Posts /wp-admin/edit.php | 3.53 ▲0.17 | 51.56 ▲5.50 |
Add New Post /wp-admin/post-new.php | 6.00 ▲0.11 | 92.24 ▲1.84 |
Media Library /wp-admin/upload.php | 3.34 ▲0.11 | 37.23 ▼0.20 |
Server storage [IO: ▲33.98MB] [DB: ▲0.21MB] 33% from 3 tests
A short overview of filesystem and database impact
These are issues you should considerFilesystem usage must be lower than 25MB (currently using 33.98MB)
- You have illegally modified 3437 files (34,733.52KB) outside of "wp-content/plugins/jomres/" and "wp-content/uploads/"
- (new file) jomres/api/classes/all_api_features.class.php
- (new file) jomres/CHANGELOG_JOMRES
- (new file) jomres/.gitignore
- (new file) jomres/.gitattributes
- (new file) jomres/README.md
- (new file) jomres/INSTALL_JOMRES
- (new file) jomres/api/classes/call.class.php
- (new file) jomres/admin.php
- (new file) jomres/api/.htaccess
- (new file) jomres/LICENSE
- ...
Filesystem: 3,452 new files
Database: 71 new tables, 7 new options
New tables |
---|
wp_jomres_rates |
wp_jomres_gdpr_optins |
wp_jomres_webhooks_integrations |
wp_jomresportal_c_rates |
wp_jomcomp_tarifftypes |
wp_jomres_customertypes |
wp_jomres_reviews_ratings_detail |
wp_jomcomp_tarifftype_rate_xref |
wp_jomres_images |
wp_jomres_room_classes |
... |
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-posts |
db_upgraded |
can_compress_scripts |
jomres_wp_plugin_version |
widget_recent-comments |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Jomres Hotel Booking Engine for WordPress: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,812 ▲41 | 13.28 ▼1.02 | 1.76 ▼0.36 | 41.89 ▼2.10 |
Dashboard /wp-admin | 2,221 ▲33 | 5.86 ▲0.95 | 100.62 ▼13.66 | 42.41 ▼1.12 |
Posts /wp-admin/edit.php | 2,101 ▲12 | 2.00 ▲0.01 | 33.82 ▼5.39 | 34.85 ▼0.34 |
Add New Post /wp-admin/post-new.php | 1,543 ▲24 | 23.44 ▲0.29 | 638.12 ▲17.04 | 57.14 ▲2.18 |
Media Library /wp-admin/upload.php | 1,397 ▲15 | 4.22 ▼0.05 | 106.37 ▲3.00 | 47.48 ▲4.61 |
Uninstaller [IO: ▲33.92MB] [DB: ▲0.21MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
- The uninstall procedure failed, leaving 71 tables in the database
- wp_jomresportal_invoices_transactions
- wp_jomres_partners
- wp_jomres_tax_rules
- wp_jomres_regions
- wp_jomres_guest_profile
- wp_jomres_invoice_pii_sellers
- wp_jomresportal_lineitems
- wp_jomres_hotel_features_categories
- wp_jomresportal_subscriptions
- wp_jomres_hotel_features
- ...
- The uninstall procedure has failed, leaving 6 options in the database
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-comments
- widget_theysaidso_widget
- widget_recent-posts
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though everything seems fine, this is not an exhaustive test
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
Almost there! Just fix the following items
- 99× PHP files perform the action of outputting non-empty strings when accessed directly (only 10 are shown):
- > /wp-content/plugins/jomres/jomres/libraries/packages/vendor/stripe/stripe-php/update_certs.php
- > /wp-content/plugins/jomres/jomres/libraries/jomres/cms_specific/joomla4/cms_specific_installation.php
- > /wp-content/plugins/jomres/jomres/core-minicomponents/j16000property_approvals.class.php
- > /wp-content/plugins/jomres/jomres/core-minicomponents/j04950translation_definitions_room_features.class.php
- > /wp-content/plugins/jomres/jomres/libraries/jomres/cms_specific/wordpress/cms_specific_endrun.php
- > /wp-content/plugins/jomres/jomres/assets/templates/bootstrap5/frontend/main.php
- > /wp-content/plugins/jomres/jomres/core-minicomponents/j06002delete_tariff_advanced.class.php
- > /wp-content/plugins/jomres/jomres/core-minicomponents/j00501xtariffsenhanced.class.php
- > /wp-content/plugins/jomres/jomres/libraries/jomres/cms_specific/joomla4/cms_specific_functions.php
- > /wp-content/plugins/jomres/jomres/language/fr-FR.php
- 1835× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Aws\\AwsClient' not found in wp-content/plugins/jomres/jomres/libraries/packages/vendor/aws/aws-sdk-php/src/Organizations/OrganizationsClient.php:111
- > PHP Fatal error
Uncaught Error: Interface 'Symfony\\Component\\OptionsResolver\\Exception\\ExceptionInterface' not found in wp-content/plugins/jomres/jomres/libraries/packages/vendor/symfony/options-resolver/Exception/AccessException.php:20
- > PHP Fatal error
Uncaught Error: Class 'Aws\\AwsClient' not found in wp-content/plugins/jomres/jomres/libraries/packages/vendor/aws/aws-sdk-php/src/Swf/SwfClient.php:84
- > PHP Fatal error
Uncaught Error: Class 'Aws\\Exception\\AwsException' not found in wp-content/plugins/jomres/jomres/libraries/packages/vendor/aws/aws-sdk-php/src/ServerlessApplicationRepository/Exception/ServerlessApplicationRepositoryException.php:9
- > PHP Fatal error
Uncaught Error: Class 'Aws\\AwsClient' not found in wp-content/plugins/jomres/jomres/libraries/packages/vendor/aws/aws-sdk-php/src/ManagedBlockchain/ManagedBlockchainClient.php:49
- > PHP Fatal error
Uncaught Error: Class 'HTMLPurifier_AttrDef_HTML_Pixels' not found in wp-content/plugins/jomres/jomres/libraries/packages/vendor/ezyang/htmlpurifier/library/HTMLPurifier/AttrDef/HTML/Length.php:10
- > PHP Fatal error
Uncaught Error: Interface 'GuzzleHttp\\Promise\\PromisorInterface' not found in wp-content/plugins/jomres/jomres/libraries/packages/vendor/aws/aws-sdk-php/src/S3/Transfer.php:18
- > PHP Fatal error
Uncaught Error: Class 'Aws\\Exception\\AwsException' not found in wp-content/plugins/jomres/jomres/libraries/packages/vendor/aws/aws-sdk-php/src/ConnectParticipant/Exception/ConnectParticipantException.php:9
- > PHP Fatal error
Uncaught Error: Class 'HTMLPurifier_URIFilter' not found in wp-content/plugins/jomres/jomres/libraries/packages/vendor/ezyang/htmlpurifier/library/HTMLPurifier/URIFilter/HostBlacklist.php:7
- > PHP Fatal error
Uncaught Error: Class 'HTMLPurifier_AttrDef_URI' not found in wp-content/plugins/jomres/jomres/libraries/packages/vendor/ezyang/htmlpurifier/library/HTMLPurifier/AttrDef/CSS/URI.php:12
- > 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)
Everything seems fine, but this is not an exhaustive test
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
8 plugin tags: hotel, reservations, jomres, hotel booking, booking engine...
jomres/jomres.php 92% from 13 tests
The entry point to "Jomres Hotel Booking Engine for WordPress" version 10.7.2 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
- Domain Path: The domain path points to an invalid folder, "/languages" does not exist
Code Analysis 0% from 3 tests
File types 0% from 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
It is important to fix the following items
- Do not distribute dangerous files with your plugin
- .crt - Security Certificate in Firefox, IE, Chrome, Safari
- ☣ wp-content/plugins/jomres/jomres/libraries/packages/vendor/stripe/stripe-php/data/ca-certificates.crt
- ☣ wp-content/plugins/jomres/jomres/libraries/vendor/stripe/stripe-php/data/ca-certificates.crt
- .bat - Batch File in Windows
- ☣ wp-content/plugins/jomres/jomres/libraries/packages/vendor/nesbot/carbon/bin/carbon.bat
- ☣ wp-content/plugins/jomres/jomres/libraries/packages/vendor/bin/jp.php.bat
- .cmd - Command Script in Windows
- ☣ wp-content/plugins/jomres/jomres/libraries/packages/node_modules/.bin/commonmark.cmd
- ☣ wp-content/plugins/jomres/jomres/libraries/packages/node_modules/.bin/tmpl.js.cmd
- .crt - Security Certificate in Firefox, IE, Chrome, Safari
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 1,847 | 158,714 | 160,892 | 813,432 |
PHP | 4,918 | 75,260 | 171,267 | 426,565 |
CSS | 332 | 11,802 | 4,324 | 142,609 |
HTML | 1,091 | 6,174 | 3,906 | 63,885 |
SVG | 519 | 0 | 2 | 39,132 |
Markdown | 169 | 8,869 | 0 | 21,718 |
LESS | 176 | 2,913 | 3,527 | 17,751 |
JSON | 148 | 42 | 0 | 17,559 |
Sass | 110 | 1,387 | 1,176 | 7,717 |
XSD | 3 | 92 | 48 | 2,803 |
TypeScript | 6 | 308 | 1,108 | 1,789 |
XML | 24 | 50 | 6 | 525 |
YAML | 17 | 28 | 9 | 306 |
make | 5 | 38 | 4 | 102 |
reStructuredText | 2 | 56 | 29 | 89 |
diff | 1 | 13 | 43 | 46 |
Bourne Shell | 6 | 6 | 1 | 44 |
CoffeeScript | 1 | 8 | 0 | 36 |
DOS Batch | 4 | 0 | 0 | 22 |
INI | 4 | 24 | 70 | 17 |
Dockerfile | 1 | 8 | 0 | 10 |
PHP code 0% from 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
The following items need your attention
- Cyclomatic complexity of classes should be reduced to less than 1000 (currently 7,031)
- Method cyclomatic complexity should be reduced to less than 100 (currently 460)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.22 |
Average class complexity | 15.63 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 7,031.00 |
Average method complexity | 4.70 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 460.00 |
Code structure | ||
---|---|---|
Namespaces | 631 | |
Interfaces | 137 | |
Traits | 69 | |
Classes | 2,880 | |
▷ Abstract classes | 69 | 2.40% |
▷ Concrete classes | 2,811 | 97.60% |
▷ Final classes | 40 | 1.42% |
Methods | 12,916 | |
▷ Static methods | 1,420 | 10.99% |
▷ Public methods | 10,784 | 83.49% |
▷ Protected methods | 849 | 6.57% |
▷ Private methods | 1,283 | 9.93% |
Functions | 1,433 | |
▷ Named functions | 750 | 52.34% |
▷ Anonymous functions | 683 | 47.66% |
Constants | 3,001 | |
▷ Global constants | 337 | 11.23% |
▷ Class constants | 2,664 | 88.77% |
▷ Public constants | 2,664 | 100.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
1328 compressed PNG files occupy 2.93MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
jomres/uploadedimages/pfeatures/medium/entrance_fees.png | 0.25KB | 0.26KB | 0.00% |
jomres/uploadedimages/pfeatures/medium/fees_pound.png | 0.39KB | 0.40KB | 0.00% |
jomres/assets/images/icons/pfeatures/canoeing.png | 0.56KB | 0.56KB | 0.00% |
jomres/uploadedimages/pfeatures/medium/groups.png | 0.25KB | 0.26KB | 0.00% |
jomres/uploadedimages/pfeatures/medium/shower_only.png | 0.53KB | 0.54KB | 0.00% |