100% acf-5-pro-json-storage

Code Review | ACF 5 Pro JSON Storage

WordPress plugin ACF 5 Pro JSON Storage scored 100% from 54 tests.

About plugin

  • Plugin page: acf-5-pro-json-st...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5.0-4.0
  • WordPress version: 5.9.2
  • First release: Nov 14, 2015
  • Latest release: Nov 14, 2015
  • Number of updates: 2
  • Update frequency: N/A
  • Top authors: craigsimps (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active / 1,323 total downloads


Plugin footprint Passed 16 tests

Installer Passed 1 test

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

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

A check of server-side resources used by ACF 5 Pro JSON Storage
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /4.21 ▲0.0167.97 ▲9.41
Dashboard /wp-admin4.04 ▲0.0142.97 ▼0.85
Posts /wp-admin/edit.php4.33 ▲0.0147.02 ▲5.18
Add New Post /wp-admin/post-new.php7.57 ▼0.02106.97 ▼1,245.33
Media Library /wp-admin/upload.php3.99 ▲0.0130.39 ▼3.85

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 5 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

This is an overview of browser requirements for ACF 5 Pro JSON Storage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,764 ▲1016.20 ▲0.195.71 ▼1.082.17 ▼0.31
Dashboard /wp-admin2,895 ▲346.12 ▼0.11152.28 ▲15.48173.23 ▲7.87
Posts /wp-admin/edit.php2,691 ▼03.22 ▼0.0264.79 ▼1.32155.69 ▲7.45
Add New Post /wp-admin/post-new.php1,698 ▼6022.62 ▲1.29451.68 ▼8.41182.28 ▲8.02
Media Library /wp-admin/upload.php1,694 ▼45.52 ▲0.02173.79 ▲34.08191.95 ▼53.02

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
This plugin's uninstaller ran successfully

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP Passed 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
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 shallow check for browser errors
No browser issues were found


Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
5 plugin tags: location, json, storage, save, acfpro

acf-5-pro-json-storage/acf-5-json-storage.php 92% from 13 tests

"ACF 5 Pro JSON Storage" version 1.0.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
You should first fix the following items:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("acf-5-pro-json-storage.php" instead of "acf-5-json-storage.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
No dangerous file extensions were detected25 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.14
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 functions2100.00%
▷ Anonymous functions00.00%
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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
There are no PNG files in this plugin