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.07MB] [CPU: ▼4.63ms] Passed 4 tests
This is a short check of server-side resources used by Smartarget Contact Form
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.07 | 40.40 ▼6.19 |
Dashboard /wp-admin | 3.37 ▲0.06 | 47.01 ▼4.61 |
Posts /wp-admin/edit.php | 3.49 ▲0.13 | 51.43 ▲5.56 |
Add New Post /wp-admin/post-new.php | 5.97 ▲0.08 | 90.17 ▼13.29 |
Media Library /wp-admin/upload.php | 3.30 ▲0.06 | 43.72 ▲10.34 |
Smartarget Contact Form /wp-admin/options-general.php?page=smartarget_contact_form | 3.26 | 33.42 |
Server storage [IO: ▲1.91MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 24 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
can_compress_scripts |
widget_theysaidso_widget |
db_upgraded |
widget_recent-comments |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Smartarget Contact Form: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,907 ▲161 | 21.34 ▲6.91 | 8.88 ▲6.90 | 42.82 ▼0.67 |
Dashboard /wp-admin | 2,213 ▲31 | 10.94 ▲5.10 | 202.33 ▲93.63 | 39.81 ▼2.64 |
Posts /wp-admin/edit.php | 2,111 ▲22 | 7.42 ▲5.40 | 111.83 ▲76.04 | 32.16 ▼3.83 |
Add New Post /wp-admin/post-new.php | 1,683 ▲150 | 27.83 ▲4.70 | 668.95 ▲25.37 | 51.00 ▲0.29 |
Media Library /wp-admin/upload.php | 1,395 ▲7 | 9.65 ▲5.52 | 191.46 ▲81.87 | 46.04 ▼5.90 |
Smartarget Contact Form /wp-admin/options-general.php?page=smartarget_contact_form | 2,300 | 11.66 | 214.43 | 115.31 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_theysaidso_widget
- can_compress_scripts
- theysaidso_admin_options
- db_upgraded
- widget_recent-posts
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test
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× PHP files output text when accessed directly:
- > /wp-content/plugins/smartarget-contact-form/public/partials/smartarget-contact-form-public-display.php
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_home_url() in wp-content/plugins/smartarget-contact-form/admin/partials/smartarget-contact-form-admin-display.php:20
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
8 plugin tags: contact us, wordpress form, form, contact form, custom form...
smartarget-contact-form/smartarget-contact-form.php 92% from 13 tests
The entry point to "Smartarget Contact Form" version 1.2 is a PHP file that has certain tags in its header comment area
Please take the time to fix the following:
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Everything looks great! No dangerous files found in this plugin430 lines of code in 16 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 12 | 130 | 522 | 225 |
JavaScript | 3 | 5 | 1,397 | 205 |
CSS | 1 | 0 | 4 | 0 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.10 |
Average class complexity | 2.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 5.00 |
Average method complexity | 1.25 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 3.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 28 | |
▷ Static methods | 2 | 7.14% |
▷ Public methods | 23 | 82.14% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 17.86% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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
No PNG images were found in this plugin