Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.09MB] [CPU: ▼356.31ms] Passed 4 tests
This is a short check of server-side resources used by YouLive to Travel
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.70 ▲0.18 | 54.61 ▲4.95 |
Dashboard /wp-admin | 3.53 ▲0.12 | 31.68 ▼2.22 |
Posts /wp-admin/edit.php | 3.75 ▲0.11 | 35.75 ▼8.80 |
Add New Post /wp-admin/post-new.php | 7.00 ▲0.03 | 91.39 ▼1,410.84 |
Media Library /wp-admin/upload.php | 3.40 ▲0.11 | 23.77 ▼3.38 |
Server storage [IO: ▲1.15MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 35 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
This is an overview of browser requirements for YouLive to Travel
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,962 ▲203 | 16.64 ▲1.03 | 14.81 ▲8.92 | 2.75 ▲0.47 |
Dashboard /wp-admin | 2,915 ▲54 | 6.29 ▲0.09 | 117.36 ▼12.04 | 178.59 ▲20.75 |
Posts /wp-admin/edit.php | 2,712 ▲18 | 3.27 ▲0.04 | 63.92 ▼0.74 | 142.35 ▼0.72 |
Add New Post /wp-admin/post-new.php | 1,603 ▼157 | 16.36 ▼0.47 | 409.79 ▼39.34 | 161.14 ▲1.83 |
Media Library /wp-admin/upload.php | 1,722 ▲24 | 5.54 ▲0.03 | 122.85 ▼16.74 | 199.39 ▼0.31 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The plugin uninstalled successfully, without leaving any zombie files or tables
Smoke tests 50% 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 no errors were found, this is by no means an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/youlive-to-travel/youlive_to_travel.php
- 3× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/youlive-to-travel/trip_manager/classes/class.youli_trip_manager_admin_menu.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/youlive-to-travel/trip_manager/classes/class.youli_trip_manager_scripts.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/youlive-to-travel/trip_manager/classes/class.youli_trip_manager_shortcode.php:14
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side
Optimizations
Plugin configuration 90% from 29 tests
readme.txt Passed 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
10 plugin tags: booking, group trip, travel booking, adventure travel, youlivetotravel...
youlive-to-travel/youlive_to_travel.php 77% from 13 tests
The primary PHP file in "YouLive to Travel" version 1.13.7 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
- Domain Path: You should use only dashes and lowercase characters for the domain path ("trip-manager/languages")
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("youlive-to-travel.php" instead of "youlive_to_travel.php")
- Description: Please keep the plugin description shorter than 140 characters (currently 709 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Success! There were no dangerous files found in this plugin1,552 lines of code in 28 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 7 | 82 | 68 | 600 |
CSS | 3 | 82 | 11 | 490 |
JavaScript | 3 | 83 | 39 | 385 |
SVG | 15 | 5 | 0 | 77 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.54 |
Average class complexity | 20.60 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 60.00 |
Average method complexity | 7.12 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 48.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 16 | |
▷ Static methods | 3 | 18.75% |
▷ Public methods | 16 | 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 | 3 | |
▷ Global constants | 3 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
3 PNG files occupy 0.40MB with 0.16MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
trip_manager/images/youli-admin-icon.png | 0.85KB | 1.02KB | 0.00% |
trip_manager/images/map.png | 2.64KB | 1.28KB | ▼ 51.42% |
assets/screenshot-1.png | 402.46KB | 126.11KB | ▼ 68.67% |