100% acf-simple-cache

Code Review | Local JSON in uploads for ACF

WordPress plugin Local JSON in uploads for ACF scored 100% from 54 tests.

About plugin

  • Plugin page: acf-simple-cache
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-5.6
  • WordPress version: 5.9.2
  • First release: Nov 13, 2017
  • Latest release: Feb 18, 2021
  • Number of updates: 4
  • Update frequency: every 298.3 days
  • Top authors: nextplugins (100%)

Code review

54 tests

User reviews

1 review

Install metrics

50+ active / 1,169 total downloads


Plugin footprint Passed 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: ▼289.68ms] Passed 4 tests

A check of server-side resources used by Local JSON in uploads for ACF
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0252.75 ▲1.28
Dashboard /wp-admin3.43 ▲0.0132.14 ▼0.64
Posts /wp-admin/edit.php3.66 ▲0.0141.94 ▲4.72
Add New Post /wp-admin/post-new.php6.90 ▼0.0799.04 ▼1,154.66
Media Library /wp-admin/upload.php3.31 ▲0.0125.66 ▼4.70

Server storage [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 3 tests

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 3 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Local JSON in uploads for ACF: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,801 ▲4715.65 ▲0.016.05 ▼0.072.82 ▲0.20
Dashboard /wp-admin2,901 ▲476.16 ▲0.04115.23 ▼22.21157.24 ▼2.21
Posts /wp-admin/edit.php2,689 ▲13.23 ▼0.0166.54 ▲1.50141.04 ▲3.38
Add New Post /wp-admin/post-new.php1,715 ▼3721.36 ▲0.46461.14 ▲10.07159.78 ▲4.16
Media Library /wp-admin/upload.php1,704 ▲65.53 ▲0.00145.77 ▲0.99194.23 ▲3.60

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The plugin uninstalled successfully, without leaving any zombie files or tables

Smoke tests Passed 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 Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side


Plugin configuration 96% from 29 tests

readme.txt Passed 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
8 plugin tags: acf, acf fields, field caching, cache, json caching...

acf-simple-cache/acf-simple-cache.php 92% from 13 tests

The primary PHP file in "Local JSON in uploads for ACF" version 1.0.1 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug

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
Success! There were no dangerous files found in this plugin53 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.39
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions7100.00%
▷ Anonymous functions00.00%
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
PNG images were not found in this plugin