84% acf-qr-code-field

Code Review | Advanced Custom Fields: QR Code Field

WordPress plugin Advanced Custom Fields: QR Code Field scored84%from 54 tests.

About plugin

  • Plugin page: acf-qr-code-field
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.6.0-5.9.2
  • WordPress version: 6.3.1
  • First release: Apr 5, 2022
  • Latest release: Apr 5, 2022
  • Number of updates: 2
  • Update frequency: N/A
  • Top authors: bytebuddies (100%)

Code review

54 tests

User reviews

1 review

Install metrics

40+ active /1,509 total downloads


Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼5.87ms] Passed 4 tests

A check of server-side resources used by Advanced Custom Fields: QR Code Field
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0340.48 ▲3.00
Dashboard /wp-admin3.32 ▼0.0247.80 ▼10.01
Posts /wp-admin/edit.php3.37 ▲0.0245.71 ▲1.33
Add New Post /wp-admin/post-new.php5.90 ▲0.0279.24 ▼11.51
Media Library /wp-admin/upload.php3.24 ▲0.0132.78 ▼3.30

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 15 new files
Database: no new tables, 6 new options
New WordPress options

Browser metrics Passed 4 tests

Advanced Custom Fields: QR Code Field: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,883 ▲13713.68 ▼0.965.92 ▲4.2743.42 ▲2.32
Dashboard /wp-admin2,206 ▲214.82 ▼1.03114.71 ▲14.5041.83 ▼1.58
Posts /wp-admin/edit.php2,086 ▼31.99 ▼0.0134.21 ▼2.9034.53 ▲2.75
Add New Post /wp-admin/post-new.php1,542 ▲918.61 ▼4.49622.89 ▼43.3551.39 ▼9.06
Media Library /wp-admin/upload.php1,388 ▲34.16 ▼0.1099.15 ▼5.8640.29 ▼5.58

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 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
Please take a closer look at the following
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/acf-qr-code-field/hooks.php:6

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found


Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
2 plugin tags: qrcode, acf

acf-qr-code-field/acf-qrcode.php 85% from 13 tests

The entry point to "Advanced Custom Fields: QR Code Field" version 1.0.0 is a PHP file that has certain tags in its header comment area
The following require your attention:
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("acf-qr-code-field.php" instead of "acf-qrcode.php")

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
No dangerous file extensions were detected156 lines of code in 12 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.19
Average class complexity1.00
▷ Minimum class complexity1.00
▷ Maximum class complexity1.00
Average method complexity1.00
▷ Minimum method complexity1.00
▷ Maximum method complexity1.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods5100.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

All PNG images should be compressed to minimize bandwidth usage for end users
There were not PNG files found in your plugin