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.65MB] [CPU: ▼0.99ms] Passed 4 tests
An overview of server-side resources used by Contact Form X
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.82 ▲0.36 | 38.60 ▲3.26 |
Dashboard /wp-admin | 4.12 ▲0.77 | 52.34 ▼7.56 |
Posts /wp-admin/edit.php | 4.16 ▲0.80 | 47.12 ▲0.71 |
Add New Post /wp-admin/post-new.php | 6.63 ▲0.74 | 82.77 ▼0.37 |
Media Library /wp-admin/upload.php | 3.98 ▲0.74 | 40.10 ▲4.28 |
Contact Form X /wp-admin/options-general.php?page=contactformx | 3.96 | 33.94 |
Server storage [IO: ▲0.86MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 60 new files
Database: no new tables, 8 new options
New WordPress options |
---|
theysaidso_admin_options |
contactformx_email |
can_compress_scripts |
widget_recent-comments |
widget_theysaidso_widget |
widget_recent-posts |
widget_contactformx |
db_upgraded |
Browser metrics Passed 4 tests
Checking browser requirements for Contact Form X
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,964 ▲218 | 13.75 ▼0.52 | 9.17 ▲7.58 | 40.04 ▼3.27 |
Dashboard /wp-admin | 2,281 ▲101 | 5.58 ▼0.08 | 83.08 ▼5.53 | 42.09 ▲0.68 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 1.96 ▲0.00 | 33.00 ▼3.86 | 35.35 ▼1.77 |
Add New Post /wp-admin/post-new.php | 1,531 ▼2 | 23.32 ▲0.34 | 675.86 ▲5.51 | 55.38 ▼1.24 |
Media Library /wp-admin/upload.php | 1,404 ▲7 | 4.20 ▲0.03 | 100.32 ▼11.95 | 41.44 ▼5.34 |
Contact Form X /wp-admin/options-general.php?page=contactformx | 1,266 | 2.21 | 40.67 | 53.19 |
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
You still need to fix the following
- This plugin did not uninstall successfully, leaving 7 options in the database
- theysaidso_admin_options
- widget_recent-comments
- db_upgraded
- widget_contactformx
- can_compress_scripts
- widget_recent-posts
- 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
Good news, no errors were detected
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 fix the following items
- 3× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Interface 'ReCaptcha\\RequestMethod' not found in wp-content/plugins/contact-form-x/lib/recaptcha/ReCaptcha/RequestMethod/CurlPost.php:46
- > PHP Fatal error
Uncaught Error: Interface 'ReCaptcha\\RequestMethod' not found in wp-content/plugins/contact-form-x/lib/recaptcha/ReCaptcha/RequestMethod/Post.php:44
- > PHP Fatal error
Uncaught Error: Interface 'ReCaptcha\\RequestMethod' not found in wp-content/plugins/contact-form-x/lib/recaptcha/ReCaptcha/RequestMethod/SocketPost.php:46
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
5 plugin tags: contact, ajax, feedback, contact form, email
contact-form-x/contact-form-x.php Passed 13 tests
This is the main PHP file of "Contact Form X" version 2.8, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
67 characters long description:
Displays a user-friendly contact form that your visitors will love.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Good job! No executable or dangerous file extensions detected3,456 lines of code in 40 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 29 | 1,765 | 764 | 2,690 |
JavaScript | 4 | 61 | 22 | 411 |
CSS | 7 | 80 | 7 | 355 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.44 |
Average class complexity | 6.82 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 22.00 |
Average method complexity | 2.12 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 14.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 1 | |
Traits | 0 | |
Classes | 10 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 10 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 58 | |
▷ Static methods | 1 | 1.72% |
▷ Public methods | 58 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 135 | |
▷ Named functions | 134 | 99.26% |
▷ Anonymous functions | 1 | 0.74% |
Constants | 21 | |
▷ Global constants | 9 | 42.86% |
▷ Class constants | 12 | 57.14% |
▷ Public constants | 12 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/email-icon.png | 0.69KB | 0.69KB | 0.00% |