Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.08MB] [CPU: ▼2.77ms] Passed 4 tests
Server-side resources used by Answering Contact Form
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.54 ▲0.08 | 38.52 ▼8.07 |
Dashboard /wp-admin | 3.39 ▲0.09 | 49.30 ▼3.82 |
Posts /wp-admin/edit.php | 3.44 ▲0.08 | 55.19 ▲5.89 |
Add New Post /wp-admin/post-new.php | 5.97 ▲0.08 | 109.65 ▼4.62 |
Media Library /wp-admin/upload.php | 3.31 ▲0.08 | 40.81 ▲5.44 |
Answers /wp-admin/edit.php?post_type=answer | 3.35 | 40.77 |
Settings /wp-admin/admin.php?page=afcl_settings_options | 3.28 | 36.66 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 12 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
db_upgraded |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-comments |
widget_recent-posts |
Browser metrics Passed 4 tests
A check of browser resources used by Answering Contact Form
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,906 ▲145 | 13.88 ▼0.39 | 8.56 ▲6.73 | 41.29 ▼3.55 |
Dashboard /wp-admin | 2,229 ▲49 | 5.64 ▼0.02 | 93.13 ▼8.97 | 42.53 ▼3.21 |
Posts /wp-admin/edit.php | 2,131 ▲31 | 2.02 ▲0.03 | 38.78 ▲2.13 | 36.44 ▼1.31 |
Add New Post /wp-admin/post-new.php | 1,552 ▲26 | 23.45 ▼0.24 | 655.33 ▼18.71 | 50.01 ▼9.06 |
Media Library /wp-admin/upload.php | 1,434 ▲37 | 4.23 ▲0.02 | 100.30 ▼2.04 | 45.56 ▼2.70 |
Answers /wp-admin/edit.php?post_type=answer | 1,095 | 1.95 | 30.63 | 35.20 |
Settings /wp-admin/admin.php?page=afcl_settings_options | 990 | 2.15 | 22.68 | 29.33 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-comments
- db_upgraded
- widget_recent-posts
- widget_theysaidso_widget
- can_compress_scripts
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at the following
- 5× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/answering-contact-form/settings/acf_settings.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/answering-contact-form/includes/acf_shortcode.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/answering-contact-form/answering_contact_form.php:29
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/answering-contact-form/includes/acf_answers.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/answering-contact-form/includes/acf_help_text.php:6
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
4 plugin tags: instant answers, answering contact form, jquery, contact form
answering-contact-form/answering_contact_form.php 85% from 13 tests
The entry point to "Answering Contact Form" version 1.0 is a PHP file that has certain tags in its header comment area
The following require your attention:
- Main file name: Name the main plugin file the same as the plugin slug ("answering-contact-form.php" instead of "answering_contact_form.php")
- Description: Please don't use more than 140 characters for the plugin description (currently 182 characters long)
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
Good job! No executable or dangerous file extensions detected420 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 64 | 54 | 276 |
CSS | 2 | 19 | 0 | 128 |
JavaScript | 1 | 5 | 0 | 16 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.27 |
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 | 11 | |
▷ Named functions | 11 | 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
2 PNG files occupy 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
css/images/acfl-toggle-minus.png | 14.19KB | 0.10KB | ▼ 99.28% |
css/images/acfl-toggle-plus.png | 1.01KB | 0.10KB | ▼ 89.62% |