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 gracefully, with no errors
Server metrics [RAM: ▲0.02MB] [CPU: ▼8.92ms] Passed 4 tests
Analyzing server-side resources used by Viator Integration For WP
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.03 | 37.17 ▼6.50 |
Dashboard /wp-admin | 3.34 ▼0.01 | 46.57 ▼16.00 |
Posts /wp-admin/edit.php | 3.39 ▲0.03 | 48.39 ▲4.19 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.05 | 83.53 ▼10.84 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 31.79 ▼2.32 |
Server storage [IO: ▲0.12MB] [DB: ▲0.07MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 18 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-comments |
widget_theysaidso_widget |
db_upgraded |
can_compress_scripts |
widget_recent-posts |
Browser metrics Passed 4 tests
A check of browser resources used by Viator Integration For WP
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,915 ▲168 | 14.40 ▼0.29 | 1.56 ▼0.13 | 41.37 ▼4.92 |
Dashboard /wp-admin | 2,323 ▲146 | 5.79 ▲0.13 | 102.27 ▲10.30 | 49.54 ▲4.21 |
Posts /wp-admin/edit.php | 2,231 ▲128 | 2.32 ▲0.35 | 49.32 ▲8.04 | 41.55 ▲8.98 |
Add New Post /wp-admin/post-new.php | 1,569 ▲43 | 23.19 ▼0.08 | 681.10 ▲18.58 | 54.45 ▲2.52 |
Media Library /wp-admin/upload.php | 1,528 ▲125 | 4.37 ▲0.17 | 104.28 ▲5.91 | 46.09 ▲3.13 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-comments
- widget_theysaidso_widget
- db_upgraded
- theysaidso_admin_options
- widget_recent-posts
- can_compress_scripts
Smoke tests 75% 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)
The smoke test was a success, however most plugin functionality was not tested
SRP 50% 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
Please take a closer look at the following
- 10× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Warning
require_once(VIATORWP_PLUGIN_DIRadmin/viator_admin_subpages.php): failed to open stream: No such file or directory in wp-content/plugins/viator-integration-for-wp/admin/settings.php on line 5
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/viator-integration-for-wp/admin/viator_admin_woocommerce.php:228
- > PHP Fatal error
require_once(): Failed opening required 'VIATORWP_PLUGIN_DIRadmin/viator_admin_subpages.php' (include_path='.:/usr/share/php') in wp-content/plugins/viator-integration-for-wp/admin/settings.php on line 5
- > PHP Warning
require_once(VIATORWP_PLUGIN_DIRfrontend/viator_add_product_custom_tabs.php): failed to open stream: No such file or directory in wp-content/plugins/viator-integration-for-wp/frontend/viator_frontend_shop.php on line 2
- > PHP Warning
Use of undefined constant VIATORWP_PLUGIN_DIR - assumed 'VIATORWP_PLUGIN_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/viator-integration-for-wp/admin/settings.php on line 5
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/viator-integration-for-wp/frontend/viator_add_product_custom_tabs.php:2
- > PHP Warning
Use of undefined constant VIATORWP_PLUGIN_DIR - assumed 'VIATORWP_PLUGIN_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/viator-integration-for-wp/frontend/viator_frontend_shop.php on line 2
- > PHP Fatal error
require_once(): Failed opening required 'VIATORWP_PLUGIN_DIRfrontend/viator_add_product_custom_tabs.php' (include_path='.:/usr/share/php') in wp-content/plugins/viator-integration-for-wp/frontend/viator_frontend_shop.php on line 2
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/viator-integration-for-wp/admin/viator_admin_api.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/viator-integration-for-wp/admin/vas-admin-cronjab-settings.php:2
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
5 plugin tags: sync, product, import, ecommerce, api
viator-integration-for-wp/viator-integration-for-wp.php 92% from 13 tests
"Viator Integration For WP" version 1.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
You should first fix the following items:
- Domain Path: The domain path is invalid: folder "/languages" does not exist
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Everything looks great! No dangerous files found in this plugin2,271 lines of code in 16 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 11 | 182 | 85 | 1,892 |
JavaScript | 2 | 20 | 7 | 242 |
CSS | 3 | 23 | 10 | 137 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.66 |
Average class complexity | 10.50 |
▷ Minimum class complexity | 8.00 |
▷ Maximum class complexity | 13.00 |
Average method complexity | 2.90 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 6.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 10 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 10 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 54 | |
▷ Named functions | 54 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 8 | |
▷ Global constants | 8 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
There were not PNG files found in your plugin