Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼3.79ms] Passed 4 tests
An overview of server-side resources used by ACF PHP VARS
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 40.82 ▲1.61 |
Dashboard /wp-admin | 3.32 ▲0.01 | 46.19 ▼3.42 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 43.97 ▲0.20 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 84.52 ▼11.75 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 32.94 ▼0.18 |
Server storage [IO: ▲0.10MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 14 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
db_upgraded |
widget_recent-comments |
widget_recent-posts |
theysaidso_admin_options |
can_compress_scripts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for ACF PHP VARS
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲39 | 14.42 ▲0.07 | 1.70 ▼0.04 | 44.52 ▲0.64 |
Dashboard /wp-admin | 2,203 ▲23 | 5.57 ▼0.03 | 96.59 ▲2.01 | 45.49 ▼0.34 |
Posts /wp-admin/edit.php | 2,108 ▲8 | 1.97 ▲0.02 | 35.64 ▲1.91 | 35.69 ▼3.30 |
Add New Post /wp-admin/post-new.php | 1,537 ▲11 | 23.82 ▲0.72 | 667.75 ▼9.73 | 62.24 ▲5.37 |
Media Library /wp-admin/upload.php | 1,411 ▲8 | 4.29 ▲0.11 | 98.90 ▼1.38 | 43.09 ▼8.05 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- can_compress_scripts
- widget_recent-posts
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-comments
- db_upgraded
Smoke tests 50% 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)
Everything seems fine, however this is by no means an exhaustive test
SRP 0% 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 items
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/acf-php-vars/inc/acf-examples.php
- 12× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Notice
Undefined variable: acf_field_TYPE in wp-content/plugins/acf-php-vars/inc/acf-examples.php on line 16
- > PHP Notice
Undefined variable: acf_field_TYPE in wp-content/plugins/acf-php-vars/inc/acf-examples.php on line 3
- > PHP Notice
Undefined variable: acf_field_TYPE in wp-content/plugins/acf-php-vars/inc/acf-examples.php on line 36
- > PHP Notice
Undefined variable: acf_field_TYPE in wp-content/plugins/acf-php-vars/inc/acf-examples.php on line 2
- > PHP Notice
Undefined variable: acf_field_TYPE in wp-content/plugins/acf-php-vars/inc/acf-examples.php on line 16
- > PHP Notice
Undefined variable: acf_field_TYPE in wp-content/plugins/acf-php-vars/inc/acf-examples.php on line 16
- > PHP Notice
Undefined variable: acf_field_TYPE in wp-content/plugins/acf-php-vars/inc/acf-examples.php on line 3
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/acf-php-vars/acf-php-vars.php:18
- > PHP Notice
Undefined variable: acf_field_TYPE in wp-content/plugins/acf-php-vars/inc/acf-examples.php on line 36
- > PHP Notice
Undefined variable: acf_field_TYPE in wp-content/plugins/acf-php-vars/inc/acf-examples.php on line 36
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need your attention:
- Screenshots: These screenshots do not have images: #1 (Fields vars displayed.), #2 (Fields vars showing as Keys.), #3 (Example code displayed.)
acf-php-vars/acf-php-vars.php Passed 13 tests
"ACF PHP VARS" version 1.3's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
123 characters long description:
Addon to ACF/ACF PRO that allows developers to copy/paste all created field variables of field groups to their theme files.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
No dangerous file extensions were detected551 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 104 | 57 | 301 |
JavaScript | 5 | 51 | 209 | 220 |
CSS | 1 | 1 | 1 | 15 |
Markdown | 1 | 11 | 0 | 15 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.24 |
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 | 9 | |
▷ Named functions | 9 | 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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
2 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
css/icons/sm-acf-logo.png | 0.65KB | 0.70KB | 0.00% |
css/icons/list-fields.png | 1.28KB | 0.62KB | ▼ 51.60% |