Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The following installer errors require your attention
- This plugin did not install gracefully
- > Notice in wp-content/plugins/travel-search/controllers/controller-admin.php+77
Undefined index: date_format
Server metrics [RAM: ▲0.22MB] [CPU: ▼2.16ms] Passed 4 tests
This is a short check of server-side resources used by Travel Search
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.99 ▲0.53 | 42.90 ▲2.76 |
Dashboard /wp-admin | 3.50 ▲0.20 | 50.39 ▲1.96 |
Posts /wp-admin/edit.php | 3.62 ▲0.26 | 49.53 ▼0.51 |
Add New Post /wp-admin/post-new.php | 6.11 ▲0.23 | 86.59 ▼12.83 |
Media Library /wp-admin/upload.php | 3.43 ▲0.20 | 39.10 ▲2.73 |
Travel Search /wp-admin/admin.php?page=tg_searchboxes | 4.35 | 38.92 |
Demo Page /wp-admin/admin.php?page=tg_searchboxes_demo | 4.34 | 36.51 |
Server storage [IO: ▲1.91MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 111 new files
Database: no new tables, 8 new options
New WordPress options |
---|
tg_searchboxes_options |
widget_tgsbwidget |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-comments |
db_upgraded |
widget_recent-posts |
can_compress_scripts |
Browser metrics Passed 4 tests
A check of browser resources used by Travel Search
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,978 ▲221 | 13.74 ▼0.60 | 10.45 ▲8.52 | 42.42 ▼2.11 |
Dashboard /wp-admin | 2,235 ▲43 | 5.86 ▲0.98 | 103.94 ▼2.57 | 74.77 ▲30.75 |
Posts /wp-admin/edit.php | 2,112 ▲20 | 2.00 ▼0.03 | 37.45 ▼2.91 | 35.96 ▲0.64 |
Add New Post /wp-admin/post-new.php | 1,624 ▲110 | 23.64 ▲5.98 | 771.11 ▲76.35 | 57.25 ▲4.82 |
Media Library /wp-admin/upload.php | 1,408 ▲17 | 4.23 ▲0.08 | 97.41 ▼3.78 | 71.41 ▲24.99 |
Travel Search /wp-admin/admin.php?page=tg_searchboxes | 5,251 | 6.78 | 199.59 | 72.01 |
Demo Page /wp-admin/admin.php?page=tg_searchboxes_demo | 3,977 | 2.86 | 77.50 | 52.36 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
- Zombie WordPress options were found after uninstall: 7 options
- widget_tgsbwidget
- widget_recent-comments
- widget_recent-posts
- widget_theysaidso_widget
- db_upgraded
- can_compress_scripts
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected
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
Almost there! Just fix the following items
- 7× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
require_once(): Failed opening required 'TG_SEARCHBOXES_ABSPATHcontrollers/controller-base.php' (include_path='.:/usr/share/php') in wp-content/plugins/travel-search/controllers/controller-frontend.php on line 11
- > PHP Warning
Use of undefined constant TG_SEARCHBOXES_ABSPATH - assumed 'TG_SEARCHBOXES_ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/travel-search/controllers/controller-admin.php on line 12
- > PHP Fatal error
require_once(): Failed opening required 'TG_SEARCHBOXES_ABSPATHcontrollers/controller-base.php' (include_path='.:/usr/share/php') in wp-content/plugins/travel-search/controllers/controller-admin.php on line 12
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/travel-search/classes/tgsbWidget.class.php:11
- > PHP Warning
require_once(TG_SEARCHBOXES_ABSPATHcontrollers/controller-base.php): failed to open stream: No such file or directory in wp-content/plugins/travel-search/controllers/controller-admin.php on line 12
- > PHP Warning
require_once(TG_SEARCHBOXES_ABSPATHcontrollers/controller-base.php): failed to open stream: No such file or directory in wp-content/plugins/travel-search/controllers/controller-frontend.php on line 11
- > PHP Warning
Use of undefined constant TG_SEARCHBOXES_ABSPATH - assumed 'TG_SEARCHBOXES_ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/travel-search/controllers/controller-frontend.php on line 11
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
These are user-side errors you should fix
- > GET request to /wp-admin/admin.php?page=tg_searchboxes
- > Other (severe) in unknown
chrome-error://chromewebdata/ - Refused to display 'https://developers.google.com/' in a frame because it set 'X-Frame-Options' to 'sameorigin'.
- > GET request to /wp-admin/admin.php?page=tg_searchboxes_demo
- > Console-api (warning) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,jquery-ui-core&ver=6.3.1 1:28609 "jQuery.Deferred exception: PPH is not defined" "ReferenceError: PPH is not defined\n at J (/wp-content/plugins/travel-search/js/tg_searchboxes.min.js?1_4_3&ver=6.3.1:1:40)\n at HTMLDocument.\u003Canonymous> (/wp-content/plugins/travel-search/js/tg_searchboxes.min.js?1_4_3&ver=6.3.1:29:279)\n at e (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,jquery-ui-core&ver=6.3.1:2:26990)\n at t (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,jquery-ui-core&ver=6.3.1:2:27292)" undefined
- > GET request to /wp-admin/admin.php?page=tg_searchboxes_demo
- > Javascript (severe) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,jquery-ui-core&ver=6.3.1 1:28721 Uncaught ReferenceError: PPH is not defined
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need your attention:
- Tags: You are using too many tags: 15 tag instead of maximum 10
- Screenshots: Add images for these screenshots: #1 (`Travel Search` box on the post page), #2 (`Travel Search` box in sidebar), #3 (Plugin's settings page inside the Wordpress admin interface), #4 (Plugin's Demo page inside the Wordpress admin interface), #5 (Insert button inside Wordpress visual editor), #6 (Pop-up box inside Wordpress visual editor), #7 (`Travel Search` box inside the post in Wordpress visual editor)
travel-search/travel-search.php Passed 13 tests
The primary PHP file in "Travel Search" version 1.4.4 is used by WordPress to initiate all plugin functionality
139 characters long description:
Travel Search Plugin by Travelgrove allows you to add Flights, Hotels, Vacations and Car Rentals searchboxes to any of your page and posts.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Success! There were no dangerous files found in this plugin7,617 lines of code in 50 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 19 | 226 | 980 | 4,213 |
PHP | 23 | 257 | 816 | 2,711 |
CSS | 7 | 37 | 93 | 529 |
HTML | 1 | 1 | 0 | 164 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.62 |
Average class complexity | 109.00 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 489.00 |
Average method complexity | 7.97 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 65.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 6 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 93 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 57 | 61.29% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 36 | 38.71% |
Functions | 8 | |
▷ Named functions | 8 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 11 | |
▷ Global constants | 11 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
40 PNG files occupy 1.21MB with 0.42MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
css/ui-lightness/images/ui-icons_ffd27a_256x240.png | 5.23KB | 4.11KB | ▼ 21.49% |
images/tg_searchboxes/search_button1.png | 1.40KB | 0.64KB | ▼ 54.18% |
css/ui-lightness/images/ui-bg_gloss-wave_35_f6a828_500x100.png | 3.67KB | 1.93KB | ▼ 47.53% |
images/tgsbdynamic.png | 19.06KB | 9.02KB | ▼ 52.66% |
css/ui-lightness/images/ui-bg_glass_100_fdf5ce_1x400.png | 0.12KB | 0.16KB | 0.00% |