Benchmarks
Plugin footprint 23% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
It is recommended to fix the following installer errors
- The plugin cannot be installed
- > Warning in wp-content/plugins/routee-contact-gathering/classes/class-rcg-ajax.php+10
Use of undefined constant get_routee_list - assumed 'get_routee_list' (this will throw an Error in a future version of PHP)
Server metrics [RAM: ▼1.97MB] [CPU: ▼62.08ms] Passed 4 tests
Server-side resources used by Routee Omnichannel Communication
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.03 ▼1.44 | 4.38 ▼42.13 |
Dashboard /wp-admin | 2.05 ▼1.30 | 6.40 ▼61.43 |
Posts /wp-admin/edit.php | 2.05 ▼1.31 | 5.60 ▼45.53 |
Add New Post /wp-admin/post-new.php | 2.05 ▼3.84 | 5.15 ▼99.22 |
Media Library /wp-admin/upload.php | 2.05 ▼1.18 | 5.17 ▼32.44 |
Routee settings /wp-admin/admin.php?page=wr-settings | 2.05 | 5.32 |
All forms /wp-admin/admin.php?page=wr-forms-list | 2.05 | 6.74 |
Form generator /wp-admin/admin.php?page=wr-form-generator | 2.05 | 5.32 |
Server storage [IO: ▲1.01MB] [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: 39 new files
Database: 4 new tables, 6 new options
New tables |
---|
wp_rcg_form_custom_fields |
wp_rcg_forms |
wp_rcg_form_fields |
wp_rcg_form_list |
New WordPress options |
---|
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-comments |
db_upgraded |
widget_recent-posts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Routee Omnichannel Communication
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,839 ▲93 | 13.58 ▼1.18 | 1.72 ▼0.08 | 43.56 ▼0.61 |
Dashboard /wp-admin | 2,245 ▲57 | 5.86 ▲0.96 | 109.76 ▼8.95 | 82.21 ▲36.47 |
Posts /wp-admin/edit.php | 2,130 ▲41 | 2.01 ▲0.01 | 34.57 ▼1.98 | 34.00 ▼1.04 |
Add New Post /wp-admin/post-new.php | 1,548 ▲34 | 17.52 ▼0.01 | 763.73 ▲67.88 | 51.29 ▼13.79 |
Media Library /wp-admin/upload.php | 1,418 ▲30 | 4.25 ▲0.02 | 98.74 ▼7.46 | 63.11 ▲16.38 |
Routee settings /wp-admin/admin.php?page=wr-settings | 846 | 2.05 | 24.08 | 28.64 |
All forms /wp-admin/admin.php?page=wr-forms-list | 915 | 2.06 | 30.10 | 27.80 |
Form generator /wp-admin/admin.php?page=wr-form-generator | 1,502 | 3.13 | 79.25 | 44.59 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 25% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- This plugin did not uninstall without warnings or errors
- > Warning in wp-content/plugins/routee-contact-gathering/classes/class-rcg-ajax.php+10
Use of undefined constant get_routee_list - assumed 'get_routee_list' (this will throw an Error in a future version of PHP)
- Zombie tables detected upon uninstall: 4 tables
- wp_rcg_form_custom_fields
- wp_rcg_form_list
- wp_rcg_form_fields
- wp_rcg_forms
- This plugin does not fully uninstall, leaving 6 options in the database
- can_compress_scripts
- widget_recent-comments
- widget_theysaidso_widget
- db_upgraded
- widget_recent-posts
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
These errors were triggered by the plugin
- 5 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=wr-form-generator
- > POST request to /wp-admin/admin-ajax.php?action=get_custom_field_list
- > Warning in wp-content/plugins/routee-contact-gathering/classes/class-rcg-ajax.php+10
Use of undefined constant get_routee_list - assumed 'get_routee_list' (this will throw an Error in a future version of PHP)
- 5 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=wr-form-generator
- > POST request to /wp-admin/admin-ajax.php?action=get_custom_field_list
- > Warning in wp-content/plugins/routee-contact-gathering/classes/class-rcg-ajax.php+11
Use of undefined constant delete_routee_list - assumed 'delete_routee_list' (this will throw an Error in a future version of PHP)
- 5 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=wr-form-generator
- > POST request to /wp-admin/admin-ajax.php?action=get_custom_field_list
- > Warning in wp-content/plugins/routee-contact-gathering/classes/class-rcg-ajax.php+12
Use of undefined constant contact_list - assumed 'contact_list' (this will throw an Error in a future version of PHP)
- 5 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=wr-form-generator
- > POST request to /wp-admin/admin-ajax.php?action=get_custom_field_list
- > Warning in wp-content/plugins/routee-contact-gathering/classes/class-rcg-ajax.php+13
Use of undefined constant delete_contact - assumed 'delete_contact' (this will throw an Error in a future version of PHP)
- 5 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=wr-form-generator
- > POST request to /wp-admin/admin-ajax.php?action=get_custom_field_list
- > Warning in wp-content/plugins/routee-contact-gathering/classes/class-rcg-ajax.php+14
Use of undefined constant form_generation - assumed 'form_generation' (this will throw an Error in a future version of PHP)
- 5 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=wr-form-generator
- > POST request to /wp-admin/admin-ajax.php?action=get_custom_field_list
- > Warning in wp-content/plugins/routee-contact-gathering/classes/class-rcg-ajax.php+15
Use of undefined constant get_custom_field_list - assumed 'get_custom_field_list' (this will throw an Error in a future version of PHP)
- 5 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=wr-form-generator
- > POST request to /wp-admin/admin-ajax.php?action=get_custom_field_list
- > Warning in wp-content/plugins/routee-contact-gathering/classes/class-rcg-ajax.php+16
Use of undefined constant set_routee_field - assumed 'set_routee_field' (this will throw an Error in a future version of PHP)
- 5 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=wr-form-generator
- > POST request to /wp-admin/admin-ajax.php?action=get_custom_field_list
- > Warning in wp-content/plugins/routee-contact-gathering/classes/class-rcg-ajax.php+17
Use of undefined constant get_routee_custom_field_list - assumed 'get_routee_custom_field_list' (this will throw an Error in a future version of PHP)
- 5 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=wr-form-generator
- > POST request to /wp-admin/admin-ajax.php?action=get_custom_field_list
- > Warning in wp-content/plugins/routee-contact-gathering/classes/class-rcg-ajax.php+18
Use of undefined constant deactivate_apply - assumed 'deactivate_apply' (this will throw an Error in a future version of PHP)
- 10 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=wr-form-generator
- > POST request to /wp-admin/admin-ajax.php?action=get_custom_field_list
- > Warning in wp-content/plugins/routee-contact-gathering/classes/class-rcg-ajax.php+22
Use of undefined constant createContact - assumed 'createContact' (this will throw an Error in a future version of PHP)
- 11 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=wr-form-generator
- > POST request to /wp-admin/admin-ajax.php?action=get_custom_field_list
- > Notice in wp-content/plugins/routee-contact-gathering/classes/class-rcg-ajax.php+270
Trying to access array offset on value of type bool
- > GET request to /wp-admin/admin.php?page=wr-forms-list
- > Warning in wp-content/plugins/routee-contact-gathering/classes/class-rcg-admin-listing.php+71
Declaration of rcg_admin_listing::prepare_items($data) should be compatible with WP_List_Table::prepare_items()
- > GET request to /wp-admin/admin.php?page=wr-forms-list
- > User deprecated in wp-includes/functions.php+5737
Function get_bloginfo was called with an argument that is deprecated since version 2.2.0! The siteurl option is deprecated for the family of bloginfo() functions. Use the url option instead.
SRP Passed 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
Congratulations! This plugin passed the SRP test
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 88% from 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
Attributes that require attention:
- Tags: There are too many tags (15 tag instead of maximum 10)
- Screenshots: Please a description for screenshot #2 in routee-contact-gathering/assets to your readme.txt
routee-contact-gathering/routee-contact-gathering.php Passed 13 tests
The main PHP file in "Routee Omnichannel Communication" ver. 1.0 adds more information about the plugin and also serves as the entry point for this plugin
99 characters long description:
Collect contact details from websites, based on Wordpress, and incorporate them in Routee platform.
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
No dangerous file extensions were detected9,902 lines of code in 31 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 11 | 559 | 747 | 4,494 |
CSS | 7 | 223 | 94 | 3,077 |
PHP | 13 | 39 | 154 | 2,331 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.60 |
Average class complexity | 91.83 |
▷ Minimum class complexity | 14.00 |
▷ Maximum class complexity | 357.00 |
Average method complexity | 7.57 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 40.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 | 83 | |
▷ Static methods | 5 | 6.02% |
▷ Public methods | 78 | 93.98% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 6.02% |
Functions | 11 | |
▷ Named functions | 8 | 72.73% |
▷ Anonymous functions | 3 | 27.27% |
Constants | 12 | |
▷ Global constants | 11 | 91.67% |
▷ Class constants | 1 | 8.33% |
▷ Public constants | 1 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
5 PNG files occupy 0.24MB with 0.12MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
css/multiple-select.png | 3.30KB | 0.62KB | ▼ 81.18% |
lib/telbuild/img/flags@2x.png | 169.18KB | 65.55KB | ▼ 61.26% |
images/openpopup.png | 0.16KB | 0.18KB | 0.00% |
images/r-routee-logo.png | 0.53KB | 0.28KB | ▼ 48.45% |
lib/telbuild/img/flags.png | 67.55KB | 23.95KB | ▼ 64.54% |