Benchmarks
Plugin footprint 65% 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.46MB] [CPU: ▼37.04ms] Passed 4 tests
An overview of server-side resources used by CC Travel
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.05 | 19.29 ▼19.53 |
Dashboard /wp-admin | 3.56 ▲0.25 | 28.20 ▼20.25 |
Posts /wp-admin/edit.php | 3.56 ▲0.20 | 24.10 ▼25.43 |
Add New Post /wp-admin/post-new.php | 3.56 ▼2.33 | 22.78 ▼81.88 |
Media Library /wp-admin/upload.php | 3.56 ▲0.33 | 30.62 ▼20.61 |
Tour /wp-admin/edit.php?post_type=cc_tour | 3.56 | 32.48 |
Booking /wp-admin/edit.php?post_type=cc_booking | 3.56 | 26.88 |
Travel Style /wp-admin/edit-tags.php?taxonomy=cc_travel_style&post_type=cc_tour | 3.56 | 23.72 |
Destination /wp-admin/edit-tags.php?taxonomy=cc_destination&post_type=cc_tour | 3.56 | 21.42 |
Add Tour /wp-admin/post-new.php?post_type=cc_tour | 3.56 | 23.39 |
Add Booking /wp-admin/post-new.php?post_type=cc_booking | 3.56 | 32.59 |
Server storage [IO: ▲3.09MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 154 new files
Database: no new tables, 11 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_cc_travel_widget_filter_by_departure_date |
widget_cc_travel_widget_filter_by_price |
can_compress_scripts |
widget_cc_travel_widget_filter_by_duration |
db_upgraded |
widget_recent-posts |
widget_theysaidso_widget |
widget_recent-comments |
_cc_travel_options |
... |
Browser metrics Passed 4 tests
An overview of browser requirements for CC Travel
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,273 ▲527 | 16.56 ▲2.38 | 15.01 ▲13.28 | 37.00 ▼9.56 |
Dashboard /wp-admin | 2,490 ▲299 | 7.45 ▲2.60 | 133.46 ▲22.60 | 43.30 ▼0.19 |
Posts /wp-admin/edit.php | 2,396 ▲310 | 3.74 ▲1.73 | 55.78 ▲21.27 | 41.32 ▲7.26 |
Add New Post /wp-admin/post-new.php | 1,651 ▲118 | 22.52 ▼0.58 | 656.84 ▲22.78 | 40.96 ▼9.53 |
Media Library /wp-admin/upload.php | 1,526 ▲135 | 5.04 ▲0.87 | 86.62 ▼11.58 | 43.29 ▲1.09 |
Tour /wp-admin/edit.php?post_type=cc_tour | 1,407 | 3.69 | 58.29 | 29.88 |
Booking /wp-admin/edit.php?post_type=cc_booking | 1,360 | 3.77 | 52.67 | 28.63 |
Travel Style /wp-admin/edit-tags.php?taxonomy=cc_travel_style&post_type=cc_tour | 1,576 | 3.55 | 51.81 | 30.45 |
Destination /wp-admin/edit-tags.php?taxonomy=cc_destination&post_type=cc_tour | 1,923 | 4.09 | 70.63 | 37.87 |
Add Tour /wp-admin/post-new.php?post_type=cc_tour | 4,705 | 9.42 | 223.25 | 75.73 |
Add Booking /wp-admin/post-new.php?post_type=cc_booking | 1,898 | 4.64 | 81.62 | 32.34 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
- Uninstall procedure had uncaught errors
- > User deprecated in wp-includes/functions.php+5453
Function get_page_by_title is deprecated since version 6.2.0! Use WP_Query instead.
- The uninstall procedure has failed, leaving 11 options in the database
- widget_cc_travel_widget_filter_by_departure_date
- widget_recent-comments
- widget_cc_travel_widget_filter_by_price
- db_upgraded
- theysaidso_admin_options
- widget_cc_travel_widget_filter_by_duration
- widget_recent-posts
- _cc_travel_options
- widget_theysaidso_widget
- widget_cc_travel_widget_filter_by_taxonomy
- ...
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Smoke test failed, please fix the following
- 40 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=cc_booking
- > User deprecated in wp-includes/functions.php+5453
Function get_page_by_title is deprecated since version 6.2.0! Use WP_Query instead.
- 6 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=cc_booking
- > Notice in wp-content/plugins/cc-travel/lib/ccfw/classes/metabox.class.php+73
Trying to access array offset on value of type bool
SRP 50% 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
The following issues need your attention
- 30× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function get_post_meta() in wp-content/plugins/cc-travel/templates/single/parts/banner.php:11
- > PHP Fatal error
Uncaught Error: Class 'CCFramework_Metabox' not found in wp-content/plugins/cc-travel/inc/class/metabox.php:9
- > PHP Fatal error
Uncaught Error: Class 'CC_Travel_Template' not found in wp-content/plugins/cc-travel/templates/content-single-tour.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html__() in wp-content/plugins/cc-travel/inc/config/metabox.php:15
- > PHP Fatal error
Uncaught Error: Call to undefined function get_the_permalink() in wp-content/plugins/cc-travel/templates/single/parts/title.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function cc_travel_get_tour_details() in wp-content/plugins/cc-travel/templates/single/parts/location.php:9
- > PHP Fatal error
Uncaught Error: Class 'CCFramework_Widget' not found in wp-content/plugins/cc-travel/widgets/filter-by-duration.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function cc_travel_tour_price_html() in wp-content/plugins/cc-travel/templates/single/parts/price.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function cc_travel_vc_shortcode_movie_default_params() in wp-content/plugins/cc-travel/shortcodes/tour-list/config.vc.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function get_post_meta() in wp-content/plugins/cc-travel/templates/single/parts/plan.php:11
- > 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 errors were detected
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that require attention:
- Screenshots: No descriptions were found for these screenshots #2, #3, #4, #5 in cc-travel/assets to your readme.txt
cc-travel/cc-travel.php Passed 13 tests
Analyzing the main PHP file in "CC Travel" version 1.0.0
17 characters long description:
Plugin for travel
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 plugin38,414 lines of code in 130 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JSON | 2 | 0 | 0 | 13,773 |
JavaScript | 18 | 2,377 | 1,036 | 9,699 |
CSS | 13 | 505 | 128 | 8,702 |
PHP | 95 | 1,659 | 1,468 | 5,542 |
SVG | 2 | 1 | 0 | 698 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.48 |
Average class complexity | 11.79 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 97.00 |
Average method complexity | 4.60 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 37.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 48 | |
▷ Abstract classes | 2 | 4.17% |
▷ Concrete classes | 46 | 95.83% |
▷ Final classes | 0 | 0.00% |
Methods | 144 | |
▷ Static methods | 14 | 9.72% |
▷ Public methods | 140 | 97.22% |
▷ Protected methods | 4 | 2.78% |
▷ Private methods | 0 | 0.00% |
Functions | 83 | |
▷ Named functions | 83 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 9 | |
▷ Global constants | 9 | 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
5 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
lib/ccfw/assets/images/checkerboard.png | 2.29KB | 2.54KB | 0.00% |
lib/ccfw/assets/images/chosen-sprite.png | 0.53KB | 0.88KB | 0.00% |
assets/images/config/grid-2.png | 2.94KB | 0.16KB | ▼ 94.73% |
lib/ccfw/assets/images/chosen-sprite@2x.png | 0.72KB | 0.83KB | 0.00% |
assets/images/config/grid-1.png | 2.90KB | 0.15KB | ▼ 94.99% |