84% 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 scored84%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: 6.3.1
  • 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,819 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: ▼9.23ms] Passed 4 tests

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.47 ▲0.0141.22 ▼11.53
Dashboard /wp-admin3.31 ▼0.0348.76 ▼19.07
Posts /wp-admin/edit.php3.36 ▲0.0152.47 ▼2.04
Add New Post /wp-admin/post-new.php5.89 ▲0.0199.72 ▼4.26
Media Library /wp-admin/upload.php3.23 ▲0.0037.75 ▼0.39

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-posts
theysaidso_admin_options
can_compress_scripts
widget_recent-comments
widget_theysaidso_widget

Browser metrics Passed 4 tests

Advanced Custom Fields: W4 Post List Bridge: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.75 ▲0.371.70 ▼0.1343.68 ▼2.75
Dashboard /wp-admin2,195 ▲215.63 ▲0.0590.92 ▼5.9938.12 ▲0.22
Posts /wp-admin/edit.php2,100 ▼02.04 ▲0.0140.19 ▲3.1935.88 ▼0.66
Add New Post /wp-admin/post-new.php1,536 ▲1023.38 ▼0.16680.27 ▲10.5452.19 ▼7.44
Media Library /wp-admin/upload.php1,400 ▼04.26 ▲0.0299.64 ▼2.9342.39 ▼1.43

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
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget

Smoke tests 75% from 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 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following items
  • 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 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
4 plugin tags: post list, shortcode, acf, custom post list

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

This is the main PHP file of "Advanced Custom Fields: W4 Post List Bridge" version 1.0.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
You should first fix the following items:
  • Main file name: The principal plugin file should be the same as the plugin slug ("advanced-custom-fields-w4-post-list-bridge.php" instead of "acf-w4-post-list-bridge.php")
  • Description: Keep the plugin description shorter than 140 characters (currently 142 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin17 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP141117

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.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
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

Using a strong compression for your PNG files is a great way to speed-up your plugin
There are no PNG files in this plugin