Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲0.04MB] [CPU: ▼6.73ms] Passed 4 tests
Analyzing server-side resources used by WS Contact Form
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 42.34 ▲1.21 |
Dashboard /wp-admin | 3.36 ▲0.01 | 51.71 ▼18.32 |
Posts /wp-admin/edit.php | 3.41 ▲0.05 | 54.44 ▼1.37 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.05 | 96.30 ▼6.90 |
Media Library /wp-admin/upload.php | 3.28 ▲0.05 | 38.05 ▼0.32 |
WS Contact Form /wp-admin/options-general.php?page=ws-contact-form-settings | 3.25 | 40.61 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
theysaidso_admin_options |
widget_recent-posts |
widget_recent-comments |
widget_theysaidso_widget |
db_upgraded |
Browser metrics Passed 4 tests
A check of browser resources used by WS Contact Form
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,926 ▲165 | 13.38 ▼1.24 | 9.07 ▲7.01 | 39.12 ▼3.71 |
Dashboard /wp-admin | 2,199 ▲19 | 5.55 ▼0.05 | 85.10 ▼8.24 | 39.14 ▼0.56 |
Posts /wp-admin/edit.php | 2,107 ▲7 | 2.01 ▲0.01 | 39.44 ▲0.11 | 35.94 ▼2.72 |
Add New Post /wp-admin/post-new.php | 1,537 ▲11 | 18.36 ▼5.06 | 605.76 ▼68.31 | 61.67 ▲10.44 |
Media Library /wp-admin/upload.php | 1,407 ▲10 | 4.17 ▼0.03 | 102.44 ▼0.26 | 45.06 ▼0.33 |
WS Contact Form /wp-admin/options-general.php?page=ws-contact-form-settings | 896 | 1.99 | 21.98 | 28.88 |
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
You still need to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_theysaidso_widget
- widget_recent-comments
- db_upgraded
- widget_recent-posts
- can_compress_scripts
- theysaidso_admin_options
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected
SRP Passed 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Looking good! No server-side errors or output on direct access of PHP files
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
10 plugin tags: contact form, contact us, feedback form, email, contact...
ws-contact-form/ws-contact-form.php Passed 13 tests
"WS Contact Form" version 1.3.7's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
33 characters long description:
Simple contact form for Wordpress
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin266 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 27 | 10 | 179 |
JavaScript | 1 | 8 | 0 | 70 |
CSS | 1 | 4 | 0 | 15 |
Markdown | 1 | 1 | 0 | 2 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.13 |
Average class complexity | 2.50 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 4.00 |
Average method complexity | 1.27 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 3.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 12 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 12 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG files were detected