90% acf-simple-cache

Code Review | Local JSON in uploads for ACF

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

About plugin

  • Plugin page: acf-simple-cache
  • Plugin version: 1.0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-6.1
  • WordPress version: 6.3.1
  • First release: Nov 13, 2017
  • Latest release: Feb 16, 2023
  • Number of updates: 5
  • Update frequency: every 384.2 days
  • Top authors: nextplugins (100%)

Code review

54 tests

User reviews

1 review

Install metrics

50+ active /1,604 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully

Server metrics [RAM: ▼0.00MB] [CPU: ▼8.45ms] Passed 4 tests

This is a short check of server-side resources used by Local JSON in uploads for ACF
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0136.57 ▼5.10
Dashboard /wp-admin3.31 ▼0.0344.94 ▼12.14
Posts /wp-admin/edit.php3.36 ▲0.0147.47 ▲7.35
Add New Post /wp-admin/post-new.php5.89 ▲0.0182.27 ▼17.35
Media Library /wp-admin/upload.php3.23 ▲0.0135.39 ▲0.78

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_theysaidso_widget
db_upgraded
theysaidso_admin_options
widget_recent-posts
widget_recent-comments

Browser metrics Passed 4 tests

This is an overview of browser requirements for Local JSON in uploads for ACF
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲5813.26 ▼0.951.74 ▲0.0143.27 ▼2.98
Dashboard /wp-admin2,210 ▲194.89 ▼1.02108.14 ▲5.5146.55 ▲10.61
Posts /wp-admin/edit.php2,095 ▲92.05 ▲0.0439.06 ▼0.3437.41 ▲2.11
Add New Post /wp-admin/post-new.php1,537 ▲1123.20 ▲0.08616.09 ▲10.0160.92 ▲1.65
Media Library /wp-admin/upload.php1,386 ▲14.17 ▼0.05112.76 ▲19.7346.17 ▲2.77

Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test

SRP Passed 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
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
8 plugin tags: caching, cache, speed, acf fields, field caching...

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

"Local JSON in uploads for ACF" version 1.0.2'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:
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6

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
There were no executable files found in this plugin55 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP2181555

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.37
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
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions7
▷ Named functions7100.00%
▷ Anonymous functions00.00%
Constants1
▷ 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
No PNG images were found in this plugin