Benchmarks
Plugin footprint 64% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▲5.52MB] [CPU: ▲37.47ms] 50% from 4 tests
Analyzing server-side resources used by Quick Contact Form
Please have a look at the following items
- CPU: The total CPU usage must kept under 500.00ms (currently 1,721.02ms on /wp-admin/options-general.php?page=quick-contact-form)
- Extra RAM: The extra memory usage should kept under 5MB (currently 5.52MB on /wp-admin/admin.php?page=freemius)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 9.21 ▲5.75 | 79.15 ▲37.62 |
Dashboard /wp-admin | 9.23 ▲5.93 | 98.63 ▲43.61 |
Posts /wp-admin/edit.php | 9.23 ▲5.88 | 98.46 ▲37.76 |
Add New Post /wp-admin/post-new.php | 10.40 ▲4.52 | 130.29 ▲30.88 |
Media Library /wp-admin/upload.php | 9.23 ▲6.00 | 89.99 ▲52.53 |
Quick Contact /wp-admin/options-general.php?page=quick-contact-form | 9.23 | 1,721.02 |
Freemius Debug [v.2.5.10] /wp-admin/admin.php?page=freemius | 9.23 | 78.11 |
Server storage [IO: ▲4.85MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 300 new files
Database: no new tables, 11 new options
New WordPress options |
---|
can_compress_scripts |
fs_debug_mode |
theysaidso_admin_options |
widget_theysaidso_widget |
fs_accounts |
fs_active_plugins |
qcf_legacy_free |
widget_qcf_widget |
widget_recent-posts |
db_upgraded |
... |
Browser metrics Passed 4 tests
Checking browser requirements for Quick Contact Form
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,130 ▲369 | 15.56 ▲1.28 | 8.06 ▲6.03 | 29.23 ▼15.81 |
Dashboard /wp-admin | 2,423 ▲243 | 6.55 ▲1.03 | 122.35 ▲35.70 | 49.99 ▲5.32 |
Posts /wp-admin/edit.php | 2,355 ▲252 | 3.77 ▲1.80 | 59.00 ▲14.26 | 38.73 ▲2.93 |
Add New Post /wp-admin/post-new.php | 1,767 ▲239 | 25.03 ▲2.08 | 661.04 ▲31.32 | 39.95 ▼9.01 |
Media Library /wp-admin/upload.php | 1,488 ▲91 | 4.60 ▲0.42 | 84.80 ▼16.90 | 45.60 ▲1.39 |
Quick Contact /wp-admin/options-general.php?page=quick-contact-form | 1,217 | 3.51 | 45.65 | 108.26 |
Freemius Debug [v.2.5.10] /wp-admin/admin.php?page=freemius | 1,333 | 3.48 | 47.85 | 27.54 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- Uninstall procedure validation failed for this plugin
- > Notice in wp-content/plugins/quick-contact-form/vendor/freemius/wordpress-sdk/includes/class-freemius.php+8486
Undefined property: stdClass::$plugins
- This plugin did not uninstall successfully, leaving 11 options in the database
- theysaidso_admin_options
- widget_theysaidso_widget
- db_upgraded
- widget_recent-comments
- fs_accounts
- fs_active_plugins
- widget_qcf_widget
- fs_debug_mode
- can_compress_scripts
- widget_recent-posts
- ...
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The following issues need your attention
- 28× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function qcf_get_stored_setup() in wp-content/plugins/quick-contact-form/messages.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/quick-contact-form/settings.php:1915
- > PHP Fatal error
Uncaught Error: Class 'ActiveCampaign' not found in wp-content/plugins/quick-contact-form/activecampaign/Contact.class.php:3
- > PHP Fatal error
Uncaught Error: Class 'ActiveCampaign' not found in wp-content/plugins/quick-contact-form/activecampaign/List.class.php:3
- > PHP Fatal error
Uncaught Error: Class 'ActiveCampaign' not found in wp-content/plugins/quick-contact-form/activecampaign/Segment.class.php:3
- > PHP Warning
Use of undefined constant QUICK_CONTACT_FORM_PLUGIN_DIR - assumed 'QUICK_CONTACT_FORM_PLUGIN_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/quick-contact-form/control/class-user-template-loader.php on line 28
- > PHP Fatal error
Uncaught Error: Class 'AC_Contact' not found in wp-content/plugins/quick-contact-form/activecampaign/Subscriber.class.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/quick-contact-form/legacy/settings.php:1635
- > PHP Fatal error
Uncaught Error: Class 'ActiveCampaign' not found in wp-content/plugins/quick-contact-form/activecampaign/Webhook.class.php:3
- > PHP Fatal error
Uncaught Error: Class 'ActiveCampaign' not found in wp-content/plugins/quick-contact-form/activecampaign/Auth.class.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% 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:
- Screenshots: These screenshots require images: #1 (This is main admin screen.), #2 (This is an example of multiple forms on a single page. Everything on the form is editable.), #3 (This is the messages screen (a copy of all the emails sent from the form).)
quick-contact-form/quick-contact-form.php 92% from 13 tests
The main file in "Quick Contact Form" v. 8.0.6.9 serves as a complement to information provided in readme.txt and as the entry point to the plugin
The following require your attention:
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 199 characters long)
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin44,283 lines of code in 198 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 165 | 9,049 | 18,146 | 41,815 |
CSS | 20 | 60 | 76 | 1,456 |
JavaScript | 12 | 217 | 248 | 991 |
Sass | 1 | 1 | 0 | 21 |
PHP code 50% from 2 tests
A short review of cyclomatic complexity and code structure
These items need your attention
- Class cyclomatic complexity has to be reduced to less than 1000 (currently 3,073)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.55 |
Average class complexity | 54.30 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 3,073.00 |
Average method complexity | 4.07 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 94.00 |
Code structure | ||
---|---|---|
Namespaces | 5 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 87 | |
▷ Abstract classes | 2 | 2.30% |
▷ Concrete classes | 85 | 97.70% |
▷ Final classes | 0 | 0.00% |
Methods | 1,538 | |
▷ Static methods | 202 | 13.13% |
▷ Public methods | 1,132 | 73.60% |
▷ Protected methods | 21 | 1.37% |
▷ Private methods | 385 | 25.03% |
Functions | 228 | |
▷ Named functions | 219 | 96.05% |
▷ Anonymous functions | 9 | 3.95% |
Constants | 152 | |
▷ Global constants | 104 | 68.42% |
▷ Class constants | 48 | 31.58% |
▷ Public constants | 48 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
25 PNG files occupy 0.09MB with 0.05MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
ui/user/css/jquery/images/ui-bg_glass_65_ffffff_1x400.png | 0.24KB | 0.09KB | ▼ 64.23% |
ui/user/css/jquery/images/ui-icons_ffffff_256x240.png | 6.32KB | 4.18KB | ▼ 33.80% |
ui/user/css/jquery/images/ui-bg_glass_100_fdf5ce_1x400.png | 0.38KB | 0.16KB | ▼ 58.66% |
images/doc.png | 3.57KB | 1.61KB | ▼ 54.95% |
legacy/images/pdf.png | 3.38KB | 1.56KB | ▼ 53.89% |