Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.09MB] [CPU: ▼8.17ms] Passed 4 tests
Analyzing server-side resources used by Contact Form in Product Tab WooCommerce by Themeqx.com
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.56 ▲0.09 | 41.70 ▲3.02 |
Dashboard /wp-admin | 3.40 ▲0.05 | 45.60 ▼16.77 |
Posts /wp-admin/edit.php | 3.51 ▲0.15 | 50.82 ▼2.57 |
Add New Post /wp-admin/post-new.php | 6.00 ▲0.11 | 87.51 ▼14.45 |
Media Library /wp-admin/upload.php | 3.32 ▲0.09 | 36.41 ▲1.10 |
CFPTWC /wp-admin/edit.php?post_type=cfptwc_msgs | 3.36 | 37.22 |
Add New /wp-admin/post-new.php?post_type=cfptwc_msgs | 3.36 | 41.08 |
CFPTWC Settings /wp-admin/edit.php?post_type=cfptwc_msgs&page=cfptwc | 3.35 | 33.08 |
Server storage [IO: ▲0.06MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 20 new files
Database: no new tables, 8 new options
New WordPress options |
---|
themeqx_cfptwc_option |
db_upgraded |
widget_recent-posts |
theysaidso_admin_options |
widget_recent-comments |
widget_theysaidso_widget |
themeqx_cfptwc_version |
can_compress_scripts |
Browser metrics Passed 4 tests
A check of browser resources used by Contact Form in Product Tab WooCommerce by Themeqx.com
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,924 ▲178 | 13.64 ▼0.64 | 5.99 ▲4.47 | 43.51 ▼1.98 |
Dashboard /wp-admin | 2,243 ▲55 | 4.92 ▼0.96 | 98.24 ▲0.02 | 38.13 ▼2.22 |
Posts /wp-admin/edit.php | 2,129 ▲40 | 2.07 ▲0.01 | 40.88 ▲0.22 | 33.74 ▼0.40 |
Add New Post /wp-admin/post-new.php | 1,546 ▲22 | 23.07 ▼0.07 | 676.86 ▲67.45 | 52.79 ▼1.32 |
Media Library /wp-admin/upload.php | 1,425 ▲40 | 4.23 ▼0.02 | 96.12 ▼0.62 | 40.73 ▼1.14 |
CFPTWC /wp-admin/edit.php?post_type=cfptwc_msgs | 1,087 | 2.00 | 33.95 | 29.50 |
Add New /wp-admin/post-new.php?post_type=cfptwc_msgs | 1,565 | 2.61 | 50.14 | 58.83 |
CFPTWC Settings /wp-admin/edit.php?post_type=cfptwc_msgs&page=cfptwc | 1,269 | 1.99 | 31.05 | 46.27 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
- Zombie WordPress options were found after uninstall: 8 options
- themeqx_cfptwc_version
- widget_theysaidso_widget
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-posts
- widget_recent-comments
- db_upgraded
- themeqx_cfptwc_option
Smoke tests 50% 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 0% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The following issues need your attention
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/contact-from-product-tab-woocommerce/admin/view/themeqx_promotions.php
- 10× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Warning
Use of undefined constant CFPTWC_DIR - assumed 'CFPTWC_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/contact-from-product-tab-woocommerce/views/contact_msgs_view_meta_box.php on line 4
- > PHP Warning
include(CFPTWC_DIR/admin/view/themeqx_promotions.php): failed to open stream: No such file or directory in wp-content/plugins/contact-from-product-tab-woocommerce/views/contact_msgs_view_meta_box.php on line 4
- > PHP Fatal error
Uncaught Error: Call to undefined function get_cfptwc_option() in wp-content/plugins/contact-from-product-tab-woocommerce/views/emails/response_email_after_contact.php:34
- > PHP Fatal error
Uncaught Error: Call to undefined function get_cfptwc_option() in wp-content/plugins/contact-from-product-tab-woocommerce/views/emails/admin_email_notification.php:34
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/contact-from-product-tab-woocommerce/views/contact_msgs_view_meta_box.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/contact-from-product-tab-woocommerce/admin/view/edit_custom_field.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/contact-from-product-tab-woocommerce/contact-from-product-tab-woocommerce.php:19
- > PHP Fatal error
Uncaught Error: Call to undefined function the_permalink() in wp-content/plugins/contact-from-product-tab-woocommerce/views/themeqx_cfptwc_tab.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function maybe_unserialize() in wp-content/plugins/contact-from-product-tab-woocommerce/admin/view/settings_general_tab.php:4
- > PHP Warning
include(): Failed opening 'CFPTWC_DIR/admin/view/themeqx_promotions.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/contact-from-product-tab-woocommerce/views/contact_msgs_view_meta_box.php on line 4
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
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
6 plugin tags: message, woocommerce, form, communication, contact...
contact-from-product-tab-woocommerce/contact-from-product-tab-woocommerce.php 92% from 13 tests
This is the main PHP file of "Contact Form in Product Tab WooCommerce by Themeqx.com" version 2.0.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
The following require your attention:
- Requires at least: The required version number did not match the one declared in readme.txt ("3.0.1" instead of "4.0")
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
Everything looks great! No dangerous files found in this plugin939 lines of code in 16 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 12 | 224 | 106 | 821 |
JavaScript | 2 | 8 | 6 | 55 |
Markdown | 1 | 21 | 0 | 32 |
CSS | 1 | 0 | 0 | 31 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.31 |
Average class complexity | 5.67 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 12.00 |
Average method complexity | 1.74 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 11.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 19 | |
▷ Static methods | 3 | 15.79% |
▷ Public methods | 19 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 4 | |
▷ Named functions | 4 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 4 | 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