Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▼0.02MB] [CPU: ▼297.31ms] Passed 4 tests
This is a short check of server-side resources used by ACF Field Display
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.01 | 54.75 ▲6.65 |
Dashboard /wp-admin | 3.42 ▲0.01 | 34.72 ▲1.12 |
Posts /wp-admin/edit.php | 3.65 ▲0.01 | 37.06 ▼1.55 |
Add New Post /wp-admin/post-new.php | 6.89 ▼0.09 | 90.19 ▼1,189.63 |
Media Library /wp-admin/upload.php | 3.30 ▲0.00 | 23.15 ▲0.82 |
Server storage [IO: ▲0.15MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 9 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
A check of browser resources used by ACF Field Display
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,783 ▲61 | 16.16 ▲0.57 | 5.82 ▲0.30 | 2.34 ▼0.07 |
Dashboard /wp-admin | 2,895 ▲37 | 6.24 ▲0.07 | 114.79 ▼14.14 | 156.33 ▼5.22 |
Posts /wp-admin/edit.php | 2,688 ▲3 | 3.22 ▼0.01 | 63.65 ▼1.05 | 140.73 ▲0.15 |
Add New Post /wp-admin/post-new.php | 1,668 ▲7 | 18.38 ▼4.09 | 424.46 ▲4.82 | 149.18 ▼9.06 |
Media Library /wp-admin/upload.php | 1,698 ▼0 | 5.51 ▼0.01 | 145.10 ▲1.97 | 186.65 ▼2.64 |
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 | A shallow check that no server-side errors were triggered
Everything seems fine, however 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
- 5× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Warning
include_once(wp-content/plugins/acf-fields-display/wp-admin/includes/plugin.php): failed to open stream: No such file or directory in wp-content/plugins/acf-fields-display/acf-field-display.php on line 35
- > PHP Warning
Use of undefined constant WP_PLUGIN_URL - assumed 'WP_PLUGIN_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/acf-fields-display/acf-field-display.php on line 17
- > PHP Warning
include_once(): Failed opening 'wp-content/plugins/acf-fields-display/wp-admin/includes/plugin.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/acf-fields-display/acf-field-display.php on line 35
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/acf-fields-display/inc/acf-fld-opts.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function is_plugin_active() in wp-content/plugins/acf-fields-display/acf-field-display.php:38
- > PHP Warning
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, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
3 plugin tags: acf, reference, advanced custom fields
acf-fields-display/acf-field-display.php 85% from 13 tests
The main PHP script in "ACF Field Display" version 1.0 is automatically included on every request by WordPress
Please take the time to fix the following:
- Description: Please don't use more than 140 characters for the plugin description (currently 143 characters long)
- Main file name: Name the main plugin file the same as the plugin slug ("acf-fields-display.php" instead of "acf-field-display.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected101 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 15 | 24 | 87 |
JavaScript | 2 | 0 | 102 | 8 |
CSS | 1 | 0 | 0 | 6 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.22 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 5 | |
▷ Named functions | 5 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 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
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
css/icons/list-fields.png | 1.28KB | 0.62KB | ▼ 51.60% |