Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully
Server metrics [RAM: ▲0.00MB] [CPU: ▼144.79ms] Passed 4 tests
Analyzing server-side resources used by ACF Field For Contact Form 7
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.85 ▲0.01 | 21.75 ▼0.59 |
Dashboard /wp-admin | 3.07 ▲0.00 | 32.26 ▼2.28 |
Posts /wp-admin/edit.php | 3.12 ▲0.01 | 28.95 ▼2.78 |
Add New Post /wp-admin/post-new.php | 5.43 ▼0.01 | 68.62 ▼573.50 |
Media Library /wp-admin/upload.php | 3.01 ▲0.01 | 23.90 ▲0.61 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 10 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
ACF Field For Contact Form 7: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,688 ▲86 | 15.99 ▲0.38 | 4.96 ▼0.21 | 76.53 ▼1.65 |
Dashboard /wp-admin | 2,941 ▲45 | 6.11 ▲0.02 | 116.20 ▼15.47 | 165.74 ▼6.37 |
Posts /wp-admin/edit.php | 2,749 ▲9 | 3.25 ▲0.03 | 66.52 ▼3.65 | 136.89 ▼19.22 |
Add New Post /wp-admin/post-new.php | 3,819 ▲82 | 18.89 ▼1.42 | 454.95 ▲30.47 | 160.42 ▼3.68 |
Media Library /wp-admin/upload.php | 1,764 ▲12 | 5.49 ▼0.03 | 139.54 ▼7.52 | 188.07 ▲1.13 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Uninstall script ran successfully
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though everything seems fine, this is not 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 fix the following
- 3× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Class 'acf_field' not found in wp-content/plugins/acf-field-for-contact-form-7/includes/acf-fields/acf-contact-form-7-v5.php:15
- > PHP Fatal error
Uncaught Error: Class 'acf_Field' not found in wp-content/plugins/acf-field-for-contact-form-7/includes/acf-fields/acf-contact-form-7-v3.php:5
- > PHP Fatal error
Uncaught Error: Class 'acf_field' not found in wp-content/plugins/acf-field-for-contact-form-7/includes/acf-fields/acf-contact-form-7-v4.php:5
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need your attention:
- Screenshots: No descriptions were found for these screenshots #1, #2 in acf-field-for-contact-form-7/assets to your readme.txt
acf-field-for-contact-form-7/acf-field-for-contact-form-7.php Passed 13 tests
Analyzing the main PHP file in "ACF Field For Contact Form 7" version 1.6
79 characters long description:
Adds a new 'Contact Form 7' field to the popular Advanced Custom Fields plugin.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Success! There were no dangerous files found in this plugin517 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 65 | 289 | 517 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.37 |
Average class complexity | 15.00 |
▷ Minimum class complexity | 8.00 |
▷ Maximum class complexity | 24.00 |
Average method complexity | 2.65 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 13.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 34 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 34 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 4 | |
▷ Named functions | 4 | 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
No PNG files were detected