Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully
Server metrics [RAM: ▼0.00MB] [CPU: ▼10.01ms] Passed 4 tests
A check of server-side resources used by Advanced Forms for ACF
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 38.44 ▼4.52 |
Dashboard /wp-admin | 3.31 ▼0.03 | 44.79 ▼15.72 |
Posts /wp-admin/edit.php | 3.36 ▲0.01 | 46.51 ▲0.16 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.01 | 85.51 ▼19.47 |
Media Library /wp-admin/upload.php | 3.23 ▲0.01 | 34.31 ▼0.32 |
Server storage [IO: ▲1.10MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 53 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-comments |
can_compress_scripts |
widget_recent-posts |
Browser metrics Passed 4 tests
A check of browser resources used by Advanced Forms for ACF
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,812 ▲66 | 13.58 ▼1.03 | 1.71 ▼0.30 | 43.26 ▲0.03 |
Dashboard /wp-admin | 2,218 ▲30 | 5.81 ▲0.92 | 95.25 ▼22.86 | 37.62 ▼9.60 |
Posts /wp-admin/edit.php | 2,103 ▲14 | 2.03 ▲0.04 | 43.24 ▲4.75 | 35.42 ▲0.09 |
Add New Post /wp-admin/post-new.php | 1,549 ▲30 | 18.77 ▼4.41 | 644.79 ▼8.08 | 52.76 ▲3.32 |
Media Library /wp-admin/upload.php | 1,394 ▲3 | 4.22 ▼0.07 | 95.14 ▼12.38 | 45.72 ▼0.28 |
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
These items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- db_upgraded
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-posts
- widget_recent-comments
- widget_theysaidso_widget
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)
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Almost there! Just fix the following items
- 21× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/advanced-forms/core/core-emails.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/advanced-forms/admin/forms/forms-preview.php:6
- > 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-entries.php:9
- > 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: Class 'acf_field' not found in wp-content/plugins/advanced-forms/acf/fields/page.php:9
- > 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: Call to undefined function add_action() in wp-content/plugins/advanced-forms/admin/forms/forms-export.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/advanced-forms/acf/acf-additions.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/advanced-forms/admin/admin-restrictions.php:8
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
6 plugin tags: acf form, acf, contact form, form builder, advanced custom fields...
advanced-forms/advanced-forms.php Passed 13 tests
Analyzing the main PHP file in "Advanced Forms for ACF" version 1.9.3.2
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 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin5,578 lines of code in 39 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 26 | 1,154 | 1,270 | 3,524 |
PO File | 3 | 543 | 636 | 1,155 |
JavaScript | 6 | 141 | 103 | 478 |
CSS | 4 | 107 | 67 | 421 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.30 |
Average class complexity | 13.14 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 42.00 |
Average method complexity | 2.72 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 19.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 21 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 21 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 147 | |
▷ Static methods | 6 | 4.08% |
▷ Public methods | 140 | 95.24% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 7 | 4.76% |
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
PNG files should be compressed to save space and minimize bandwidth usage
9 PNG files occupy 0.81MB with 0.65MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/banner-1544x500.png | 68.03KB | 20.10KB | ▼ 70.46% |
assets/images/logo-80.png | 20.80KB | 1.82KB | ▼ 91.25% |
assets/images/icon-128x128.png | 20.56KB | 1.02KB | ▼ 95.02% |
assets/images/screenshot-3.png | 66.40KB | 18.85KB | ▼ 71.62% |
assets/images/banner-772x250.png | 41.63KB | 9.44KB | ▼ 77.33% |