Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▼0.02MB] [CPU: ▼304.21ms] Passed 4 tests
A check of server-side resources used by Advanced Custom Fields: Link Picker Field
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.01 | 57.41 ▲7.41 |
Dashboard /wp-admin | 3.41 ▲0.01 | 34.85 ▲1.10 |
Posts /wp-admin/edit.php | 3.65 ▲0.01 | 39.22 ▲2.02 |
Add New Post /wp-admin/post-new.php | 6.88 ▼0.09 | 93.44 ▼1,213.67 |
Media Library /wp-admin/upload.php | 3.30 ▲0.00 | 23.44 ▼6.28 |
Server storage [IO: ▲0.14MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 20 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
An overview of browser requirements for Advanced Custom Fields: Link Picker Field
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,785 ▲31 | 15.25 ▼0.35 | 5.91 ▼0.12 | 2.16 ▼0.69 |
Dashboard /wp-admin | 2,895 ▲34 | 5.98 ▼0.28 | 119.90 ▼18.02 | 159.98 ▼1.12 |
Posts /wp-admin/edit.php | 2,694 ▲9 | 3.23 ▲0.01 | 64.23 ▼0.05 | 140.01 ▼3.84 |
Add New Post /wp-admin/post-new.php | 1,661 ▼50 | 16.74 ▼3.88 | 409.77 ▼45.29 | 156.66 ▼2.64 |
Media Library /wp-admin/upload.php | 1,698 ▼3 | 5.48 ▼0.04 | 140.52 ▲0.65 | 182.57 ▼5.42 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Uninstaller 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
Even though no errors were found, this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following
- 3× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'acf_field' not found in wp-content/plugins/acf-link-picker-field/acf-link_picker-v4.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function load_plugin_textdomain() in wp-content/plugins/acf-link-picker-field/acf-link_picker.php:19
- > PHP Fatal error
Uncaught Error: Class 'acf_field' not found in wp-content/plugins/acf-link-picker-field/acf-link_picker-v5.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
5 plugin tags: acf, link chooser, acf link picker, advanced custom fields, link picker
acf-link-picker-field/acf-link_picker.php 92% from 13 tests
"Advanced Custom Fields: Link Picker Field" version 1.2.8's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
You should first fix the following items:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("acf-link-picker-field.php" instead of "acf-link_picker.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Everything looks great! No dangerous files found in this plugin531 lines of code in 11 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 263 | 590 | 237 |
JavaScript | 1 | 54 | 46 | 173 |
PO File | 3 | 35 | 0 | 109 |
Markdown | 4 | 8 | 0 | 12 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.18 |
Average class complexity | 12.00 |
▷ Minimum class complexity | 12.00 |
▷ Maximum class complexity | 12.00 |
Average method complexity | 2.29 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 12.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 17 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 17 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 3 | |
▷ Named functions | 3 | 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
PNG images were not found in this plugin