Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
These installer errors require your attention
- The plugin did not install without errors
- > Deprecated in wp-content/plugins/chat-forms/wpcform-post-type.php+367
Unparenthesized `a ? b : c ? d : e` is deprecated. Use either `(a ? b : c) ? d : e` or `a ? b : (c ? d : e)`
Server metrics [RAM: ▼1.72MB] [CPU: ▼55.11ms] Passed 4 tests
A check of server-side resources used by Chat Forms
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.28 ▼1.19 | 5.82 ▼36.93 |
Dashboard /wp-admin | 2.30 ▼1.01 | 7.85 ▼46.72 |
Posts /wp-admin/edit.php | 2.30 ▼1.06 | 9.04 ▼38.76 |
Add New Post /wp-admin/post-new.php | 2.30 ▼3.60 | 7.89 ▼98.04 |
Media Library /wp-admin/upload.php | 2.30 ▼0.94 | 8.69 ▼24.49 |
Chat Forms /wp-admin/edit.php?post_type=wpcform | 2.30 | 8.15 |
Form Submission Log /wp-admin/edit.php?post_type=wpcform&page=wpcform-entry-log-page | 2.30 | 7.92 |
Add New Chat Form /wp-admin/post-new.php?post_type=wpcform | 2.30 | 7.62 |
Server storage [IO: ▲0.44MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 29 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-posts |
widget_recent-comments |
db_upgraded |
theysaidso_admin_options |
wpcform_options |
can_compress_scripts |
Browser metrics Passed 4 tests
A check of browser resources used by Chat Forms
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,916 ▲170 | 13.41 ▼1.21 | 7.74 ▲6.01 | 41.11 ▼3.57 |
Dashboard /wp-admin | 2,226 ▲46 | 5.52 ▼0.10 | 91.75 ▼3.92 | 75.93 ▲35.43 |
Posts /wp-admin/edit.php | 2,149 ▲52 | 1.99 ▼0.02 | 39.12 ▲3.40 | 34.81 ▲1.64 |
Add New Post /wp-admin/post-new.php | 1,564 ▲36 | 23.01 ▼0.04 | 733.02 ▲96.65 | 61.19 ▲7.89 |
Media Library /wp-admin/upload.php | 1,446 ▲55 | 4.24 ▼0.00 | 103.75 ▲6.29 | 74.33 ▲28.20 |
Chat Forms /wp-admin/edit.php?post_type=wpcform | 1,165 | 1.92 | 33.39 | 30.96 |
Form Submission Log /wp-admin/edit.php?post_type=wpcform&page=wpcform-entry-log-page | 1,098 | 2.02 | 25.17 | 32.02 |
Add New Chat Form /wp-admin/post-new.php?post_type=wpcform | 1,721 | 2.64 | 57.74 | 84.37 |
Chat Forms /wp-admin/wpcform-options.php | 26 | 0.42 | 0.09 | 16.64 |
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
These items require your attention
- This plugin did not uninstall without warnings or errors
- > Deprecated in wp-content/plugins/chat-forms/wpcform-post-type.php+367
Unparenthesized `a ? b : c ? d : e` is deprecated. Use either `(a ? b : c) ? d : e` or `a ? b : (c ? d : e)`
- Zombie WordPress options were found after uninstall: 7 options
- can_compress_scripts
- db_upgraded
- widget_theysaidso_widget
- widget_recent-posts
- widget_recent-comments
- theysaidso_admin_options
- wpcform_options
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Almost there, just fix the following server-side errors
- 4 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=wpcform
- > Deprecated in wp-content/plugins/chat-forms/wpcform-post-type.php+367
Unparenthesized `a ? b : c ? d : e` is deprecated. Use either `(a ? b : c) ? d : e` or `a ? b : (c ? d : e)`
SRP 50% 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
Please fix the following
- 6× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Warning
Use of undefined constant WP_PLUGIN_DIR - assumed 'WP_PLUGIN_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/chat-forms/wpcform-core.php on line 21
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/chat-forms/wpcform-core.php:21
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/chat-forms/wpcform-core.php:21
- > PHP Fatal error
Uncaught Error: Call to undefined function current_user_can() in wp-content/plugins/chat-forms/wpcform-logging.php:28
- > PHP Warning
Use of undefined constant WP_PLUGIN_DIR - assumed 'WP_PLUGIN_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/chat-forms/wpcform-core.php on line 21
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/chat-forms/wpcform-post-type.php:24
- > PHP Warning
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Please fix the following browser errors
- > GET request to /wp-admin/wpcform-options.php
- > Network (severe)
wp-admin/wpcform-options.php - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 93% 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
7 plugin tags: spreadsheet, forms, google forms, google docs, chat forms...
chat-forms/index.php 85% from 13 tests
The main file in "Chat Forms" v. 1.0.2 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please take the time to fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("chat-forms.php" instead of "index.php")
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected6,910 lines of code in 20 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PO File | 4 | 697 | 789 | 2,010 |
JavaScript | 6 | 334 | 365 | 1,863 |
PHP | 5 | 343 | 815 | 1,622 |
CSS | 3 | 129 | 81 | 1,395 |
SVG | 2 | 0 | 0 | 20 |
PHP code Passed 2 tests
This is a very shot review 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.38 |
Average class complexity | 33.50 |
▷ Minimum class complexity | 27.00 |
▷ Maximum class complexity | 40.00 |
Average method complexity | 4.25 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 16.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 | 20 | |
▷ Static methods | 6 | 30.00% |
▷ Public methods | 20 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 51 | |
▷ Named functions | 51 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 16 | |
▷ Global constants | 16 | 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