83% acf-woocommerce-account-fields

Code Review | ACF Woocommerce Account Fields

WordPress plugin ACF Woocommerce Account Fields scored83%from 54 tests.

About plugin

  • Plugin page: acf-woocommerce-a...
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.2.1-5.2.1
  • WordPress version: 6.3.1
  • First release: Jul 3, 2019
  • Latest release: Jul 3, 2019
  • Number of updates: 3
  • Update frequency: N/A
  • Top authors: kenkeydev (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

400+ active /4,022 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲0.07MB] [CPU: ▼5.02ms] Passed 4 tests

An overview of server-side resources used by ACF Woocommerce Account Fields
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0738.00 ▼2.27
Dashboard /wp-admin3.37 ▲0.0749.65 ▼0.95
Posts /wp-admin/edit.php3.42 ▲0.0748.51 ▼0.55
Add New Post /wp-admin/post-new.php5.95 ▲0.0782.71 ▼16.31
Media Library /wp-admin/upload.php3.29 ▲0.0737.81 ▲0.49

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_theysaidso_widget
widget_recent-comments
can_compress_scripts
theysaidso_admin_options
widget_recent-posts

Browser metrics Passed 4 tests

Checking browser requirements for ACF Woocommerce Account Fields
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,802 ▲5613.68 ▼0.701.67 ▼0.2041.09 ▼2.65
Dashboard /wp-admin2,209 ▲185.87 ▼0.18108.08 ▲2.9642.76 ▼2.10
Posts /wp-admin/edit.php2,089 ▼02.01 ▼0.1238.37 ▼2.5137.42 ▼0.17
Add New Post /wp-admin/post-new.php1,514 ▼517.47 ▼5.53640.67 ▼16.7844.48 ▼4.02
Media Library /wp-admin/upload.php1,385 ▼34.21 ▲0.0198.46 ▼24.5541.86 ▼5.35

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 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
Please take a closer look at the following
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/acf-woocommerce-account-fields/acf-wc-account-fields.php:18

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)
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need to be fixed:
  • Screenshots: Please add an image for screenshot #1 (This is an example of setting the ACF form locations in Woocommerce)
You can look at the official readme.txt

acf-woocommerce-account-fields/acf-wc-account-fields.php 85% from 13 tests

The main file in "ACF Woocommerce Account Fields" 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:
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("acf-woocommerce-account-fields.php" instead of "acf-wc-account-fields.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
There were no executable files found in this plugin215 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP17210192
CSS14123

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.29
Average class complexity20.00
▷ Minimum class complexity20.00
▷ Maximum class complexity20.00
Average method complexity2.27
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods15
▷ Static methods00.00%
▷ Public methods15100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
2 PNG files occupy 0.21MB with 0.16MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png133.04KB34.62KB▼ 73.98%
screenshot-2.png84.51KB21.55KB▼ 74.50%