Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.03MB] [CPU: ▼9.01ms] Passed 4 tests
Analyzing server-side resources used by Total Simple Contact Form
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 44.71 ▲1.04 |
Dashboard /wp-admin | 3.35 ▲0.00 | 51.39 ▼16.52 |
Posts /wp-admin/edit.php | 3.40 ▲0.04 | 50.34 ▼1.48 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.04 | 90.57 ▼16.68 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 38.10 ▼1.34 |
Server storage [IO: ▲0.39MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 12 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-posts |
theysaidso_admin_options |
widget_recent-comments |
widget_theysaidso_widget |
db_upgraded |
Browser metrics Passed 4 tests
An overview of browser requirements for Total Simple Contact Form
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,906 ▲135 | 13.61 ▼0.97 | 5.77 ▲3.97 | 44.19 ▲1.03 |
Dashboard /wp-admin | 2,206 ▲18 | 5.90 ▲0.95 | 100.52 ▼6.22 | 37.78 ▼3.63 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.05 ▲0.00 | 34.64 ▼3.24 | 35.20 ▲1.25 |
Add New Post /wp-admin/post-new.php | 1,358 ▼162 | 16.74 ▼6.09 | 579.96 ▼103.64 | 49.39 ▼26.64 |
Media Library /wp-admin/upload.php | 1,388 ▼0 | 4.22 ▼0.01 | 96.52 ▼12.49 | 43.15 ▼3.87 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-comments
- db_upgraded
- widget_theysaidso_widget
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however 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
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/total-simple-contact-form/tscf_captcha/tscf_captcha.php
- 6× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Warning
imagettftext(): Could not find/open font in wp-content/plugins/total-simple-contact-form/tscf_captcha/tscf_captcha.php on line 36
- > PHP Warning
imagettftext(): Could not find/open font in wp-content/plugins/total-simple-contact-form/tscf_captcha/tscf_captcha.php on line 42
- > PHP Warning
imagettftext(): Could not find/open font in wp-content/plugins/total-simple-contact-form/tscf_captcha/tscf_captcha.php on line 40
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/total-simple-contact-form/total_simple_contact_form.php:31
- > PHP Warning
imagettftext(): Could not find/open font in wp-content/plugins/total-simple-contact-form/tscf_captcha/tscf_captcha.php on line 34
- > PHP Warning
imagettftext(): Could not find/open font in wp-content/plugins/total-simple-contact-form/tscf_captcha/tscf_captcha.php on line 38
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
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
5 plugin tags: captcha, form, contact, email, contactform
total-simple-contact-form/total_simple_contact_form.php 92% from 13 tests
The principal PHP file in "Total Simple Contact Form" v. 1.1.1 is loaded by WordPress automatically on each request
It is important to fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("total-simple-contact-form.php" instead of "total_simple_contact_form.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Everything looks great! No dangerous files found in this plugin354 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 47 | 39 | 206 |
PO File | 2 | 44 | 44 | 140 |
CSS | 1 | 0 | 0 | 8 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.21 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 7 | |
▷ Named functions | 7 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.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
1 PNG file occupies 0.03MB with 0.02MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
tscf_captcha/captcha_background.png | 28.89KB | 10.85KB | ▼ 62.44% |