100% acf-snippets

Code Review | Advanced Custom Fields: Snippets

WordPress plugin Advanced Custom Fields: Snippets scored 100% from 54 tests.

About plugin

  • Plugin page: acf-snippets
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.8-5.2
  • WordPress version: 5.9.2
  • First release: Jun 8, 2019
  • Latest release: Jun 8, 2019
  • Number of updates: 8
  • Update frequency: every 0.9 days
  • Top authors: tomekthewo (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 462 total downloads


Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.01MB] [CPU: ▼294.11ms] Passed 4 tests

A check of server-side resources used by Advanced Custom Fields: Snippets
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0454.11 ▲2.33
Dashboard /wp-admin3.44 ▲0.0436.02 ▲2.02
Posts /wp-admin/edit.php3.67 ▲0.0339.61 ▲1.72
Add New Post /wp-admin/post-new.php6.91 ▼0.0695.20 ▼1,177.51
Media Library /wp-admin/upload.php3.33 ▲0.0322.95 ▼2.66

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 7 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

A check of browser resources used by Advanced Custom Fields: Snippets
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,801 ▲5916.00 ▲0.356.29 ▲0.652.95 ▲0.54
Dashboard /wp-admin2,901 ▲406.10 ▼0.10116.41 ▼25.90157.70 ▼5.54
Posts /wp-admin/edit.php2,692 ▼23.24 ▲0.0062.32 ▼0.91138.78 ▼7.53
Add New Post /wp-admin/post-new.php1,665 ▼5216.34 ▼5.49449.02 ▲5.97158.61 ▲4.11
Media Library /wp-admin/upload.php1,707 ▲125.45 ▼0.03141.15 ▲1.85185.66 ▲2.29

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
The plugin uninstalled completely, with no zombie files or tables

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting 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
Congratulations! This plugin passed the SRP test

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 Passed 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
3 plugin tags: acf, advanced custom fields, snippets

acf-snippets/acf-snippets.php Passed 13 tests

The main file in "Advanced Custom Fields: Snippets" v. 1.0.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
137 characters long description:
Adds useful function for rendering image fields, link fields, repeater fields and flexible content for the Advanced Custom Fields plugin.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable files found in this plugin181 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.66
Average class complexity2.00
▷ Minimum class complexity2.00
▷ Maximum class complexity2.00
Average method complexity1.25
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions7100.00%
▷ Anonymous functions00.00%
▷ Global constants00.00%
▷ Class constants2100.00%
▷ Public constants2100.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