Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲0.00MB] [CPU: ▼306.78ms] Passed 4 tests
This is a short check of server-side resources used by ACF Pro JSON Sync
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.54 ▲0.02 | 55.94 ▲7.69 |
Dashboard /wp-admin | 3.43 ▲0.02 | 34.75 ▲0.12 |
Posts /wp-admin/edit.php | 3.66 ▲0.02 | 40.24 ▲1.55 |
Add New Post /wp-admin/post-new.php | 6.91 ▼0.06 | 92.96 ▼1,227.85 |
Media Library /wp-admin/upload.php | 3.31 ▲0.02 | 24.82 ▼0.95 |
Sync ACF /wp-admin/admin.php?page=sync_acf | 3.28 | 21.47 |
Run Sync /wp-admin/admin.php?page=run_acf_sync | 3.27 | 21.61 |
Server storage [IO: ▲0.06MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 6 new files
Database: no new tables, 1 new option
New WordPress options |
---|
recovery_mode_email_last_sent |
Browser metrics Passed 4 tests
This is an overview of browser requirements for ACF Pro JSON Sync
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,799 ▲45 | 15.89 ▲0.23 | 5.83 ▼0.07 | 2.12 ▼0.13 |
Dashboard /wp-admin | 2,928 ▲70 | 6.14 ▼0.17 | 120.16 ▼16.91 | 157.77 ▼6.39 |
Posts /wp-admin/edit.php | 2,724 ▲33 | 3.24 ▲0.01 | 64.05 ▼2.37 | 137.85 ▼13.11 |
Add New Post /wp-admin/post-new.php | 1,735 ▼17 | 21.69 ▲0.83 | 442.11 ▼30.40 | 163.25 ▲4.10 |
Media Library /wp-admin/upload.php | 1,734 ▲33 | 5.46 ▼0.04 | 150.08 ▲2.97 | 194.49 ▲7.17 |
Sync ACF /wp-admin/admin.php?page=sync_acf | 904 | 1.97 | 37.47 | 97.48 |
Run Sync /wp-admin/admin.php?page=run_acf_sync | 864 | 1.97 | 36.35 | 72.83 |
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
The following items require your attention
- This plugin did not uninstall successfully, leaving 1 option in the database
- recovery_mode_email_last_sent
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Please fix the following server-side errors
- > GET request to /wp-admin/admin.php?page=sync_acf
- > Error in wp-content/plugins/acf-pro-sync/acf-sync.php+15
Uncaught Error: Call to undefined function acf_get_setting() in wp-content/plugins/acf-pro-sync/acf-sync.php:15
Stack trace:
#0 wp-content/plugins/acf-pro-sync/views/sync.php(11): acf_sync_check_json_dirs()
#1 wp-content/plugins/acf-pro-sync/acf-sync.php(195): include('/var/www/wordpr...')
#2 wp-includes/class-wp-hook.php(307): acf_sync_page()
#3 wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters()
#4 wp-includes/plugin.php(474): WP_Hook->do_action()
#5 wp-admin/admin.php(259): do_action()
#6 {main}
thrown- > GET request to /wp-admin/admin.php?page=run_acf_sync
- > Error in wp-content/plugins/acf-pro-sync/acf-sync.php+51
Uncaught Error: Call to undefined function acf_get_setting() in wp-content/plugins/acf-pro-sync/acf-sync.php:51
Stack trace:
#0 wp-content/plugins/acf-pro-sync/acf-sync.php(200): acf_sync_import_json_folder()
#1 wp-includes/class-wp-hook.php(307): run_acf_sync()
#2 wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters()
#3 wp-includes/plugin.php(474): WP_Hook->do_action()
#4 wp-admin/admin.php(259): do_action()
#5 {main}
thrown
SRP 0% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Almost there! Just fix the following items
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/acf-pro-sync/views/sync-complete.php
- 2× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/acf-pro-sync/acf-sync.php:178
- > PHP Fatal error
Uncaught Error: Call to undefined function get_template_directory() in wp-content/plugins/acf-pro-sync/views/sync.php:2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found
Optimizations
Plugin configuration 87% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that require attention:
- Tags: Too many tags (17 tag instead of maximum 10); only the first 5 tags are used in your directory listing
- Screenshots: Screenshot #1 (AFC Pro Sync admin screen) image missing
acf-pro-sync/acf-sync.php 85% from 13 tests
"ACF Pro JSON Sync" version 1.0.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please make the necessary changes and fix the following:
- Description: Please don't use more than 140 characters for the plugin description (currently 141 characters long)
- Main file name: Name the main plugin file the same as the plugin slug ("acf-pro-sync.php" instead of "acf-sync.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Everything looks great! No dangerous files found in this plugin163 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 76 | 24 | 142 |
CSS | 1 | 3 | 0 | 21 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
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 | 10 | |
▷ Named functions | 10 | 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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
1 PNG file occupies 0.05MB with 0.04MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 54.19KB | 16.83KB | ▼ 68.95% |