100% acf-pro-show-fields-shortcode

Code Review | ACF Pro show fields shortcode

WordPress plugin ACF Pro show fields shortcode scored 100% from 54 tests.

About plugin

  • Plugin page: acf-pro-show-fiel...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9-5.3
  • WordPress version: 5.9.2
  • First release: Dec 13, 2019
  • Latest release: Dec 13, 2019
  • Number of updates: 2
  • Update frequency: every 0.5 days
  • Top authors: markomaksym (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 355 total downloads


Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.03MB] [CPU: ▼297.66ms] Passed 4 tests

Server-side resources used by ACF Pro show fields shortcode
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.64 ▲0.1255.34 ▲2.06
Dashboard /wp-admin3.46 ▲0.0535.05 ▲2.48
Posts /wp-admin/edit.php3.69 ▲0.0538.60 ▲1.87
Add New Post /wp-admin/post-new.php6.93 ▼0.0495.95 ▼1,197.03
Media Library /wp-admin/upload.php3.35 ▲0.0530.54 ▲5.40

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 32 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

A check of browser resources used by ACF Pro show fields shortcode
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,763 ▲916.20 ▲0.115.95 ▼0.512.25 ▼0.33
Dashboard /wp-admin2,895 ▲346.14 ▼0.04116.90 ▼16.39153.32 ▼6.31
Posts /wp-admin/edit.php2,688 ▼63.25 ▲0.0162.91 ▲0.31143.22 ▼0.85
Add New Post /wp-admin/post-new.php1,776 ▲11522.26 ▲5.90445.45 ▲48.82164.72 ▲9.49
Media Library /wp-admin/upload.php1,698 ▼05.53 ▲0.00154.05 ▲17.05193.02 ▲5.81

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Uninstaller ran successfully

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though everything seems fine, this is not 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
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

Often overlooked, readme.txt is one of the most important files in your plugin
4 plugin tags: display fields, acf pro, get fields, show fields

acf-pro-show-fields-shortcode/acf-pro-show-fields-shortcode.php 92% from 13 tests

"ACF Pro show fields shortcode" version 1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please take the time to fix the following:
  • Description: Please keep the plugin description shorter than 140 characters (currently 160 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
No dangerous file extensions were detected3,340 lines of code in 24 files:
LanguageFilesBlank linesComment linesLines of code
PO File18833

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.29
Average class complexity2.43
▷ Minimum class complexity1.00
▷ Maximum class complexity8.00
Average method complexity1.56
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
▷ Abstract classes17.14%
▷ Concrete classes1392.86%
▷ Final classes17.69%
▷ Static methods923.68%
▷ Public methods38100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions466.67%
▷ Anonymous functions233.33%
▷ Global constants7100.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
No PNG files were detected