83% vendor-templates-dokan

Code Review | Vendor Templates for Dokan - Collection of templates for Dokan sellers

WordPress plugin Vendor Templates for Dokan - Collection of templates for Dokan sellers scored83%from 54 tests.

About plugin

  • Plugin page: vendor-templates-...
  • Plugin version: 1.0.3
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.2-6.1
  • WordPress version: 6.3.1
  • First release: Nov 30, 2022
  • Latest release: Dec 4, 2022
  • Number of updates: 5
  • Update frequency: every 1.0 days
  • Top authors: rubyat13 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

40+ active /622 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲0.01MB] [CPU: ▲0.85ms] Passed 4 tests

A check of server-side resources used by Vendor Templates for Dokan - Collection of templates for Dokan sellers
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0140.78 ▼2.56
Dashboard /wp-admin3.32 ▲0.0255.41 ▲4.83
Posts /wp-admin/edit.php3.37 ▲0.0146.60 ▲0.05
Add New Post /wp-admin/post-new.php5.90 ▲0.0198.04 ▲12.25
Media Library /wp-admin/upload.php3.24 ▲0.0136.39 ▲1.08

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 16 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
theysaidso_admin_options
widget_recent-posts
widget_recent-comments
can_compress_scripts
widget_theysaidso_widget

Browser metrics Passed 4 tests

Vendor Templates for Dokan - Collection of templates for Dokan sellers: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,816 ▲7014.76 ▲0.181.77 ▼0.0844.35 ▼0.92
Dashboard /wp-admin2,215 ▲404.85 ▼0.08103.81 ▼19.4241.66 ▼5.18
Posts /wp-admin/edit.php2,098 ▲92.03 ▲0.0334.14 ▼0.4535.36 ▼0.73
Add New Post /wp-admin/post-new.php1,552 ▲3817.96 ▲0.32603.85 ▼97.4055.03 ▲3.56
Media Library /wp-admin/upload.php1,403 ▲184.27 ▲0.0195.70 ▼8.9042.52 ▼1.34

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded

Smoke tests 75% from 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 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× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/vendor-templates-dokan/inc/functions.php:28

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)
No browser errors were detected

Optimizations

Plugin configuration 90% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
9 plugin tags: commissions, multivendor, templates, templates for dokan, multi-vendor design...

vendor-templates-dokan/vendor-templates-dokan.php 77% from 13 tests

The main PHP script in "Vendor Templates for Dokan - Collection of templates for Dokan sellers" version 1.0.3 is automatically included on every request by WordPress
It is important to fix the following:
  • Domain Path: The domain path folder was not found ("/languages")
  • Description: Please keep the plugin description shorter than 140 characters (currently 207 characters long)
  • Requires at least: Required version does not match the one declared in readme.txt ("5.4" instead of "5.2")

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
Good job! No executable or dangerous file extensions detected428 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
CSS211632375
PHP2145153

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.38
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
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.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
6 PNG files occupy 0.13MB with 0.08MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png42.18KB15.82KB▼ 62.50%
assets/img/temp3.png12.80KB5.22KB▼ 59.24%
screenshot1.png42.18KB15.82KB▼ 62.50%
assets/img/temp2.png13.20KB5.26KB▼ 60.18%
assets/img/temp4.png14.25KB5.95KB▼ 58.29%