Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▲3.56MB] [CPU: ▼278.10ms] Passed 4 tests
Analyzing server-side resources used by Advanced Custom Fields
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 6.87 ▲3.35 | 73.72 ▲21.71 |
Dashboard /wp-admin | 7.01 ▲3.60 | 54.57 ▲21.17 |
Posts /wp-admin/edit.php | 7.24 ▲3.60 | 59.96 ▲23.52 |
Add New Post /wp-admin/post-new.php | 10.70 ▲3.73 | 120.38 ▼1,172.86 |
Media Library /wp-admin/upload.php | 6.97 ▲3.67 | 44.50 ▲17.59 |
Tools /wp-admin/edit.php?post_type=acf-field-group&page=acf-tools | 6.97 | 46.11 |
Add New /wp-admin/post-new.php?post_type=acf-field-group | 7.28 | 64.78 |
Field Groups /wp-admin/edit.php?post_type=acf-field-group | 6.96 | 45.82 |
Server storage [IO: ▲8.71MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 250 new files
Database: no new tables, 1 new option
New WordPress options |
---|
acf_version |
Browser metrics Passed 4 tests
A check of browser resources used by Advanced Custom Fields
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,801 ▲57 | 16.14 ▲0.40 | 5.55 ▼0.78 | 2.27 ▼0.13 |
Dashboard /wp-admin | 2,932 ▲71 | 6.13 ▼0.04 | 116.20 ▼15.65 | 158.97 ▼4.70 |
Posts /wp-admin/edit.php | 2,731 ▲37 | 3.23 ▲0.00 | 62.92 ▲1.03 | 139.11 ▲3.15 |
Add New Post /wp-admin/post-new.php | 4,187 ▲2,526 | 21.83 ▲0.91 | 606.19 ▲194.21 | 191.19 ▲36.54 |
Media Library /wp-admin/upload.php | 2,385 ▲687 | 10.61 ▲5.10 | 223.64 ▲75.42 | 189.06 ▲2.76 |
Tools /wp-admin/edit.php?post_type=acf-field-group&page=acf-tools | 1,531 | 4.29 | 69.42 | 151.36 |
Add New /wp-admin/post-new.php?post_type=acf-field-group | 3,098 | 5.60 | 98.58 | 203.72 |
Field Groups /wp-admin/edit.php?post_type=acf-field-group | 1,619 | 3.20 | 62.91 | 126.60 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- This plugin does not fully uninstall, leaving 1 option in the database
- acf_version
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested
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
The following issues need your attention
- 75× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'acf_field' not found in wp-content/plugins/advanced-custom-fields/includes/fields/class-acf-field-taxonomy.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/advanced-custom-fields/includes/admin/views/field-group-locations.php:9
- > PHP Notice
Undefined variable: rule in wp-content/plugins/advanced-custom-fields/includes/admin/views/html-location-rule.php on line 4
- > PHP Fatal error
Uncaught Error: Class 'acf_field' not found in wp-content/plugins/advanced-custom-fields/includes/fields/class-acf-field-radio.php:5
- > PHP Fatal error
Uncaught Error: Class 'acf_field' not found in wp-content/plugins/advanced-custom-fields/includes/fields/class-acf-field-post_object.php:5
- > PHP Fatal error
Uncaught Error: Class 'acf_field' not found in wp-content/plugins/advanced-custom-fields/includes/fields/class-acf-field-tab.php:5
- > PHP Notice
Undefined variable: active in wp-content/plugins/advanced-custom-fields/includes/admin/views/html-admin-tools.php on line 16
- > PHP Fatal error
Uncaught Error: Call to undefined function acf_get_setting() in wp-content/plugins/advanced-custom-fields/includes/admin/views/html-notice-upgrade.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function acf_register_store() in wp-content/plugins/advanced-custom-fields/includes/acf-hook-functions.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/advanced-custom-fields/includes/acf-input-functions.php:103
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 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: acf, fields, custom fields, meta, repeater
advanced-custom-fields/acf.php 85% from 13 tests
Analyzing the main PHP file in "Advanced Custom Fields" version 5.12.1
You should first fix the following items:
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
- Main file name: The principal plugin file should be the same as the plugin slug ("advanced-custom-fields.php" instead of "acf.php")
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
No dangerous file extensions were detected112,580 lines of code in 200 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PO File | 31 | 24,109 | 41,341 | 49,290 |
JavaScript | 16 | 5,883 | 5,987 | 38,452 |
PHP | 136 | 8,455 | 18,194 | 18,740 |
CSS | 15 | 495 | 739 | 6,078 |
Markdown | 1 | 11 | 0 | 14 |
SVG | 1 | 0 | 0 | 6 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 14.86 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 78.00 |
Average method complexity | 2.88 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 24.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 102 | |
▷ Abstract classes | 2 | 1.96% |
▷ Concrete classes | 100 | 98.04% |
▷ Final classes | 0 | 0.00% |
Methods | 748 | |
▷ Static methods | 1 | 0.13% |
▷ Public methods | 730 | 97.59% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 18 | 2.41% |
Functions | 439 | |
▷ Named functions | 436 | 99.32% |
▷ Anonymous functions | 3 | 0.68% |
Constants | 8 | |
▷ Global constants | 8 | 100.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
7 compressed PNG files occupy 0.02MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/acf-logo.png | 3.40KB | 3.39KB | 0.23% |
assets/inc/datepicker/images/ui-icons_444444_256x240.png | 3.68KB | 4.17KB | 0.00% |
assets/inc/datepicker/images/ui-icons_DDDDDD_256x240.png | 3.68KB | 4.17KB | 0.00% |
assets/inc/select2/3/select2x2.png | 0.64KB | 0.77KB | 0.00% |
assets/inc/datepicker/images/ui-bg_highlight-soft_0_ffffff_1x100.png | 0.08KB | 0.08KB | 0.00% |