Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully
Server metrics [RAM: ▲0.23MB] [CPU: ▲3.90ms] Passed 4 tests
Analyzing server-side resources used by WPxon Ajax Contact Form
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.64 ▲0.18 | 46.13 ▲1.68 |
Dashboard /wp-admin | 3.60 ▲0.29 | 56.79 ▲5.37 |
Posts /wp-admin/edit.php | 3.65 ▲0.29 | 62.26 ▲10.89 |
Add New Post /wp-admin/post-new.php | 6.11 ▲0.22 | 99.25 ▼0.99 |
Media Library /wp-admin/upload.php | 3.43 ▲0.21 | 45.77 ▲9.52 |
Ajax Contact Form /wp-admin/admin.php?page=wpxon_acf | 3.43 | 38.96 |
Settings /wp-admin/admin.php?page=wpxon_acfs | 3.43 | 40.12 |
Server storage [IO: ▲0.51MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 34 new files
Database: no new tables, 8 new options
New WordPress options |
---|
db_upgraded |
widget_recent-posts |
theysaidso_admin_options |
ajcf_style_two |
can_compress_scripts |
widget_theysaidso_widget |
ajcf_style_one |
widget_recent-comments |
Browser metrics Passed 4 tests
WPxon Ajax Contact Form: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,100 ▲329 | 15.36 ▲0.98 | 6.25 ▲4.08 | 47.08 ▼0.99 |
Dashboard /wp-admin | 2,390 ▲205 | 6.63 ▲1.72 | 134.26 ▲18.91 | 39.40 ▼4.33 |
Posts /wp-admin/edit.php | 2,299 ▲231 | 3.52 ▲1.51 | 56.80 ▲19.98 | 34.97 ▼3.28 |
Add New Post /wp-admin/post-new.php | 1,551 ▲18 | 23.07 ▲0.17 | 640.01 ▼28.76 | 38.12 ▼19.56 |
Media Library /wp-admin/upload.php | 1,432 ▲44 | 4.39 ▲0.20 | 91.42 ▼20.99 | 46.33 ▼0.69 |
Ajax Contact Form /wp-admin/admin.php?page=wpxon_acf | 1,058 | 3.34 | 39.95 | 38.33 |
Settings /wp-admin/admin.php?page=wpxon_acfs | 1,420 | 3.63 | 63.63 | 26.50 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- This plugin does not fully uninstall, leaving 8 options in the database
- widget_recent-posts
- can_compress_scripts
- ajcf_style_two
- db_upgraded
- theysaidso_admin_options
- ajcf_style_one
- widget_recent-comments
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please take a closer look at the following
- 3× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/wpxon-ajax-contact-form/admin/partials/ajax-contact-form-admin-about.php:18
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/wpxon-ajax-contact-form/public/partials/ajax-contact-form-public-display.php:38
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/wpxon-ajax-contact-form/admin/partials/ajax-contact-form-admin-settings.php:18
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
3 plugin tags: contact form, ajax contact form, bootstrap contact form
wpxon-ajax-contact-form/ajax-contact-form.php 85% from 13 tests
This is the main PHP file of "WPxon Ajax Contact Form" version 1.0.4, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
You should first fix the following items:
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
- Main file name: It is recommended to name the main PHP file as the plugin slug ("wpxon-ajax-contact-form.php" instead of "ajax-contact-form.php")
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
Success! There were no dangerous files found in this plugin4,018 lines of code in 24 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 4 | 526 | 27 | 3,029 |
PHP | 15 | 298 | 756 | 926 |
JavaScript | 5 | 19 | 15 | 63 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.27 |
Average class complexity | 9.89 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 69.00 |
Average method complexity | 1.97 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 10.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 9 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 9 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 62 | |
▷ Static methods | 2 | 3.23% |
▷ Public methods | 57 | 91.94% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 8.06% |
Functions | 4 | |
▷ Named functions | 3 | 75.00% |
▷ Anonymous functions | 1 | 25.00% |
Constants | 5 | |
▷ Global constants | 5 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
3 PNG files occupy 0.15MB with 0.07MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
public/img/bg.png | 152.80KB | 64.26KB | ▼ 57.94% |
public/img/testimonial-bg.png | 3.87KB | 1.20KB | ▼ 69.05% |
public/img/quote.png | 0.89KB | 1.14KB | 0.00% |