Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.01MB] [CPU: ▼7.18ms] Passed 4 tests
A check of server-side resources used by Import hotels from CSV for Booking.com affiliates
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 37.40 ▼4.32 |
Dashboard /wp-admin | 3.33 ▼0.02 | 49.49 ▼11.63 |
Posts /wp-admin/edit.php | 3.44 ▲0.09 | 52.27 ▲2.74 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.02 | 98.11 ▼13.04 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 38.83 ▲0.26 |
Import hotels for Booking.com affiliates /wp-admin/options-general.php?page=ihfc-settings-page | 3.22 | 30.18 |
Server storage [IO: ▲0.45MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 23 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-comments |
can_compress_scripts |
theysaidso_admin_options |
db_upgraded |
widget_recent-posts |
Browser metrics Passed 4 tests
Checking browser requirements for Import hotels from CSV for Booking.com affiliates
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,897 ▲136 | 13.40 ▼1.16 | 8.89 ▲7.20 | 46.61 ▲3.48 |
Dashboard /wp-admin | 2,199 ▲28 | 5.62 ▲0.09 | 83.61 ▼5.97 | 44.91 ▼1.06 |
Posts /wp-admin/edit.php | 2,104 ▲1 | 2.02 ▲0.01 | 40.79 ▲4.60 | 37.99 ▲1.37 |
Add New Post /wp-admin/post-new.php | 1,531 ▲5 | 23.26 ▲0.04 | 609.06 ▼51.49 | 46.47 ▼4.19 |
Media Library /wp-admin/upload.php | 1,401 ▼2 | 4.19 ▼0.04 | 98.86 ▼4.12 | 43.59 ▼4.06 |
Import hotels for Booking.com affiliates /wp-admin/options-general.php?page=ihfc-settings-page | 811 | 2.01 | 24.44 | 29.65 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- db_upgraded
- can_compress_scripts
- widget_recent-comments
- theysaidso_admin_options
- widget_recent-posts
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test
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
The following issues need your attention
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/import-hotels-from-csv-for-bookingcom-affiliates/import-hotels-from-csv-for-bookingcom-affiliates.php
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
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 require attention:
- Screenshots: These screenshots do not have images: #1 (First of all you need to downdoad from "Booking.com Affiliate Partner Center" the hotels datasets (TSV files).), #2 (Once you upload the hotels datasets to
/tsv-uploads/. You need to Generate cache files.), #3 (Create a post draft as template, using (customization fields, adding translations, categories, etc etc).), #4 (Insert destinations ID and the draft post ID (template already created) and click for validation.), #5 (The destination id exists in the TSV files and the post ID is valid as hotel template. You can continue by clicking Import hotels), #6 (Impoer RESULTS. List of hotels (posts, status, languages) imported or updated. Only import or modified hotels 10 each time.), #7 (List of posts created (ex. portfolios categories Hotels and Mojacar), By default created as Draft, though It can be force to publish), #8 (Final post created. {{Name of field}} have been replaced by the hotel value.Ex. {{hotel_name}} => Real name of the hotel)
import-hotels-from-csv-for-bookingcom-affiliates/import-hotels-from-csv-for-bookingcom-affiliates.php 92% from 13 tests
The primary PHP file in "Import hotels from CSV for Booking.com affiliates" version 0.8.2 is used by WordPress to initiate all plugin functionality
The following require your attention:
- Text Domain: The text domain name must use dashes instead of underscores, and it must be lowercase
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Good job! No executable or dangerous file extensions detected1,193 lines of code in 11 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 9 | 165 | 159 | 1,150 |
CSS | 1 | 7 | 0 | 35 |
JavaScript | 1 | 0 | 0 | 8 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.24 |
Average class complexity | 18.12 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 49.00 |
Average method complexity | 2.27 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 12.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 108 | |
▷ Static methods | 5 | 4.63% |
▷ Public methods | 89 | 82.41% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 19 | 17.59% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 13 | |
▷ Global constants | 13 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
No PNG images were found in this plugin