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.06MB] [CPU: ▼2.90ms] Passed 4 tests
An overview of server-side resources used by PCF Contact Form
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.05 | 39.20 ▼3.07 |
Dashboard /wp-admin | 3.37 ▲0.07 | 48.49 ▼3.12 |
Posts /wp-admin/edit.php | 3.49 ▲0.13 | 48.68 ▼0.77 |
Add New Post /wp-admin/post-new.php | 5.95 ▲0.07 | 94.96 ▼4.62 |
Media Library /wp-admin/upload.php | 3.30 ▲0.07 | 42.46 ▲4.71 |
Contact Form /wp-admin/admin.php?page=pcfcf-plugin | 3.24 | 34.19 |
Form Submissions /wp-admin/admin.php?page=pcfcf-plugin-submissions | 3.26 | 39.05 |
SQL Options /wp-admin/admin.php?page=pcfcf-plugin-sql | 3.24 | 32.81 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-comments |
db_upgraded |
widget_recent-posts |
Browser metrics Passed 4 tests
An overview of browser requirements for PCF Contact Form
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,829 ▲83 | 13.20 ▼1.18 | 1.66 ▼0.16 | 40.46 ▼7.43 |
Dashboard /wp-admin | 2,236 ▲48 | 4.85 ▼0.04 | 111.56 ▼6.11 | 42.96 ▼0.97 |
Posts /wp-admin/edit.php | 2,116 ▲27 | 2.06 ▲0.06 | 39.66 ▲1.85 | 35.47 ▲2.22 |
Add New Post /wp-admin/post-new.php | 1,555 ▲13 | 23.28 ▲0.31 | 666.37 ▼24.44 | 54.32 ▼12.82 |
Media Library /wp-admin/upload.php | 1,415 ▲27 | 4.20 ▲0.07 | 97.81 ▼19.11 | 43.82 ▼5.18 |
Contact Form /wp-admin/admin.php?page=pcfcf-plugin | 842 | 2.06 | 24.07 | 29.50 |
Form Submissions /wp-admin/admin.php?page=pcfcf-plugin-submissions | 799 | 2.02 | 24.72 | 25.51 |
SQL Options /wp-admin/admin.php?page=pcfcf-plugin-sql | 876 | 2.06 | 22.10 | 28.76 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-comments
- widget_recent-posts
- db_upgraded
- widget_theysaidso_widget
- theysaidso_admin_options
- can_compress_scripts
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Smoke test failed, please fix the following
- 9 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=pcfcf-plugin-sql
- > Notice in wp-content/plugins/pcf-contact-form/core/pcfcf-options.php+252
Undefined variable: args
- 9 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=pcfcf-plugin-sql
- > Notice in wp-content/plugins/pcf-contact-form/core/pcfcf-options.php+252
Trying to access array offset on value of type null
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The following issues need your attention
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/pcf-contact-form/contact-form.php
- 4× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/pcf-contact-form/core/new-options.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/pcf-contact-form/core/pcfcf-options.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/pcf-contact-form/core/form.php:87
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/pcf-contact-form/sql/createtable.php:2
- > 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 90% from 29 tests
readme.txt 94% from 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
These attributes need your attention:
- Screenshots: Screenshot #1 (No screenshots at the moment.) image missing
pcf-contact-form/contact-form.php 85% from 13 tests
"PCF Contact Form" version 1.2.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
It is important to fix the following:
- Domain Path: The domain path folder does not exist ("/languages")
- Main file name: The principal plugin file should be the same as the plugin slug ("pcf-contact-form.php" instead of "contact-form.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected611 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 80 | 78 | 572 |
CSS | 1 | 0 | 1 | 39 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.09 |
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 | 35 | |
▷ Named functions | 35 | 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
Using a strong compression for your PNG files is a great way to speed-up your plugin
There are no PNG files in this plugin