90% dokan-auto-seller

Code Review | Dokan auto seller

WordPress plugin Dokan auto seller scored90%from 54 tests.

About plugin

  • Plugin page: dokan-auto-seller
  • Plugin version: 1.0.0.3
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.8.3
  • WordPress version: 6.3.1
  • First release: Feb 9, 2021
  • Latest release: Jan 21, 2022
  • Number of updates: 7
  • Update frequency: every 62.1 days
  • Top authors: mjkhajeh (100%)

Code review

54 tests

User reviews

1 review

Install metrics

90+ active /2,421 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▲2.52ms] Passed 4 tests

Server-side resources used by Dokan auto seller
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0359.39 ▲16.34
Dashboard /wp-admin3.32 ▲0.0274.03 ▲13.95
Posts /wp-admin/edit.php3.37 ▲0.0261.15 ▲5.79
Add New Post /wp-admin/post-new.php5.90 ▲0.02101.00 ▼14.20
Media Library /wp-admin/upload.php3.25 ▲0.0240.67 ▲4.53

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Dokan auto seller
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.37 ▲0.012.30 ▲0.4464.06 ▲21.85
Dashboard /wp-admin2,198 ▲185.62 ▼0.08108.86 ▲2.9949.50 ▲10.55
Posts /wp-admin/edit.php2,100 ▼02.04 ▲0.0749.28 ▲9.6740.63 ▲4.06
Add New Post /wp-admin/post-new.php1,526 ▼023.09 ▼0.06668.48 ▼59.1849.73 ▼9.79
Media Library /wp-admin/upload.php1,394 ▼34.17 ▼0.01101.44 ▼7.8943.24 ▼2.90

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
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
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
9 plugin tags: user role, vendor, wc, woocommerce, users...

dokan-auto-seller/dokan-auto-seller.php 92% from 13 tests

The main PHP file in "Dokan auto seller" ver. 1.0.0.3 adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
  • Text Domain: Please use dashes and lowercase characters for text domains

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin62 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP171737
PO File15725

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.47
Average class complexity8.00
▷ Minimum class complexity8.00
▷ Maximum class complexity8.00
Average method complexity2.75
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods125.00%
▷ Public methods375.00%
▷ Protected methods00.00%
▷ Private methods125.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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