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.01MB] [CPU: ▼2.95ms] Passed 4 tests
A check of server-side resources used by Contact Form with Ajax
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 39.21 ▼1.60 |
Dashboard /wp-admin | 3.31 ▲0.01 | 49.17 ▼4.21 |
Posts /wp-admin/edit.php | 3.36 ▲0.01 | 39.46 ▼3.41 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.01 | 93.11 ▼2.58 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 38.79 ▲5.39 |
CFA /wp-admin/options-general.php?page=cfa | 3.18 | 28.88 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-comments |
widget_theysaidso_widget |
widget_recent-posts |
db_upgraded |
can_compress_scripts |
Browser metrics Passed 4 tests
Contact Form with Ajax: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,915 ▲180 | 13.55 ▼0.85 | 6.15 ▲4.37 | 44.27 ▼0.47 |
Dashboard /wp-admin | 2,213 ▲25 | 4.85 ▼1.05 | 102.56 ▼11.06 | 37.83 ▼12.01 |
Posts /wp-admin/edit.php | 2,090 ▲1 | 2.11 ▲0.08 | 40.48 ▲5.12 | 40.55 ▲3.88 |
Add New Post /wp-admin/post-new.php | 1,545 ▲31 | 18.66 ▲0.96 | 671.15 ▼3.36 | 71.17 ▲3.82 |
Media Library /wp-admin/upload.php | 1,386 ▼2 | 4.25 ▲0.01 | 102.87 ▲3.82 | 44.85 ▲2.76 |
CFA /wp-admin/options-general.php?page=cfa | 972 | 2.03 | 32.14 | 37.55 |
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
It is recommended to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-posts
- theysaidso_admin_options
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-comments
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
These errors were triggered by the plugin
- 7 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=cfa
- > Notice in wp-content/plugins/contact-form-shortcode-ajax/contact_form_ajax.php+117
Trying to access array offset on value of type bool
- 7 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=cfa
- > Notice in wp-content/plugins/contact-form-shortcode-ajax/contact_form_ajax.php+117
Trying to access array offset on value of type null
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 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
Optimizations
Plugin configuration 93% 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
Attributes that need to be fixed:
- Donate link: Invalid url: ""
contact-form-shortcode-ajax/contact_form_ajax.php 92% from 13 tests
The primary PHP file in "Contact Form with Ajax" version 3.0.0 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("contact-form-shortcode-ajax.php" instead of "contact_form_ajax.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
There were no executable files found in this plugin404 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 57 | 17 | 360 |
JavaScript | 1 | 0 | 0 | 24 |
CSS | 1 | 0 | 0 | 20 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.28 |
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 | 6 | |
▷ Named functions | 6 | 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
PNG files should be compressed to save space and minimize bandwidth usage
No PNG images were found in this plugin