90% buddyforms-hook-fields

Code Review | Display Data on your site! Create Dynamic Content Templates from any form of data. Works with ACF, Pods, BuddyPress/ BuddyBoss

WordPress plugin Display Data on your site! Create Dynamic Content Templates from any form of data. Works with ACF, Pods, BuddyPress/ BuddyBoss scored90%from 54 tests.

About plugin

  • Plugin page: buddyforms-hook-f...
  • Plugin version: 1.3.16
  • PHP version: 7.4.16
  • WordPress compatibility: 3.9-6.4.1
  • WordPress version: 6.3.1
  • First release: May 16, 2014
  • Latest release: Nov 20, 2023
  • Number of updates: 118
  • Update frequency: every 29.5 days
  • Top authors: svenl77 (90.68%)gfirem (10.17%)

Code review

54 tests

User reviews

3 reviews

Install metrics

90+ active /8,537 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

Server metrics [RAM: ▲0.40MB] [CPU: ▼5.52ms] Passed 4 tests

This is a short check of server-side resources used by Display Data on your site! Create Dynamic Content Templates from any form of data. Works with ACF, Pods, BuddyPress/ BuddyBoss
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.61 ▲0.1439.81 ▼2.24
Dashboard /wp-admin3.84 ▲0.5050.50 ▼12.51
Posts /wp-admin/edit.php3.89 ▲0.5450.33 ▲4.89
Add New Post /wp-admin/post-new.php6.36 ▲0.4881.54 ▼12.20
Media Library /wp-admin/upload.php3.70 ▲0.4738.63 ▲4.87
Install Plugins /wp-admin/plugins.php?page=tgmpa-install-plugins3.8736.84
Template /wp-admin/edit.php?post_type=bf_template3.8135.27

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 56 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-posts
widget_recent-comments
widget_theysaidso_widget
theysaidso_admin_options
can_compress_scripts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Display Data on your site! Create Dynamic Content Templates from any form of data. Works with ACF, Pods, BuddyPress/ BuddyBoss
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,823 ▲7614.61 ▲0.351.78 ▲0.1647.94 ▲2.88
Dashboard /wp-admin2,225 ▲455.57 ▲0.0386.82 ▼13.1440.87 ▼3.12
Posts /wp-admin/edit.php2,142 ▲422.06 ▲0.0941.18 ▲5.5440.12 ▲2.26
Add New Post /wp-admin/post-new.php1,552 ▲2623.44 ▲0.27662.31 ▼27.1450.49 ▲4.88
Media Library /wp-admin/upload.php1,435 ▲354.26 ▲0.0898.60 ▼2.4245.45 ▼1.38
Install Plugins /wp-admin/plugins.php?page=tgmpa-install-plugins9742.0627.4631.22
Template /wp-admin/edit.php?post_type=bf_template1,1021.9733.9133.67

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested

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
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
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
5 plugin tags: dynamic templates, content templates, form content templates, display form data, form submission data

buddyforms-hook-fields/buddyforms-hook-fields.php 92% from 13 tests

"Display Data on your site! Create Dynamic Content Templates from any form of data. Works with ACF, Pods, BuddyPress/ BuddyBoss" version 1.3.16's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug

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
Success! There were no dangerous files found in this plugin5,766 lines of code in 26 files:
LanguageFilesBlank linesComment linesLines of code
PO File171,4491,9934,842
PHP6164126774
JavaScript110369
CSS17057
JSON10024

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.54
Average class complexity48.14
▷ Minimum class complexity1.00
▷ Maximum class complexity206.00
Average method complexity4.27
▷ Minimum method complexity1.00
▷ Maximum method complexity34.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods101
▷ Static methods54.95%
▷ Public methods7877.23%
▷ Protected methods2322.77%
▷ Private methods00.00%
Functions27
▷ Named functions2074.07%
▷ Anonymous functions725.93%
Constants3
▷ Global constants00.00%
▷ Class constants3100.00%
▷ Public constants3100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
3 PNG files occupy 0.07MB with 0.04MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
includes/assets/images/compressed.png30.40KB9.02KB▼ 70.32%
includes/assets/images/multimedia.png6.05KB3.17KB▼ 47.68%
includes/assets/images/pdf.png30.63KB8.84KB▼ 71.14%