Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲0.06MB] [CPU: ▼4.96ms] Passed 4 tests
This is a short check of server-side resources used by Smartarget Contact Us - All in one
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.07 | 38.34 ▲1.26 |
Dashboard /wp-admin | 3.37 ▲0.02 | 49.33 ▼14.43 |
Posts /wp-admin/edit.php | 3.49 ▲0.13 | 47.32 ▲0.20 |
Add New Post /wp-admin/post-new.php | 5.97 ▲0.08 | 89.71 ▼6.86 |
Media Library /wp-admin/upload.php | 3.30 ▲0.06 | 37.72 ▲5.05 |
Smartarget Contact Us - All in one /wp-admin/options-general.php?page=smartarget_contact_us | 3.26 | 34.33 |
Server storage [IO: ▲1.91MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 24 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
widget_recent-comments |
theysaidso_admin_options |
widget_theysaidso_widget |
can_compress_scripts |
db_upgraded |
Browser metrics Passed 4 tests
Smartarget Contact Us - All in one: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,932 ▲186 | 21.22 ▲6.85 | 9.25 ▲7.59 | 43.44 ▲4.33 |
Dashboard /wp-admin | 2,216 ▲28 | 10.94 ▲5.15 | 197.94 ▲86.90 | 36.58 ▼11.38 |
Posts /wp-admin/edit.php | 2,108 ▲19 | 7.33 ▲5.22 | 125.35 ▲88.26 | 35.05 ▲0.35 |
Add New Post /wp-admin/post-new.php | 1,683 ▲169 | 27.58 ▲9.99 | 648.49 ▼35.90 | 52.54 ▼9.30 |
Media Library /wp-admin/upload.php | 1,395 ▲13 | 9.69 ▲5.50 | 188.48 ▲87.08 | 47.58 ▲6.92 |
Smartarget Contact Us - All in one /wp-admin/options-general.php?page=smartarget_contact_us | 2,132 | 9.64 | 204.10 | 91.68 |
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
These items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-comments
- db_upgraded
- widget_recent-posts
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means 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
Please fix the following items
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/smartarget-contact-us-all-in-one/public/partials/smartarget-contact-us-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-us-all-in-one/admin/partials/smartarget-contact-us-admin-display.php:20
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
9 plugin tags: facebook, smartarget, email, skype, wechat...
smartarget-contact-us-all-in-one/smartarget-contact-us.php 85% from 13 tests
The principal PHP file in "Smartarget Contact Us - All in one" v. 1.2 is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("smartarget-contact-us-all-in-one.php" instead of "smartarget-contact-us.php")
- 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 | Executable files are not allowed as they can serve as attack vectors
No dangerous file extensions were detected430 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
This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
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
All PNG images should be compressed to minimize bandwidth usage for end users
No PNG images were found in this plugin