100% acf-for-dokan

Code Review | ACF For Dokan

WordPress plugin ACF For Dokan scored 100% from 54 tests.

About plugin

  • Plugin page: acf-for-dokan
  • Plugin version: 1.3.3
  • PHP version: 7.4.16
  • WordPress compatibility: 5.1-5.9
  • WordPress version: 5.9.2
  • First release: Apr 3, 2021
  • Latest release: Mar 6, 2022
  • Number of updates: 58
  • Update frequency: every 5.9 days
  • Top authors: krazyplugins (100%)

Code review

54 tests

User reviews

19 reviews

Install metrics

900+ active / 7,525 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.03MB] [CPU: ▼297.70ms] Passed 4 tests

Analyzing server-side resources used by ACF For Dokan
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.58 ▲0.0656.04 ▼5.43
Dashboard /wp-admin3.48 ▲0.0644.93 ▲0.71
Posts /wp-admin/edit.php3.70 ▲0.0641.80 ▼4.16
Add New Post /wp-admin/post-new.php6.94 ▼0.0496.81 ▼1,179.39
Media Library /wp-admin/upload.php3.35 ▲0.0524.98 ▼1.80

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 10 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

This is an overview of browser requirements for ACF For Dokan
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,809 ▲5515.93 ▲0.166.03 ▼0.892.67 ▼0.56
Dashboard /wp-admin2,902 ▲446.26 ▲0.07119.83 ▼15.42155.78 ▼6.76
Posts /wp-admin/edit.php2,706 ▲153.24 ▲0.0064.27 ▼0.66139.70 ▼4.72
Add New Post /wp-admin/post-new.php1,672 ▲1117.34 ▲1.75421.78 ▲14.87159.50 ▲3.04
Media Library /wp-admin/upload.php1,709 ▲85.49 ▼0.01143.75 ▼2.29182.18 ▼6.27

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The plugin uninstalled successfully, without leaving any zombie files or tables

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check 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
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
5 plugin tags: dokan, acf, marketplace, advanced custom fields, multivendor

acf-for-dokan/acf-for-dokan.php Passed 13 tests

This is the main PHP file of "ACF For Dokan" version 1.3.3, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
88 characters long description:
Allows admin to create new custom field for vendor add/edit product in vendor dashboard.

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
Success! There were no dangerous files found in this plugin308 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP332107278
JavaScript10028
Markdown1002

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.53
Average class complexity47.00
▷ Minimum class complexity47.00
▷ Maximum class complexity47.00
Average method complexity5.60
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods10
▷ Static methods00.00%
▷ Public methods10100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG files were detected