90% acf-pro-show-fields-shortcode

Code Review | ACF Pro show fields shortcode

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

About plugin

  • Plugin page: acf-pro-show-fiel...
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9-6.3
  • WordPress version: 6.3.1
  • First release: Dec 13, 2019
  • Latest release: Aug 26, 2023
  • Number of updates: 3
  • Update frequency: every 451.0 days
  • Top authors: markomaksym (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /598 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
This plugin's installer ran successfully

Server metrics [RAM: ▲0.05MB] [CPU: ▼1.96ms] Passed 4 tests

An overview of server-side resources used by ACF Pro show fields shortcode
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0538.71 ▲1.76
Dashboard /wp-admin3.36 ▲0.0644.16 ▼4.80
Posts /wp-admin/edit.php3.48 ▲0.1248.72 ▼1.36
Add New Post /wp-admin/post-new.php5.94 ▲0.0594.44 ▲1.48
Media Library /wp-admin/upload.php3.29 ▲0.0535.44 ▼3.17

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 32 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_recent-posts
theysaidso_admin_options
widget_theysaidso_widget
can_compress_scripts
db_upgraded

Browser metrics Passed 4 tests

Checking browser requirements for ACF Pro show fields shortcode
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.63 ▼0.631.59 ▼0.1238.98 ▼0.69
Dashboard /wp-admin2,206 ▲184.87 ▼1.01110.83 ▲9.1440.68 ▲0.12
Posts /wp-admin/edit.php2,089 ▼02.00 ▼0.0638.89 ▼2.1335.83 ▼0.44
Add New Post /wp-admin/post-new.php1,538 ▲1923.32 ▲0.15662.09 ▲57.6055.28 ▲8.20
Media Library /wp-admin/upload.php1,388 ▼04.19 ▲0.0493.46 ▼8.9140.45 ▼3.15

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
4 plugin tags: show fields, acf pro, display fields, get fields

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

The entry point to "ACF Pro show fields shortcode" version 1.1 is a PHP file that has certain tags in its header comment area
Please make the necessary changes and fix the following:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 160 characters long)

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 plugin3,364 lines of code in 24 files:
LanguageFilesBlank linesComment linesLines of code
CSS30142,190
SVG100685
PHP18355290454
PO File18833
JavaScript1212

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.30
Average class complexity2.71
▷ Minimum class complexity1.00
▷ Maximum class complexity11.00
Average method complexity1.67
▷ Minimum method complexity1.00
▷ Maximum method complexity11.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes14
▷ Abstract classes17.14%
▷ Concrete classes1392.86%
▷ Final classes17.69%
Methods38
▷ Static methods923.68%
▷ Public methods38100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions6
▷ Named functions466.67%
▷ Anonymous functions233.33%
Constants7
▷ Global constants7100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There were not PNG files found in your plugin