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)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 8.88 ▲5.42 | 64.75 ▲23.30 |
Dashboard /wp-admin | 8.90 ▲5.56 | 72.01 ▲11.73 |
Posts /wp-admin/edit.php | 8.91 ▲5.54 | 69.07 ▲20.09 |
Add New Post /wp-admin/post-new.php | 9.28 ▲3.39 | 105.86 ▲8.52 |
Media Library /wp-admin/upload.php | 8.90 ▲5.67 | 70.28 ▲33.88 |
ACF For Dokan /wp-admin/admin.php?page=acf-for-dokan | 8.90 | 1,786.68 |
Freemius Debug [v.2.5.12] /wp-admin/admin.php?page=freemius | 8.91 | 56.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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,817 ▲71 | 14.39 ▲0.17 | 1.60 ▼0.07 | 30.73 ▼8.12 |
Dashboard /wp-admin | 2,226 ▲52 | 5.58 ▲0.00 | 96.10 ▲11.52 | 45.85 ▲1.05 |
Posts /wp-admin/edit.php | 2,129 ▲29 | 2.11 ▲0.16 | 41.81 ▲5.86 | 37.26 ▲6.75 |
Add New Post /wp-admin/post-new.php | 1,546 ▲20 | 18.06 ▼5.06 | 652.99 ▼65.36 | 58.46 ▲5.91 |
Media Library /wp-admin/upload.php | 1,428 ▲28 | 4.18 ▼0.06 | 96.35 ▼9.57 | 43.03 ▼2.95 |
ACF For Dokan /wp-admin/admin.php?page=acf-for-dokan | 974 | 1.66 | 25.11 | 54.78 |
Freemius Debug [v.2.5.12] /wp-admin/admin.php?page=freemius | 1,072 | 1.68 | 23.90 | 28.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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 120 | 8,002 | 17,319 | 33,222 |
JavaScript | 4 | 34 | 59 | 222 |
Markdown | 2 | 68 | 0 | 216 |
XML | 1 | 3 | 0 | 16 |
CSS | 13 | 0 | 0 | 13 |
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 code | 0.64 |
Average class complexity | 92.43 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 3,088.00 |
Average method complexity | 4.61 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 94.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 49 | |
▷ Abstract classes | 2 | 4.08% |
▷ Concrete classes | 47 | 95.92% |
▷ Final classes | 0 | 0.00% |
Methods | 1,269 | |
▷ Static methods | 198 | 15.60% |
▷ Public methods | 879 | 69.27% |
▷ Protected methods | 17 | 1.34% |
▷ Private methods | 373 | 29.39% |
Functions | 103 | |
▷ Named functions | 103 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 149 | |
▷ Global constants | 102 | 68.46% |
▷ Class constants | 47 | 31.54% |
▷ Public constants | 47 | 100.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 | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
freemius/assets/img/plugin-icon.png | 9.16KB | 5.26KB | ▼ 42.58% |
freemius/assets/img/theme-icon.png | 10.97KB | 5.78KB | ▼ 47.37% |
freemius/assets/img/acf-for-dokan.png | 19.63KB | 5.20KB | ▼ 73.53% |