94% acf-yith-woocommerce-compare-support

Code Review | Advanced Custom Fields YITH WooCommerce Compare support

WordPress plugin Advanced Custom Fields YITH WooCommerce Compare support scored 94% from 54 tests.

About plugin

  • Plugin page: acf-yith-woocomme...
  • Plugin version: 1.0.4
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.6
  • WordPress version: 5.9.2
  • First release: Oct 30, 2018
  • Latest release: Dec 10, 2020
  • Number of updates: 7
  • Update frequency: every 110.3 days
  • Top authors: olezhyk5 (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

200+ active / 1,998 total downloads


Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices

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

A check of server-side resources used by Advanced Custom Fields YITH WooCommerce Compare support
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0156.04 ▲1.35
Dashboard /wp-admin3.42 ▲0.0133.71 ▼1.24
Posts /wp-admin/edit.php3.65 ▲0.0143.07 ▲7.08
Add New Post /wp-admin/post-new.php6.89 ▼0.0995.31 ▼1,188.83
Media Library /wp-admin/upload.php3.30 ▲0.0025.86 ▲2.97

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 5 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

An overview of browser requirements for Advanced Custom Fields YITH WooCommerce Compare support
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,795 ▲7315.56 ▼0.066.21 ▲0.452.28 ▼0.18
Dashboard /wp-admin2,905 ▲476.09 ▼0.07118.31 ▼12.96156.16 ▼3.27
Posts /wp-admin/edit.php2,698 ▲73.24 ▼0.0066.73 ▲4.23137.98 ▲2.09
Add New Post /wp-admin/post-new.php1,725 ▲6421.81 ▲5.76412.49 ▲8.79165.73 ▲10.46
Media Library /wp-admin/upload.php1,708 ▲105.51 ▼0.01135.54 ▼12.97190.64 ▼2.27

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The plugin uninstalled successfully, without leaving any zombie files or tables

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

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

SRP 50% from 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
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-yith-woocommerce-compare-support/advanced-custom-fields-yith-woocommerce-compare-support.php:13

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test


Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need your attention: The official readme.txt might help

acf-yith-woocommerce-compare-support/init.php 92% from 13 tests

The main PHP file in "Advanced Custom Fields YITH WooCommerce Compare support" ver. 1.0.4 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("acf-yith-woocommerce-compare-support.php" instead of "init.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected405 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.76
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 functions990.00%
▷ Anonymous functions110.00%
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There were not PNG files found in your plugin