Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▲0.02MB] [CPU: ▼292.51ms] Passed 4 tests
Server-side resources used by Advanced Forms for ACF
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.59 ▲0.08 | 54.55 ▲4.61 |
Dashboard /wp-admin | 3.45 ▲0.05 | 34.68 ▲2.80 |
Posts /wp-admin/edit.php | 3.69 ▲0.05 | 38.32 ▲0.90 |
Add New Post /wp-admin/post-new.php | 6.92 ▼0.04 | 96.50 ▼1,173.47 |
Media Library /wp-admin/upload.php | 3.34 ▲0.05 | 25.37 ▼0.26 |
Server storage [IO: ▲1.80MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 57 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
An overview of browser requirements for Advanced Forms for ACF
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,777 ▲55 | 16.23 ▲1.08 | 5.82 ▼1.10 | 2.33 ▼0.48 |
Dashboard /wp-admin | 2,909 ▲48 | 6.15 ▼0.10 | 117.24 ▼18.70 | 156.76 ▼6.06 |
Posts /wp-admin/edit.php | 2,703 ▲12 | 3.38 ▲0.14 | 65.85 ▼2.62 | 144.86 ▼1.72 |
Add New Post /wp-admin/post-new.php | 1,718 ▼63 | 21.36 ▲2.41 | 449.78 ▼34.94 | 158.81 ▼3.28 |
Media Library /wp-admin/upload.php | 1,709 ▲11 | 5.51 ▲0.02 | 158.13 ▲19.22 | 188.78 ▼2.47 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Uninstall script ran successfully
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please take a closer look at the following
- 20× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'acf_field' not found in wp-content/plugins/advanced-forms/acf/fields/page.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/advanced-forms/core/core-restrictions.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/advanced-forms/admin/admin-emails.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/advanced-forms/core/forms/forms-rendering.php:16
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/advanced-forms/core/forms/forms-submissions.php:19
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/advanced-forms/admin/forms/forms-preview.php:8
- > PHP Fatal error
Uncaught Error: Class 'acf_field' not found in wp-content/plugins/advanced-forms/acf/fields/field_select.php:18
- > PHP Fatal error
Uncaught Error: Class 'acf_field' not found in wp-content/plugins/advanced-forms/acf/fields/divider.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/advanced-forms/admin/admin-forms.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/advanced-forms/core/core-gutenberg.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 issues were found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
6 plugin tags: advanced custom fields, form builder, acf, contact form, acf form...
advanced-forms/advanced-forms.php Passed 13 tests
Analyzing the main PHP file in "Advanced Forms for ACF" version 1.9.1
79 characters long description:
Flexible and developer-friendly forms with the power of Advanced Custom Fields.
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
Success! There were no dangerous files found in this plugin12,488 lines of code in 40 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JSON | 2 | 0 | 0 | 7,552 |
PHP | 25 | 1,373 | 1,227 | 3,427 |
PO File | 3 | 248 | 250 | 594 |
JavaScript | 5 | 137 | 89 | 470 |
CSS | 4 | 107 | 64 | 418 |
Markdown | 1 | 9 | 0 | 27 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.30 |
Average class complexity | 13.10 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 42.00 |
Average method complexity | 2.69 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 19.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 20 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 20 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 142 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 135 | 95.07% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 7 | 4.93% |
Functions | 40 | |
▷ Named functions | 38 | 95.00% |
▷ Anonymous functions | 2 | 5.00% |
Constants | 7 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 7 | 100.00% |
▷ Public constants | 7 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
9 PNG files occupy 0.81MB with 0.66MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/screenshot-3.png | 66.40KB | 18.85KB | ▼ 71.62% |
assets/images/icon-128x128.png | 20.56KB | 1.02KB | ▼ 95.02% |
assets/images/banner-772x250.png | 41.63KB | 9.44KB | ▼ 77.33% |
assets/images/logo-40.png | 20.02KB | 0.92KB | ▼ 95.38% |
assets/images/banner-1544x500.png | 68.03KB | 20.10KB | ▼ 70.46% |