90% acf-5-pro-json-storage

Code Review | ACF 5 Pro JSON Storage

WordPress plugin ACF 5 Pro JSON Storage scored90%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: 6.3.1
  • 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,598 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully

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

Server-side resources used by ACF 5 Pro JSON Storage
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0041.06 ▲0.36
Dashboard /wp-admin3.31 ▲0.0152.71 ▼0.34
Posts /wp-admin/edit.php3.36 ▲0.0044.20 ▼5.01
Add New Post /wp-admin/post-new.php5.89 ▲0.0088.39 ▼9.33
Media Library /wp-admin/upload.php3.23 ▲0.0038.75 ▲1.25

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
db_upgraded
widget_recent-comments
widget_recent-posts
can_compress_scripts
widget_theysaidso_widget

Browser metrics Passed 4 tests

Checking browser requirements for ACF 5 Pro JSON Storage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.69 ▲0.531.72 ▼0.1445.14 ▼2.67
Dashboard /wp-admin2,198 ▲215.65 ▲0.1084.00 ▼16.3841.13 ▼2.91
Posts /wp-admin/edit.php2,100 ▲32.04 ▲0.0435.23 ▼3.1933.19 ▼1.92
Add New Post /wp-admin/post-new.php1,545 ▼023.41 ▲0.27671.09 ▲7.1956.21 ▲4.83
Media Library /wp-admin/upload.php1,397 ▼34.32 ▲0.07105.70 ▲3.9348.79 ▼0.02

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts
    • 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
Everything seems fine, however this is by no means an exhaustive test

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
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found

Optimizations

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
5 plugin tags: storage, location, json, acfpro, save

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

The main PHP file in "ACF 5 Pro JSON Storage" ver. 1.0.0 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
  • Main file name: The principal plugin file should be the same 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 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected25 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP243615
Markdown17010

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
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
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%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
There are no PNG files in this plugin