83% dokan-with-wp-store-locator

Code Review | Dokan with WP Store Locator - Provide store locator to all the vendors of dokan with wp store locator

WordPress plugin Dokan with WP Store Locator - Provide store locator to all the vendors of dokan with wp store locator scored83%from 54 tests.

About plugin

  • Plugin page: dokan-with-wp-sto...
  • Plugin version: 1.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-5.6
  • WordPress version: 6.3.1
  • First release: Feb 6, 2021
  • Latest release: Feb 6, 2021
  • Number of updates: 3
  • Update frequency: every 0.3 days
  • Top authors: mithublue (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

30+ active /1,050 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully

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

An overview of server-side resources used by Dokan with WP Store Locator - Provide store locator to all the vendors of dokan with wp store locator
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0238.89 ▼6.12
Dashboard /wp-admin3.31 ▲0.0149.06 ▼1.06
Posts /wp-admin/edit.php3.36 ▲0.0148.82 ▼2.07
Add New Post /wp-admin/post-new.php5.89 ▲0.0194.99 ▲0.22
Media Library /wp-admin/upload.php3.23 ▲0.0135.23 ▼1.30

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
db_upgraded
theysaidso_admin_options
widget_theysaidso_widget
can_compress_scripts
widget_recent-posts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Dokan with WP Store Locator - Provide store locator to all the vendors of dokan with wp store locator
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,811 ▲6513.26 ▼1.054.38 ▲2.3643.64 ▲4.89
Dashboard /wp-admin2,217 ▲354.87 ▼0.22109.03 ▲3.1543.75 ▲2.60
Posts /wp-admin/edit.php2,103 ▲112.01 ▲0.0142.27 ▲0.6636.78 ▼2.14
Add New Post /wp-admin/post-new.php1,539 ▲623.22 ▲0.04638.71 ▲22.3256.27 ▼6.12
Media Library /wp-admin/upload.php1,399 ▲84.22 ▲0.0599.67 ▼2.9544.79 ▲0.23

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
  • Zombie WordPress options were found after uninstall: 6 options
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

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 fix the following
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/dokan-with-wp-store-locator/inc/class-store-creator.php:38

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 79% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes:
  • Tags: Please reduce the number of tags, currently 19 tag instead of maximum 10
  • Contributors: Plugin contributors not specified
You can take inspiration from this readme.txt

dokan-with-wp-store-locator/dokan-wp-store-locator.php 69% from 13 tests

The primary PHP file in "Dokan with WP Store Locator - Provide store locator to all the vendors of dokan with wp store locator" version 1.0 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
  • Requires at least: Required version must match the one declared in readme.txt ("4.4" instead of "3.0")
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("dokan-with-wp-store-locator.php" instead of "dokan-wp-store-locator.php")
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
  • Domain Path: The domain path folder does not exist ("/languages/")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin93 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP2297593

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.38
Average class complexity5.00
▷ Minimum class complexity2.00
▷ Maximum class complexity8.00
Average method complexity2.00
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods8
▷ Static methods225.00%
▷ Public methods675.00%
▷ Protected methods00.00%
▷ Private methods225.00%
Functions3
▷ Named functions266.67%
▷ Anonymous functions133.33%
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