94% advanced-custom-fields-w4-post-list-bridge

Code Review | Advanced Custom Fields: W4 Post List Bridge

WordPress plugin Advanced Custom Fields: W4 Post List Bridge scored 94% from 54 tests.

About plugin

  • Plugin page: advanced-custom-f...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.0-3.4
  • WordPress version: 5.9.2
  • First release: Jul 17, 2015
  • Latest release: Jul 17, 2015
  • Number of updates: 3
  • Update frequency: every 0.3 days
  • Top authors: pmill (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active / 1,543 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
Installer ran successfully

Server metrics [RAM: ▼0.02MB] [CPU: ▼296.56ms] Passed 4 tests

Analyzing server-side resources used by Advanced Custom Fields: W4 Post List Bridge
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0151.76 ▲1.63
Dashboard /wp-admin3.41 ▲0.0131.29 ▼1.07
Posts /wp-admin/edit.php3.64 ▲0.0044.25 ▲8.15
Add New Post /wp-admin/post-new.php6.88 ▼0.0992.35 ▼1,187.57
Media Library /wp-admin/upload.php3.30 ▲0.0025.78 ▲0.78

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 2 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Advanced Custom Fields: W4 Post List Bridge: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,763 ▲915.89 ▲0.205.66 ▼0.542.42 ▼0.13
Dashboard /wp-admin2,891 ▲366.10 ▼0.10114.87 ▼22.73154.84 ▼0.40
Posts /wp-admin/edit.php2,685 ▲283.24 ▼0.0166.40 ▲3.16139.70 ▲0.99
Add New Post /wp-admin/post-new.php1,752 ▲4121.70 ▲0.81433.28 ▼23.65155.16 ▼14.17
Media Library /wp-admin/upload.php1,692 ▼65.54 ▲0.04148.61 ▼0.15185.26 ▼8.83

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Uninstall script ran successfully

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

SRP 50% from 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
Please fix the following
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/advanced-custom-fields-w4-post-list-bridge/acf-w4-post-list-bridge.php:13

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


Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
4 plugin tags: custom post list, post list, acf, shortcode

advanced-custom-fields-w4-post-list-bridge/acf-w4-post-list-bridge.php 85% from 13 tests

The main file in "Advanced Custom Fields: W4 Post List Bridge" v. 1.0.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please take the time to fix the following:
  • Description: The description should be shorter than 140 characters (currently 142 characters long)
  • Main file name: Name the main plugin file the same as the plugin slug ("advanced-custom-fields-w4-post-list-bridge.php" instead of "acf-w4-post-list-bridge.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected17 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.00
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

Often times overlooked, PNG files can occupy unnecessary space in your plugin
PNG images were not found in this plugin