Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▲0.03MB] [CPU: ▼3.29ms] Passed 4 tests
This is a short check of server-side resources used by Voila Contact Form
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 38.38 ▲2.80 |
Dashboard /wp-admin | 3.34 ▲0.03 | 46.61 ▼0.45 |
Posts /wp-admin/edit.php | 3.39 ▲0.03 | 47.71 ▼3.40 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.03 | 85.57 ▼10.64 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 34.78 ▲1.32 |
Add New /wp-admin/post-new.php?post_type=cfmessage | 3.37 | 44.90 |
Voila Contact Form Messages /wp-admin/edit.php?post_type=cfmessage | 3.30 | 33.02 |
Server storage [IO: ▲0.18MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 21 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_theysaidso_widget |
theysaidso_admin_options |
db_upgraded |
widget_recent-comments |
ict101s_contact_form_op_array |
widget_recent-posts |
can_compress_scripts |
Browser metrics Passed 4 tests
A check of browser resources used by Voila Contact Form
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,848 ▲102 | 14.79 ▲0.50 | 2.00 ▲0.40 | 43.17 ▲2.73 |
Dashboard /wp-admin | 2,246 ▲55 | 4.86 ▼0.06 | 102.66 ▲1.38 | 43.71 ▼1.54 |
Posts /wp-admin/edit.php | 2,132 ▲43 | 1.98 ▼0.05 | 33.75 ▼8.04 | 34.70 ▼3.16 |
Add New Post /wp-admin/post-new.php | 1,569 ▲27 | 23.37 ▲5.19 | 687.08 ▲79.28 | 62.16 ▲6.37 |
Media Library /wp-admin/upload.php | 1,434 ▲46 | 4.20 ▼0.01 | 94.57 ▼18.07 | 41.28 ▼1.55 |
Add New /wp-admin/post-new.php?post_type=cfmessage | 2,276 | 7.62 | 181.98 | 66.14 |
Voila Contact Form Messages /wp-admin/edit.php?post_type=cfmessage | 1,133 | 1.97 | 31.27 | 27.63 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- Zombie WordPress options were found after uninstall: 6 options
- widget_theysaidso_widget
- widget_recent-comments
- widget_recent-posts
- can_compress_scripts
- db_upgraded
- theysaidso_admin_options
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
Even though everything seems fine, this is not an exhaustive test
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
Please take a closer look at the following
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/voila-contact-form/ict101s-contact-form.php:49
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
8 plugin tags: contact, voila, simple, easy, instant...
voila-contact-form/ict101s-contact-form.php 85% from 13 tests
The primary PHP file in "Voila Contact Form" version 1.0.0 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("voila-contact-form.php" instead of "ict101s-contact-form.php")
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Everything looks great! No dangerous files found in this plugin563 lines of code in 11 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 8 | 60 | 254 | 377 |
PO File | 2 | 70 | 86 | 166 |
CSS | 1 | 3 | 0 | 20 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.25 |
Average class complexity | 6.50 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 12.00 |
Average method complexity | 2.50 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 6 | 100.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 22 | |
▷ Static methods | 22 | 100.00% |
▷ Public methods | 13 | 59.09% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 9 | 40.91% |
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
3 PNG files occupy 0.10MB with 0.05MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/screenshot-2.png | 30.73KB | 14.63KB | ▼ 52.37% |
assets/screenshot-1.png | 48.95KB | 24.64KB | ▼ 49.66% |
assets/screenshot-3.png | 18.16KB | 9.44KB | ▼ 48.02% |