79% acf-for-dokan

Code Review | ACF For Dokan

WordPress plugin ACF For Dokan scored79%from 54 tests.

About plugin

  • Plugin page: acf-for-dokan
  • Plugin version: 2.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.1-6.3
  • WordPress version: 6.3.1
  • First release: Apr 3, 2021
  • Latest release: Oct 22, 2023
  • Number of updates: 73
  • Update frequency: every 12.8 days
  • Top authors: krazyplugins (100%)

Code review

54 tests

User reviews

34 reviews

Install metrics

1,000+ active /16,329 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲4.98MB] [CPU: ▲15.91ms] 75% from 4 tests

A check of server-side resources used by ACF For Dokan
Please take the time to fix the following items
  • CPU: Total CPU usage must kept under 500.00ms (currently 1,786.68ms on /wp-admin/admin.php?page=acf-for-dokan)
PageMemory (MB)CPU Time (ms)
Home /8.88 ▲5.4264.75 ▲23.30
Dashboard /wp-admin8.90 ▲5.5672.01 ▲11.73
Posts /wp-admin/edit.php8.91 ▲5.5469.07 ▲20.09
Add New Post /wp-admin/post-new.php9.28 ▲3.39105.86 ▲8.52
Media Library /wp-admin/upload.php8.90 ▲5.6770.28 ▲33.88
ACF For Dokan /wp-admin/admin.php?page=acf-for-dokan8.901,786.68
Freemius Debug [v.2.5.12] /wp-admin/admin.php?page=freemius8.9156.40

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 189 new files
Database: no new tables, 9 new options
New WordPress options
fs_accounts
theysaidso_admin_options
fs_debug_mode
widget_recent-comments
can_compress_scripts
widget_theysaidso_widget
fs_active_plugins
db_upgraded
widget_recent-posts

Browser metrics Passed 4 tests

A check of browser resources used by ACF For Dokan
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,817 ▲7114.39 ▲0.171.60 ▼0.0730.73 ▼8.12
Dashboard /wp-admin2,226 ▲525.58 ▲0.0096.10 ▲11.5245.85 ▲1.05
Posts /wp-admin/edit.php2,129 ▲292.11 ▲0.1641.81 ▲5.8637.26 ▲6.75
Add New Post /wp-admin/post-new.php1,546 ▲2018.06 ▼5.06652.99 ▼65.3658.46 ▲5.91
Media Library /wp-admin/upload.php1,428 ▲284.18 ▼0.0696.35 ▼9.5743.03 ▼2.95
ACF For Dokan /wp-admin/admin.php?page=acf-for-dokan9741.6625.1154.78
Freemius Debug [v.2.5.12] /wp-admin/admin.php?page=freemius1,0721.6823.9028.92

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • Uninstall procedure had uncaught errors
    • > Notice in wp-content/plugins/acf-for-dokan/freemius/includes/class-freemius.php+8515
    Undefined property: stdClass::$plugins
  • This plugin did not uninstall successfully, leaving 9 options in the database
    • theysaidso_admin_options
    • fs_debug_mode
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments
    • fs_accounts
    • fs_active_plugins
    • db_upgraded

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
Good news, no errors were detected

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
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 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
5 plugin tags: marketplace, acf, dokan, advanced custom fields, multivendor

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

The main file in "ACF For Dokan" v. 2.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
88 characters long description:
Allows admin to create new custom field for vendor add/edit product in vendor dashboard.

Code Analysis 97% from 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Good job! No executable or dangerous file extensions detected33,689 lines of code in 140 files:
LanguageFilesBlank linesComment linesLines of code
PHP1208,00217,31933,222
JavaScript43459222
Markdown2680216
XML13016
CSS130013

PHP code 50% from 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
The following items need your attention
  • Cyclomatic complexity of classes should be reduced to less than 1000 (currently 3,088)
Cyclomatic complexity
Average complexity per logical line of code0.64
Average class complexity92.43
▷ Minimum class complexity1.00
▷ Maximum class complexity3,088.00
Average method complexity4.61
▷ Minimum method complexity1.00
▷ Maximum method complexity94.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes49
▷ Abstract classes24.08%
▷ Concrete classes4795.92%
▷ Final classes00.00%
Methods1,269
▷ Static methods19815.60%
▷ Public methods87969.27%
▷ Protected methods171.34%
▷ Private methods37329.39%
Functions103
▷ Named functions103100.00%
▷ Anonymous functions00.00%
Constants149
▷ Global constants10268.46%
▷ Class constants4731.54%
▷ Public constants47100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
3 PNG files occupy 0.04MB with 0.02MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
freemius/assets/img/plugin-icon.png9.16KB5.26KB▼ 42.58%
freemius/assets/img/theme-icon.png10.97KB5.78KB▼ 47.37%
freemius/assets/img/acf-for-dokan.png19.63KB5.20KB▼ 73.53%